/* ============================================================
   OBSIDIAN LUXE — Page-Specific Styles
   Unique styles for individual pages
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════════════════════════════ */

/* Hero */
.home-hero__content {
  max-width: 720px;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 18px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-violet-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-xl);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.15);
}

.home-hero__badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet-glow);
  animation: pulse 2s infinite;
}

.home-hero__title {
  font-size: var(--fs-hero);
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

.home-hero__title .highlight {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__desc {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}

.home-hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.home-hero__stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.home-hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--accent-violet-light);
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.home-hero__stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .home-hero__badge {
    margin-bottom: var(--space-md);
    font-size: 10.5px;
    padding: 5px 12px;
  }

  .home-hero__title {
    font-size: clamp(1.7rem, 6vw, 2.35rem) !important;
    line-height: 1.2 !important;
    margin-bottom: var(--space-md) !important;
    word-break: break-word;
  }

  .home-hero__desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-xl) !important;
    max-width: 100%;
  }

  .home-hero__buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: var(--space-xl);
  }

  .home-hero__buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
  }

  .home-hero__stat-number {
    font-size: 1.45rem;
  }

  .home-hero__stat-label {
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .home-hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .home-hero__stat-number {
    font-size: 1.3rem;
  }

  .home-hero__stat-label {
    font-size: 10px;
  }
}

/* Visual element on the right */
.home-hero__visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  pointer-events: none;
}

.home-hero__visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 8s infinite ease-in-out;
}

.home-hero__visual-orb--1 {
  width: 400px;
  height: 400px;
  background: var(--accent-violet);
  top: 20%;
  right: 10%;
}

.home-hero__visual-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  bottom: 20%;
  right: 30%;
  animation-delay: 3s;
}

.home-hero__visual-orb--3 {
  width: 200px;
  height: 200px;
  background: var(--accent-indigo);
  top: 40%;
  right: 40%;
  animation-delay: 5s;
}

/* Problems Section */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.problem-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.problem-card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(124, 58, 237, 0.06);
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  flex-shrink: 0;
}

.problem-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-violet-light);
  stroke-width: 1.5;
}

.problem-card__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
}

.problem-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Case Study */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.case-study__image {
  width: 100%;
  height: 400px;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study__gauge-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study__gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.case-study__gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 8;
}

.case-study__gauge-fill {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 2.0s var(--ease-out);
}

.reveal.is-visible .case-study__gauge-fill {
  stroke-dashoffset: 6; /* 98% filled */
}

.case-study__gauge-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-study__gauge-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--accent-gold);
  line-height: 1;
}

.case-study__gauge-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Floating Badges */
.case-study__floating-badge {
  position: absolute;
  background: var(--glass-bg-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.case-study__floating-badge--1 {
  top: var(--space-2xl);
  left: var(--space-2xl);
  animation: floatUp 6s infinite ease-in-out;
}

.case-study__floating-badge--2 {
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  animation: floatDown 6s infinite ease-in-out;
  animation-delay: 1.5s;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.case-study__badge-info {
  display: flex;
  flex-direction: column;
}

.case-study__badge-title {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-study__badge-val {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.case-study__badge-val .trend {
  color: var(--success);
  font-size: 11px;
}

.case-study__badge-icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent-gold);
  stroke-width: 1.5;
}

.case-study__floating-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.case-study__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-md);
}

.case-study__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.case-study-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.case-study__desc {
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
}

.case-study__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.case-study__metric {
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.case-study__metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--accent-gold);
}

.case-study__metric-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════════
   SERVICES / INDUSTRIES PARENT
   ══════════════════════════════════════════════════════════════ */

.page-hero {
  padding-top: 140px;
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: var(--z-behind);
}

.page-hero__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.page-hero__desc {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}



/* ── Interactive Solutions Matcher (Services Parent) ─────── */
.solution-matcher {
  background: var(--glass-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  margin-top: var(--space-xl);
}

.solution-matcher__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.solution-matcher__tab-btn {
  padding: 12px 26px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.solution-matcher__tab-btn:hover {
  color: var(--text-white);
  background: rgba(124, 58, 237, 0.12);
}

.solution-matcher__tab-btn.is-active {
  color: #ffffff;
  background: var(--gradient-violet);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.solution-matcher__content {
  display: none;
}

.solution-matcher__content.is-active {
  display: block;
  animation: fadeIn 0.4s var(--ease-out);
}

.solution-matcher__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
}

.solution-matcher__graphic {
  height: 240px;
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.solution-matcher__graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.solution-matcher__graphic-badge {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: var(--accent-violet-light);
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background-color: rgba(15, 23, 42, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 58, 237, 0.25);
  z-index: 1;
}

.comparison-table tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

.comparison-table .check {
  color: var(--accent-emerald-light);
}


/* ══════════════════════════════════════════════════════════════
   SERVICE / INDUSTRY DETAIL (CHILD)
   ══════════════════════════════════════════════════════════════ */

.detail-hero {
  padding-top: 140px;
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: var(--z-behind);
}

.detail-hero__content {
  max-width: 800px;
}

.detail-hero__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.detail-hero__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-violet-light);
  stroke-width: 1.75;
}

.detail-hero__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.detail-hero__desc {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 640px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Benefits Split */
.benefits-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.benefits-split__image {
  width: 100%;
  height: 450px;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.benefits-split__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.benefit-item__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.benefit-item__check svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-emerald-light);
  stroke-width: 2.2;
}

.benefit-item__title {
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  margin-bottom: 2px;
}

.benefit-item__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Related Cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ── Layer Configurator (Interactive Tabs) ───────────────── */
.layer-configurator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.layer-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.layer-item {
  width: 100%;
  text-align: left;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.layer-item:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
}

.layer-item.is-active {
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.layer-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.layer-item__num {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--accent-violet-light);
}

.layer-item__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-white);
}

.layer-item__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  margin: 0;
}

.layer-visuals {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  min-height: 400px;
  overflow: hidden;
}

.layer-panel {
  display: none;
  animation: fadeIn 0.3s var(--ease-out);
}

.layer-panel.is-active {
  display: block;
}

/* ── Detail Estimator ─────────────────────────────────────── */
/* ── Detail Estimator ─────────────────────────────────────── */
.detail-estimator {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  margin-top: var(--space-2xl);
  box-sizing: border-box;
  width: 100%;
}

.detail-estimator__banner {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.detail-estimator__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.estimator-output__card {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.estimator-output__val {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: var(--fw-bold);
  color: var(--accent-violet-light);
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
  word-break: break-word;
}

.estimator-output__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.estimator-output__time {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  margin-top: var(--space-xs);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-story__image {
  width: 100%;
  height: 450px;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.about-story__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 8px);
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 10px var(--accent-violet-glow);
  border: 3px solid var(--primary-dark);
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--accent-violet-light);
  margin-bottom: var(--space-xs);
}

.timeline__content h4 {
  margin-bottom: var(--space-xs);
}

.timeline__content p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* Certifications */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.cert-card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(124, 58, 237, 0.08);
}

.cert-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cert-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-violet-light);
  stroke-width: 1.5;
}

.cert-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--text-white);
}

.cert-card__org {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.contact-card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(124, 58, 237, 0.06);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-violet-light);
  stroke-width: 1.5;
}

.contact-card__title {
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
  color: var(--text-white);
}

.contact-card__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.contact-card__text a {
  color: var(--accent-violet-light);
  transition: color var(--duration-fast);
}

.contact-card__text a:hover {
  color: #ffffff;
}

.contact-form-card,
.contact-card,
.contact-faq-card {
  padding: var(--space-2xl);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contact-grid,
  #consultation-form .grid--2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-2xl) !important;
  }

  .contact-form-card,
  .contact-card,
  .contact-faq-card {
    padding: var(--space-lg) !important;
  }

  .contact-form .grid--2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   BLOG LISTING
   ══════════════════════════════════════════════════════════════ */

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}

.blog-featured:hover {
  border-color: var(--glass-border-hover);
}

.blog-featured__image {
  height: 100%;
  min-height: 350px;
  background: var(--gradient-card);
  position: relative;
}

.blog-featured__body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__image {
    min-height: 200px;
  }
}


/* ══════════════════════════════════════════════════════════════
   SINGLE BLOG POST
   ══════════════════════════════════════════════════════════════ */

.post-layout,
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .post-layout,
  .post-grid {
    grid-template-columns: 1fr 310px;
    gap: var(--space-3xl);
  }
}

.post-content,
.prose,
article {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

.clean-table-wrapper,
.table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  margin: var(--space-xl) 0 !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: var(--glass-bg);
  box-sizing: border-box !important;
}

.clean-table,
.prose table,
article table,
.card:not(.comparison-card) table,
div[style*="overflow-x: auto"] table {
  width: 100% !important;
  min-width: 580px !important;
  border-collapse: collapse;
  text-align: left;
}

.clean-table th,
.clean-table td {
  padding: 12px 16px !important;
  white-space: normal !important;
}

.post-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.post-content h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.post-content p {
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.post-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
}

.post-content ul li {
  list-style: disc;
}

.post-content ol li {
  list-style: decimal;
}

.post-content ul li::marker,
.post-content ol li::marker {
  color: var(--accent-violet-light);
}

.post-content blockquote {
  border-left: 3px solid var(--accent-violet);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--glass-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.08);
}

.post-content code {
  background: var(--tertiary-dark);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--accent-violet-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.post-content pre {
  background: var(--secondary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.post-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.post-toc__title {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--accent-violet-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.post-toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.post-toc__link {
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
}

.post-toc__link:hover,
.post-toc__link.is-active {
  color: #ffffff;
  border-left-color: var(--accent-violet);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3xl);
}

.author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-violet-glow);
  flex-shrink: 0;
}

.author-bio__name {
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.author-bio__role {
  font-size: var(--fs-small);
  color: var(--accent-cyan-light);
  margin-bottom: var(--space-sm);
}

.author-bio__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Share Buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.share-bar__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

.share-bar__buttons {
  display: flex;
  gap: var(--space-xs);
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition-base);
}

.share-btn:hover {
  border-color: var(--accent-violet);
  color: #ffffff;
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* Newsletter CTA in Blog */
.newsletter-cta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, var(--secondary-dark) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}

.newsletter-cta__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.newsletter-cta__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-cta__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-cta__form input {
  flex: 1;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  .detail-estimator {
    padding: var(--space-2xl);
  }
  .detail-estimator__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .estimator-output__card {
    padding: var(--space-2xl);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .detail-estimator__banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  /* Page Heroes - Ensure zero vertical cut-off */
  .hero,
  .hero--home,
  .hero--luxe,
  .hero--inner,
  .hero--sm,
  .page-hero,
  .detail-hero {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    padding-top: 100px !important;
    padding-bottom: var(--space-2xl) !important;
    overflow: visible !important;
  }

  .detail-hero__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
  }

  .detail-hero__icon svg {
    width: 28px;
    height: 28px;
  }

  .hero__title,
  .detail-hero__title,
  .page-hero__title {
    font-size: clamp(1.6rem, 5vw, 2.25rem) !important;
    line-height: 1.25 !important;
    margin-bottom: var(--space-md) !important;
    word-break: break-word;
  }

  .hero__desc,
  .hero__subtitle,
  .detail-hero__desc,
  .page-hero__desc {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-xl) !important;
  }

  /* Benefits Split & Case Studies */
  .benefits-split,
  .case-study,
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .benefits-split__image,
  .about-story__image {
    height: 240px;
  }

  .case-study__image {
    height: 280px;
  }

  .case-study__gauge-container {
    width: 150px;
    height: 150px;
  }

  .case-study__gauge-num {
    font-size: 2rem;
  }

  .case-study__floating-badge--1 {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
  }

  .case-study__floating-badge--2 {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .case-study__metrics {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .case-study .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-form-wrapper {
    padding: var(--space-xl);
  }

  .contact-card {
    padding: var(--space-lg);
  }

  .contact-map {
    height: 200px;
    margin-top: var(--space-md);
  }

  /* Blog & Post */
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured__image {
    min-height: 180px;
    height: 180px;
  }

  .blog-featured__body {
    padding: var(--space-xl);
  }

  .blog-filters {
    gap: 6px;
    margin-bottom: var(--space-xl);
  }

  .post-hero-container {
    max-width: 100%;
    padding: 0;
  }

  .post-featured-image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .post-featured-image img {
    height: 220px !important;
  }

  .post-content.card {
    padding: var(--space-lg) !important;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .author-card__avatar {
    margin: 0 auto;
  }

  .article-cta {
    padding: var(--space-lg) !important;
    margin: var(--space-2xl) 0 !important;
  }

  .article-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .article-cta__actions .btn {
    width: 100%;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .post-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: var(--space-xl);
  }

  .share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .newsletter-cta {
    padding: var(--space-xl);
  }

  .newsletter-cta__form {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .newsletter-cta__form input,
  .newsletter-cta__form .btn {
    width: 100%;
  }

  /* About Page */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .timeline {
    padding-left: var(--space-2xl);
  }

  .timeline__item {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .cert-grid {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .cert-card {
    width: 100%;
    padding: var(--space-md);
  }

  /* Interactive Widgets */
  .solution-matcher {
    padding: var(--space-xl);
    margin-top: var(--space-xl);
  }

  .solution-matcher__tabs {
    gap: 8px;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    padding: 8px;
  }

  .solution-matcher__tab-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .solution-matcher__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .solution-matcher__graphic {
    height: 180px;
    padding: var(--space-md);
  }

  .solution-matcher__graphic-badge {
    font-size: 1.25rem;
    text-align: center;
  }

  .solution-matcher .flex {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .solution-matcher .flex .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .solution-matcher .flex span {
    text-align: center;
    display: block;
  }

  .layer-configurator {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .layer-item {
    padding: var(--space-lg);
  }

  .layer-visuals {
    height: auto;
    min-height: 260px;
  }

  .layer-panel {
    position: relative;
    inset: auto;
    padding: var(--space-xl);
  }

  .layer-panel:not(.is-active) {
    display: none;
  }

  .detail-estimator {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
  }

  .detail-estimator__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .estimator-output__card {
    padding: var(--space-xl) var(--space-lg);
    max-width: 100%;
  }

  .estimator-output__val {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
  }

  .detail-estimator__banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 12px 14px;
  }

  .roi-card__control {
    gap: var(--space-lg);
  }

  .form-select {
    font-size: 15px;
    padding: 12px 14px;
    padding-right: 36px;
    max-width: 100%;
    text-overflow: ellipsis;
  }

  /* ── Case Study Child Pages Responsive Rules ──────────── */
  .case-study-hero__title,
  .hero--sm .section-header__title {
    font-size: clamp(1.55rem, 5.5vw, 2.15rem) !important;
    line-height: 1.22 !important;
    margin-bottom: var(--space-md) !important;
    word-break: break-word;
  }

  .hero--sm .section-header__desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-xl) !important;
  }

  .hero--sm .grid--3 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card.stat {
    padding: var(--space-lg) !important;
    text-align: center;
  }

  .card.stat .stat__number {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  .card.stat .stat__label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  /* Comparison / Architecture Table */
  .section--dark .card div[style*="overflow-x: auto"],
  .card div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    margin: 0 !important;
  }

  .section--dark .card table,
  .card table {
    min-width: 480px !important;
  }

  .section--dark .card table th,
  .section--dark .card table td,
  .card table th,
  .card table td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }

  /* Case study split cards and bottlenecks */
  .section .grid--2 .card,
  .section .card[style*="padding: var(--space-2xl)"],
  .section .card[style*="padding: var(--space-xl)"] {
    padding: var(--space-lg) !important;
  }

  /* Testimonial on Case Study */
  .section--glow .testimonial,
  .testimonial {
    padding: var(--space-lg) var(--space-sm) !important;
  }

  .testimonial__quote {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
  }

  /* Case Study Intake Form */
  #consultation-intake .grid--2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  #consultation-intake .contact-info span.text-muted {
    word-break: break-all;
    font-size: 0.9rem;
  }

  #consultation-intake .contact-form .grid--2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  #consultation-intake .card {
    padding: var(--space-lg) !important;
  }

  #consultation-intake .form-input,
  #consultation-intake .form-select,
  #consultation-intake .form-textarea {
    font-size: 16px !important;
  }

  #consultation-intake button[type="submit"] {
    width: 100% !important;
    white-space: normal !important;
    padding: 14px 18px !important;
    text-align: center !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 640px) {
  .post-sidebar {
    grid-template-columns: 1fr;
  }

  .hero--sm .section-header__title {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
  }
}

@media (max-width: 480px) {
  .detail-estimator {
    padding: var(--space-lg) var(--space-md);
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
  }

  .estimator-output__card {
    padding: var(--space-lg) var(--space-md);
  }

  .estimator-output__val {
    font-size: 2.15rem;
  }

  .detail-estimator__banner {
    padding: 10px 12px;
  }

  .roi-card__label {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .roi-card__label span {
    font-size: 0.95rem;
  }

  .form-select {
    font-size: 14px;
    padding: 10px 12px;
    padding-right: 32px;
  }
}
