/* Siva Computers — Hexapiper-inspired layout, light/dark via data-theme */

:root[data-theme='light'],
:root:not([data-theme]) {
  --bg: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --accent: #312e81;
  --accent-2: #4f46e5;
  --border: #e2e8f0;
  --hero-bg: linear-gradient(145deg, #1e1b4b 0%, #312e81 42%, #4c1d95 100%);
  --hero-grid: rgba(255, 255, 255, 0.06);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.12);
}

:root[data-theme='dark'] {
  --bg: #030712;
  --bg-muted: #0f172a;
  --surface: #111827;
  --surface-2: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #818cf8;
  --brand-2: #a78bfa;
  --accent: #c7d2fe;
  --accent-2: #a5b4fc;
  --border: #334155;
  --hero-bg: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
  --hero-grid: rgba(255, 255, 255, 0.04);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--accent-2);
  text-decoration: none;
}
.brand--footer {
  margin-bottom: 0.75rem;
}
.brand__mark {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.1rem;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 35%, transparent);
}
.nav-cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-theme {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}
.btn-theme:hover {
  border-color: var(--accent-2);
  color: var(--text);
}

main {
  flex: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.25rem 1.35rem;
}

/* ——— Hero (hexapiper-style) ——— */
.hero {
  position: relative;
  color: #fff;
  padding: 4rem 1.35rem 4.5rem;
  overflow: hidden;
}
.hero--mesh {
  background: var(--hero-bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(129, 140, 248, 0.25), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.2), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero__lead {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  background: #fff;
  color: #312e81;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-on-dark {
  background: #fff;
  color: #312e81;
  flex-shrink: 0;
}
.btn-on-dark:hover {
  filter: brightness(1.06);
}

/* Trust strip */
.trust-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-strip__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-strip__item {
  white-space: nowrap;
}
.trust-strip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

/* Sections */
.section {
  padding: 0;
}
.section--muted {
  background: var(--bg-muted);
}

.services-page {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.services-page .container {
  padding-top: 0.5rem;
}
.section__head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}
.section__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}
.pillar__icon {
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.pillar__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
}
.pillar__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Feature grid (services) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}
.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.feature-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.feature-tile__media {
  display: block;
  width: calc(100% + 2.7rem);
  margin: -1.35rem -1.35rem 1rem -1.35rem;
  height: 140px;
  overflow: hidden;
  border-radius: 0;
}
.feature-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-tile__hex {
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.feature-tile__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.feature-tile__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  flex: 1;
}
.feature-tile__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-2);
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist__icon {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Blog cards */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
}
.blog-card__img {
  display: block;
  height: 160px;
  overflow: hidden;
  background: var(--surface-2);
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.04);
}
.blog-card__img--fallback {
  background: linear-gradient(
    140deg,
    var(--surface-2),
    color-mix(in srgb, var(--brand) 18%, var(--surface-2)) 55%,
    var(--surface-2)
  );
}
.blog-card__body {
  padding: 1.25rem 1.35rem;
}
.blog-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.blog-card__title a {
  color: var(--text);
  text-decoration: none;
}
.blog-card__title a:hover {
  color: var(--accent-2);
}
.blog-card__excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  color: #fff;
  padding: 3rem 1.35rem;
}
.cta-band__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band__title {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-band__text {
  margin: 0;
  opacity: 0.9;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
  padding: 2.75rem 1.35rem 1.5rem;
}
.site-footer__grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 2.5rem;
}
@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
.site-footer__tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 22rem;
}
.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__links li {
  margin-bottom: 0.45rem;
}
.site-footer__links a {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
}
.site-footer__links a:hover {
  color: var(--accent-2);
}
.footer-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  text-decoration: none !important;
}
.footer-cta:hover {
  filter: brightness(1.08);
}
.site-footer__bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Inner pages */
.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-hero {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}
.page-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
}
.page-hero .page-title {
  margin-bottom: 0.35rem;
}
.page-hero .meta {
  margin: 0;
  font-size: 1.05rem;
}
.prose {
  max-width: 720px;
}
.prose--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.prose .lead {
  font-size: 1.15rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav-cta {
    width: 100%;
    text-align: center;
    order: 10;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--surface-2);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.alert-success {
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
  border: 1px solid color-mix(in srgb, #22c55e 32%, var(--border));
}
.alert-error {
  background: color-mix(in srgb, #ef4444 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #ef4444 28%, var(--border));
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
}
.chip[aria-current='true'],
.chip:hover {
  border-color: var(--brand);
  color: var(--accent-2);
  text-decoration: none;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.split-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split-hero {
    grid-template-columns: 1fr 1fr;
  }
}
.split-hero img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-address {
  margin: 1.35rem 0 0.85rem;
  line-height: 1.55;
}
.contact-map {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  max-height: 320px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}
.contact-map-link {
  margin: 0.65rem 0 0;
}
.contact-map-link a {
  font-weight: 600;
}

.contact-turnstile {
  margin: 0.35rem 0 0.75rem;
}
.contact-turnstile .cf-turnstile {
  display: inline-block;
}

/* ——— Blog index — centered hub ——— */
.blog-hub {
  padding: 0 0 4rem;
  background: var(--bg);
}

.blog-hub__wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 0;
  box-sizing: content-box;
}

.blog-hub__hero {
  text-align: center;
  padding: 2.75rem 0 1.5rem;
}

.blog-hub__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-hub__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.blog-hub__subtitle {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.blog-hub__subtitle a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.blog-hub__subtitle a:hover {
  text-decoration: underline;
}

.blog-hub__topics {
  margin: 0 0 2.5rem;
  padding: 0.35rem 0;
}

.blog-hub__topics-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

.blog-hub__topic {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  max-width: 100%;
}
.blog-hub__topic:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  text-decoration: none;
}
.blog-hub__topic.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent);
}

.blog-hub__spotlight {
  margin: 0 auto 2.75rem;
}

.blog-hub__spotlight-visual {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 1.65rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.blog-hub__spotlight-visual img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.blog-hub__spotlight:hover .blog-hub__spotlight-visual img {
  transform: scale(1.02);
}

.blog-hub__spotlight-placeholder {
  aspect-ratio: 21 / 9;
  min-height: 200px;
  background: linear-gradient(
    145deg,
    var(--surface-2),
    color-mix(in srgb, var(--brand) 18%, var(--surface-2))
  );
}

.blog-hub__spotlight-copy {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.blog-hub__tag {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  text-decoration: none;
}
.blog-hub__tag:hover {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  text-decoration: none;
}

.blog-hub__tag--sm {
  font-size: 0.68rem;
  padding: 0.18rem 0.65rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.blog-hub__spotlight-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.blog-hub__spotlight-title a {
  color: var(--text);
  text-decoration: none;
}
.blog-hub__spotlight-title a:hover {
  color: var(--brand);
}

.blog-hub__spotlight-lead {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.blog-hub__spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-hub__link {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.blog-hub__link:hover {
  text-decoration: underline;
}

.blog-hub__section-label {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-hub__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .blog-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-hub__card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-hub__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-hub__card-visual {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.blog-hub__card-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.blog-hub__card:hover .blog-hub__card-visual img {
  transform: scale(1.04);
}

.blog-hub__card-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    160deg,
    var(--surface-2),
    color-mix(in srgb, var(--brand) 14%, var(--surface-2))
  );
}

.blog-hub__card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}

.blog-hub__card-title {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.blog-hub__card-title a {
  color: var(--text);
  text-decoration: none;
}
.blog-hub__card-title a:hover {
  color: var(--brand);
}

.blog-hub__card-excerpt {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 28rem;
}

.blog-hub__card-foot {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.blog-hub__card-foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.blog-hub__card-foot a:hover {
  text-decoration: underline;
}

.blog-hub__empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface) 85%, var(--bg));
}

.blog-hub__empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.blog-hub__empty-text {
  margin: 0;
  color: var(--muted);
}
.blog-hub__empty-text a {
  color: var(--brand);
  font-weight: 600;
}

.blog-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
}
.blog-pill:hover {
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
  text-decoration: none;
}

/* ——— Blog article (reading experience) ——— */
.article-page {
  padding-bottom: 3rem;
  background: var(--bg);
}

.article-page__header {
  border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.article-breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.article-breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.article-page__hero-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 0;
}

.article-page__hero {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.article-page__hero img {
  width: 100%;
  max-height: min(70vh, 520px);
  object-fit: cover;
}

.article-page__intro {
  padding: 1.5rem 1.35rem 2.25rem;
}

.article-page__intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.article-page__title {
  margin: 0.75rem 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-page__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-page__time {
  font-weight: 500;
}

.article-page__dot {
  opacity: 0.45;
}

.article-page__deck {
  margin: 1.35rem 0 0;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
}

.article-page__body-wrap {
  padding: 2rem 1.35rem 0;
}

.article-page--cover .article-page__body-wrap {
  padding-top: 2.35rem;
}

.article-related {
  padding: 2.5rem 0 3.25rem;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}
.article-related__title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-detail__cta {
  margin-top: 1.75rem;
}

.article-page__body {
  max-width: 720px;
  margin: 0 auto;
}

.article-prose {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--text);
}

.article-prose p {
  margin: 0 0 1.25rem;
}

.article-prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article-prose li {
  margin-bottom: 0.4rem;
}

.article-prose a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  text-decoration-thickness: 2px;
}

.article-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--muted);
}

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.article-page__footer {
  margin-top: 3rem;
  padding: 1.75rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.article-page__footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.article-page__back {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.article-page__back:hover {
  color: var(--brand);
}

.article-page__cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  text-decoration: none !important;
}
.article-page__cta:hover {
  filter: brightness(1.06);
}

/* ——— About page ——— */
.about-page__flash {
  max-width: 1160px;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.about-page__flash--ok {
  background: color-mix(in srgb, #22c55e 12%, var(--surface));
  border-color: color-mix(in srgb, #22c55e 28%, var(--border));
  color: var(--text);
}

/* Shared full-width image hero (About, Home, Contact, Services, Blog, …) */
.cover-hero {
  position: relative;
  min-height: clamp(280px, 42vw, 460px);
  background: var(--surface-2);
}
.cover-hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cover-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cover-hero__visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 22%, var(--surface-2)));
}
.cover-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.72) 100%);
}
:root[data-theme='dark'] .cover-hero__overlay {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.82) 100%);
}
.cover-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.25rem 1.35rem 2.5rem;
  width: 100%;
}
.cover-hero__breadcrumb {
  font-size: 0.84rem;
  margin: 0 0 0.65rem;
  color: rgba(248, 250, 252, 0.9);
}
.cover-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}
.cover-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.cover-hero__breadcrumb-sep {
  opacity: 0.45;
  margin: 0 0.4rem;
  user-select: none;
}
.cover-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.cover-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  max-width: min(48rem, 100%);
}
.cover-hero__meta {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.88);
}
.cover-hero__meta .cover-hero__time {
  font-weight: 500;
}
.cover-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.92);
}
.cover-hero__lead--rich a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cover-hero__lead--rich a:hover {
  text-decoration-thickness: 2px;
}
.cover-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.cover-hero .btn-primary {
  background: #fff;
  color: #312e81;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.cover-hero .btn-primary:hover {
  filter: brightness(1.05);
}
.cover-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cover-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.about-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.35rem 3.25rem;
}
.about-section-title {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.about-section-title--center {
  text-align: center;
  margin-bottom: 1.35rem;
}

.about-story__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .about-story__grid {
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 3rem;
  }
}
.about-story__text p {
  margin: 0 0 1rem;
  color: var(--text);
}
.about-story__figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.about-story__figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.about-story__figure-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--brand-2) 18%, var(--surface-2)));
}

.about-milestone {
  margin: 3rem 0;
}
.about-milestone__card {
  border-radius: 18px;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-milestone__stat {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-milestone__label {
  margin: 0.25rem 0 0.85rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.about-milestone__copy {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.about-values__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.about-values__list li {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.55;
}
.about-values__list strong {
  color: var(--text);
}

.about-cms {
  margin: 3rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.about-cms__prose {
  margin: 0 auto;
}

.about-cta {
  margin-top: 3rem;
}
.about-cta__box {
  border-radius: 18px;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.about-cta__text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.about-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none !important;
}
.about-cta__btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
}
.about-cta__btn--primary:hover {
  filter: brightness(1.07);
}
.about-cta__btn--ghost {
  background: transparent;
  color: var(--accent-2) !important;
  border: 2px solid var(--border);
}
.about-cta__btn--ghost:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

body.about-modal-open {
  overflow: hidden;
}

.about-modal[hidden] {
  display: none !important;
}

.about-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 250;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.about-modal__panel {
  position: relative;
  z-index: 1;
  margin: 6vh auto 2rem;
  max-width: min(440px, calc(100vw - 1.75rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-lg);
  animation: about-modal-in 0.22s ease-out;
}

@keyframes about-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.about-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-modal__close:hover {
  background: var(--surface-2);
}

.about-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  padding-right: 2rem;
}
.about-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-modal__alert {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.about-modal__alert--err {
  background: color-mix(in srgb, #f43f5e 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #f43f5e 28%, var(--border));
  color: var(--text);
}

.about-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about-modal__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.about-modal__input,
.about-modal__textarea {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.about-modal__textarea {
  resize: vertical;
  min-height: 6rem;
}
.about-modal__turnstile {
  min-height: 65px;
}
.about-modal__turnstile iframe {
  border-radius: 8px;
}
.about-modal__submit {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.about-modal__submit:hover {
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  .about-wrap {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .about-page__flash {
    margin: 0 1.1rem;
  }
}
