/* ============================================================
   NON-CRITICAL STYLESHEET — Loaded Asynchronously
   Below-the-fold sections: Partners, Disciplines, Works, Blog, FAQ, Footer
============================================================ */

/* ============================================================
   SECTION SHARED PATTERNS
============================================================ */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.studio-section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.studio-section-header {
  margin-bottom: 3.5rem;
}

/* ============================================================
   2. PARTNERS BAR
============================================================ */
.studio-partners {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
}

.proof-strip {
  width: 100%;
}

.proof-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.proof-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.proof-metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}

.proof-metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.proof-metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

@media (max-width: 1024px) {
  .proof-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .proof-metric-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .studio-partners {
    padding: 2rem 0;
  }
  .proof-metrics {
    gap: 2rem 1rem;
    text-align: center;
  }
  .proof-metric {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .proof-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.75rem;
  }
  .proof-metric-value {
    font-size: 1.75rem;
  }
  .proof-metric-label {
    font-size: 0.6rem;
  }
}

/* ============================================================
   3. DISCIPLINES (Asymmetric Sticky + Scrollable Table)
============================================================ */
.studio-disciplines {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
/* BENTO GRID HEADER */
.services-bento-header {
  margin-bottom: 4rem;
  max-width: 600px;
}
.bento-header-lead {
  font-size: 1.1rem;
  color: var(--text-mute);
  line-height: 1.6;
  margin-top: 1rem;
}

/* BENTO GRID */
.services-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  min-height: 380px;
}

/* Grid Spans */
.bento-card--webdesign { grid-column: span 7; }
.bento-card--seo { grid-column: span 5; }
.bento-card--geo { grid-column: span 5; }
.bento-card--aio { grid-column: span 7; }
.bento-card--automasjon { grid-column: span 7; }
.bento-card--restaurant { grid-column: span 5; }

.bento-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 0;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%);
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.bento-card:hover::before { opacity: 1; }

.bento-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bento-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text-mute) 30%, transparent);
  transition: all 0.4s ease;
}
.bento-card:hover .bento-num {
  -webkit-text-stroke: 1px var(--primary);
  color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-faint);
  transition: all 0.4s ease;
}
.bento-card:hover .bento-icon {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.bento-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bento-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bento-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-main);
}
.bento-desc {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.5;
  max-width: 80%;
  margin: 0;
}

.bento-arrow {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  color: var(--text-main);
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}
.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   4. STUDIO CASES (Horizontal Scroll Strip)
============================================================ */
.studio-cases-horizontal {
  position: relative;
  background: var(--bg-dark);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cases-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.cases-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0 var(--section-padding) 4rem var(--section-padding);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cases-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.case-card-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 85vw; /* Almost full width on mobile */
  max-width: 900px;
}
@media (min-width: 1024px) {
  .case-card-link {
    flex: 0 0 60vw;
  }
}

.case-card-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}
.case-card-link:hover .case-card-horizontal {
  transform: translateY(-10px);
}

.case-card-visual {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect ratio */
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.case-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card-link:hover .case-card-img {
  transform: scale(1.05);
}

.case-card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0.5rem;
}

.case-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.case-card-metric-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.25rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Filler card */
.case-card-horizontal--filler {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 400px;
}
.filler-text {
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

/* ============================================================
   4b. STUDIO CASES — Cinematic Editorial Case List
============================================================ */
.studio-cases-editorial {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-top: clamp(4.5rem, 8vw, 8rem);
  overflow: hidden;
}

.cases-editorial-header {
  margin-bottom: 3rem;
}

.cases-editorial-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cases-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cases-view-all-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  gap: 0.75rem;
}

/* ── LIST WRAPPER ── */
.cases-editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

/* ── EACH ROW ── */
.case-editorial-row {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Background gradient reveal on hover */
.case-row-bg-reveal {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.case-editorial-row:hover .case-row-bg-reveal {
  opacity: 1;
}

.case-row-bg-gradient {
  position: absolute;
  inset: 0;
}

/* Per-case unique gradients */
.case-row-bg--mir {
  background: linear-gradient(105deg, color-mix(in srgb, #818cf8 6%, transparent) 0%, color-mix(in srgb, #818cf8 2%, transparent) 40%, transparent 70%);
}
.case-row-bg--solvhandel {
  background: linear-gradient(105deg, color-mix(in srgb, #fbbf24 6%, transparent) 0%, color-mix(in srgb, #fbbf24 2%, transparent) 40%, transparent 70%);
}
.case-row-bg--bruktprotokoll {
  background: linear-gradient(105deg, color-mix(in srgb, #34d399 6%, transparent) 0%, color-mix(in srgb, #34d399 2%, transparent) 40%, transparent 70%);
}

/* ── ROW INNER LAYOUT ── */
.case-row-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 160px 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-editorial-row:hover .case-row-inner {
  padding-left: calc(var(--container-pad, 2rem) + 0.75rem);
}

/* ── INDEX COL ── */
.case-row-index {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.case-row-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text-main) 25%, transparent);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
}

.case-editorial-row:hover .case-row-num {
  -webkit-text-stroke-color: var(--primary);
}

.case-row-num--faint {
  opacity: 0.3;
  font-size: 2rem;
}

.case-row-category {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  transition: color 0.4s ease;
}

.case-editorial-row:hover .case-row-category {
  color: var(--primary);
}

/* ── TITLE COL ── */
.case-row-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.case-row-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--text-main);
  transition: color 0.4s ease;
}

.case-row-title em {
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: var(--primary);
  font-size: 0.9em;
  transition: color 0.4s ease;
}

.case-row-title--cta {
  color: var(--text-mute);
}
.case-row-title--cta em {
  color: var(--text-faint);
}
.case-editorial-row--cta:hover .case-row-title--cta {
  color: var(--text-main);
}
.case-editorial-row--cta:hover .case-row-title--cta em {
  color: var(--primary);
}

.case-row-desc {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.55;
  margin: 0;
  max-width: 420px;
  transition: color 0.4s ease;
}

.case-editorial-row:hover .case-row-desc {
  color: var(--text-mute);
}

/* ── METRICS COL ── */
.case-row-metrics {
  display: flex;
  gap: 2.5rem;
  flex-shrink: 0;
}

.case-row-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.case-metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--text-mute);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.4s ease;
}

.case-editorial-row:hover .case-metric-value {
  color: var(--text-main);
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  transition: color 0.4s ease;
}

.case-editorial-row:hover .case-metric-label {
  color: var(--primary);
}

/* CTA-row special badge */
.case-row-metrics--cta {
  justify-content: flex-end;
}

.case-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 0.5rem 1rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  transition: all 0.4s ease;
}

.case-cta-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: live-pulse 2s ease-in-out infinite;
}

.case-editorial-row--cta:hover .case-cta-badge {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  border-color: var(--primary);
}

/* ── CTA ARROW ── */
.case-row-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.case-row-cta-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.case-editorial-row:hover .case-row-cta-text {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
}

.case-row-cta-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.case-editorial-row:hover .case-row-cta-arrow {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transform: rotate(-45deg) scale(1.05);
}

/* Light theme overrides */
html[data-theme="light"] .studio-cases-editorial,
html[data-theme="nexora"] .studio-cases-editorial {
  background: var(--bg-dark);
}
html[data-theme="light"] .case-row-bg--mir {
  background: linear-gradient(105deg, color-mix(in srgb, #8d8276 8%, transparent), transparent 60%);
}
html[data-theme="light"] .case-row-bg--solvhandel {
  background: linear-gradient(105deg, color-mix(in srgb, #b08d57 8%, transparent), transparent 60%);
}
html[data-theme="light"] .case-row-bg--bruktprotokoll {
  background: linear-gradient(105deg, color-mix(in srgb, #2d7a6b 8%, transparent), transparent 60%);
}

/* ── RESPONSIVE TABLET ── */
@media (max-width: 1100px) {
  .case-row-inner {
    grid-template-columns: 120px 1fr auto;
    grid-template-rows: auto auto;
  }
  .case-row-cta {
    grid-row: 1;
    grid-column: 3;
  }
  .case-row-metrics {
    grid-column: 2 / -1;
    grid-row: 2;
    gap: 2rem;
    justify-content: flex-start;
  }
  .case-row-metric {
    text-align: left;
  }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {
  .case-row-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .case-row-index {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .case-row-num {
    font-size: 1.5rem;
  }
  .case-row-cta {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
  }
  .case-row-cta-text { display: none; }
  .case-row-cta-arrow {
    width: 40px;
    height: 40px;
  }
  .case-row-title-block {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .case-row-title {
    font-size: 1.5rem;
  }
  .case-row-metrics {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 1.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .case-row-metrics--cta {
    justify-content: flex-start;
  }
  .case-editorial-row:hover .case-row-inner {
    padding-left: 1.25rem;
  }
  .cases-editorial-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.clients-header-lead {
  font-size: 1.15rem;
  color: var(--text-mute);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 1rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 4rem;
}

.client-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 360px;
}

.client-logo-wrapper {
  width: 100%;
  max-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-faint);
  opacity: 0.45;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-card:hover {
  background-color: var(--bg-accent-section);
  z-index: 1;
}

.client-logo-card:hover .client-logo-wrapper {
  opacity: 1;
  color: var(--primary);
  transform: scale(1.02);
}

.case-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
  transition: background-color 0.5s ease;
}

.client-logo-card:hover .case-card-divider {
  background-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.case-card-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  text-align: left;
}

.case-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85rem;
}

.case-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color 0.5s ease;
}

.case-stat-lbl--success {
  color: var(--primary);
}

.case-stat-val {
  color: var(--text-mute);
  font-weight: 500;
  transition: color 0.5s ease;
}

.case-stat-val--success {
  color: var(--text-main);
  font-weight: 700;
}

.client-logo-card:hover .case-stat-val {
  color: var(--text-main);
}

.case-card-link-txt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

.client-logo-card:hover .case-card-link-txt {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-logo-card {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .client-logo-card {
    padding: 2.5rem 1rem;
  }
}

/* ============================================================
   5. STUDIO PROCESS (Asymmetric Bento Path)
============================================================ */
.studio-process-bento {
  padding: clamp(4.5rem, 9vw, 9rem) 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Blueprint Grid Background Pattern */
.studio-process-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

html[data-theme="light"] .studio-process-bento::before {
  opacity: 0.05;
}

.process-header-lead {
  font-size: 1.15rem;
  color: var(--text-mute);
  max-width: 500px;
  line-height: 1.6;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.process-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.bento-process-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2.5rem 2.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

@supports (backdrop-filter: blur(12px)) {
  .bento-process-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.01);
  }
}
html[data-theme="light"] .bento-process-card {
  background: var(--bg-card);
}

/* Subtle Interactive Dot Grid */
.bento-process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-image 0.6s ease;
}

/* Subtle Corner Glow Overlay */
.bento-process-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--primary-glow);
  border-color: var(--primary);
  z-index: 2;
}

html[data-theme="light"] .bento-process-card:hover {
  box-shadow: 0 15px 30px rgba(28, 27, 26, 0.05), 0 0 20px var(--primary-glow);
}

.bento-process-card:hover::before {
  opacity: 0.25;
  background-image: radial-gradient(var(--primary) 1.2px, transparent 1.2px);
}

.bento-process-card:hover::after {
  opacity: 1;
}

/* Monospace Architectural Corner Marks */
.bento-process-card .corner-mark {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--border);
  opacity: 0.3;
  pointer-events: none;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.bento-process-card .corner-mark--tl { top: -1px; left: -1px; border-bottom: none; border-right: none; }
.bento-process-card .corner-mark--tr { top: -1px; right: -1px; border-bottom: none; border-left: none; }
.bento-process-card .corner-mark--bl { bottom: -1px; left: -1px; border-top: none; border-right: none; }
.bento-process-card .corner-mark--br { bottom: -1px; right: -1px; border-top: none; border-left: none; }

.bento-process-card:hover .corner-mark {
  width: 14px;
  height: 14px;
  opacity: 1;
  border-color: var(--primary);
}

/* Watermark Number in Background - Monospace Architect Style */
.bento-process-bg-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), -webkit-text-stroke 0.6s ease, opacity 0.6s ease;
  opacity: 0.15;
}

.bento-process-card:hover .bento-process-bg-num {
  -webkit-text-stroke: 1px var(--primary);
  transform: translateY(-2px);
  opacity: 0.35;
}

/* Adjust Step 1 to place the watermark between columns on desktop */
@media (min-width: 1025px) {
  .bento-process-card--step1 .bento-process-bg-num {
    right: auto;
    left: 55%;
    top: 1.5rem;
  }
}

.bento-process-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.bento-process-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

/* Monospace Architectural Badge */
.bento-process-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 0.4s ease, color 0.4s ease, background-color 0.4s ease;
}

.bento-process-pill span {
  color: var(--primary);
  margin-right: 0.5rem;
  transition: color 0.4s ease;
}

.bento-process-card:hover .bento-process-pill {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--bg-card);
}

.bento-process-card:hover .bento-process-pill span {
  color: var(--primary-dark);
}

.bento-process-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.bento-process-card:hover .bento-process-title {
  color: var(--primary);
}

.bento-process-desc {
  font-size: 1.15rem;
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 95%;
  transition: color 0.4s ease;
}

.bento-process-card:hover .bento-process-desc {
  color: var(--text-main);
}

/* Bento Process Deliverables Styling */
.bento-process-deliverables {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.deliverables-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.85rem;
  transition: color 0.4s ease;
}

.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

/* For step 3, which is narrower, render as 1 column */
.deliverables--step3 .deliverables-list {
  grid-template-columns: 1fr;
}

.deliverables-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  position: relative;
  padding-left: 1rem;
  line-height: 1.4;
  transition: color 0.4s ease;
}

.deliverables-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.bento-process-card:hover .deliverables-list li {
  color: var(--text-main);
}

.bento-process-card:hover .deliverables-list li::before {
  transform: translateX(2px);
  opacity: 1;
}

.bento-process-card:hover .deliverables-title {
  color: var(--text-main);
}

/* Step 1 desktop layout: 2 columns split */
@media (min-width: 1025px) {
  .bento-process-card--step1 {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }
  .bento-process-card--step1 .bento-process-left-content {
    flex: 1;
    max-width: 50%;
  }
  .bento-process-card--step1 .bento-process-deliverables {
    flex: 1;
    max-width: 40%;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 2.5rem;
  }
}

/* Mobile & Tablet Responsiveness for Deliverables */
@media (max-width: 1024px) {
  .deliverables-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .deliverables-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Asymmetric Grid Placement (Desktop) */
@media (min-width: 1025px) {
  .bento-process-card:nth-child(1) { grid-column: span 12; min-height: auto; }
  .bento-process-card:nth-child(2) { grid-column: span 7; }
  .bento-process-card:nth-child(3) { grid-column: span 5; }
}

/* Mobile Responsiveness (Stacked) */
@media (max-width: 1024px) {
  .process-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .bento-process-card {
    min-height: auto;
    padding: 3rem 2rem;
  }
  
  .bento-process-bg-num {
    font-size: 4.5rem;
    top: 1.5rem;
    right: 2rem;
  }
  
  .bento-process-title {
    font-size: 1.75rem;
  }
  
  .bento-process-desc {
    max-width: 100%;
  }
}

/* ============================================================
   7. BLOG GRID
============================================================ */
.studio-blog {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

/* ============================================================
   FINE-LINE GRID FOR INSIGHTS
============================================================ */
.insights-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: transparent;
  width: 100%;
  margin-top: 3rem;
}
.insight-grid-cell {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 440px;
}
.insight-grid-cell:hover {
  background-color: var(--bg-accent-section);
}
.insight-grid-cell:nth-child(3n) {
  border-right: none;
}
.insight-cell-top {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Abstract Gradient Thumbnail */
.insight-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  opacity: 0.4;
  transition: opacity 0.4s ease, height 0.4s ease;
  z-index: 1;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.insight-grid-cell:hover .insight-visual {
  opacity: 0.8;
  height: 240px;
}

.insight-visual[data-gradient-index="0"] { background: linear-gradient(135deg, rgba(99,102,241,0.15), transparent); }
.insight-visual[data-gradient-index="1"] { background: linear-gradient(135deg, rgba(236,72,153,0.15), transparent); }
.insight-visual[data-gradient-index="2"] { background: linear-gradient(135deg, rgba(16,185,129,0.15), transparent); }

html[data-theme="light"] .insight-visual[data-gradient-index="0"] { background: linear-gradient(135deg, rgba(79,70,229,0.1), transparent); }
html[data-theme="light"] .insight-visual[data-gradient-index="1"] { background: linear-gradient(135deg, rgba(219,39,119,0.1), transparent); }
html[data-theme="light"] .insight-visual[data-gradient-index="2"] { background: linear-gradient(135deg, rgba(5,150,105,0.1), transparent); }

.insight-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.insight-grid-cell:hover .insight-number {
  color: var(--primary);
  opacity: 1;
}
.insight-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.insight-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.insight-readtime {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.insight-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.insight-excerpt {
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.65;
  margin: 0 0 2rem;
}
.insight-cell-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  transition: border-color 0.3s ease;
}
.insight-link-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.insight-arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.insight-grid-cell:hover .insight-title {
  color: var(--primary);
}
.insight-grid-cell:hover .insight-link-label {
  color: var(--primary);
}
.insight-grid-cell:hover .insight-arrow-icon {
  transform: translate(3px, -3px);
  color: var(--primary);
}

/* Responsive Grid Tablet Overrides */
@media (max-width: 1024px) {
  .insights-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-grid-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .insight-grid-cell:nth-child(2n) {
    border-right: none;
  }
}

/* Responsive Grid Mobile Overrides */
@media (max-width: 768px) {
  .insights-grid-modern {
    grid-template-columns: 1fr;
  }
  .insight-grid-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 3rem 2rem;
  }
  .insight-grid-cell:last-child {
    border-bottom: none !important;
  }
}

/* ============================================================
   8. FAQ ACCORDION
============================================================ */
.studio-faqs {
  padding: var(--section-padding);
  background: var(--bg-accent-section);
}

/* Header block */
.faq-editorial-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
  gap: 2rem 4rem;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4rem;
}

.faq-editorial-header .section-eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.faq-editorial-header .studio-section-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.faq-header-lead {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mute);
  max-width: 440px;
  margin: 0;
  padding-top: 2rem;
}

/* Grid of FAQ items */
.faq-editorial-grid {
  width: 100%;
  border-top: 1px solid var(--border);
}

/* Each row */
.faq-editorial-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Summary row */
/* Summary row (Button) */
.faq-editorial-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 1rem;
  cursor: pointer;
  list-style: none;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-editorial-summary::-webkit-details-marker { display: none; }

.faq-editorial-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.4s ease;
  margin: 0;
  border-radius: 0;
}

.faq-editorial-item.is-open {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 5%, transparent), transparent);
  border-radius: 0;
  margin: 0;
  border-bottom-color: var(--border);
  border-left: 2px solid var(--primary);
}

.faq-editorial-item:hover .faq-editorial-summary {
  padding-left: 1.5rem;
}

.faq-editorial-item.is-open .faq-editorial-summary {
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
}

.faq-editorial-item.is-open .faq-question,
.faq-editorial-item:hover .faq-question {
  color: var(--primary);
}

/* Left side: index + question */
.faq-row-left {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  flex: 1;
}

.faq-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  width: 2rem;
  text-align: right;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  transition: color 0.25s ease;
}

/* Toggle icon */
.faq-toggle-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.faq-editorial-item:hover .faq-toggle-icon {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-accent-section);
}

.faq-icon-v {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.faq-editorial-item.is-open .faq-icon-v {
  transform: scaleY(0);
  opacity: 0;
}

.faq-editorial-item.is-open .faq-toggle-icon {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-glow);
}

/* Answer panel (CSS Grid Animation) */
.faq-editorial-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-editorial-item.is-open .faq-editorial-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-editorial-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 0 2.25rem 4.5rem;
}

.faq-answer-inner p {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.8;
  max-width: 640px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-editorial-header {
    grid-template-columns: 1fr;
  }
  .faq-header-lead {
    grid-column: 1;
    grid-row: 3;
    padding-top: 0.5rem;
    max-width: 100%;
  }
  .faq-row-left {
    gap: 1.5rem;
  }
  .faq-index {
    display: none;
  }
  .faq-answer-inner {
    padding-left: 0;
  }
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding-top: 4rem;
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
}

/* Editorial Fine-Line Grid Footer CTA Callout */
.footer-top-cta {
  margin-bottom: 5rem;
}
.footer-cta-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: transparent;
  width: 100%;
}
.grid-cell {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Desktop Cell Placements */
.cell-headline {
  grid-column: span 2;
  justify-content: center;
  align-items: flex-start;
  padding: 3.5rem 3rem;
}
.cell-headline .cta-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.cell-headline .cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 0;
  max-width: 100%;
}

/* Desktop Border Resets */
.cell-email,
.cell-status {
  border-right: none;
}
.cell-phone,
.cell-calendar,
.cell-status {
  border-bottom: none;
}

/* Technical Monospace Cell Labels */
.cell-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

/* Links and typography inside cells */
.cell-main-link-container,
.cell-sub-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cell-sub-link {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cell-email .email-text {
  font-family: var(--font-heading);
  font-size: clamp(1.275rem, 2.3vw, 2.075rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.cell-arrow-icon {
  width: 22px;
  height: 22px;
  color: var(--text-faint);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Interactive hover effects */
.clickable-email-cell {
  cursor: pointer;
}
.clickable-email-cell:hover,
.grid-cell.cell-phone:hover,
.grid-cell.cell-calendar:hover {
  background-color: var(--bg-accent-section);
}
.clickable-email-cell:hover .email-text,
.grid-cell.cell-phone:hover .cell-sub-link,
.grid-cell.cell-calendar:hover .cell-sub-link {
  color: var(--primary);
}
.clickable-email-cell:hover .cell-arrow-icon,
.grid-cell.cell-phone:hover .cell-arrow-icon,
.grid-cell.cell-calendar:hover .cell-arrow-icon {
  transform: translate(3px, -3px);
  color: var(--primary);
}

/* Pulse indicator for capacity */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-mute);
  font-weight: 500;
}

/* Clipboard Feedback Tooltip inside Cell */
.cell-email .cta-copied-feedback {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: var(--text-main);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  white-space: nowrap;
}
.cell-email .cta-copied-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid Tablet Overrides */
@media (max-width: 1024px) {
  .footer-cta-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell-headline {
    grid-column: span 2;
  }
  .cell-email,
  .cell-phone,
  .cell-calendar,
  .cell-status {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .cell-phone,
  .cell-status {
    border-right: none;
  }
  .cell-calendar,
  .cell-status {
    border-bottom: none;
  }
}

/* Responsive Grid Mobile Overrides */
@media (max-width: 768px) {
  .footer-cta-grid-modern {
    grid-template-columns: 1fr;
  }
  .cell-headline {
    grid-column: span 1;
    padding: 3rem 2rem;
  }
  .grid-cell {
    grid-column: span 1 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 2.25rem 2rem;
  }
  .cell-status {
    border-bottom: none !important;
  }
  .cell-label {
    margin-bottom: 1.25rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-logo {
  display: block;
  margin-bottom: 1.25rem;
}

.brand-pitch {
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.operational-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  font-family: var(--font-mono);
  width: fit-content;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  animation: pulseGreen 2s infinite;
}

.footer-links-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-nav a {
  font-size: 0.88rem;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  width: fit-content;
}

.footer-links-nav a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-col-contact p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 0.6rem;
}

.footer-contact-link {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--primary);
}

.footer-addr, .org-nr {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Giant Wordmark */
.footer-giant-wordmark {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
}

.giant-wordmark-svg {
  max-height: 185px;
  width: 100%;
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.08));
  transition: filter 0.8s ease;
}

.footer-giant-wordmark:hover .giant-wordmark-svg {
  filter: drop-shadow(0 0 25px rgba(129, 140, 248, 0.22));
}

html[data-theme="light"] .giant-wordmark-svg {
  filter: none;
}

.giant-text-element {
  font-family: var(--font-heading);
  font-size: 11rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  user-select: none;
  transition: letter-spacing 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              stroke-width 0.4s ease, 
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.giant-text-bg {
  opacity: 0.28;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.giant-text-fg {
  color: transparent;
}

/* Hover Growth & Ring Rippling Animation */
.footer-giant-wordmark:hover .giant-text-element {
  letter-spacing: 0.22em; /* Letters drift and expand like spreading tree branches */
}

.footer-giant-wordmark:hover .giant-text-fg {
  stroke-width: 2px;
}

.footer-giant-wordmark:hover .giant-text-bg {
  opacity: 0.55;
}

/* Base slow animation for tree rings */
.footer-giant-wordmark .ring-grow {
  transform-origin: 60px 60px;
  animation: grow-rings-ripple 12s infinite linear;
}

.footer-giant-wordmark .ring-grow.ring-1 { animation-delay: 0s; }
.footer-giant-wordmark .ring-grow.ring-2 { animation-delay: 2.4s; }
.footer-giant-wordmark .ring-grow.ring-3 { animation-delay: 4.8s; }
.footer-giant-wordmark .ring-grow.ring-4 { animation-delay: 7.2s; }
.footer-giant-wordmark .ring-grow.ring-5 { animation-delay: 9.6s; }

/* Faster ripple on hover */
.footer-giant-wordmark:hover .ring-grow {
  animation: grow-rings-ripple-hover 5s infinite linear;
}

.footer-giant-wordmark:hover .ring-grow.ring-1 { animation-delay: 0s; }
.footer-giant-wordmark:hover .ring-grow.ring-2 { animation-delay: 1s; }
.footer-giant-wordmark:hover .ring-grow.ring-3 { animation-delay: 2s; }
.footer-giant-wordmark:hover .ring-grow.ring-4 { animation-delay: 3s; }
.footer-giant-wordmark:hover .ring-grow.ring-5 { animation-delay: 4s; }

@keyframes grow-rings-ripple {
  0% {
    transform: scale(0.95);
    opacity: 0.08;
  }
  50% {
    opacity: 0.22;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.08;
  }
}

@keyframes grow-rings-ripple-hover {
  0% {
    transform: scale(0.9);
    opacity: 0.22;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.25);
    opacity: 0.12;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.compile-timestamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-left: 0.5rem;
}

/* ============================================================
   STUDIO WORKS / REVIEWS SECTION (Desktop Layout)
============================================================ */
.studio-works {
  padding: var(--section-padding);
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}
.refs-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.refs-rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.refs-rating-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}
.refs-stars {
  color: #ffb700;
  display: flex;
  gap: 0.15rem;
}
.refs-rating-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.refs-col-labels {
  display: grid;
  grid-template-columns: 3rem 12rem 18rem 1fr 10rem;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.refs-col-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.refs-row-list {
  display: flex;
  flex-direction: column;
}
.refs-row-item {
  display: grid;
  grid-template-columns: 3rem 12rem 18rem 1fr 10rem;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, padding 0.3s ease;
  text-decoration: none;
}
.refs-row-link-item:hover {
  background-color: var(--bg-hover);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.refs-cell {
  display: flex;
  align-items: center;
}
.refs-cell--index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-mute);
}
.refs-cell--company {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.refs-company-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.refs-company-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.refs-trans-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  width: 100%;
}
.refs-trans-before, .refs-trans-after {
  display: flex;
  flex-direction: column;
}
.refs-trans-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}
.refs-trans-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mute);
}
.refs-trans-arrow {
  color: var(--primary);
  display: flex;
  align-items: center;
}
.refs-trans-val--after {
  color: var(--primary);
  font-weight: 700;
}
.refs-quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-mute);
  font-style: italic;
  margin: 0;
}
.refs-cell--author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.refs-author-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}
.refs-author-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  background: rgba(0, 180, 100, 0.1);
  color: rgb(0, 180, 100);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ============================================================
   REVIEWS SECTION (Service/Local pages)
============================================================ */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
}

.rating-stars {
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.review-card blockquote p {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.65;
  font-style: italic;
}

.review-card figcaption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.review-card cite {
  color: var(--text-faint);
  font-style: normal;
}

/* ============================================================
   FAQ SECTION (Service/Local pages)
============================================================ */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-accent-section);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-mute);
  max-width: 600px;
  margin-inline: auto;
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-faint);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ============================================================
   9. SUBPAGE HERO & BREADCRUMBS
============================================================ */
.breadcrumb-trail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb-trail a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.25s ease;
}
.breadcrumb-trail a:hover {
  color: var(--primary);
}
.breadcrumb-current {
  color: var(--text-mute);
}

.service-hero, .blog-hero {
  position: relative;
  padding-top: clamp(8rem, 15vh, 11rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  background: var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.service-hero::before, .blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}
html[data-theme="light"] .service-hero::before,
html[data-theme="light"] .blog-hero::before {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.012) 1px, transparent 1px);
}
html[data-theme="nexora"] .service-hero::before,
html[data-theme="nexora"] .blog-hero::before {
  background-image: 
    linear-gradient(rgba(73, 41, 232, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 41, 232, 0.015) 1px, transparent 1px);
}

.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-mute);
  line-height: 1.65;
  max-width: 780px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ============================================================
   10. QUICK SUMMARY BOX (TL;DR)
============================================================ */
.quick-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.25rem 2.5rem;
  margin-bottom: 3.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.quick-summary-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}
.quick-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.quick-summary-box p {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.75;
  margin: 0;
}
.quick-summary-box strong {
  color: var(--text-main);
  font-weight: 600;
}
.quick-summary-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quick-summary-list li {
  font-size: 0.95rem;
  color: var(--text-mute);
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}
.quick-summary-list li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ============================================================
   11. DETAILS SECTION GRID & BENEFITS
============================================================ */
.service-details-section, .local-details-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.details-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.details-text {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.details-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Neighbor and Local Links */
.local-neighbor-link, .local-service-link, .local-wiki-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(129, 140, 248, 0.2);
  transition: all 0.25s ease;
}
.local-neighbor-link:hover, .local-service-link:hover, .local-wiki-link:hover {
  border-bottom-color: var(--primary);
  background: var(--primary-glow);
  padding-inline: 0.2rem;
  border-radius: 4px;
}

/* Benefits card */
.benefits-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.benefits-card.sticky {
  position: sticky;
  top: 120px;
}
.benefits-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.audit-benefits-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.audit-benefits-list li {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.6;
  padding-left: 2rem;
  position: relative;
}
.audit-benefits-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.audit-benefits-list li:hover::before {
  transform: translateX(3px);
}

/* ============================================================
   12. DELIVERABLES / FEATURES GRID
============================================================ */
.features-section {
  padding: var(--section-padding);
  background: var(--bg-accent-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 280px;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   13. CTA SECTION (Unified visual theme callout)
============================================================ */
.cta-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.cta-inner {
  background: var(--bg-footer);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}
.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
html[data-theme="light"] .cta-inner h2,
html[data-theme="nexora"] .cta-inner h2 {
  color: var(--text-main);
}
.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.cta-inner .btn {
  position: relative;
  z-index: 1;
}

/* ============================================================
   14. LOCATIONS DIRECTORY INDEX
============================================================ */
.locations-directory-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
.location-region-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}
.location-region-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.location-count-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}
.location-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.location-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.location-item strong {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}
.location-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.location-links a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.location-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.location-links .separator {
  color: var(--text-faint);
  opacity: 0.5;
  font-size: 0.65rem;
}

/* ============================================================
   15. BLOG LISTINGS & ARTICLE STYLING
============================================================ */
.blog-directory-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.blog-card-meta-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.blog-body-section {
  padding: var(--section-padding);
  background: var(--bg-dark);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.post-meta strong {
  color: var(--text-mute);
  font-weight: 600;
}
.blog-rich-text {
  max-width: 720px;
  margin-inline: auto;
}
.blog-rich-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.blog-rich-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.blog-rich-text p {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.blog-rich-text ul, .blog-rich-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}
.blog-rich-text li {
  font-size: 1.05rem;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 0.65rem;
}
.blog-rich-text blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.75;
  background: var(--bg-accent-section);
  border-radius: 0 1rem 1rem 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}
.blog-rich-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(129, 140, 248, 0.2);
  transition: all 0.2s ease;
}
.blog-rich-text a:hover {
  border-bottom-color: var(--primary);
  background: var(--primary-glow);
  padding-inline: 0.15rem;
  border-radius: 4px;
}

/* Citations & references */
.blog-citations-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  margin-top: 4.5rem;
  max-width: 720px;
  margin-inline: auto;
}
.blog-citations-box h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.blog-citations-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-citations-box li {
  font-size: 0.95rem;
}
.citation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}
.citation-link:hover {
  color: var(--primary);
}
.citation-link svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* In-article CTA box */
.blog-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-top: 4.5rem;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.blog-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.blog-cta-box p {
  font-size: 0.98rem;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.blog-cta-box .btn {
  position: relative;
  z-index: 1;
}

/* ============================================================
   16. MOBILE & TABLET LAYOUT OVERRIDES (SUBPAGES)
============================================================ */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .benefits-card.sticky {
    position: static;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 2.25rem 1.75rem;
    min-height: auto;
  }
  .quick-summary-box {
    padding: 1.75rem;
    margin-bottom: 2.5rem;
  }
  .location-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .location-region-card {
    padding-bottom: 2rem;
  }
  .location-region-card h2 {
    margin-bottom: 1.5rem;
  }
  .post-meta {
    gap: 1rem;
  }
  .blog-cta-box {
    padding: 2rem 1.5rem;
  }
  .cta-inner {
    padding: 3rem 1.75rem;
  }
}

/* ============================================================
   RESPONSIVE: TABLET
============================================================ */
@media (max-width: 1024px) {
  .services-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card {
    grid-column: span 1 !important;
  }

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

/* ============================================================
   RESPONSIVE: MOBILE
============================================================ */
@media (max-width: 768px) {
  .discipline-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 2rem 0;
  }

  .discipline-num {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
  }

  .discipline-meta {
    gap: 0.25rem;
  }

  .discipline-meta h3 {
    font-size: 1.35rem;
  }

  .discipline-desc {
    display: block !important;
  }

  .discipline-desc p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-mute);
  }

  .discipline-arrow {
    display: none;
  }

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

  .partners-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .partners-list {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .disciplines-sticky-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* ============================================================
   PROJECT CONFIGURATOR — HERO TRIGGER & MODAL
   ============================================================ */

/* Hero trigger button */
.hero-configurator-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.btn-configurator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.btn-configurator svg:first-child {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}
.btn-configurator-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.btn-configurator:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-configurator:hover .btn-configurator-arrow {
  transform: translateX(3px);
}
html[data-theme="light"] .btn-configurator,
html[data-theme="nexora"] .btn-configurator {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-main);
}
html[data-theme="light"] .btn-configurator:hover,
html[data-theme="nexora"] .btn-configurator:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
}
.configurator-hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Modal overlay */
.cfg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cfg-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal card */
.cfg-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.cfg-overlay.open .cfg-card {
  transform: translateY(0) scale(1);
}
html[data-theme="light"] .cfg-card,
html[data-theme="nexora"] .cfg-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* Close */
.cfg-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.cfg-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}
html[data-theme="light"] .cfg-close:hover,
html[data-theme="nexora"] .cfg-close:hover {
  background: rgba(0,0,0,0.06);
}

/* Step progress dots */
.cfg-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.cfg-dot {
  height: 3px;
  border-radius: 100px;
  flex: 1;
  background: var(--border);
  transition: background 0.3s;
}
.cfg-dot.active {
  background: var(--primary);
}

/* Step header */
.cfg-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.cfg-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.cfg-step-sub {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0 0 1.75rem;
}

/* Option grid */
.cfg-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.cfg-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: var(--font-main);
}
.cfg-option:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.cfg-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 59,130,246), 0.06);
}
html[data-theme="light"] .cfg-option:hover,
html[data-theme="nexora"] .cfg-option:hover {
  border-color: rgba(0,0,0,0.2);
}
html[data-theme="light"] .cfg-option.selected,
html[data-theme="nexora"] .cfg-option.selected {
  background: rgba(59,130,246,0.06);
}
.cfg-opt-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.cfg-opt-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.cfg-opt-desc {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Navigation */
.cfg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cfg-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-left: auto;
}
.cfg-btn-next:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.cfg-btn-next:disabled {
  opacity: 0.4;
  cursor: default;
}
.cfg-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.cfg-btn-back:hover {
  color: var(--text-main);
}

/* Contact step */
.cfg-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.cfg-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle, rgba(255,255,255,0.04));
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cfg-input:focus {
  border-color: var(--primary);
}
html[data-theme="light"] .cfg-input,
html[data-theme="nexora"] .cfg-input {
  background: rgba(0,0,0,0.03);
}

/* Summary pill in last step */
.cfg-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.cfg-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
}
html[data-theme="light"] .cfg-tag,
html[data-theme="nexora"] .cfg-tag {
  background: rgba(0,0,0,0.04);
}

/* Success screen */
.cfg-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.cfg-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.cfg-success h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.cfg-success p {
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 540px) {
  .cfg-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 20px;
  }
  .cfg-options {
    grid-template-columns: 1fr;
  }
  .cfg-step-title {
    font-size: 1.25rem;
  }
}

/* ──────────────────────────────────────────────
   CRO & SEO DOMINANCE OVERLAY — ADDITIONS
   ────────────────────────────────────────────── */

/* 1. Split Grid Footer CTA Form Layout */
.footer-cta-container-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--border);
  background: transparent;
  width: 100%;
}
.footer-cta-left-info {
  padding: 3.5rem 3rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.footer-cta-right-form {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.cta-left-desc {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.footer-cta-info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.cta-info-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.cta-info-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--primary);
}
.text-link-card {
  text-decoration: none;
  color: inherit;
}
.cta-info-card .card-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.cta-info-card .card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}
.cta-info-card .card-arr {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cta-info-card:hover .card-arr {
  opacity: 1;
  transform: translate(2px, -2px);
}
.cta-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin-top: auto;
}

/* 2. Floating Label Form Styling */
.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.form-group-row {
  display: flex;
  gap: 1.25rem;
  width: 100%;
}
.form-group {
  position: relative;
  width: 100%;
}
.form-input {
  width: 100%;
  padding: 1.25rem 1rem 0.65rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.15);
}
.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.92rem;
  color: var(--text-mute);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 0.35rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.form-error-msg {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #ef4444;
  margin-top: 0.25rem;
  text-transform: uppercase;
}
.form-group.has-error .form-input {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}
.form-group.has-error .form-error-msg {
  display: block;
}
.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
}

/* Form Success/Error Panels */
.form-status-alert {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.form-status-alert.visible {
  opacity: 1;
  pointer-events: auto;
}
.form-status-alert .alert-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}
.success-alert .alert-icon {
  color: var(--primary);
}
.error-alert .alert-icon {
  color: #ef4444;
}
.form-status-alert strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.5rem;
}
.form-status-alert p {
  font-size: 0.92rem;
  color: var(--text-mute);
  max-width: 280px;
  margin: 0;
  line-height: 1.6;
}

/* 3. Case Studies Styles */
.case-meta span {
  margin-right: 1.5rem;
}
.case-scorecard {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}
.scorecard-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.results-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.result-score-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}
.score-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.score-before {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.score-arrow {
  color: var(--text-faint);
  font-size: 0.8rem;
}
.score-after {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.score-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.case-scope-box {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.case-scope-box h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.case-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.case-service-tag {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}
.case-card-stats-preview {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.mini-stat-badge {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-family: var(--font-main);
}
.mini-stat-label {
  color: var(--text-faint);
}
.mini-stat-val {
  font-weight: 700;
  color: var(--primary);
}

/* 4. Author Landing Page Styles */
.author-hero-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.author-avatar-big {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  border: 1.5px solid var(--border);
  box-shadow: 0 0 25px rgba(109, 40, 217, 0.25);
}
.author-details-header {
  display: flex;
  flex-direction: column;
}
.author-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: 0.5rem;
}
.author-layout-split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.author-bio-main {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mute);
}
.author-bio-main h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.author-bio-main p {
  margin-bottom: 1.5rem;
}
.author-credentials {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
}
.author-credentials h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.credentials-list li {
  font-size: 0.95rem;
  color: var(--text-mute);
}
.author-sidebar-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  padding: 2rem;
  border-radius: 12px;
  position: sticky;
  top: 7rem;
}
.author-sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.sidebar-social-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: border-color 0.25s, background-color 0.25s;
}
.sidebar-social-link:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.03);
}
.author-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.auth-stat {
  text-align: center;
}
.auth-stat:first-child {
  border-right: 1px solid var(--border);
}
.auth-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.auth-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 0.35rem;
  display: block;
}
.author-articles-section {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.author-articles-section .section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .footer-cta-container-split {
    grid-template-columns: 1fr;
  }
  .footer-cta-left-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
  }
  .footer-cta-right-form {
    padding: 3rem 2rem;
  }
  .author-layout-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .author-sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .results-scorecard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-group-row {
    flex-direction: column;
    gap: 1.25rem;
  }
}/* ============================================================
   AI CHATBOT WIDGET — Glassmorphic Premium Interface
============================================================ */
.studio-chat-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-sans);
}

/* Chat Toggle Button — Sleek Minimalist Glass */
.chat-toggle-btn {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #151515;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}
.chat-toggle-btn:hover {
  transform: scale(1.05);
  background: #ffffff;
  color: #4929e8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.chat-toggle-btn:active {
  transform: scale(0.95);
}
.chat-toggle-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  transition: transform 0.3s ease;
}
.studio-chat-container.is-active .chat-toggle-btn svg {
  transform: rotate(90deg);
}

/* Chat Widget Panel — Clean Light Gallery Mode */
.chat-widget-panel {
  position: absolute;
  bottom: 4.2rem;
  right: 0;
  width: 23rem;
  height: 32rem;
  max-height: calc(100vh - 8rem);
  background: rgba(252, 251, 249, 0.95); /* pristine warm off-white */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.studio-chat-container.is-active .chat-widget-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.chat-widget-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.chat-header-title h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #151515;
}
.chat-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #8a8885;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s ease;
  line-height: 1;
}
.chat-close-btn:hover {
  color: #151515;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #767471;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
}
.chat-status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse-dot-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Chat Messages */
.chat-widget-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat */
.chat-widget-body::-webkit-scrollbar {
  width: 4px;
}
.chat-widget-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-widget-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}
.chat-widget-body::-webkit-scrollbar-thumb:hover {
  background: #b8946e;
}

/* Message Bubble */
.msg-bubble {
  max-width: 82%;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  animation: bubble-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(8px);
}

.msg-bubble.user {
  align-self: flex-end;
  background: #151515; /* Sleek matte black */
  color: #ffffff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.msg-bubble.assistant {
  align-self: flex-start;
  background: #f4f3f0; /* Soft warm grey assistant bubble */
  color: #1c1b1a;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Suggested Prompt Chips */
.chat-chips-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  animation: bubble-fade-in 0.4s ease forwards 0.2s;
  opacity: 0;
  transform: translateY(4px);
}

.chat-chip {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(73, 41, 232, 0.3);
  color: #4929e8;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  line-height: 1.3;
}

.chat-chip:hover {
  background: rgba(73, 41, 232, 0.05);
  border-color: #4929e8;
  transform: translateY(-1px);
}

.msg-bubble.assistant a {
  color: #4929e8;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}
.msg-bubble.assistant a:hover {
  color: #27149a;
}

.msg-bubble.assistant p {
  margin-bottom: 0.6rem;
}
.msg-bubble.assistant p:last-child {
  margin-bottom: 0;
}
.msg-bubble.assistant strong {
  font-weight: 600;
  color: #111;
}
.msg-bubble.assistant em {
  font-style: italic;
  opacity: 0.9;
}
.msg-bubble.assistant ul {
  margin: 0.4rem 0 0.6rem 1.2rem;
  padding: 0;
  list-style-type: disc;
}
.msg-bubble.assistant li {
  margin-bottom: 0.2rem;
}

/* Typing Indicator Animation */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.4rem;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #8a8885;
  border-radius: 50%;
  animation: typing-dot-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bubble-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot-ping {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes typing-dot-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Input Area */
.chat-widget-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat-input-form:focus-within {
  border-color: #4929e8;
  box-shadow: 0 0 12px rgba(73, 41, 232, 0.08);
}
.chat-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: #1c1b1a;
  padding: 0.6rem 0;
}
.chat-input-field::placeholder {
  color: #8a8885;
}
.chat-send-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #151515;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}
.chat-send-btn:hover {
  background: #4929e8;
  transform: scale(1.05);
}
.chat-send-btn:active {
  transform: scale(0.95);
}
.chat-send-btn svg {
  width: 1rem;
  height: 1rem;
}


/* ============================================================
   ███  MOBILE MASTER BLOCK — 768px and 480px
   All section-specific overrides consolidated here.
============================================================ */

@media (max-width: 768px) {

  /* ── Global typography ── */
  .section-eyebrow { font-size: 0.68rem; }
  .studio-section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .studio-section-header { margin-bottom: 2rem; }

  /* ── Partners ── */
  .partners-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .partners-list {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 1rem 1.5rem;
  }

  /* ── Services Bento ── */
  .services-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bento-card {
    min-height: auto;
    padding: 1.75rem;
  }
  .bento-num {
    font-size: 2.5rem;
  }
  .bento-icon {
    width: 40px;
    height: 40px;
  }
  .bento-title {
    font-size: 1.4rem;
  }
  .discipline-row:hover { padding-left: 0; background: none; border-radius: 0; }

  /* ── Works / References ── */
  .refs-editorial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  .refs-rating-block { align-items: flex-start; }
  .refs-rating-score { font-size: 2rem; }
  .refs-col-labels { display: none; }
  .refs-row-item { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 0; }
  .refs-cell { display: block !important; width: 100%; }
  .refs-cell--index { display: none !important; }
  .refs-cell--company { display: flex !important; align-items: center; gap: 0.75rem; }
  .refs-company-avatar { width: 42px; height: 42px; font-size: 1rem; }
  .refs-company-name { font-size: 1.25rem; }
  .refs-trans-block { flex-direction: column; gap: 0.75rem; padding: 1rem 1.25rem; }
  .refs-trans-arrow { transform: rotate(90deg); align-self: center; }
  .refs-quote { font-size: 1rem; line-height: 1.6; }
  .refs-cell--author { font-size: 0.88rem; }

  /* ── Blog / Insights grid ── */
  .insights-grid-modern {
    grid-template-columns: 1fr;
    border: none;
  }
  .insight-grid-cell {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 2rem 0;
    min-height: auto;
  }
  .insight-grid-cell:last-child { border-bottom: none !important; }
  .insight-grid-cell:hover { background-color: transparent; }

  /* ── FAQ ── */
  .faq-editorial-header { grid-template-columns: 1fr; }
  .faq-header-lead { grid-column: 1; grid-row: 3; padding-top: 0.5rem; max-width: 100%; }
  .faq-editorial-summary { padding: 1.25rem 0; gap: 1rem; }
  .faq-row-left { gap: 0; }
  .faq-index { display: none; }
  .faq-question { font-size: 0.97rem; }
  .faq-answer-inner { padding-left: 0; padding-bottom: 1.5rem; }

  /* ── Footer contact CTA grid ── */
  .footer-cta-grid-modern { grid-template-columns: 1fr; }
  .cell-headline { grid-column: span 1; padding: 2.25rem 1.75rem; }
  .cell-headline .cta-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .grid-cell { grid-column: span 1 !important; border-right: none !important; border-bottom: 1px solid var(--border) !important; padding: 1.75rem; }
  .cell-status { border-bottom: none !important; }
  .cell-label { margin-bottom: 1rem; }
  .cell-email .email-text { font-size: 1rem; word-break: break-word; }

  /* ── Footer CTA split form ── */
  .footer-cta-container-split { grid-template-columns: 1fr; }
  .footer-cta-left-info { border-right: none; border-bottom: 1px solid var(--border); padding: 2.25rem 1.75rem; }
  .footer-cta-right-form { padding: 2.25rem 1.75rem; }

  /* ── Footer nav ── */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

  /* ── Form ── */
  .form-group-row { flex-direction: column; gap: 1rem; }

  /* ── Case scorecard ── */
  .results-scorecard-grid { grid-template-columns: 1fr; gap: 0.75rem; }

  /* ── Author page ── */
  .author-layout-split { grid-template-columns: 1fr; gap: 2rem; }
  .author-sidebar-card { position: static; }
  .author-hero-wrap { flex-direction: column; gap: 1.25rem; align-items: flex-start; }

  /* ── Chatbot Mobile Styling ── */
  .chat-toggle-btn {
    display: none !important; /* Hide floating bubble toggle on mobile */
  }
  .studio-chat-container {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: visibility 0.3s ease;
  }
  .studio-chat-container.is-active {
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .chat-widget-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fcfbf9 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    margin: 0 !important;
  }

  /* ── Modal overlay: strip blur ── */
  .cfg-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.88);
    padding: 0.75rem;
  }
  .cfg-card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 20px; }
  .cfg-options { grid-template-columns: 1fr; gap: 0.6rem; }
  .cfg-step-title { font-size: 1.2rem; }

  /* ── Global min touch targets ── */
  .faq-toggle-icon,
  .nav-toggle,
  .chat-toggle-btn,
  .cfg-btn-next,
  .cfg-btn-back,
  .mobile-menu-cta-btn,
  .mobile-nav-link {
    min-height: 44px;
  }
}

/* ── Extra-small: 480px and below ── */
@media (max-width: 480px) {
  /* Footer single-column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Blog cells tighter */
  .insight-grid-cell { padding: 1.5rem 0; }

  /* Partners tighter */
  .partners-list { gap: 0.5rem 1rem; }

  /* Refs: hide avatar on tiny screens */
  .refs-company-avatar { display: none; }

  /* Form submit button padding */
  .form-submit-btn { padding: 0.85rem 1.5rem; }
}

/* ── prefers-reduced-motion (in style.css too for async-loaded elements) ── */
@media (prefers-reduced-motion: reduce) {
  .insight-grid-cell,
  .discipline-hover-preview,
  .faq-icon-v,
  .insight-arrow-icon,
  .cell-arrow-icon,
  .mobile-nav-link,
  .mobile-nav-item,
  .mobile-menu-footer {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   NEXORA LIGHT THEME — DARK GROUNDED FOOTER OVERRIDES
============================================================ */
html[data-theme="nexora"] .footer {
  background: #151515 !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="nexora"] .footer h4,
html[data-theme="nexora"] .footer h2,
html[data-theme="nexora"] .footer .cta-title,
html[data-theme="nexora"] .footer .logo {
  color: #ffffff !important;
}
html[data-theme="nexora"] .footer p,
html[data-theme="nexora"] .footer .brand-pitch,
html[data-theme="nexora"] .footer .footer-bottom p,
html[data-theme="nexora"] .footer .cta-left-desc {
  color: #94a3b8 !important;
}
html[data-theme="nexora"] .footer a,
html[data-theme="nexora"] .footer .footer-links-nav a,
html[data-theme="nexora"] .footer .footer-contact-link {
  color: #cbd5e1 !important;
}
html[data-theme="nexora"] .footer a:hover,
html[data-theme="nexora"] .footer .footer-links-nav a:hover,
html[data-theme="nexora"] .footer .footer-contact-link:hover {
  color: #ffffff !important;
}
html[data-theme="nexora"] .footer-cta-container-split {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="nexora"] .footer-cta-left-info {
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="nexora"] .cta-info-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-theme="nexora"] .cta-info-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: #818cf8 !important;
}
html[data-theme="nexora"] .cta-info-card .card-main {
  color: #ffffff !important;
}
html[data-theme="nexora"] .cta-info-card .card-lbl {
  color: #8a8885 !important;
}
html[data-theme="nexora"] .form-input {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
html[data-theme="nexora"] .form-input:focus {
  border-color: #818cf8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.15) !important;
}
html[data-theme="nexora"] .form-label {
  color: #94a3b8 !important;
}
html[data-theme="nexora"] .form-input:focus ~ .form-label,
html[data-theme="nexora"] .form-input:not(:placeholder-shown) ~ .form-label {
  color: #818cf8 !important;
}
html[data-theme="nexora"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================================
   CHAT WIDGET SPLIT & EXPANDED DASHBOARD SIDEBAR
   ============================================================ */
.chat-widget-content-layout {
  display: flex;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.chat-layout-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-width: 0;
}

.chat-layout-right {
  width: 0;
  overflow: hidden;
  border-left: 0px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-width 0.35s ease, padding 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Desktop Standard Layout (Large size by default) */
@media (min-width: 768px) {
  .chat-widget-panel {
    width: 52rem; /* 2.25x larger standard width on desktop */
    height: 36rem; /* taller standard height */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .chat-widget-panel .chat-layout-right {
    width: 29rem;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    overflow-y: auto;
  }
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-expand-btn {
  display: none !important; /* Hide expand button since large layout is standard */
}

/* Chat Hub Styling */
.chat-hub-container {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
}

.hub-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #151515;
  margin: 0;
}

.hub-subtitle {
  font-size: 0.78rem;
  color: #707070;
  margin: -0.85rem 0 0.15rem 0;
  line-height: 1.35;
}

.hub-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #151515;
  margin: 0 0 0.1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Switches & Layout */
.estimator-services {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.est-service-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.est-label {
  font-size: 0.8rem;
  color: #333333;
  font-weight: 500;
}

.est-switch {
  position: relative;
  display: inline-block;
  width: 2.1rem;
  height: 1.15rem;
}

.est-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.est-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.08);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
}

.est-slider:before {
  position: absolute;
  content: "";
  height: 0.85rem;
  width: 0.85rem;
  left: 0.15rem;
  bottom: 0.15rem;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.est-switch input:checked + .est-slider {
  background-color: #4929e8;
}

.est-switch input:checked + .est-slider:before {
  transform: translateX(0.95rem);
}

.estimator-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.65rem;
  margin-top: 0.15rem;
}

.price-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #707070;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #4929e8;
}

/* Lead Capture */
.hub-lead-form {
  display: flex;
  gap: 0.5rem;
}

.hub-lead-form input {
  flex: 1;
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: #151515;
  outline: none;
  transition: border-color 0.2s ease;
}
.hub-lead-form input:focus {
  border-color: #4929e8;
}

.btn-hub-submit {
  background: #151515;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-hub-submit:hover {
  background: #333333;
}

.hub-lead-success {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 500;
  text-align: center;
}

/* Stats */
.hub-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.hub-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fdfdfd;
  border: 1px solid rgba(0,0,0,0.03);
  padding: 0.45rem 0.25rem;
  border-radius: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #151515;
}

.stat-name {
  font-size: 0.65rem;
  color: #707070;
  line-height: 1.2;
  margin-top: 0.1rem;
}

/* ============================================================
   Drevo Hub Dashboard Additional Premium Components
============================================================ */

/* Speed Scanner Card */
.scanner-card {
  border: 1px solid rgba(73, 41, 232, 0.1);
  background: linear-gradient(135deg, #ffffff, rgba(73, 41, 232, 0.01));
}

.scanner-desc {
  font-size: 0.76rem;
  color: #666;
  margin: 0 0 0.45rem 0;
  line-height: 1.35;
}

.hub-scanner-form {
  display: flex;
  gap: 0.4rem;
}

.hub-scanner-form input {
  flex: 1;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.76rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.hub-scanner-form input:focus {
  border-color: #4929e8;
}

.btn-hub-scanner-submit {
  background: #4929e8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-hub-scanner-submit:hover {
  background: #371bb8;
}

/* Spinner Loader */
#scanner-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  gap: 0.65rem;
}

.scanner-loader-spinner {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid rgba(73, 41, 232, 0.1);
  border-top-color: #4929e8;
  border-radius: 50%;
  animation: spinner-spin 0.8s linear infinite;
}

.scanner-loading-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #4929e8;
  margin: 0;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}

/* Scanner Results */
.scanner-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.scanner-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 3.8rem;
  max-height: 3.8rem;
}

.circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.04);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress-chart 1.2s ease-out forwards;
}

@keyframes progress-chart {
  0% {
    stroke-dasharray: 0, 100;
  }
}

.circular-chart.green .circle {
  stroke: #10b981;
}

.percentage {
  fill: #151515;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
}

.gauge-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #707070;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.scanner-results-summary {
  font-size: 0.74rem;
  color: #333;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  background: rgba(16, 185, 129, 0.05);
  border-left: 2.5px solid #10b981;
  padding: 0.45rem 0.6rem;
  border-radius: 0 6px 6px 0;
}

.btn-scanner-reset {
  background: transparent;
  color: #707070;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.btn-scanner-reset:hover {
  background: rgba(0, 0, 0, 0.02);
  color: #151515;
  border-color: rgba(0, 0, 0, 0.2);
}

/* FAQ Accordion Card */
.faq-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-quick-btn {
  background: #fcfcfc;
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.74rem;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-quick-btn:hover {
  background: #ffffff;
  color: #4929e8;
  border-color: rgba(73, 41, 232, 0.15);
  box-shadow: 0 2px 8px rgba(73, 41, 232, 0.04);
  transform: translateX(2px);
}

/* Meeting Booker Card */
.booker-subtitle {
  font-size: 0.72rem;
  color: #707070;
  margin: -0.45rem 0 0.15rem 0;
}

.booker-slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.booker-date-select {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 0.18rem;
  gap: 0.15rem;
}

.booker-day {
  flex: 1;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 6px;
  cursor: pointer;
  color: #666666;
  transition: all 0.2s ease;
}

.booker-day.active {
  background: #ffffff;
  color: #151515;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.booker-day:hover:not(.active) {
  color: #151515;
}

.booker-time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.booker-time-slot {
  background: #ffffff;
  color: #151515;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.booker-time-slot:hover {
  border-color: #4929e8;
  color: #4929e8;
  background: rgba(73, 41, 232, 0.02);
}

.booker-time-slot.active {
  background: #4929e8;
  color: #ffffff;
  border-color: #4929e8;
  box-shadow: 0 2px 6px rgba(73, 41, 232, 0.2);
}

