:root {
  --bg: #07111f;
  --bg-soft: #0c1c31;
  --panel: rgba(10, 24, 43, 0.74);
  --panel-strong: #102742;
  --surface: #f4efe8;
  --surface-muted: #d6deea;
  --text: #eff4fb;
  --text-dark: #0b1525;
  --muted: #9cb0c8;
  --line: rgba(156, 176, 200, 0.2);
  --accent: #3dd6c6;
  --accent-strong: #d98a4a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
  --title-font: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body-font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 214, 198, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.09), transparent 28%),
    linear-gradient(180deg, #06101d 0%, #091728 52%, #06101d 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 3rem 0;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.error-card {
  max-width: 760px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(6, 16, 29, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 0.96rem;
  line-height: 1;
}

.brand-footer {
  gap: 0.85rem;
}

.brand-footer .brand-mark {
  width: 2.6rem;
  height: 2.6rem;
}

.brand-footer .brand-text {
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--surface-muted);
}

.nav-menu a:not(.button) {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 180ms ease;
}

.nav-menu a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #58a7ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-menu a:not(.button):hover,
.nav-menu a:not(.button):focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--text);
}

.nav-menu a:not(.button):hover::after,
.nav-menu a:not(.button):focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-menu a:focus-visible,
.footer-links a:focus-visible,
.article-card a:focus-visible {
  outline: 2px solid rgba(61, 214, 198, 0.65);
  outline-offset: 4px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #58a7ff);
  color: #04111f;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.button-nav {
  min-height: 2.75rem;
  padding-inline: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-full {
  width: 100%;
}

.hero {
  padding: 5.5rem 0 3rem;
}

.page-hero {
  padding: 4.75rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 2rem;
  align-items: center;
}

.page-hero-grid,
.story-grid,
.leadership-layout {
  display: grid;
  gap: 2rem;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.contact-copy h2,
.insight-grid h2,
.stage-card-main h2 {
  margin: 0;
  font-family: var(--title-font);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.3vw, 4.7rem);
  max-width: 15ch;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 4.3vw, 4rem);
  max-width: 15ch;
}

.hero-text {
  max-width: 58ch;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
  color: var(--surface-muted);
}

.page-hero-panel,
.leadership-card,
.value-card,
.stat-card,
.story-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.page-hero-panel,
.leadership-card,
.value-card,
.stat-card {
  box-shadow: var(--shadow);
}

.page-hero-panel,
.leadership-card,
.value-card,
.stat-card,
.story-copy {
  padding: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-meta div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.hero-meta strong,
.project-copy h3,
.service-card h3,
.process-step h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-meta span,
.service-card p,
.project-copy p,
.process-step p,
.insight-card p,
.contact-copy p,
.site-footer p,
.trust-band p {
  color: var(--surface-muted);
}

.hero-stage {
  position: relative;
  min-height: 100%;
}

.stage-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stage-card-main {
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(8, 20, 35, 0.95), rgba(9, 26, 44, 0.92)),
    linear-gradient(135deg, rgba(61, 214, 198, 0.14), transparent 45%);
}

.stage-card-accent {
  width: min(280px, 82%);
  margin: -3rem 0 0 auto;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(217, 138, 74, 0.82), rgba(61, 214, 198, 0.88));
  color: #04111f;
}

.stage-label,
.project-tag,
.service-index {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-list {
  padding-left: 1.15rem;
  color: var(--surface-muted);
}

.stage-stat {
  margin: 0;
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 700;
}

.stage-subtext {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.trust-band {
  padding: 1.2rem 0 0;
}

.trust-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-stats strong {
  display: block;
  font-family: var(--title-font);
  font-size: 1.25rem;
}

.section {
  padding: 5.25rem 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top, rgba(61, 214, 198, 0.08), transparent 28%);
}

.section-accent {
  padding-block: 3.5rem;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-copy h2,
.insight-grid h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.service-grid,
.project-grid,
.value-grid,
.about-stats,
.services-detail-grid,
.benefit-list,
.faq-list,
.case-study-list,
.result-grid,
.category-grid,
.article-grid {
  display: grid;
  gap: 1.4rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-detail-grid,
.benefit-list,
.faq-list,
.result-grid,
.category-grid,
.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-stats[data-cms-service-highlights] {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
}

.services-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.value-grid,
.about-stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.case-study-list {
  grid-template-columns: 1fr;
}

.service-card,
.project-card,
.contact-card,
.insight-card,
.value-card,
.stat-card,
.service-detail-card,
.benefit-card,
.faq-card,
.case-study-card,
.result-card,
.testimonial-card,
.category-card,
.article-card,
.featured-insight {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.service-card,
.service-detail-card,
.benefit-card,
.faq-card,
.result-card,
.testimonial-card,
.category-card,
.article-card,
.mini-card,
.stat-card,
.value-card {
  padding: 1.6rem;
}

.service-card,
.service-detail-card,
.benefit-card,
.faq-card,
.result-card,
.testimonial-card,
.category-card,
.article-card,
.value-card,
.stat-card,
.mini-card,
.project-card {
  height: 100%;
}

.service-card,
.service-detail-card,
.benefit-card,
.faq-card,
.result-card,
.testimonial-card,
.category-card,
.article-card,
.value-card,
.mini-card,
.project-card,
.project-copy,
.case-study-copy,
.featured-insight-copy {
  display: flex;
  flex-direction: column;
}

.service-index {
  color: var(--accent);
}

.services-detail-grid .service-detail-card {
  padding: 2rem;
}

.services-detail-grid .service-detail-card + .service-detail-card {
  margin-top: 0.25rem;
}

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

.project-card {
  overflow: hidden;
}

.case-study-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.featured-insight {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.project-visual {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.case-study-visual {
  height: 220px;
  max-height: 220px;
  background-size: cover;
  background-position: center;
}

.featured-insight-visual {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.24), rgba(88, 167, 255, 0.16)),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.24), transparent 28%),
    #102339;
}

.article-card-visual {
  min-height: 160px;
  margin: -1.6rem -1.6rem 1.2rem;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.2), rgba(88, 167, 255, 0.14)),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.16), transparent 34%),
    #102339;
}

.insight-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual-one {
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.32), rgba(88, 167, 255, 0.22)),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.26), transparent 32%),
    #0d2138;
}

.project-visual-two {
  background:
    linear-gradient(135deg, rgba(217, 138, 74, 0.14), rgba(61, 214, 198, 0.2)),
    radial-gradient(circle at bottom left, rgba(88, 167, 255, 0.45), transparent 28%),
    #10233b;
}

.case-study-visual-one {
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.3), rgba(88, 167, 255, 0.16)),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.2), transparent 28%),
    #0d2138;
}

.case-study-visual-two {
  background:
    linear-gradient(135deg, rgba(217, 138, 74, 0.1), rgba(61, 214, 198, 0.2)),
    radial-gradient(circle at bottom left, rgba(88, 167, 255, 0.5), transparent 26%),
    #11263d;
}

.case-study-visual-three {
  background:
    linear-gradient(135deg, rgba(88, 167, 255, 0.2), rgba(61, 214, 198, 0.18)),
    radial-gradient(circle at center, rgba(217, 138, 74, 0.18), transparent 25%),
    #102338;
}

.project-copy {
  padding: 1.6rem;
}

.case-study-copy {
  padding: 1.8rem;
}

.featured-insight-copy {
  padding: 1.8rem;
}

.case-study-copy h2,
.service-detail-card h2 {
  margin: 0 0 0.8rem;
  font-family: var(--title-font);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.featured-insight-copy h2,
.article-card h3,
.category-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--title-font);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.insight-card-link {
  display: block;
  text-decoration: none;
}

.insight-title-link {
  color: inherit;
  text-decoration: none;
}

.insight-title-link:hover,
.insight-title-link:focus-visible {
  color: var(--accent);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--surface-muted);
  font-size: 0.95rem;
}

.service-card,
.service-detail-card,
.project-card,
.case-study-card,
.value-card,
.stat-card,
.benefit-card,
.faq-card,
.result-card,
.testimonial-card,
.category-card,
.article-card,
.featured-insight,
.mini-card {
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.service-card:hover,
.service-detail-card:hover,
.project-card:hover,
.case-study-card:hover,
.value-card:hover,
.stat-card:hover,
.benefit-card:hover,
.faq-card:hover,
.result-card:hover,
.testimonial-card:hover,
.category-card:hover,
.article-card:hover,
.featured-insight:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 214, 198, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.project-tag {
  color: var(--accent);
}

.process-layout,
.insight-grid,
.contact-layout,
.footer-grid,
.story-grid,
.leadership-layout,
.benefit-grid,
.faq-layout,
.result-layout,
.testimonial-layout,
.inquiry-layout {
  display: grid;
  gap: 2rem;
}

.story-grid,
.leadership-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.process-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.benefit-grid,
.faq-layout,
.result-layout,
.testimonial-layout,
.inquiry-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.process-step span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(61, 214, 198, 0.12);
  color: var(--accent);
  font-family: var(--title-font);
  font-weight: 700;
}

.insight-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: stretch;
}

.insight-card {
  padding: 1.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top left, rgba(217, 138, 74, 0.1), transparent 30%);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
  align-items: start;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card label {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--surface);
  font-weight: 600;
}

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

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus,
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  outline: 2px solid rgba(61, 214, 198, 0.45);
  outline-offset: 2px;
  border-color: rgba(61, 214, 198, 0.35);
}

.contact-card ::placeholder {
  color: var(--muted);
}

.contact-card select option,
.project-form select option {
  color: var(--text-dark);
  background: #ffffff;
}

.site-footer {
  padding: 1.5rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: end;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-links a {
  color: var(--surface-muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
}

.footer-note {
  margin: 0;
  color: var(--muted);
}

.story-copy p:last-child,
.leadership-card p:last-child {
  margin-bottom: 0;
}

.detail-list,
.faq-card p,
.benefit-card p,
.result-card p,
.testimonial-card p,
.mini-card p,
.inquiry-copy p {
  margin: 0;
}

.detail-list {
  padding-left: 1.2rem;
  color: var(--surface-muted);
}

.service-detail-card .detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-left: 1.1rem;
}

.service-detail-card .detail-list li {
  padding-left: 0.15rem;
}

.project-form,
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.project-form {
  padding: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-form label {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--surface);
  font-weight: 600;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.project-form ::placeholder {
  color: var(--muted);
}

.inquiry-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-card {
  padding: 1.25rem;
}

.mini-card h3 {
  margin: 0 0 0.4rem;
}

.article-card a,
.featured-insight-copy a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

.article-card a::after,
.featured-insight-copy a::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.article-card a:hover::after,
.article-card a:focus-visible::after,
.featured-insight-copy a:hover::after,
.featured-insight-copy a:focus-visible::after {
  transform: translateX(3px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-grid,
  .trust-grid,
  .service-grid,
  .project-grid,
  .value-grid,
  .about-stats,
  .services-detail-grid,
  .benefit-list,
  .faq-list,
  .result-grid,
  .process-layout,
  .insight-grid,
  .contact-layout,
  .story-grid,
  .leadership-layout,
  .benefit-grid,
  .faq-layout,
  .result-layout,
  .testimonial-layout,
  .inquiry-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-study-card {
    grid-template-columns: 1fr;
  }

  .featured-insight {
    grid-template-columns: 1fr;
  }

  .featured-insight-visual {
    min-height: 220px;
  }

  .article-card-visual {
    min-height: 140px;
  }

  .post-hero-visual {
    width: 100%;
    height: 180px;
    max-height: 180px;
  }

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

  .service-detail-card .detail-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.post-shell {
  max-width: 980px;
}

.post-page {
  display: grid;
  gap: 1.6rem;
}

.post-header {
  display: grid;
  gap: 1rem;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.post-hero-visual {
  display: block;
  width: min(100%, 520px);
  height: 240px;
  max-height: 240px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 214, 198, 0.24), rgba(88, 167, 255, 0.16)),
    radial-gradient(circle at top right, rgba(217, 138, 74, 0.22), transparent 28%),
    #102339;
  overflow: hidden;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.post-body {
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.post-body h2,
.post-body h3 {
  margin: 0.4rem 0 0;
  font-family: var(--title-font);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.post-body p {
  margin: 0;
  color: var(--surface-muted);
}

.post-list-block {
  display: grid;
  gap: 0.8rem;
}

.post-closing {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.post-closing p {
  margin: 0;
}

.service-detail-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.service-detail-link:hover,
.service-detail-link:focus-visible {
  color: var(--accent);
}

.custom-chat {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 45;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.custom-chat.custom-chat-footer-safe {
  transform: translateY(-5.25rem);
}

.custom-chat.custom-chat-form-safe {
  transform: translateY(-7rem);
}

.custom-chat.custom-chat-footer-safe.custom-chat-form-safe {
  transform: translateY(-8.5rem);
}

.custom-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(16, 39, 66, 0.96), rgba(9, 23, 40, 0.96)),
    rgba(6, 16, 29, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.custom-chat-launcher svg {
  width: 0.95rem;
  height: 0.95rem;
}

.custom-chat-launcher-label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.custom-chat-launcher-pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 214, 198, 0.5);
  animation: chat-pulse 2.2s infinite;
}

.custom-chat-panel {
  width: min(400px, calc(100vw - 1.6rem));
  max-height: min(74vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(61, 214, 198, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(9, 23, 40, 0.98), rgba(6, 16, 29, 0.98));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.custom-chat.is-open .custom-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 0.95rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-chat-header-meta {
  display: grid;
  gap: 0.2rem;
}

.custom-chat-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-chat-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 1.16rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.custom-chat-close {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.custom-chat-body {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem 0.95rem;
  min-height: 0;
  overflow-y: auto;
}

.custom-chat-intro,
.custom-chat-status,
.custom-chat-helper,
.custom-chat-feedback {
  margin: 0;
  color: var(--surface-muted);
  font-size: 0.92rem;
}

.custom-chat-status {
  color: var(--accent);
}

.custom-chat-transcript {
  display: grid;
  gap: 0.7rem;
  max-height: 210px;
  padding-right: 0.2rem;
  overflow-y: auto;
}

.custom-chat-bubble {
  display: grid;
  gap: 0.3rem;
  max-width: 88%;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
}

.custom-chat-bubble p {
  margin: 0;
}

.custom-chat-bubble-support {
  justify-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
}

.custom-chat-bubble-visitor {
  justify-self: flex-end;
  background: linear-gradient(135deg, rgba(61, 214, 198, 0.18), rgba(88, 167, 255, 0.14));
  border: 1px solid rgba(61, 214, 198, 0.18);
}

.custom-chat-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.custom-chat-form {
  display: grid;
  gap: 0.75rem;
}

.custom-chat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.custom-chat-field {
  display: grid;
  gap: 0.3rem;
}

.custom-chat-field-full {
  grid-column: 1 / -1;
}

.custom-chat-field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--surface-muted);
}

.custom-chat-field input,
.custom-chat-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.custom-chat-field input::placeholder,
.custom-chat-field textarea::placeholder {
  color: var(--muted);
}

.custom-chat-field input:focus,
.custom-chat-field textarea:focus {
  outline: 2px solid rgba(61, 214, 198, 0.38);
  outline-offset: 2px;
}

.custom-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.custom-chat-submit {
  min-width: 9.5rem;
  justify-content: center;
}

.custom-chat-feedback[data-state="success"] {
  color: var(--accent);
}

.custom-chat-feedback[data-state="error"] {
  color: #ffb18c;
}

@keyframes chat-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 214, 198, 0.48);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(61, 214, 198, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(61, 214, 198, 0);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .hero-secondary-mobile-hide {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(6, 16, 29, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav {
    position: relative;
  }

  .hero {
    padding-top: 4rem;
  }

  .page-hero {
    padding-top: 3.5rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .hero-meta,
  .trust-stats {
    grid-template-columns: 1fr;
  }

  .custom-chat {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .custom-chat.custom-chat-footer-safe {
    transform: translateY(-6rem);
  }

  .custom-chat.custom-chat-form-safe {
    transform: translateY(-7.5rem);
  }

  .custom-chat.custom-chat-footer-safe.custom-chat-form-safe {
    transform: translateY(-9rem);
  }

  .custom-chat-panel {
    width: min(100vw - 1rem, 400px);
  }

  .custom-chat-grid {
    grid-template-columns: 1fr;
  }

  .custom-chat-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-chat-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal,
  .nav-menu {
    transition: none;
  }
}

.inbox-page { min-height: 100vh; padding: 4rem 1rem; background: var(--bg); }
.inbox-card { width: min(1120px, 100%); margin: auto; padding: 2rem; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.inbox-login { display: grid; gap: 1rem; max-width: 420px; }
.inbox-login label, #reply-form { display: grid; gap: .4rem; }
.inbox-login input, #reply { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text); }
.inbox-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.inbox-layout { display:grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.7fr); gap: 1rem; min-height: 540px; }
.inbox-list, .inbox-thread { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.inbox-list, .inbox-messages { display:grid; gap:.65rem; overflow:auto; }
.inbox-list, .inbox-messages { align-content:start; }
.inbox-conversation { padding: .8rem; text-align:left; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor:pointer; }
.inbox-thread { display:grid; grid-template-rows:auto auto auto; align-content:start; gap:1rem; }
.inbox-thread-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.button-danger { background:#b42318; border-color:#b42318; color:#fff; }
.button-danger:hover, .button-danger:focus-visible { background:#8f1b13; border-color:#8f1b13; }
.inbox-message { align-self:start; height:fit-content; max-width: 80%; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.07); }
.inbox-message.agent { justify-self:end; background: rgba(61,214,198,.18); }
@media (max-width:760px) { .inbox-layout { grid-template-columns:1fr; } .inbox-card { padding:1rem; } }

/* The owner inbox uses a light card, so it needs its own readable text palette. */
.inbox-card { color: #132238; }
.inbox-card h1,
.inbox-card h2,
.inbox-card h3,
.inbox-card label,
.inbox-card #thread-title { color: #132238; }
.inbox-login input,
#reply {
  background: #ffffff;
  border-color: #aeb9c7;
  color: #132238;
  caret-color: #132238;
}
.inbox-login input::placeholder,
#reply::placeholder { color: #637084; }
.inbox-login input:focus,
#reply:focus { outline: 3px solid rgba(61, 214, 198, .3); border-color: #167e78; }

/* Preserve the login and reply form visibility controlled by the inbox script. */
#owner-login[hidden],
#inbox[hidden],
#reply-form[hidden] { display: none !important; }

/* Keep conversation previews readable on the private inbox's light panel. */
.inbox-conversation {
  color: #132238;
  background: #ffffff;
  border-color: #c6cfda;
}
.inbox-conversation:hover,
.inbox-conversation:focus-visible {
  background: #edf8f7;
  border-color: #167e78;
}

/* Private inbox reply confirmation */
.inbox-card #reply-status { color: #16304f; font-weight: 700; min-height: 1.5rem; }
.inbox-card #reply-status[data-state='success'] { color: #087c64; }
.inbox-card #reply-status[data-state='error'] { color: #b42318; }


/* Lito live chat v4 */
.lito-live-chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000; font-family: var(--body-font, Arial, sans-serif); }
.lito-live-chat-launcher, .lito-live-chat-send, .lito-live-chat-new, .lito-live-chat-close { cursor: pointer; font: inherit; }
.lito-live-chat-launcher { border: 0; border-radius: 999px; padding: .85rem 1.15rem; background: linear-gradient(135deg, #42d4c6, #58a7ff); color: #07192e; font-weight: 800; box-shadow: 0 14px 32px rgba(5,19,35,.28); }
.lito-live-chat-panel { width: min(390px, calc(100vw - 2rem)); max-height: min(680px, calc(100vh - 2rem)); display: none; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #091827; color: #f5f8fc; box-shadow: 0 20px 50px rgba(0,0,0,.34); }
.lito-live-chat.is-open .lito-live-chat-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; margin-bottom: .8rem; }
.lito-live-chat-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
.lito-live-chat-close { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 1.4rem; }
.lito-live-chat-transcript { display: grid; gap: .65rem; min-height: 0; max-height: 260px; padding: 1rem 1.1rem; overflow-y: auto; }
.lito-live-chat-message { max-width: 85%; padding: .7rem .85rem; border-radius: 14px; line-height: 1.4; }
.lito-live-chat-message p { margin: 0; }
.lito-live-chat-message.is-visitor { justify-self: end; background: #d8f3ee; color: #10283b; }
.lito-live-chat-message.is-team { justify-self: start; background: #19314a; color: #fff; }
.lito-live-chat-form { display: grid; gap: .65rem; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid rgba(255,255,255,.1); overflow-y: auto; }
.lito-live-chat-field { display: grid; gap: .28rem; color: #d7e0eb; font-size: .86rem; font-weight: 700; }
.lito-live-chat-field input, .lito-live-chat-field textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: .7rem .8rem; background: #122438; color: white; font: inherit; }
.lito-live-chat-send { border: 0; border-radius: 999px; padding: .8rem 1rem; background: linear-gradient(135deg, #42d4c6, #58a7ff); color: #07192e; font-weight: 800; }
.lito-live-chat-new { border: 0; background: transparent; color: #9fc5f8; padding: .25rem; text-decoration: underline; }
.lito-live-chat-status { min-height: 1.3rem; margin: 0; color: #d7e0eb; font-size: .86rem; }
.lito-live-chat-status.is-success { color: #72e3bf; }
.lito-live-chat-status.is-error { color: #ffb18c; }
@media (max-width: 600px) { .lito-live-chat { right: .75rem; bottom: .75rem; } .lito-live-chat-panel { max-height: calc(100vh - 1.5rem); } }

/* Compact chat launcher */
.lito-live-chat-launcher { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; }
.lito-live-chat-launcher svg { width: 21px; height: 21px; fill: none; stroke: #07192e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* Compact live chat panel */
.lito-live-chat-panel { width: min(340px, calc(100vw - 1.5rem)); max-height: min(550px, calc(100vh - 1.5rem)); border-radius: 16px; }
.lito-live-chat-header { padding: .75rem .85rem; font-size: 1rem; }
.lito-live-chat-transcript { max-height: 180px; padding: .75rem .85rem; }
.lito-live-chat-form { gap: .5rem; padding: .7rem .85rem .85rem; }
.lito-live-chat-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.lito-live-chat-field input, .lito-live-chat-field textarea { padding: .55rem .65rem; border-radius: 10px; }
.lito-live-chat-send { padding: .65rem .85rem; }
@media (max-width: 420px) { .lito-live-chat-identity { grid-template-columns: 1fr; } }


/* Ensure contact fields disappear once a chat is active */
.lito-live-chat-identity[hidden] { display: none; }


/* Keep the chat panel clear of the site header */
.lito-live-chat-panel { max-height: min(500px, calc(100vh - 8rem)); }


/* Keep scrolling inside the message history, not the chat shell */
.lito-live-chat-form { overflow: visible; }
.lito-live-chat-transcript { overflow-y: auto; scrollbar-width: thin; }


/* Hide chat scrollbars while preserving mouse-wheel and touch scrolling */
.lito-live-chat-panel, .lito-live-chat-form, .lito-live-chat-transcript, .custom-chat-panel, .custom-chat-body, .custom-chat-transcript { -ms-overflow-style: none; scrollbar-width: none; }
.lito-live-chat-panel::-webkit-scrollbar, .lito-live-chat-form::-webkit-scrollbar, .lito-live-chat-transcript::-webkit-scrollbar, .custom-chat-panel::-webkit-scrollbar, .custom-chat-body::-webkit-scrollbar, .custom-chat-transcript::-webkit-scrollbar { display: none; width: 0; height: 0; }

