:root {
  --font-main: "Segoe UI", Arial, Helvetica, sans-serif;
  --text: #151515;
  --muted: #515866;
  --border: #dfe5dc;
  --surface: #f6f7f2;
  --brand: #7aa83e;
  --black: #111;
  --section-y: 72px;
  --section-y-lg: 88px;
  --measure: 68ch;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  color: var(--text);
  background: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.site-nav {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #dde5ef;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar-brand {
  padding: 0;
  margin-right: 28px;
}

.brand-logo img {
  width: 152px;
  height: auto;
  display: block;
}

.navbar .container {
  min-height: 76px;
}

.nav-link {
  font-weight: 650;
  color: #1e2633 !important;
}

.nav-link:hover {
  color: #7fb34d !important;
}

.nav-actions {
  align-items: center;
}

.admin-pill {
  border: 1px solid #9fcc65;
  border-radius: 8px;
  padding: 8px 14px !important;
  color: #152032 !important;
  background: #f7fbf1;
}

main {
  padding-top: 0;
}

main > section,
main > div.card-grid,
main > div.cms-grid,
main > div.message-list,
main > form,
main > .alert {
  padding-left: max(28px, calc((100vw - 1220px) / 2));
  padding-right: max(28px, calc((100vw - 1220px) / 2));
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: 56px;
  align-items: center;
  padding-top: var(--section-y-lg);
  padding-bottom: var(--section-y);
  background: #fff;
}

.hero-visual {
  position: relative;
}

.hero-copy {
  max-width: 720px;
}

.hero-showcase {
  position: relative;
}

.hero h1,
.page-heading h1 {
  max-width: 820px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--black);
  margin-bottom: 20px;
}

.hero p,
.page-heading p {
  max-width: var(--measure);
  font-size: clamp(1rem, .95vw, 1.08rem);
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  color: #7aa83e;
  font-size: .78rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  border-radius: 8px;
  font-weight: 750;
}

.btn-primary {
  background: #171717;
  border-color: #171717;
}

.btn-primary:hover {
  background: #7aa83e;
  border-color: #7aa83e;
}

.btn-outline-primary {
  color: #171717;
  border-color: #7aa83e;
}

.btn-outline-primary:hover {
  background: #7aa83e;
  border-color: #7aa83e;
}

.hero-image,
.split-image,
.about-image,
.contact-image {
  min-height: 560px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(17, 17, 17, .22);
}

.hero-image {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .02)), url("/images/cegis-ai-hero.png");
}

.hero-stat {
  position: absolute;
  right: 24px;
  bottom: -26px;
  width: min(330px, calc(100% - 48px));
  background: #fff;
  border: 1px solid #dfe7ee;
  border-left: 5px solid #9fcc65;
  border-radius: 0;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(21, 32, 49, .18);
}

.hero-stat strong {
  display: block;
  color: #171717;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-stat span {
  display: block;
  color: #536176;
  font-size: .94rem;
}

.split-image {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .04)), url("/images/cegis-ai-hero.png");
}

.about-image {
  background-image: url("/images/cegis-ai-hero.png");
}

.contact-image {
  background-image: url("/images/cegis-ai-hero.png");
}

.trust-strip,
.capability-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip {
  margin-top: 30px;
}

.trust-strip span,
.capability-ribbon span {
  color: #405069;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: .9rem;
}

.trust-strip span:first-child,
.capability-ribbon span:first-child {
  border-color: #9fcc65;
  color: #171717;
}

.capability-ribbon {
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  background: #f4f6f1;
  border-top: 1px solid #dfe6da;
  border-bottom: 1px solid #dfe6da;
}

.capability-ribbon span {
  flex: 1 1 160px;
  text-align: center;
}

.statement-band {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--black);
  color: #fff;
}

.statement-band p {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 1.22;
  font-weight: 600;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 56px;
  padding-bottom: 56px;
  background: #fff;
}

.stats-band div {
  min-height: 138px;
  background: #fff;
  border: 1px solid #dde5ef;
  border-radius: 0;
  padding: 22px;
}

.stats-band strong {
  display: block;
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.stats-band span {
  color: #526175;
  font-weight: 650;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1fr);
  gap: 42px;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.editorial-copy h2,
.case-feature h2,
.story-card h3 {
  color: var(--black);
  font-weight: 700;
}

.editorial-copy h2 {
  font-family: var(--font-main);
  font-size: clamp(1.65rem, 2.15vw, 2.35rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

.editorial-copy p,
.editorial-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.editorial-grid {
  display: grid;
  gap: 1px;
  background: #dfe6da;
  border: 1px solid #dfe6da;
}

.editorial-grid article {
  background: #fff;
  padding: 34px;
}

.editorial-grid strong {
  display: inline-block;
  color: #7aa83e;
  font-size: .9rem;
  margin-bottom: 34px;
}

.editorial-grid h3 {
  color: #111;
  font-weight: 820;
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: #fff;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.section-title h2,
.page-heading h1 {
  margin: 0;
}

.section-title h2,
.split-copy h2,
.contact-aside h2,
.cta-band h2 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--black);
  font-size: clamp(1.45rem, 1.8vw, 2.05rem);
  line-height: 1.22;
}

.card-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.content-card,
.metric,
.auth-panel,
.message-item {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 0;
  padding: 26px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, .06);
}

.content-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(23, 32, 51, .11);
}

.content-card h2,
.content-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 10px;
}

.content-card p,
.rich-text,
.split-copy p,
.contact-aside p {
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 0;
  background: #edf7df;
  color: #171717;
  font-weight: 900;
}

.service-grid .content-card {
  min-height: 220px;
}

.text-link {
  color: #6c9d2f;
  font-weight: 800;
  text-decoration: none;
}

.page-heading {
  padding: 64px 0 36px;
}

.page-heading-media {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 36px;
  align-items: center;
}

.services-heading {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  padding: 46px;
  margin-top: 34px;
  background-image: linear-gradient(90deg, rgba(245, 247, 251, .96), rgba(245, 247, 251, .72)), url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
}

.split-section,
.case-feature,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(300px, 1fr);
  gap: 38px;
  align-items: center;
  padding: 58px 0;
}

.case-feature {
  grid-template-columns: minmax(420px, 1fr) minmax(320px, .82fr);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--surface);
}

.split-section.no-image {
  grid-template-columns: 1fr minmax(280px, .65fr);
}

.split-copy {
  max-width: 650px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 0;
  padding: 14px 16px;
  color: #33415a;
  font-weight: 650;
}

.image-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0 72px;
}

.story-card {
  min-height: 390px;
  display: flex;
  align-items: end;
  border-radius: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 58px rgba(17, 17, 17, .14);
}

.story-card div {
  min-height: 210px;
  width: 100%;
  padding: 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .38), transparent);
  color: #fff;
}

.story-card h3,
.story-card p,
.story-card .eyebrow {
  color: #fff;
}

.story-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.story-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

.story-code {
  background-image: url("/images/cegis-ai-hero.png");
}

.story-data {
  background-image: url("/images/cegis-ai-hero.png");
}

.story-team {
  background-image: url("/images/cegis-ai-hero.png");
}

.dark-feature {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(320px, .8fr);
  gap: 56px;
  align-items: end;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--black);
  color: #fff;
}

.dark-feature h2 {
  max-width: 880px;
  color: #fff;
  font-family: var(--font-main);
  font-size: clamp(1.65rem, 2.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}

.dark-feature p {
  color: #f4f6f1;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.process-panel {
  display: grid;
  gap: 14px;
}

.process-panel div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 18px;
}

.process-panel strong {
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1.3;
}

.process-panel span {
  color: #33415a;
  font-weight: 750;
}

.project-thumb,
.news-thumb,
.article-image {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.project-thumb,
.news-thumb {
  height: 170px;
  margin: -6px -6px 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
}

.article-image {
  min-height: 360px;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 34px;
  border-radius: 0;
  background: #171717;
  color: #fff;
}

.cta-band h2,
.cta-band .eyebrow {
  color: #fff;
}

.cta-band h2 {
  margin: 0;
}

.contact-aside {
  align-self: start;
  padding: 30px;
  background: #171717;
  color: #fff;
  border-radius: 8px;
}

.contact-aside p,
.contact-aside h2,
.contact-aside .eyebrow {
  color: #fff;
}

.cms-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 24px;
}

.cms-form {
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 22px;
}

.cms-form.compact,
.public-form {
  width: 100%;
}

.cms-form label {
  font-weight: 700;
}

.content-list,
.message-list {
  display: grid;
  gap: 12px;
}

.content-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 14px;
}

.content-row span {
  display: block;
  color: #6b778c;
  font-size: .9rem;
}

.row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.row-actions button {
  border: 0;
  background: transparent;
  color: #b02a37;
  padding: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tabs a {
  padding: 8px 12px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  color: #172033;
  text-decoration: none;
  background: #fff;
}

.tabs a.active {
  background: #171717;
  color: #fff;
  border-color: #171717;
}

.metric {
  text-decoration: none;
  color: #172033;
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.message-item header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.message-item span {
  display: block;
  color: #6b778c;
}

.message-item.unread {
  border-color: #9fcc65;
}

.admin-message-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-message-summary div,
.empty-state {
  background: #fff;
  border: 1px solid #e1e7ef;
  padding: 22px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, .06);
}

.admin-message-summary strong {
  display: block;
  color: #101510;
  font-size: 2rem;
  line-height: 1;
}

.admin-message-summary span,
.message-status {
  display: block;
  color: #6b778c;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-success-message {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: #f0f8e9;
  border: 1px solid #b9d99a;
  border-left: 5px solid #6f9f37;
  color: #20321b;
}

.contact-success-message strong,
.contact-success-message p {
  display: block;
  margin: 0;
}

.contact-success-message strong {
  font-size: 1rem;
}

.contact-success-message p {
  margin-top: 4px;
}

.contact-success-message-hidden {
  display: none;
}

.contact-message-error {
  background: #fff4f4;
  border-color: #efb4b4;
  border-left-color: #b02a37;
  color: #6f1d1d;
}

.contact-inline-notice {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(122, 168, 62, .38);
  border-left: 5px solid #7aa83e;
  box-shadow: 0 16px 38px rgba(16, 21, 16, .1);
  color: #101510;
}

.contact-inline-notice strong {
  display: block;
  color: #19310d;
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.contact-inline-notice p {
  color: #3e493b;
  font-size: .98rem;
  line-height: 1.55;
  margin: 0;
}

.contact-inline-notice-hidden {
  display: none;
}

.contact-inline-notice-error {
  border-color: rgba(176, 42, 55, .34);
  border-left-color: #b02a37;
}

.contact-inline-notice-error strong {
  color: #6f1d1d;
}

.contact-inline-notice-error p {
  color: #6f1d1d;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.required-mark {
  display: inline-block;
  margin-left: 6px;
  color: #b02a37;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-message-table {
  background: #fff;
  border: 1px solid #e1e7ef;
  box-shadow: 0 16px 42px rgba(23, 32, 51, .06);
}

.message-table-head,
.message-record summary {
  display: grid;
  grid-template-columns: 90px minmax(190px, 1.1fr) minmax(220px, 1.2fr) minmax(130px, .7fr) minmax(130px, .7fr) minmax(140px, .8fr);
  gap: 14px;
  align-items: center;
}

.message-table-head {
  padding: 14px 18px;
  background: #f7faf2;
  border-bottom: 1px solid #e1e7ef;
  color: #6b778c;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-record {
  border-bottom: 1px solid #e1e7ef;
}

.message-record:last-child {
  border-bottom: 0;
}

.message-record summary {
  cursor: pointer;
  padding: 18px;
  list-style: none;
}

.message-record summary::-webkit-details-marker {
  display: none;
}

.message-record summary:hover {
  background: #fbfdf8;
}

.message-record.unread summary {
  box-shadow: inset 4px 0 0 #7aa83e;
}

.message-record summary strong,
.message-record summary small {
  display: block;
}

.message-record summary strong {
  color: #101510;
  font-size: .98rem;
  line-height: 1.35;
}

.message-record summary small {
  color: #6b778c;
  font-size: .84rem;
  line-height: 1.4;
}

.message-record-detail {
  padding: 0 18px 20px 108px;
}

.message-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.message-meta div {
  padding: 14px;
  background: #f7faf2;
  border: 1px solid #e1ead8;
}

.message-meta dt {
  color: #6b778c;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-meta dd {
  margin: 4px 0 0;
  color: #101510;
  font-weight: 650;
}

.message-body {
  padding-top: 18px;
  border-top: 1px solid #e1e7ef;
}

.message-body h2 {
  color: #101510;
  font-size: 1rem;
  margin-bottom: 8px;
}

.message-body p {
  white-space: pre-wrap;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.message-actions form {
  margin: 0;
}

.admin-delete-button {
  background: #8f1f2d;
  border-color: #8f1f2d;
  color: #fff;
}

.admin-delete-button:hover {
  background: #6f1722;
  border-color: #6f1722;
  color: #fff;
}

@media (max-width: 800px) {
  .admin-message-summary,
  .message-meta {
    grid-template-columns: 1fr;
  }

  .message-table-head {
    display: none;
  }

  .message-record summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .message-record-detail {
    padding: 0 16px 18px;
  }
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-security-panel {
  display: grid;
  gap: 22px;
  background: #fff;
  border: 1px solid #e1e7ef;
  padding: 26px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, .06);
}

.admin-security-panel h2 {
  color: #101510;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.admin-security-notice {
  margin-bottom: 18px;
  padding: 14px 18px;
  background: #f0f8e9;
  border-left: 4px solid #7aa83e;
  color: #20321b;
  font-weight: 700;
}

.two-factor-setup ol {
  color: #5d6673;
  line-height: 1.7;
}

.two-factor-key {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 14px 16px;
  background: #101510;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.two-factor-qr-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 21, 16, .055);
}

.two-factor-qr-card img {
  width: 180px;
  height: 180px;
  display: block;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}

.two-factor-qr-card strong,
.two-factor-qr-card span {
  display: block;
}

.two-factor-qr-card strong {
  color: #101510;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.two-factor-qr-card span,
.two-factor-manual span {
  color: #5d6673;
  font-weight: 700;
  line-height: 1.5;
}

.two-factor-manual {
  margin-top: 12px;
}

.two-factor-code-test {
  margin: 18px 0;
  padding: 18px;
  background: #f7faf2;
  border: 1px solid rgba(122, 168, 62, .28);
  border-left: 5px solid #7aa83e;
  border-radius: 8px;
}

.two-factor-code-test span,
.two-factor-code-test strong,
.two-factor-code-test p {
  display: block;
}

.two-factor-code-test span {
  margin-bottom: 8px;
  color: #5d8d27;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.two-factor-code-test strong {
  color: #101510;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: .08em;
}

.two-factor-code-test p {
  margin: 10px 0 0;
  color: #4d5947;
  line-height: 1.55;
}

.two-factor-uri {
  margin-bottom: 18px;
}

.two-factor-uri code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  background: #f6f7f2;
  color: #3e493b;
  white-space: normal;
  overflow-wrap: anywhere;
}

.two-factor-form {
  max-width: 420px;
}

.site-footer {
  margin-top: 54px;
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid #dde5ef;
  color: #526175;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand img {
  width: 122px;
  height: auto;
}

.site-footer a {
  color: #6c9d2f;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 800px) {
  .hero,
  .cms-grid,
  .page-heading-media,
  .split-section,
  .case-feature,
  .split-section.no-image,
  .contact-layout,
  .article-layout,
  .editorial-section,
  .image-story-grid,
  .dark-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 0;
  }

  .hero-image,
  .split-image,
  .about-image,
  .contact-image {
    min-height: 280px;
  }

  .hero-stat {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -34px 18px 0;
    width: auto;
  }

  .section-title,
  .cta-band {
    align-items: start;
    flex-direction: column;
  }

  .services-heading {
    padding: 28px;
  }

  .brand-logo img {
    width: 132px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .editorial-section,
  .case-feature,
  .image-story-grid,
  .section {
    padding: 42px 0;
  }
}

/* Cegis software company homepage */
.cegis-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .82fr);
  gap: 56px;
  align-items: center;
  min-height: 660px;
  padding-top: 84px;
  padding-bottom: 84px;
  background:
    radial-gradient(circle at 12% 12%, rgba(122, 168, 62, .18), transparent 28%),
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 52%, #eef6e5 100%);
}

.cegis-hero-content {
  max-width: 720px;
}

.cegis-hero h1 {
  max-width: 760px;
  color: #101510;
  font-size: clamp(2.25rem, 3.6vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
}

.lead-text {
  max-width: 68ch;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.75;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-pills span {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d6e5c6;
  color: #263026;
  font-size: .9rem;
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 560px;
}

.hero-metrics div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d6e5c6;
  backdrop-filter: blur(10px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: #101510;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-metrics span {
  color: #5d6673;
  font-size: .86rem;
}

.cegis-hero-media {
  position: relative;
}

.hero-photo-main {
  min-height: 520px;
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .16), rgba(16, 21, 16, .02)),
    url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(20, 35, 20, .18);
}

.hero-proof-card {
  position: absolute;
  right: 24px;
  bottom: -30px;
  max-width: 350px;
  padding: 20px;
  background: #fff;
  border-left: 5px solid #7aa83e;
  box-shadow: 0 18px 50px rgba(17, 17, 17, .16);
}

.hero-proof-card strong,
.hero-proof-card span {
  display: block;
}

.hero-proof-card strong {
  color: #101510;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.hero-proof-card span {
  color: #5d6673;
  line-height: 1.55;
}

.cegis-partner-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  background: #e9f4dc;
  border-top: 1px solid #cfe0bd;
  border-bottom: 1px solid #cfe0bd;
}

.cegis-partner-band p {
  max-width: 780px;
  margin: 0;
  color: #263026;
  font-size: 1.05rem;
  font-weight: 600;
}

.cegis-partner-band a {
  color: #101510;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #7aa83e;
}

.cegis-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #101510;
  color: #fff;
}

.cegis-proof div {
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.cegis-proof strong,
.cegis-proof span {
  display: block;
}

.cegis-proof strong {
  color: #a9d56f;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cegis-proof span {
  color: #d8ded2;
  line-height: 1.55;
}

.cegis-intro,
.cegis-industries {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 76px;
}

.cegis-outcomes {
  display: grid;
  grid-template-columns: minmax(280px, .74fr) minmax(420px, 1fr);
  gap: 46px;
  padding-top: 80px;
  padding-bottom: 80px;
  background:
    linear-gradient(135deg, rgba(16, 21, 16, .96), rgba(31, 54, 24, .94)),
    url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.outcome-heading h2 {
  color: #fff;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.14;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.outcome-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.outcome-grid span {
  display: inline-block;
  color: #a9d56f;
  font-weight: 700;
  margin-bottom: 22px;
}

.outcome-grid h3 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.outcome-grid p {
  color: #dce7d4;
  line-height: 1.65;
  margin-bottom: 0;
}

.cegis-intro h2,
.section-heading h2,
.feature-copy h2,
.cegis-industries h2,
.cegis-cta h2 {
  color: #101510;
  font-size: clamp(1.7rem, 2.3vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
}

.cegis-intro p,
.section-heading p,
.feature-copy p,
.cegis-industries p,
.cegis-cta p {
  color: #5d6673;
  line-height: 1.75;
}

.cegis-services,
.cegis-stack,
.cegis-process,
.cegis-projects {
  padding-top: 76px;
  padding-bottom: 76px;
}

.cegis-services,
.cegis-process {
  background: #f6f9f1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-showcase article,
.stack-grid div,
.process-steps article,
.services-static article {
  background: #fff;
  border: 1px solid #dfe8d6;
  padding: 26px;
}

.service-showcase article {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-showcase article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #7aa83e, #c5eb87);
}

.service-showcase article:hover {
  transform: translateY(-4px);
  border-color: #b8d49b;
  box-shadow: 0 18px 38px rgba(31, 54, 24, .1);
}

.service-showcase article span,
.process-steps article strong {
  display: inline-block;
  color: #6f9f37;
  font-weight: 700;
  margin-bottom: 18px;
}

.service-showcase h3,
.stack-grid strong,
.process-steps h3,
.services-static h2 {
  color: #101510;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-showcase p,
.service-showcase li,
.stack-grid span,
.process-steps p,
.services-static p {
  color: #5d6673;
  line-height: 1.65;
}

.service-showcase ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.cegis-feature {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(340px, .85fr);
  gap: 54px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background: #fff;
}

.cegis-consultation {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(320px, .9fr) auto;
  gap: 30px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  background: #101510;
  color: #fff;
}

.cegis-consultation h2 {
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.cegis-consultation p {
  color: #dce7d4;
  line-height: 1.65;
  margin-bottom: 0;
}

.cegis-consultation .btn-primary {
  white-space: nowrap;
  background: #7aa83e;
  border-color: #7aa83e;
  color: #101510;
}

.feature-image {
  min-height: 480px;
  background-size: cover;
  background-position: center;
}

.feature-dashboard {
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .12), rgba(16, 21, 16, .02)),
    url("/images/cegis-dashboard-insight.jpg");
}

.value-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.value-list div {
  padding: 18px;
  border-left: 4px solid #7aa83e;
  background: #f6f9f1;
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  color: #101510;
  margin-bottom: 4px;
}

.value-list span {
  color: #5d6673;
}

.stack-grid,
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.industry-grid span {
  padding: 14px 16px;
  background: #f6f9f1;
  border: 1px solid #dfe8d6;
  color: #253025;
  font-weight: 600;
}

.project-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 360px;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.project-card div {
  width: 100%;
  min-height: 160px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .46), transparent);
}

.project-card h3 {
  color: #fff;
  font-size: 1.22rem;
}

.project-card p {
  color: #e8eee0;
}

.web-system {
  background-image: url("/images/cegis-code-development.jpg");
}

.desktop-system {
  background-image: url("/images/cegis-desktop-development.jpg");
}

.mobile-system {
  background-image: url("/images/cegis-mobile-development.jpg");
}

.cegis-cta {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
  background: linear-gradient(135deg, #101510, #20321b);
  color: #fff;
}

.cegis-why {
  padding-top: 76px;
  padding-bottom: 76px;
  background:
    radial-gradient(circle at 85% 0%, rgba(122, 168, 62, .16), transparent 28%),
    #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-grid article {
  padding: 24px;
  border: 1px solid #dfe8d6;
  background: #fff;
}

.why-grid h3 {
  color: #101510;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.why-grid p {
  color: #5d6673;
  line-height: 1.65;
  margin-bottom: 0;
}

.cegis-cta h2,
.cegis-cta .eyebrow {
  color: #fff;
}

.cegis-cta p {
  max-width: 760px;
  color: #d8ded2;
}

.services-static {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 980px) {
  .cegis-hero,
  .cegis-intro,
  .cegis-feature,
  .cegis-industries,
  .cegis-outcomes,
  .cegis-consultation {
    grid-template-columns: 1fr;
  }

  .cegis-proof,
  .service-showcase,
  .stack-grid,
  .process-steps,
  .project-types,
  .services-static,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cegis-proof,
  .service-showcase,
  .stack-grid,
  .process-steps,
  .project-types,
  .services-static,
  .industry-grid,
  .outcome-grid,
  .why-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .cegis-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .hero-proof-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -24px;
  }

  .cegis-cta {
    align-items: start;
    flex-direction: column;
  }

  .cegis-partner-band {
    align-items: start;
    flex-direction: column;
  }
}

/* Full-screen hero image cover */
.hero-v2.cegis-hero {
  min-height: calc(100vh - 78px);
  padding: 0;
  background-image:
    linear-gradient(90deg, rgba(247, 251, 241, .98) 0%, rgba(247, 251, 241, .9) 34%, rgba(247, 251, 241, .58) 55%, rgba(16, 21, 16, .14) 100%),
    radial-gradient(circle at 12% 12%, rgba(169, 213, 111, .38), transparent 30%),
    url("/images/cegis-ai-hero.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.hero-v2 .hero-v2-panel {
  width: min(1320px, calc(100vw - 64px));
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(520px, 650px) minmax(340px, 1fr);
}

.hero-v2 .cegis-hero-media {
  min-height: 520px;
}

.hero-v2 .hero-ai-image {
  display: none;
}

.hero-v2 .hero-proof-card {
  right: 0;
  bottom: 34px;
}

@media (max-width: 1100px) {
  .hero-v2.cegis-hero {
    background-image:
      linear-gradient(90deg, rgba(247, 251, 241, .98), rgba(247, 251, 241, .72)),
      url("/images/cegis-ai-hero.png");
  }

  .hero-v2 .hero-v2-panel {
    grid-template-columns: 1fr;
  }

  .hero-v2 .cegis-hero-media {
    min-height: 120px;
  }
}

/* Final hero/banner refinement */
.hero-v2 {
  position: relative;
  display: block;
  min-height: auto;
  padding-top: 34px;
  padding-bottom: 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(170, 220, 100, .42), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(122, 168, 62, .24), transparent 26%),
    linear-gradient(135deg, #f8fcf2 0%, #eff8e7 42%, #ffffff 100%);
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 168, 62, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 62, .09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 75%);
  pointer-events: none;
}

.hero-bg-mark {
  position: absolute;
  right: 8%;
  top: 18px;
  color: rgba(122, 168, 62, .12);
  font-size: clamp(8rem, 20vw, 20rem);
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.hero-v2-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1fr);
  gap: 46px;
  align-items: center;
  min-height: 650px;
  padding-left: var(--pro-gutter);
  padding-right: var(--pro-gutter);
}

.hero-v2 .cegis-hero-content {
  max-width: 650px;
  padding: 34px 0;
}

.hero-v2 h1 {
  max-width: 650px;
  font-size: clamp(2.35rem, 4.25vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}

.hero-v2 .lead-text {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-v2 .hero-actions {
  margin-top: 30px;
}

.hero-v2 .btn-primary {
  background: #101510;
  border-color: #101510;
  color: #fff;
}

.hero-v2 .btn-primary:hover {
  background: #6f9f37;
  border-color: #6f9f37;
  color: #101510;
}

.hero-v2 .btn-outline-primary {
  background: rgba(255, 255, 255, .72);
  border-color: #8bb75a;
}

.hero-v2 .hero-metrics {
  margin-top: 34px;
  max-width: 640px;
}

.hero-v2 .hero-metrics div {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(122, 168, 62, .35);
  box-shadow: 0 12px 34px rgba(31, 54, 24, .08);
}

.hero-v2 .hero-metrics strong {
  color: #244115;
  font-size: 1.05rem;
}

.hero-ai-image {
  min-height: 560px;
  background-image: url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(122, 168, 62, .28);
  box-shadow: 0 30px 80px rgba(31, 54, 24, .22);
}

.hero-v2 .hero-proof-card {
  right: 28px;
  bottom: -28px;
  max-width: 390px;
  border-left-color: #7aa83e;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px rgba(31, 54, 24, .18);
}

.cegis-proof i,
.infinity-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 1px solid rgba(169, 213, 111, .52);
  color: #a9d56f;
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
}

.service-showcase article .infinity-icon {
  position: absolute;
  right: 22px;
  top: 20px;
  color: rgba(122, 168, 62, .42);
  border-color: rgba(122, 168, 62, .22);
}

.service-showcase article > span {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .hero-v2-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 26px;
  }

  .hero-ai-image {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero-v2 h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-v2-panel {
    gap: 28px;
  }

  .hero-ai-image {
    min-height: 320px;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Emergency hero correction: stable first viewport */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 78px;
}

.site-nav .container {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 145px;
  max-height: 56px;
  object-fit: contain;
}

.hero-v2.cegis-hero {
  display: block;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(171, 222, 100, .33), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(122, 168, 62, .22), transparent 24%),
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 48%, #eef7e4 100%);
}

.hero-v2 .hero-v2-panel {
  width: min(1320px, calc(100vw - 64px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  padding: 72px 0 78px;
  display: grid;
  grid-template-columns: minmax(520px, .92fr) minmax(480px, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-v2 .cegis-hero-content {
  max-width: none;
  width: 100%;
  padding: 0;
}

.hero-v2 .eyebrow {
  max-width: 360px;
  margin-bottom: 16px;
  color: #6f9f37;
  font-size: .78rem !important;
  line-height: 1.45;
  letter-spacing: .11em;
}

.hero-v2 h1 {
  max-width: 720px !important;
  width: 100%;
  color: #111;
  font-size: clamp(2.7rem, 4.1vw, 4.9rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0;
  font-weight: 800;
  margin: 0 0 22px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.brand-highlight {
  color: #4f7f1f;
  font-weight: 900;
}

.hero-v2 .lead-text {
  max-width: 650px;
  color: #4f5966;
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0;
}

.hero-v2 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-v2 .hero-metrics {
  max-width: 690px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-v2 .hero-metrics div {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(122, 168, 62, .34);
  box-shadow: 0 12px 28px rgba(31, 54, 24, .08);
}

.hero-v2 .hero-metrics strong {
  display: block;
  color: #19310d;
  font-size: 1rem;
  line-height: 1.25;
}

.hero-v2 .hero-metrics span {
  display: block;
  margin-top: 4px;
  color: #5d6673;
  font-size: .85rem;
  line-height: 1.35;
}

.hero-v2 .cegis-hero-media {
  width: 100%;
  position: relative;
}

.hero-v2 .hero-ai-image {
  width: 100%;
  min-height: 560px;
  background-image: url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(122, 168, 62, .28);
  box-shadow: 0 30px 80px rgba(31, 54, 24, .2);
}

.hero-v2 .hero-proof-card {
  position: absolute;
  right: 28px;
  bottom: -28px;
  max-width: 390px;
  padding: 20px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(122, 168, 62, .28);
  border-left: 5px solid #7aa83e;
  box-shadow: 0 24px 60px rgba(31, 54, 24, .18);
}

.hero-bg-mark {
  right: 7%;
  top: 80px;
  color: rgba(122, 168, 62, .11);
  font-size: clamp(8rem, 17vw, 18rem);
}

@media (max-width: 1100px) {
  .hero-v2 .hero-v2-panel {
    grid-template-columns: 1fr;
    width: min(900px, calc(100vw - 48px));
    min-height: auto;
    padding: 56px 0 72px;
  }

  .hero-v2 h1 {
    max-width: 820px !important;
  }

  .hero-v2 .lead-text {
    max-width: 760px;
  }

  .hero-v2 .hero-ai-image {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-v2 .hero-v2-panel {
    width: min(100% - 32px, 900px);
    padding: 40px 0 52px;
  }

  .hero-v2 h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.1 !important;
  }

  .hero-v2 .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-v2 .hero-ai-image {
    min-height: 300px;
  }

  .hero-v2 .hero-proof-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -22px;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Professional design pass */
:root {
  --pro-font: "Segoe UI", Arial, Helvetica, sans-serif;
  --pro-black: #111111;
  --pro-text: #1f2933;
  --pro-muted: #5d6673;
  --pro-border: #dfe4dc;
  --pro-soft: #f6f7f2;
  --pro-green: #7aa83e;
  --pro-max: 1180px;
  --pro-gutter: max(24px, calc((100vw - var(--pro-max)) / 2));
  --pro-y: 72px;
}

body {
  font-family: var(--pro-font);
  color: var(--pro-text);
  background: #fff;
  line-height: 1.62;
}

main > section,
main > div.card-grid,
main > div.cms-grid,
main > div.message-list,
main > form,
main > .alert {
  padding-left: var(--pro-gutter);
  padding-right: var(--pro-gutter);
}

.site-nav {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--pro-border);
}

.navbar .container {
  min-height: 72px;
}

.brand-logo img {
  width: 140px;
}

.nav-link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--pro-text) !important;
}

.nav-cta,
.admin-pill {
  border: 1px solid var(--pro-black);
  border-radius: 0;
  padding: 8px 14px !important;
  background: var(--pro-black);
  color: #fff !important;
}

.hero {
  min-height: 610px;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .82fr);
  gap: 56px;
  padding-top: 78px;
  padding-bottom: 72px;
}

.hero h1,
.page-heading h1 {
  max-width: 760px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--pro-black);
  margin-bottom: 18px;
}

.hero p,
.page-heading p,
.editorial-copy p,
.editorial-grid p,
.split-copy p,
.content-card p,
.rich-text,
.dark-feature p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pro-muted);
}

.eyebrow {
  color: var(--pro-green);
  font-size: .75rem !important;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.btn {
  border-radius: 0;
  font-weight: 600;
  padding: .72rem 1rem;
}

.hero-image {
  min-height: 500px;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .02)), url("/images/cegis-ai-hero.png");
}

.split-image {
  min-height: 460px;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .03)), url("/images/cegis-ai-hero.png");
}

.hero-stat {
  border-left-color: var(--pro-green);
  box-shadow: 0 18px 42px rgba(17, 17, 17, .13);
}

.capability-ribbon {
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--pro-soft);
}

.capability-ribbon span,
.trust-strip span {
  border-radius: 0;
  font-size: .86rem;
  font-weight: 600;
}

.stats-band,
.section,
.editorial-section,
.case-feature,
.dark-feature {
  padding-top: var(--pro-y);
  padding-bottom: var(--pro-y);
}

.stats-band {
  gap: 18px;
}

.stats-band div,
.content-card,
.editorial-grid article,
.feature-list li {
  border: 1px solid var(--pro-border);
  box-shadow: none;
}

.stats-band strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.editorial-section,
.case-feature {
  background: var(--pro-soft);
}

.editorial-copy h2,
.section-title h2,
.split-copy h2,
.dark-feature h2,
.cta-band h2 {
  font-size: clamp(1.6rem, 2.1vw, 2.3rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--pro-black);
  margin-bottom: 14px;
}

.editorial-grid {
  border-color: var(--pro-border);
  background: var(--pro-border);
}

.editorial-grid strong {
  margin-bottom: 24px;
}

.editorial-grid h3,
.content-card h3,
.content-card h2,
.story-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.section-title {
  margin-bottom: 28px;
}

.card-grid {
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.card-icon {
  width: 42px;
  height: 42px;
  font-size: .95rem;
}

.image-story-grid {
  padding-top: 0;
  padding-bottom: var(--pro-y);
  gap: 18px;
}

.story-card {
  min-height: 340px;
  box-shadow: none;
}

.story-code {
  background-image: url("/images/cegis-ai-hero.png");
}

.story-data {
  background-image: url("/images/cegis-ai-hero.png");
}

.story-team {
  background-image: url("/images/cegis-ai-hero.png");
}

.dark-feature {
  background: var(--pro-black);
}

.dark-feature h2,
.dark-feature .eyebrow,
.cta-band h2,
.cta-band .eyebrow {
  color: #fff;
}

.dark-feature p {
  color: #d8ded2;
}

.cta-band {
  padding-top: 42px;
  padding-bottom: 42px;
  background: var(--pro-black);
}

.site-footer {
  margin-top: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 800px) {
  :root {
    --pro-y: 48px;
  }

  .hero {
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .hero-image,
  .split-image {
    min-height: 300px;
  }
}

/* Final winning hero rule: horizontal banner image */
.hero-v2.cegis-hero {
  position: relative;
  min-height: 650px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 12%, rgba(177, 222, 100, .38), transparent 30%),
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 54%, #eef7e4 100%);
}

.hero-v2.cegis-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-image: url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-v2.cegis-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 241, 1) 0%, rgba(247, 251, 241, .96) 34%, rgba(247, 251, 241, .56) 56%, rgba(247, 251, 241, .08) 100%),
    linear-gradient(0deg, rgba(16, 21, 16, .08), rgba(16, 21, 16, 0));
  z-index: 1;
  pointer-events: none;
}

.hero-v2 .hero-v2-panel {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100vw - 64px));
  margin: 0 auto;
  min-height: 650px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(520px, 650px) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-v2 .cegis-hero-content {
  max-width: 650px;
  width: 100%;
  padding: 0;
}

.hero-v2 h1 {
  max-width: 680px !important;
  font-size: clamp(2.6rem, 4vw, 4.65rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.03em;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-v2 .lead-text {
  max-width: 620px;
}

.hero-v2 .hero-ai-image {
  display: none !important;
}

.hero-v2 .cegis-hero-media {
  min-height: 520px;
  position: relative;
}

.hero-v2 .hero-proof-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  max-width: 390px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(122, 168, 62, .28);
  border-left: 5px solid #7aa83e;
  box-shadow: 0 24px 60px rgba(31, 54, 24, .18);
}

.hero-bg-mark {
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero-v2.cegis-hero::after {
    width: 100%;
    opacity: .32;
  }

  .hero-v2.cegis-hero::before {
    background: rgba(247, 251, 241, .9);
  }

  .hero-v2 .hero-v2-panel {
    grid-template-columns: 1fr;
    width: min(900px, calc(100vw - 48px));
    min-height: auto;
    padding: 56px 0;
  }

  .hero-v2 .cegis-hero-media {
    min-height: 120px;
  }

  .hero-v2 .hero-proof-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .hero-v2 .hero-v2-panel {
    width: min(100% - 32px, 900px);
    padding: 42px 0;
  }

  .hero-v2 h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }
}

/* Integrated header and footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(122, 168, 62, .2);
}

.site-nav {
  position: static;
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 0;
}

.nav-container {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  min-height: 82px !important;
  padding-left: 0;
  padding-right: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 42px;
}

.brand-logo img {
  width: 156px !important;
  max-height: 58px;
  object-fit: contain;
}

.navbar-collapse {
  align-items: center;
}

.main-nav {
  align-items: center;
  gap: 4px;
}

.main-nav .nav-link {
  position: relative;
  padding: 29px 12px !important;
  color: #172015 !important;
  font-size: .94rem;
  font-weight: 650;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 21px;
  height: 2px;
  background: #7aa83e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  margin-left: 22px;
}

.nav-cta,
.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px !important;
  background: #101510 !important;
  border: 1px solid #101510 !important;
  color: #fff !important;
  font-size: .92rem;
  font-weight: 700;
}

.nav-cta:hover,
.admin-pill:hover {
  background: #7aa83e !important;
  border-color: #7aa83e !important;
  color: #101510 !important;
}

.navbar-toggler {
  border: 1px solid rgba(16, 21, 16, .2);
  border-radius: 0;
}

.site-footer {
  margin-top: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 168, 62, .22), transparent 30%),
    #101510;
  border-top: 0;
  color: #dce7d4;
}

.site-footer .container {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  display: block;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(150px, .55fr));
  gap: 42px;
  padding: 62px 0 46px;
}

.footer-brand {
  display: block;
}

.footer-brand img {
  width: 154px;
  height: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(238, 247, 228, .86));
  border: 1px solid rgba(169, 213, 111, .28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  padding: 9px 12px;
  margin-bottom: 20px;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.footer-mark-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(169, 213, 111, .7);
  color: #a9d56f;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.footer-mark-text {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: #d8ded2;
  line-height: 1.7;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col strong {
  color: #a9d56f;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.footer-col a,
.footer-links a {
  color: #f5f8f1;
  text-decoration: none;
  font-weight: 500;
}

.footer-col a:hover,
.footer-links a:hover {
  color: #a9d56f;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #bfc9b8;
  font-size: .92rem;
}

@media (max-width: 991px) {
  .nav-container {
    min-height: 76px !important;
  }

  .navbar-collapse {
    padding: 12px 0 20px;
  }

  .main-nav .nav-link {
    padding: 10px 0 !important;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container,
  .site-footer .container {
    width: min(100% - 32px, 1320px);
  }

  .brand-logo img {
    width: 132px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Final professional header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 21, 16, .08);
  box-shadow: 0 10px 30px rgba(16, 21, 16, .035);
}

.site-header .site-nav {
  padding: 0;
}

.site-header .nav-container {
  width: min(1280px, calc(100vw - 56px));
  max-width: none;
  min-height: 68px !important;
  padding: 0;
}

.site-header .brand-logo {
  margin-right: 40px;
}

.site-header .brand-logo img {
  width: 126px !important;
  max-height: 48px;
}

.site-header .navbar-collapse {
  align-items: center;
}

.site-header .main-nav {
  gap: 2px;
  align-items: center;
}

.site-header .main-nav .nav-link {
  position: relative;
  padding: 24px 13px !important;
  color: #1c241a !important;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.site-header .main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 17px;
  height: 2px;
  background: #7aa83e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active {
  color: #101510 !important;
}

.site-header .main-nav .nav-link:hover::after,
.site-header .main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.site-header .nav-actions {
  margin-left: 28px;
}

.site-header .nav-cta,
.site-header .admin-pill {
  min-height: 40px;
  padding: 9px 18px !important;
  background: #7aa83e !important;
  border: 1px solid #7aa83e !important;
  color: #101510 !important;
  font-size: .88rem;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(122, 168, 62, .24);
}

.site-header .nav-cta:hover,
.site-header .admin-pill:hover {
  background: #101510 !important;
  border-color: #101510 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(16, 21, 16, .18);
}

.site-header .navbar-toggler {
  border-radius: 0;
  border-color: rgba(16, 21, 16, .18);
  padding: 7px 9px;
}

@media (max-width: 991px) {
  .site-header .nav-container {
    width: min(100% - 36px, 1280px);
    min-height: 66px !important;
  }

  .site-header .navbar-collapse {
    padding: 10px 0 18px;
  }

  .site-header .main-nav .nav-link {
    padding: 9px 0 !important;
  }

  .site-header .main-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 32px;
    bottom: 4px;
  }

  .site-header .nav-actions {
    margin: 14px 0 0;
  }
}

/* Professional navigation and deeper service pages */
.site-header .main-nav {
  position: relative;
}

.site-header .nav-mega {
  position: static;
}

.site-header .mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header .mega-trigger::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  order: 2;
  opacity: .55;
}

.mega-panel {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  z-index: 3200;
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(520px, 1.2fr);
  gap: 28px;
  width: min(980px, calc(100vw - 56px));
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(16, 21, 16, .1);
  box-shadow: 0 26px 70px rgba(16, 21, 16, .16);
  transform: translate(-50%, 14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mega-panel-compact {
  width: min(820px, calc(100vw - 56px));
  grid-template-columns: minmax(230px, .72fr) minmax(390px, 1fr);
}

.mega-panel-small {
  width: min(420px, calc(100vw - 56px));
  grid-template-columns: 1fr;
  left: auto;
  right: 170px;
  transform: translateY(14px);
}

.mega-panel-company {
  width: min(820px, calc(100vw - 56px));
  grid-template-columns: minmax(230px, .72fr) minmax(390px, 1fr);
}

.nav-mega:hover .mega-panel,
.nav-mega:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-mega:hover .mega-panel-small,
.nav-mega:focus-within .mega-panel-small {
  transform: translateY(0);
}

.mega-intro {
  padding: 24px;
  background: #101510;
  color: #fff;
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 30px;
}

.mega-intro span {
  color: #a9d56f;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mega-intro strong {
  display: block;
  max-width: 280px;
  font-size: 1.34rem;
  line-height: 1.16;
  font-weight: 760;
}

.mega-intro a {
  color: #a9d56f;
  font-weight: 760;
  text-decoration: none;
}

.mega-intro-brand {
  overflow: hidden;
}

.mega-brand-mark {
  align-self: center;
  justify-self: end;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(169, 213, 111, .5);
  color: rgba(169, 213, 111, .78);
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-panel-small .mega-links {
  grid-template-columns: 1fr;
}

.mega-links a {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  color: #101510;
  text-decoration: none;
  border: 1px solid rgba(16, 21, 16, .08);
  background: linear-gradient(135deg, #fff, #f7faf2);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mega-links a:hover {
  border-color: rgba(122, 168, 62, .42);
  background: #f2f8eb;
  transform: translateY(-2px);
}

.mega-links b {
  font-size: .95rem;
  line-height: 1.25;
}

.mega-links small {
  color: #5d6673;
  font-size: .82rem;
  line-height: 1.45;
}

.footer-grid {
  grid-template-columns: minmax(280px, 1.45fr) repeat(4, minmax(130px, .75fr)) !important;
}

.pro-page-heading {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 86px;
  padding-bottom: 34px;
}

.expertise-overview,
.industry-detail-grid,
.process-timeline,
.next-step-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.expertise-overview,
.industry-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 72px;
}

.expertise-overview article,
.industry-detail-grid article,
.process-timeline article,
.next-step-grid article {
  position: relative;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(16, 21, 16, .05);
}

.expertise-overview article {
  min-height: 315px;
}

.expertise-overview span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(122, 168, 62, .45);
  color: #7aa83e;
  font-size: 1.55rem;
  font-weight: 800;
}

.expertise-overview h2,
.industry-detail-grid h2,
.process-timeline h2,
.next-step-grid h3 {
  margin-bottom: 12px;
  color: #101510;
  font-size: 1.18rem;
  line-height: 1.28;
  font-weight: 760;
}

.expertise-overview p,
.industry-detail-grid p,
.process-timeline p,
.next-step-grid p,
.technology-band p {
  color: #5d6673;
  line-height: 1.7;
}

.expertise-overview ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: #30392d;
  line-height: 1.75;
}

.industry-detail-grid span,
.process-timeline span,
.next-step-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: #7aa83e;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.technology-band {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(320px, 1fr);
  gap: 44px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 72px;
  padding: 38px;
  background: #101510;
  color: #fff;
}

.technology-band h2 {
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  line-height: 1.15;
  margin: 0;
}

.technology-band p {
  margin: 0;
  color: #d8ded2;
}

.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 0 72px;
}

.process-timeline article {
  display: grid;
  grid-template-columns: 80px minmax(220px, .55fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 44px;
  align-items: end;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 54px;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 34px -80px 0 auto;
  width: min(580px, 45vw);
  background: radial-gradient(circle at 25% 20%, rgba(169, 213, 111, .35), transparent 36%),
              linear-gradient(135deg, #eef7e4, #ffffff 58%, #e7f2dc);
  z-index: -1;
}

.contact-hero h1 {
  max-width: 820px;
  color: #101510;
  font-size: clamp(2.35rem, 4.8vw, 5.45rem);
  line-height: .98;
  font-weight: 820;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.contact-hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: #4f594a;
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-hero-points span {
  padding: 9px 12px;
  background: #f2f8eb;
  border: 1px solid rgba(122, 168, 62, .26);
  color: #26301f;
  font-size: .86rem;
  font-weight: 700;
}

.contact-hero-card {
  padding: 30px;
  background: #101510;
  color: #fff;
  box-shadow: 0 24px 70px rgba(16, 21, 16, .18);
}

.contact-hero-card strong {
  display: block;
  margin-bottom: 14px;
  color: #a9d56f;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-hero-card p {
  color: #e8eee3;
  line-height: 1.7;
}

.contact-hero-card a {
  color: #a9d56f;
  font-weight: 760;
  text-decoration: none;
}

.contact-pro-layout {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: minmax(300px, .78fr) minmax(360px, 1fr);
  align-items: start;
  padding: 36px 0 70px;
}

.contact-pro-aside {
  padding: 34px;
  background: #f6f9f1;
  border: 1px solid rgba(16, 21, 16, .08);
}

.contact-pro-aside h2 {
  color: #101510;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.15;
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-methods div {
  padding-top: 16px;
  border-top: 1px solid rgba(16, 21, 16, .12);
}

.contact-methods span {
  display: block;
  margin-bottom: 5px;
  color: #7aa83e;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-methods strong {
  color: #101510;
  line-height: 1.45;
}

.contact-pro-form {
  padding: 0;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
  box-shadow: 0 24px 70px rgba(16, 21, 16, .08);
  overflow: hidden;
}

.contact-pro-form label {
  margin: 0 0 8px;
  color: #101510;
  font-size: .86rem;
  font-weight: 750;
}

.contact-pro-form .form-control {
  min-height: 48px;
  border-radius: 0;
  border-color: rgba(16, 21, 16, .14);
  color: #101510;
  font-size: .95rem;
  box-shadow: none;
}

.contact-pro-form .form-control:focus {
  border-color: #7aa83e;
  box-shadow: 0 0 0 3px rgba(122, 168, 62, .14);
}

.contact-pro-form textarea.form-control {
  min-height: 150px;
}

.contact-pro-form .btn {
  margin-top: 22px;
  min-height: 50px;
  padding-inline: 24px;
}

.form-panel-heading {
  padding: 30px 34px;
  background: #101510;
  color: #fff;
}

.form-panel-heading span,
.form-section-title {
  display: block;
  color: #a9d56f;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-panel-heading h2 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(1.6rem, 2.25vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
}

.form-panel-heading p {
  max-width: 620px;
  margin: 0;
  color: #d8ded2;
  line-height: 1.65;
}

.contact-pro-form .text-danger,
.contact-pro-form [asp-validation-summary] {
  font-size: .82rem;
}

.contact-pro-form > .text-danger,
.contact-pro-form .validation-summary-errors {
  margin: 24px 34px 0;
}

.form-section-title {
  margin: 28px 34px 14px;
  color: #7aa83e;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 34px;
}

.field-group {
  display: grid;
  align-content: start;
}

.contact-pro-form > .field-group {
  padding: 0 34px;
  margin-top: 18px;
}

.contact-pro-form select.form-control {
  appearance: auto;
  background-color: #fff;
}

.contact-preference {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 34px 0;
}

.contact-preference > span {
  width: 100%;
  color: #101510;
  font-size: .86rem;
  font-weight: 750;
}

.contact-preference label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid rgba(16, 21, 16, .12);
  background: #f7faf2;
  color: #26301f;
  font-size: .9rem;
  cursor: pointer;
}

.contact-preference input {
  accent-color: #7aa83e;
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 34px 34px;
  background: linear-gradient(135deg, #f7faf2, #fff);
  border-top: 1px solid rgba(16, 21, 16, .08);
}

.form-submit-row p {
  max-width: 280px;
  margin: 0;
  color: #5d6673;
  font-size: .86rem;
  line-height: 1.55;
}

.compact-heading {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 24px;
}

.compact-heading h2 {
  max-width: 760px;
}

.next-steps {
  padding: 18px 0 74px;
  background: linear-gradient(180deg, #fff, #f7faf2);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1180px) {
  .site-header .brand-logo {
    margin-right: 24px;
  }

  .site-header .main-nav .nav-link {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: .86rem;
  }

  .site-header .nav-actions {
    margin-left: 16px;
  }
}

@media (max-width: 991px) {
  .mega-panel,
  .mega-panel-compact,
  .mega-panel-small {
    position: static;
    width: 100%;
    display: block;
    padding: 12px 0 16px 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .mega-intro {
    display: none;
  }

  .mega-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mega-links a {
    min-height: auto;
    padding: 12px;
  }

  .footer-grid,
  .expertise-overview,
  .industry-detail-grid,
  .next-step-grid,
  .contact-hero,
  .contact-pro-layout,
  .technology-band {
    grid-template-columns: 1fr !important;
  }

  .process-timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-hero {
    padding-top: 62px;
  }

  .contact-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
    line-height: 1.02;
  }
}

@media (max-width: 640px) {
  .pro-page-heading,
  .expertise-overview,
  .industry-detail-grid,
  .process-timeline,
  .technology-band,
  .contact-hero,
  .contact-pro-layout,
  .compact-heading,
  .next-step-grid {
    width: min(100% - 32px, 1200px);
  }

  .expertise-overview article,
  .industry-detail-grid article,
  .process-timeline article,
  .next-step-grid article,
  .contact-pro-form,
  .contact-pro-aside,
  .technology-band,
  .contact-hero-card {
    padding: 22px;
  }
}

/* Secure software and consultation content */
.direct-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.direct-contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 12px;
  color: #101510;
  background: #a9d56f;
  text-decoration: none;
  font-weight: 800;
}

.direct-contact-list a::after {
  content: ">";
  font-weight: 900;
}

.contact-focus {
  padding: 18px 0 84px;
  background: #fff;
}

.contact-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.contact-focus-grid article {
  padding: 26px;
  background: #101510;
  color: #fff;
  min-height: 250px;
}

.contact-focus-grid article:nth-child(even) {
  background: #f3f8ec;
  color: #101510;
  border: 1px solid rgba(16, 21, 16, .08);
}

.contact-focus-grid h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 780;
  margin-bottom: 14px;
}

.contact-focus-grid p {
  color: inherit;
  opacity: .82;
  line-height: 1.68;
}

.services-static article:target,
.expertise-overview article:target,
.industry-detail-grid article:target {
  outline: 3px solid rgba(122, 168, 62, .45);
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .contact-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-focus-grid {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1200px);
  }

  .contact-focus-grid article {
    min-height: auto;
  }

  .form-panel-heading,
  .form-submit-row {
    padding: 24px;
  }

  .form-section-title {
    margin-left: 24px;
    margin-right: 24px;
  }

  .form-grid-two,
  .contact-pro-form > .field-group,
  .contact-preference {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit-row p {
    max-width: none;
  }
}

/* Contact page typography refinement */
.contact-hero {
  padding-top: 72px;
  padding-bottom: 44px;
}

.contact-hero h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 3.6vw, 4rem) !important;
  line-height: 1.08;
  font-weight: 780;
}

.contact-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-pro-aside h2,
.compact-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2.05rem) !important;
  line-height: 1.22;
  font-weight: 750;
}

.form-panel-heading {
  background: linear-gradient(135deg, #f4f8ef, #ffffff);
  color: #101510;
  border-bottom: 1px solid rgba(16, 21, 16, .08);
}

.form-panel-heading span,
.form-section-title {
  color: #5d8d27;
}

.form-panel-heading h2 {
  color: #101510;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem) !important;
  line-height: 1.22;
  font-weight: 760;
}

.form-panel-heading p {
  color: #5d6673;
  font-size: .96rem;
}

.contact-focus-grid article,
.contact-focus-grid article:nth-child(even) {
  background: #ffffff;
  color: #101510;
  border: 1px solid rgba(16, 21, 16, .1);
  box-shadow: 0 16px 44px rgba(16, 21, 16, .05);
}

.contact-focus-grid p {
  color: #5d6673;
  opacity: 1;
}

.next-step-grid h3,
.contact-focus-grid h3 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 740;
}

@media (max-width: 991px) {
  .contact-hero h1 {
    font-size: clamp(1.95rem, 7vw, 3rem) !important;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding-top: 48px;
  }

  .contact-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
    line-height: 1.1;
  }
}

/* Final contact aside readability fix */
.contact-pro-aside,
.contact-pro-aside .eyebrow,
.contact-pro-aside h2,
.contact-pro-aside p,
.contact-pro-aside .contact-methods strong {
  color: #101510 !important;
}

.contact-pro-aside p {
  color: #4f594a !important;
}

.contact-pro-aside .eyebrow,
.contact-pro-aside .contact-methods span {
  color: #5d8d27 !important;
}

/* Final mega menu consistency */
.mega-panel-company {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 14px);
}

.nav-mega:hover .mega-panel-company,
.nav-mega:focus-within .mega-panel-company {
  transform: translate(-50%, 0);
}

.mega-panel-company .mega-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .mega-panel-company,
  .nav-mega:hover .mega-panel-company,
  .nav-mega:focus-within .mega-panel-company {
    transform: none;
  }
}

/* Services page aligned with homepage */
.services-hero-v2 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 52px;
  align-items: end;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 54px;
}

.services-hero-v2::before {
  content: "";
  position: absolute;
  inset: 32px -90px 0 auto;
  width: min(620px, 48vw);
  background: linear-gradient(135deg, #edf7e3, #ffffff 58%, #e7f2dc);
  z-index: -1;
}

.services-hero-copy h1 {
  max-width: 800px;
  color: #101510;
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
}

.services-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #4f594a;
  font-size: 1.05rem;
  line-height: 1.72;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.services-hero-panel {
  min-height: 330px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 34px;
  background: #101510;
  color: #fff;
  box-shadow: 0 24px 70px rgba(16, 21, 16, .18);
}

.services-hero-panel span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(169, 213, 111, .55);
  color: #a9d56f;
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1;
}

.services-hero-panel strong {
  display: block;
  max-width: 320px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.16;
  font-weight: 780;
}

.services-hero-panel p {
  margin: 0;
  color: #d8ded2;
  line-height: 1.65;
}

.services-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 36px;
  border-top: 1px solid rgba(16, 21, 16, .1);
  border-bottom: 1px solid rgba(16, 21, 16, .1);
}

.services-proof-row div {
  padding: 22px 24px;
  border-right: 1px solid rgba(16, 21, 16, .1);
}

.services-proof-row div:last-child {
  border-right: 0;
}

.services-proof-row strong {
  display: block;
  margin-bottom: 6px;
  color: #101510;
  font-size: .96rem;
  font-weight: 780;
}

.services-proof-row span {
  color: #5d6673;
  font-size: .92rem;
  line-height: 1.55;
}

.services-page-section {
  padding-top: 52px;
}

.services-page-section .section-heading {
  margin-bottom: 30px;
}

.services-page-grid {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.services-page-grid article {
  min-height: 330px;
}

.services-page-grid article h2 {
  color: #101510;
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 760;
  margin-bottom: 12px;
}

.services-page-grid article p {
  color: #5d6673;
  line-height: 1.68;
}

.services-admin-content {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.services-admin-content .service-grid {
  width: 100%;
}

@media (max-width: 991px) {
  .services-hero-v2,
  .services-proof-row {
    grid-template-columns: 1fr;
  }

  .services-hero-v2 {
    padding-top: 58px;
  }

  .services-hero-panel {
    min-height: auto;
  }

  .services-proof-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 21, 16, .1);
  }

  .services-proof-row div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .services-hero-v2,
  .services-proof-row,
  .services-page-grid,
  .services-admin-content {
    width: min(100% - 32px, 1240px);
  }

  .services-hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
    line-height: 1.1;
  }

  .services-hero-panel {
    padding: 24px;
  }
}

/* Services page final professional pass */
.services-hero-v2 {
  width: 100%;
  min-height: 620px;
  grid-template-columns: minmax(520px, 670px) minmax(330px, 1fr);
  align-items: center;
  gap: 60px;
  padding: 76px max(32px, calc((100vw - 1320px) / 2)) 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 12%, rgba(177, 222, 100, .34), transparent 30%),
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 54%, #eef7e4 100%);
}

.services-hero-v2::before {
  inset: 0;
  width: auto;
  background:
    linear-gradient(90deg, rgba(247, 251, 241, 1) 0%, rgba(247, 251, 241, .96) 36%, rgba(247, 251, 241, .58) 60%, rgba(247, 251, 241, .1) 100%);
  z-index: 1;
  pointer-events: none;
}

.services-hero-v2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  background-image: url("/images/cegis-ai-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.services-hero-copy,
.services-hero-panel {
  position: relative;
  z-index: 2;
}

.services-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 3.9vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.services-hero-copy > p:not(.eyebrow) {
  max-width: 660px;
}

.services-hero-panel {
  justify-self: end;
  align-self: end;
  max-width: 405px;
  min-height: 300px;
  background: rgba(16, 21, 16, .94);
  border: 1px solid rgba(169, 213, 111, .24);
}

.services-proof-row {
  width: 100%;
  margin: 0;
  padding: 0 max(32px, calc((100vw - 1320px) / 2));
  background: #101510;
  border: 0;
}

.services-proof-row div {
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.services-proof-row strong {
  color: #a9d56f;
}

.services-proof-row span {
  display: block;
  max-width: 360px;
  color: #d8ded2;
}

.services-page-section {
  padding: 78px 0 88px;
  background: #fff;
}

.services-page-section .section-heading {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.services-page-section .section-heading h2 {
  max-width: 780px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.12;
}

.services-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.services-page-grid article {
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(16, 21, 16, .1);
  box-shadow: none;
}

.services-page-grid article:first-child,
.services-page-grid article:nth-child(6) {
  grid-column: span 2;
  background: #101510;
  border-color: #101510;
}

.services-page-grid article:first-child h2,
.services-page-grid article:first-child p,
.services-page-grid article:nth-child(6) h2,
.services-page-grid article:nth-child(6) p {
  color: #fff;
}

.services-page-grid article:first-child > span,
.services-page-grid article:nth-child(6) > span,
.services-page-grid article:first-child .infinity-icon,
.services-page-grid article:nth-child(6) .infinity-icon {
  color: #a9d56f;
}

.services-page-grid article:nth-child(4),
.services-page-grid article:nth-child(7) {
  background: #f3f8ec;
}

.services-page-grid article h2 {
  font-size: 1.12rem;
}

.services-page-grid article p {
  font-size: .97rem;
}

.services-admin-content {
  display: none;
}

.services-page-section + .cta-band {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .services-hero-v2 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .services-hero-v2::after {
    width: 100%;
    opacity: .26;
  }

  .services-hero-v2::before {
    background: rgba(247, 251, 241, .92);
  }

  .services-hero-panel {
    justify-self: start;
    align-self: start;
  }

  .services-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-page-grid article:first-child,
  .services-page-grid article:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .services-hero-v2 {
    padding: 48px 16px;
  }

  .services-hero-copy h1 {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
    line-height: 1.1;
  }

  .services-proof-row,
  .services-page-grid,
  .services-page-section .section-heading {
    width: min(100% - 32px, 1240px);
    padding-left: 0;
    padding-right: 0;
  }

  .services-proof-row {
    grid-template-columns: 1fr;
  }

  .services-proof-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .services-page-grid article {
    min-height: auto;
  }
}

/* Page repair pass: clear final layout rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(16, 21, 16, .1);
  box-shadow: 0 10px 28px rgba(16, 21, 16, .05);
}

.site-header .nav-container {
  width: min(1280px, calc(100vw - 48px));
  min-height: 70px !important;
}

.site-header .brand-logo img {
  width: 132px !important;
  max-height: 50px;
}

.site-header .main-nav .nav-link {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  letter-spacing: 0;
}

.navbar-toggler {
  width: 44px;
  height: 44px;
}

.hero-v2.cegis-hero {
  isolation: isolate;
  min-height: min(680px, calc(100svh - 70px));
  background:
    linear-gradient(90deg, rgba(247, 251, 241, .98) 0%, rgba(247, 251, 241, .94) 42%, rgba(247, 251, 241, .48) 67%, rgba(247, 251, 241, .08) 100%),
    url("/images/cegis-ai-hero.png") right center / cover no-repeat,
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 55%, #eef7e4 100%);
}

.hero-v2.cegis-hero::before,
.hero-v2.cegis-hero::after {
  display: none;
}

.hero-bg-mark {
  z-index: -1;
  opacity: .8;
}

.hero-v2 .hero-v2-panel {
  width: min(1280px, calc(100vw - 48px));
  min-height: min(680px, calc(100svh - 70px));
  grid-template-columns: minmax(0, 660px) minmax(280px, 1fr);
  gap: 48px;
  padding: 64px 0;
}

.hero-v2 h1 {
  max-width: 640px !important;
  margin-bottom: 20px;
  color: #101510;
  font-size: clamp(2.15rem, 3.35vw, 3.65rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.hero-v2 .lead-text {
  max-width: 650px;
  color: #445044;
}

.hero-v2 .hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-v2 .cegis-hero-media {
  min-height: 420px;
}

.hero-v2 .hero-proof-card {
  right: 0;
  bottom: 34px;
}

.cegis-partner-band,
.cegis-proof,
.cegis-outcomes,
.cegis-intro,
.cegis-services,
.cegis-consultation,
.cegis-feature,
.cegis-stack,
.cegis-industries,
.cegis-process,
.cegis-projects,
.cegis-why,
.cegis-cta,
.cta-band {
  padding-left: max(24px, calc((100vw - 1280px) / 2));
  padding-right: max(24px, calc((100vw - 1280px) / 2));
}

.cegis-proof,
.outcome-grid,
.service-showcase,
.stack-grid,
.industry-grid,
.process-steps,
.project-types,
.why-grid {
  min-width: 0;
}

.service-showcase article,
.outcome-grid article,
.stack-grid div,
.process-steps article,
.why-grid article,
.project-card,
.next-step-grid article,
.contact-focus-grid article {
  border-radius: 8px;
}

.site-footer {
  margin-top: 0;
  padding: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(122, 168, 62, .22), transparent 30%),
    #101510;
  color: #d8ded2;
}

.site-footer .container {
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  display: block;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(120px, .7fr)) !important;
  gap: 32px;
  padding: 56px 0 42px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.services-hero-v2,
.contact-hero {
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  .site-header .nav-container {
    width: min(100% - 32px, 1280px);
  }

  .site-header .brand-logo {
    margin-right: 18px;
  }

  .site-header .main-nav .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .84rem;
  }
}

@media (max-width: 991px) {
  .site-header .nav-container {
    min-height: 66px !important;
  }

  .site-header .navbar-collapse {
    padding: 10px 0 18px;
  }

  .site-header .main-nav {
    align-items: stretch;
  }

  .site-header .main-nav .nav-link {
    padding: 10px 0 !important;
  }

  .mega-panel,
  .mega-panel-compact,
  .mega-panel-company {
    width: 100%;
    padding: 8px 0 14px 0;
  }

  .mega-links a {
    min-height: auto;
  }

  .hero-v2.cegis-hero {
    min-height: auto;
    background:
      linear-gradient(rgba(247, 251, 241, .9), rgba(247, 251, 241, .9)),
      url("/images/cegis-ai-hero.png") center / cover no-repeat;
  }

  .hero-v2 .hero-v2-panel {
    width: min(900px, calc(100vw - 40px));
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 50px 0 58px;
  }

  .hero-v2 .cegis-hero-media {
    min-height: auto;
  }

  .hero-v2 .hero-proof-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .site-header .nav-container,
  .site-footer .container,
  .hero-v2 .hero-v2-panel {
    width: min(100% - 32px, 1280px);
  }

  .hero-v2 .hero-v2-panel {
    padding: 38px 0 44px;
  }

  .hero-v2 h1 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
    line-height: 1.1 !important;
  }

  .hero-v2 .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-v2 .hero-actions .btn {
    width: 100%;
  }

  .hero-v2 .hero-metrics,
  .cegis-proof,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom,
  .cegis-partner-band,
  .cegis-consultation,
  .cegis-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Services page: quieter subpage hero */
.services-hero-v2 {
  min-height: auto;
  grid-template-columns: minmax(0, 760px) minmax(280px, 380px);
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 52px;
  background:
    linear-gradient(135deg, #f7faf2 0%, #ffffff 62%, #eef7e4 100%);
}

.services-hero-v2::before,
.services-hero-v2::after {
  display: none;
}

.services-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
  line-height: 1.1;
}

.services-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
}

.services-hero-panel {
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
  max-width: none;
  padding: 28px;
  background: #101510;
  box-shadow: none;
}

.services-hero-panel span {
  width: 56px;
  height: 56px;
  font-size: 2.5rem;
}

.services-proof-row {
  background: #101510;
}

.services-proof-row div {
  border-right-color: rgba(255, 255, 255, .12);
}

.services-proof-row strong {
  color: #a9d56f;
}

.services-proof-row span {
  color: #d8ded2;
}

@media (max-width: 1100px) {
  .services-hero-v2 {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .services-hero-panel {
    max-width: 560px;
  }
}

@media (max-width: 700px) {
  .services-hero-v2 {
    padding: 42px 16px;
  }

  .services-hero-copy h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }
}

/* Shared Services-style subpages */
.subpage-hero-v2 {
  border-bottom: 1px solid rgba(16, 21, 16, .08);
}

.subpage-proof-row {
  margin-bottom: 0;
}

.subpage-content-section {
  padding-top: 76px;
}

.subpage-card-grid article {
  display: flex;
  flex-direction: column;
}

.subpage-card-grid article ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: inherit;
  line-height: 1.7;
}

.subpage-card-grid article li {
  margin-bottom: 6px;
}

.subpage-card-grid article:first-child ul,
.subpage-card-grid article:nth-child(6) ul {
  color: rgba(255, 255, 255, .88);
}

.technology-card-grid article {
  min-height: 390px;
}

.technology-band {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .technology-card-grid article {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .subpage-content-section {
    padding-top: 54px;
  }
}

/* Page-specific proof banners */
.proof-services,
.proof-industries,
.proof-technologies,
.proof-work {
  position: relative;
  overflow: hidden;
}

.proof-services::before,
.proof-industries::before,
.proof-technologies::before,
.proof-work::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.proof-services > div,
.proof-industries > div,
.proof-technologies > div,
.proof-work > div {
  position: relative;
  z-index: 1;
}

.proof-services {
  background:
    radial-gradient(circle at 8% 0%, rgba(169, 213, 111, .18), transparent 34%),
    #101510;
}

.proof-services::before {
  background: linear-gradient(90deg, rgba(169, 213, 111, .06), transparent 62%);
}

.proof-industries {
  background:
    radial-gradient(circle at 12% 0%, rgba(196, 221, 134, .22), transparent 34%),
    linear-gradient(135deg, #142015 0%, #22321f 58%, #101510 100%);
}

.proof-industries::before {
  background:
    linear-gradient(90deg, rgba(245, 248, 241, .08), transparent 58%),
    linear-gradient(0deg, rgba(122, 168, 62, .08), transparent);
}

.proof-industries strong {
  color: #c8e889;
}

.proof-industries span {
  color: #e5ecd9;
}

.proof-technologies {
  background:
    radial-gradient(circle at 10% 0%, rgba(128, 196, 176, .22), transparent 34%),
    linear-gradient(135deg, #102021 0%, #173238 58%, #101510 100%);
}

.proof-technologies::before {
  background:
    linear-gradient(90deg, rgba(156, 215, 198, .09), transparent 60%),
    linear-gradient(0deg, rgba(169, 213, 111, .05), transparent);
}

.proof-technologies strong {
  color: #9ed9c8;
}

.proof-technologies span {
  color: #dcece7;
}

.proof-work {
  background:
    radial-gradient(circle at 10% 0%, rgba(169, 213, 111, .2), transparent 34%),
    linear-gradient(135deg, #121611 0%, #263022 58%, #101510 100%);
}

.proof-work::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 58%),
    linear-gradient(0deg, rgba(122, 168, 62, .08), transparent);
}

.proof-work strong {
  color: #d1ee98;
}

.proof-work span {
  color: #e4ecd8;
}

.proof-process {
  background:
    radial-gradient(circle at 10% 0%, rgba(177, 222, 100, .2), transparent 34%),
    linear-gradient(135deg, #111811 0%, #23341e 58%, #101510 100%);
}

.proof-process strong {
  color: #c8e889;
}

.proof-process span {
  color: #e3ecd9;
}

.proof-news {
  background:
    radial-gradient(circle at 10% 0%, rgba(137, 181, 151, .22), transparent 34%),
    linear-gradient(135deg, #111815 0%, #243028 58%, #101510 100%);
}

.proof-news strong {
  color: #b9d99f;
}

.proof-news span {
  color: #e1eadc;
}

.process-page-section {
  background: #fff;
}

.process-timeline-v2 {
  width: min(1240px, calc(100% - 48px));
  padding-top: 0;
}

.process-timeline-v2 article {
  grid-template-columns: 74px minmax(220px, .52fr) minmax(320px, 1fr);
  border-radius: 8px;
}

.news-page-section {
  padding: 76px max(24px, calc((100vw - 1280px) / 2)) 88px;
  background: #fff;
}

.product-news-feature {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 78px max(24px, calc((100vw - 1280px) / 2));
  background: #f7faf2;
}

.product-news-copy {
  padding: 36px;
  background: #101510;
  color: #fff;
  border-radius: 8px;
}

.product-news-copy h2 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 780;
  margin-bottom: 18px;
}

.product-news-copy p {
  color: #d8ded2;
  line-height: 1.72;
}

.product-news-copy .btn {
  margin-top: 18px;
  background: #a9d56f;
  border-color: #a9d56f;
  color: #101510;
}

.product-news-points {
  display: grid;
  gap: 14px;
}

.product-news-points article {
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .09);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(16, 21, 16, .045);
}

.product-news-points span {
  display: inline-block;
  margin-bottom: 14px;
  color: #6f9f37;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.product-news-points h3 {
  color: #101510;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 760;
  margin-bottom: 8px;
}

.product-news-points p {
  margin: 0;
  color: #5d6673;
  line-height: 1.65;
}

.privacy-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 76px max(24px, calc((100vw - 1280px) / 2)) 88px;
  background: #fff;
}

.privacy-content article {
  padding: 28px;
  background: #f7faf2;
  border: 1px solid rgba(16, 21, 16, .09);
  border-radius: 8px;
}

.privacy-content span {
  display: inline-block;
  margin-bottom: 18px;
  color: #6f9f37;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.privacy-content h2 {
  color: #101510;
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 760;
  margin-bottom: 12px;
}

.privacy-content p {
  margin: 0;
  color: #5d6673;
  line-height: 1.7;
}

.privacy-content a {
  color: #5d8d27;
  font-weight: 800;
  text-decoration: none;
}

.news-page-section .section-heading {
  max-width: 860px;
}

.news-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-topic-grid article {
  min-height: 300px;
}

/* Contact compact refinement */
.contact-pro-layout {
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr);
  gap: 30px;
}

.contact-pro-aside {
  position: sticky;
  top: 96px;
}

.contact-pro-form {
  box-shadow: 0 18px 54px rgba(16, 21, 16, .065);
}

.form-panel-heading {
  padding: 24px 30px;
}

.form-panel-heading h2 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.form-section-title {
  margin: 22px 30px 12px;
}

.form-grid-two {
  gap: 14px 16px;
  padding-left: 30px;
  padding-right: 30px;
}

.contact-pro-form > .field-group {
  margin-top: 16px;
  padding-left: 30px;
  padding-right: 30px;
}

.contact-pro-form .form-control {
  min-height: 44px;
}

.contact-pro-form textarea.form-control {
  min-height: 118px;
}

.contact-preference {
  padding: 18px 30px 0;
}

.contact-preference label {
  min-height: 38px;
  padding: 7px 11px;
}

.form-submit-row {
  margin-top: 22px;
  padding: 22px 30px 28px;
}

@media (max-width: 991px) {
  .contact-pro-aside {
    position: static;
  }

  .process-timeline-v2,
  .news-topic-grid,
  .product-news-feature,
  .privacy-content {
    grid-template-columns: 1fr;
  }

  .process-timeline-v2 article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-page-section,
  .product-news-feature,
  .privacy-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-news-copy {
    padding: 26px;
  }

  .form-panel-heading,
  .form-submit-row {
    padding-left: 22px;
    padding-right: 22px;
  }

  .form-section-title {
    margin-left: 22px;
    margin-right: 22px;
  }

  .form-grid-two,
  .contact-pro-form > .field-group,
  .contact-preference {
    padding-left: 22px;
    padding-right: 22px;
  }
}

.work-card-grid article {
  min-height: 380px;
}

.work-published-projects {
  padding: 78px max(24px, calc((100vw - 1280px) / 2)) 88px;
  background: #f7faf2;
}

.work-published-projects .section-heading {
  max-width: 820px;
}

@media (max-width: 1100px) {
  .work-card-grid article {
    min-height: 0;
  }
}

.proof-about {
  background:
    radial-gradient(circle at 10% 0%, rgba(169, 213, 111, .2), transparent 34%),
    linear-gradient(135deg, #101510 0%, #1c2b19 58%, #111111 100%);
}

.proof-about strong {
  color: #bfe47f;
}

.proof-about span {
  color: #e2ead9;
}

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 52px;
  align-items: center;
  padding: 76px max(24px, calc((100vw - 1280px) / 2)) 68px;
  background:
    radial-gradient(circle at 8% 12%, rgba(169, 213, 111, .28), transparent 30%),
    linear-gradient(135deg, #f7fbf1 0%, #ffffff 58%, #eef7e4 100%);
}

.about-hero-copy {
  max-width: 780px;
}

.about-hero-no-media {
  grid-template-columns: minmax(0, 920px);
}

.about-hero h1 {
  max-width: 820px;
  color: #101510;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.about-hero p:not(.eyebrow) {
  max-width: 690px;
  color: #4f594a;
  font-size: 1.06rem;
  line-height: 1.72;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-hero .about-image {
  min-height: 500px;
  border: 1px solid rgba(122, 168, 62, .24);
  box-shadow: 0 26px 70px rgba(16, 21, 16, .14);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, 1fr);
  gap: 46px;
  align-items: start;
  padding: 82px max(24px, calc((100vw - 1280px) / 2));
  background: #fff;
}

.about-story-copy h2,
.about-focus .section-heading h2 {
  max-width: 760px;
  color: #101510;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.13;
  font-weight: 780;
}

.about-story-copy p {
  color: #5d6673;
  line-height: 1.75;
}

.about-principles {
  display: grid;
  gap: 14px;
}

.about-principles article {
  padding: 28px;
  background: #f7faf2;
  border: 1px solid rgba(16, 21, 16, .09);
  border-radius: 8px;
}

.about-principles span {
  display: inline-block;
  margin-bottom: 18px;
  color: #6f9f37;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.about-principles h2 {
  color: #101510;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 760;
}

.about-principles p {
  margin: 0;
  color: #5d6673;
  line-height: 1.68;
}

.about-focus {
  padding: 78px max(24px, calc((100vw - 1280px) / 2)) 88px;
  background: #f7faf2;
}

.about-focus .section-heading {
  max-width: 880px;
}

.about-focus .why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .about-hero,
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding-top: 56px;
  }

  .about-hero .about-image {
    min-height: 340px;
  }

  .about-focus .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-hero,
  .about-story,
  .about-focus {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .about-hero-actions {
    flex-direction: column;
  }

  .about-hero-actions .btn {
    width: 100%;
  }
}

/* Homepage editorial simplification */
.homepage-intro {
  padding-top: 82px;
  padding-bottom: 72px;
}

.homepage-services {
  padding-top: 82px;
  padding-bottom: 88px;
}

.homepage-services .section-heading {
  max-width: 860px;
}

.homepage-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.homepage-service-grid article {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card-image {
  min-height: 255px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(122, 168, 62, .18);
}

.service-card-web {
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .18), rgba(16, 21, 16, .03)),
    url("/images/cegis-code-development.jpg");
}

.service-card-desktop {
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .18), rgba(16, 21, 16, .03)),
    url("/images/cegis-desktop-development.jpg");
}

.service-card-mobile {
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .16), rgba(16, 21, 16, .02)),
    url("/images/cegis-mobile-development.jpg");
}

.service-card-data {
  background-image:
    linear-gradient(0deg, rgba(16, 21, 16, .14), rgba(16, 21, 16, .02)),
    url("/images/cegis-dashboard-insight.jpg");
}

.service-card-body {
  flex: 1;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card-body .infinity-icon {
  position: static;
  width: 38px;
  height: 38px;
  margin: 0 0 16px;
}

.service-card-body > span {
  margin-bottom: 14px;
}

.service-card-body h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.service-card-body p {
  margin-bottom: 20px;
}

.home-card-link,
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #5d8d27;
  font-weight: 800;
  text-decoration: none;
}

.home-card-link::after,
.home-text-link::after {
  content: ">";
  font-weight: 900;
}

.home-card-link:hover,
.home-text-link:hover {
  color: #101510;
}

.homepage-feature {
  align-items: stretch;
  background: #f7faf2;
}

.homepage-feature .feature-image {
  min-height: 520px;
}

.homepage-feature .feature-copy {
  align-self: center;
}

.homepage-feature .home-text-link {
  margin-top: 26px;
}

.homepage-industries {
  padding-top: 82px;
  padding-bottom: 82px;
}

.homepage-industries .home-text-link {
  margin-top: 22px;
}

.homepage-industries .industry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.homepage-why {
  padding-top: 82px;
  padding-bottom: 88px;
  background: #fff;
}

.homepage-why .why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .homepage-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-service-grid article {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  .homepage-service-grid,
  .homepage-industries .industry-grid,
  .homepage-why .why-grid {
    grid-template-columns: 1fr;
  }

  .homepage-intro,
  .homepage-services,
  .homepage-industries,
  .homepage-why {
    padding-top: 56px;
    padding-bottom: 58px;
  }

  .homepage-feature .feature-image {
    min-height: 320px;
  }
}

/* Mobile homepage: software-company landing page rhythm */
@media (max-width: 700px) {
  .hero-v2.cegis-hero {
    background:
      linear-gradient(180deg, rgba(247, 251, 241, .94) 0%, rgba(247, 251, 241, .88) 48%, rgba(16, 21, 16, .78) 100%),
      url("/images/cegis-ai-hero.png") center top / cover no-repeat;
  }

  .hero-v2 .hero-v2-panel {
    padding-top: 30px;
    padding-bottom: 26px;
    gap: 18px;
  }

  .hero-v2 .eyebrow {
    margin-bottom: 10px;
  }

  .hero-v2 h1 {
    max-width: 16ch !important;
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 8.5vw, 2.45rem) !important;
    line-height: 1.12 !important;
  }

  .hero-v2 .lead-text {
    max-width: 34ch;
    font-size: .98rem;
    line-height: 1.58;
  }

  .hero-v2 .hero-actions {
    margin-top: 20px;
  }

  .hero-v2 .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-v2 .hero-metrics div {
    min-height: 76px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, .9);
  }

  .hero-v2 .hero-metrics strong {
    font-size: .9rem;
  }

  .hero-v2 .hero-metrics span {
    font-size: .72rem;
    line-height: 1.25;
  }

  .hero-v2 .cegis-hero-media {
    min-height: 0;
  }

  .hero-v2 .hero-proof-card {
    max-width: none;
    margin-top: 4px;
    padding: 14px;
    background: rgba(16, 21, 16, .94);
    border-color: rgba(169, 213, 111, .34);
    border-left-color: #a9d56f;
    color: #fff;
  }

  .hero-v2 .hero-proof-card strong {
    color: #a9d56f;
    font-size: .95rem;
  }

  .hero-v2 .hero-proof-card span {
    color: #e4ecd8;
    font-size: .88rem;
    line-height: 1.45;
  }

  .cegis-partner-band {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .cegis-partner-band p {
    font-size: .96rem;
    line-height: 1.5;
  }

  .cegis-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cegis-proof div {
    padding: 18px 14px;
  }

  .cegis-proof i {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .cegis-proof strong {
    font-size: 1rem;
  }

  .cegis-proof span {
    font-size: .82rem;
    line-height: 1.45;
  }

  .homepage-intro,
  .homepage-services,
  .homepage-industries,
  .homepage-why {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .homepage-intro h2,
  .homepage-services .section-heading h2,
  .homepage-industries h2,
  .homepage-why .section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.16;
  }

  .homepage-services .section-heading p,
  .homepage-industries p,
  .homepage-intro p {
    font-size: .95rem;
    line-height: 1.58;
  }

  .homepage-service-grid {
    gap: 10px;
  }

  .homepage-service-grid article {
    min-height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .homepage-service-grid .service-card-image {
    min-height: 190px;
  }

  .homepage-service-grid .service-card-body {
    padding: 18px;
  }

  .homepage-service-grid article .service-card-body .infinity-icon {
    position: static;
    grid-row: span 3;
    width: 32px;
    height: 32px;
    margin: 0 0 12px;
  }

  .homepage-service-grid article .service-card-body > span {
    display: inline-block;
    margin-bottom: 10px;
  }

  .homepage-service-grid article h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .homepage-service-grid article p {
    margin: 0 0 14px;
    font-size: .88rem;
    line-height: 1.45;
  }

  .homepage-service-grid .home-card-link {
    margin-top: 2px;
    font-size: .86rem;
  }

  .homepage-feature {
    padding-top: 0;
    padding-bottom: 44px;
    background: #fff;
  }

  .homepage-feature .feature-image {
    min-height: 220px;
    margin-left: -16px;
    margin-right: -16px;
    box-shadow: none;
  }

  .homepage-feature .feature-copy {
    padding-top: 28px;
  }

  .value-list {
    gap: 8px;
  }

  .value-list div,
  .homepage-why .why-grid article {
    padding: 16px;
  }

  .homepage-industries .industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .homepage-industries .industry-grid span {
    flex: 1 1 auto;
    min-width: calc(50% - 8px);
    padding: 10px 12px;
    font-size: .84rem;
    text-align: center;
  }

  .homepage-why .why-grid {
    gap: 10px;
  }

  .cegis-cta {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

/* Mobile navigation stability */
@media (max-width: 991px) {
  .site-header {
    isolation: isolate;
  }

  .site-header .nav-container {
    position: relative;
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: auto !important;
    max-height: calc(100svh - 82px) !important;
    padding: 14px 18px 22px !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid rgba(16, 21, 16, .08);
    box-shadow: 0 20px 48px rgba(16, 21, 16, .14);
    transform: translateX(-50%);
    z-index: 4000;
  }

  .site-header .navbar-collapse.show {
    display: block !important;
    height: auto !important;
    max-height: calc(100svh - 82px) !important;
    overflow-y: auto !important;
  }

  .site-header .navbar-collapse.collapsing {
    height: auto !important;
    max-height: calc(100svh - 82px) !important;
    overflow-y: auto !important;
    transition: none;
  }

  .site-header .main-nav,
  .site-header .nav-actions {
    width: 100%;
    margin: 0 !important;
    gap: 0;
    align-items: stretch;
  }

  .site-header .main-nav .nav-item,
  .site-header .nav-actions .nav-item {
    width: 100%;
  }

  .site-header .main-nav .nav-link,
  .site-header .nav-actions .nav-link {
    width: 100%;
    padding: 12px 0 !important;
  }

  .site-header .nav-mega {
    position: relative !important;
    width: 100%;
    overflow: visible;
  }

  .site-header .mega-panel,
  .site-header .mega-panel-compact,
  .site-header .mega-panel-small,
  .site-header .mega-panel-company,
  .site-header .nav-mega:hover .mega-panel,
  .site-header .nav-mega:focus-within .mega-panel,
  .site-header .nav-mega:hover .mega-panel-small,
  .site-header .nav-mega:focus-within .mega-panel-small,
  .site-header .nav-mega:hover .mega-panel-company,
  .site-header .nav-mega:focus-within .mega-panel-company {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    padding: 0 0 12px 14px !important;
    margin: 0 !important;
    overflow: visible;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .site-header .mega-links {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .site-header .mega-links a {
    width: 100%;
    min-width: 0;
    padding: 12px 14px !important;
    overflow-wrap: anywhere;
  }
}

/* Admin refinement */
.admin-login {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 72px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(247, 250, 242, .96) 0%, rgba(255, 255, 255, .96) 52%, rgba(236, 246, 226, .9) 100%);
}

.admin-login-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(16, 21, 16, .12);
}

.admin-login-brand {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(16, 21, 16, .94), rgba(29, 45, 23, .92)),
    url("/images/cegis-dashboard-insight.jpg") center / cover;
  color: #fff;
}

.admin-login-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid rgba(169, 213, 111, .46);
  border-radius: 8px;
  color: #bfe47f;
  font-size: 1.65rem;
  font-weight: 850;
}

.admin-login-brand .eyebrow,
.admin-login-brand h1,
.admin-login-brand p {
  color: #fff;
}

.admin-login-brand h1 {
  max-width: 420px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.admin-login-brand p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  color: #dce8d1;
  line-height: 1.65;
}

.admin-login-form {
  align-self: center;
  border: 0;
  box-shadow: none;
  padding: 46px;
  gap: 18px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field label,
.cms-form label {
  color: #25301f;
  font-size: .84rem;
  font-weight: 800;
}

.admin-login-form .form-control,
.cms-form .form-control {
  min-height: 46px;
  border: 1px solid #d8e2d1;
  border-radius: 8px;
  background: #fbfdf8;
  color: #101510;
  font-weight: 600;
}

.admin-login-form .form-control:focus,
.cms-form .form-control:focus {
  border-color: #7aa83e;
  background: #fff;
  box-shadow: 0 0 0 .2rem rgba(122, 168, 62, .15);
}

.admin-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.admin-page-heading {
  padding-top: 54px;
  padding-bottom: 24px;
}

.admin-page-heading h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
}

.admin-metric-grid .metric {
  border-radius: 8px;
  border-color: rgba(16, 21, 16, .1);
  background: linear-gradient(180deg, #fff 0%, #fbfdf8 100%);
  box-shadow: 0 14px 38px rgba(16, 21, 16, .06);
}

.admin-metric-grid .metric:hover {
  border-color: rgba(122, 168, 62, .46);
  transform: translateY(-2px);
}

.admin-metric-grid .metric strong {
  color: #101510;
  font-size: 2.15rem;
  line-height: 1;
}

.admin-metric-grid .metric span {
  color: #5d6673;
  font-weight: 800;
}

.cms-grid {
  align-items: start;
}

.admin-list-panel,
.admin-editor-panel,
.admin-security-panel,
.admin-message-table,
.empty-state,
.admin-message-summary div {
  border-radius: 8px;
  border-color: rgba(16, 21, 16, .1);
  box-shadow: 0 14px 38px rgba(16, 21, 16, .055);
}

.admin-list-panel,
.admin-editor-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
}

.admin-list-panel h2,
.admin-editor-panel h2 {
  margin-bottom: 18px;
  color: #101510;
  font-size: 1.18rem;
  font-weight: 800;
}

.admin-editor-panel .cms-form {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.content-row {
  border-color: rgba(16, 21, 16, .09);
  background: #fbfdf8;
}

.content-row strong {
  color: #101510;
}

.row-actions a {
  color: #5d8d27;
  font-weight: 800;
  text-decoration: none;
}

.tabs a {
  border-color: rgba(16, 21, 16, .12);
  background: #fbfdf8;
  font-weight: 800;
}

.tabs a.active {
  background: #101510;
  border-color: #101510;
}

.check-line {
  min-height: 44px;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(16, 21, 16, .09);
  border-radius: 8px;
  background: #fbfdf8;
}

.admin-actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.message-table-head {
  background: #f2f7eb;
}

.message-record summary {
  background: #fff;
}

.message-record summary:hover {
  background: #fbfdf8;
}

.message-meta div {
  border-radius: 8px;
}

.admin-security-panel {
  border-radius: 8px;
}

.two-factor-key {
  border-radius: 8px;
}

@media (max-width: 860px) {
  .admin-login {
    align-items: start;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .admin-login-panel {
    grid-template-columns: 1fr;
  }

  .admin-login-brand {
    min-height: 270px;
    padding: 28px;
  }

  .admin-login-mark {
    margin-bottom: 38px;
  }

  .admin-login-form {
    padding: 28px;
  }

  .cms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-login {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-login-brand {
    min-height: 230px;
    padding: 22px;
  }

  .admin-login-form,
  .admin-list-panel,
  .admin-editor-panel {
    padding: 22px;
  }
}

/* Admin workspace pages */
.admin-workspace {
  display: grid;
  gap: 22px;
  padding-top: 46px;
  padding-bottom: 72px;
  background:
    linear-gradient(180deg, #f7faf2 0%, #fff 260px);
}

.admin-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(135deg, #101510 0%, #21331b 65%, #101510 100%);
  border: 1px solid rgba(169, 213, 111, .24);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(16, 21, 16, .14);
}

.admin-hero-panel-compact {
  padding: 28px 30px;
}

.admin-hero-panel h1,
.admin-hero-panel p,
.admin-hero-panel .eyebrow {
  color: #fff;
}

.admin-hero-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 820;
}

.admin-hero-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #dbe6d0;
  line-height: 1.6;
}

.admin-hero-panel .btn-outline-primary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(169, 213, 111, .55);
  color: #fff;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-action-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(16, 21, 16, .1);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(16, 21, 16, .055);
  color: #101510;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 168, 62, .5);
  box-shadow: 0 18px 46px rgba(16, 21, 16, .09);
  color: #101510;
}

.admin-action-card span,
.admin-panel-heading span,
.admin-table-title span {
  display: inline-block;
  margin-bottom: 12px;
  color: #6f9f37;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-action-card strong {
  display: block;
  margin-bottom: 8px;
  color: #101510;
  font-size: 1.08rem;
  line-height: 1.3;
}

.admin-action-card small {
  color: #5d6673;
  line-height: 1.55;
}

.admin-cms-grid {
  grid-template-columns: minmax(280px, .76fr) minmax(420px, 1.24fr);
  gap: 22px;
}

.admin-tabs {
  padding: 0;
  margin: 0;
}

.admin-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.admin-panel-heading,
.admin-table-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 21, 16, .08);
}

.admin-panel-heading h2,
.admin-table-title h2 {
  margin: 0;
  color: #101510;
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 820;
}

.admin-content-form {
  gap: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-field-small {
  max-width: 180px;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.admin-form-actions .btn {
  min-width: 150px;
}

.admin-list-panel .content-list {
  gap: 10px;
}

.admin-list-panel .content-row {
  padding: 16px;
  border-radius: 8px;
}

.admin-list-panel .content-row span {
  color: #697366;
}

.admin-message-summary {
  margin-bottom: 0;
}

.admin-message-summary div {
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfdf8 100%);
}

.admin-message-table {
  overflow: hidden;
  border-radius: 8px;
}

.admin-table-title {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
}

.message-table-head {
  padding-left: 22px;
  padding-right: 22px;
}

.message-record summary {
  padding-left: 22px;
  padding-right: 22px;
}

.message-record-detail {
  padding-right: 22px;
}

.admin-empty-state {
  border-radius: 8px;
}

.admin-security-layout {
  grid-template-columns: minmax(260px, .62fr) minmax(340px, 1fr);
  align-items: start;
  padding: 0;
  overflow: hidden;
}

.admin-security-status {
  min-height: 100%;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(16, 21, 16, .96), rgba(30, 48, 24, .94));
  color: #fff;
}

.admin-security-status h2,
.admin-security-status p,
.admin-security-status .message-status {
  color: #fff;
}

.admin-security-status p {
  margin: 0;
  color: #dbe6d0;
}

.two-factor-setup,
.two-factor-disable {
  padding: 30px;
}

.two-factor-form {
  max-width: 460px;
  border: 1px solid rgba(16, 21, 16, .09);
  background: #fbfdf8;
}

@media (max-width: 1100px) {
  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-cms-grid,
  .admin-security-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-workspace {
    padding-top: 24px;
    padding-bottom: 46px;
  }

  .admin-hero-panel {
    display: grid;
    padding: 24px;
  }

  .admin-action-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-actions {
    justify-content: stretch;
  }

  .admin-form-actions .btn,
  .admin-hero-panel .btn {
    width: 100%;
  }

  .two-factor-qr-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
