/* ==========================================================================
   Tejstack Technologies Unified Core Stylesheet (style.css)
   ========================================================================== */

/* 1. Global Tokens & Root Variables */
:root {
  --bg-cream: #FBF8F0;
  --bg-charcoal: #130F0B;
  --border-light: #E4E1D8;
  --border-dark: rgba(255, 255, 255, 0.12);
  --text-dark: #130F0B;
  --text-light: #FBF8F0;
  --accent-blue: #5B72FB;
  --accent-green: #BAF289;
}

/* 2. Global Resets & Typography */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.scroll-smooth {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* 3. Floating Navigation & Navbar */
.navbar-floating-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding: 1.25rem 5% 0 5%;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-floating-container.nav-hidden {
  transform: translateY(-135%);
}

.navbar-floating {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(19, 15, 11, 0.06);
  border-radius: 16px;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 16px 36px -12px rgba(19, 15, 11, 0.05), 0 4px 12px rgba(19, 15, 11, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand-custom {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  color: var(--text-dark) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-custom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark) !important;
  opacity: 0.65;
  padding: 0.4rem 0.85rem !important;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-custom:hover, 
.nav-link-custom.active {
  opacity: 1;
  background: rgba(19, 15, 11, 0.04);
  color: var(--accent-blue) !important;
}

.btn-nav-contact {
  background-color: var(--bg-charcoal);
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--bg-charcoal);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-nav-contact:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* 4. Shared Overlays, Grid Columns, and Stripe/Glow Effects */
.cta-stripes-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.cta-stripe-column {
  flex: 1;
  height: 100%;
  border-right: 1px solid rgba(19, 15, 11, 0.02);
}

.cta-stripe-column:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.4);
}

.cta-glow-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(186, 242, 137, 0.5) 0%, rgba(186, 242, 137, 0.22) 35%, rgba(186, 242, 137, 0) 70%);
}

.orb-stripes-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  opacity: 0.55;
}

.orb-stripe {
  flex: 1;
  height: 100%;
  border-right: 1px solid rgba(19, 15, 11, 0.025);
}

.orb-stripe.green {
  background: linear-gradient(to bottom,
      rgba(186, 242, 137, 0) 0%,
      rgba(186, 242, 137, 0.25) 15%,
      rgba(186, 242, 137, 0.32) 50%,
      rgba(186, 242, 137, 0.25) 85%,
      rgba(186, 242, 137, 0) 100%);
}

/* 5. Buttons */
.btn-orb-primary {
  background-color: var(--bg-charcoal);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--bg-charcoal);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-orb-primary:hover {
  background-color: #26211e;
  border-color: #26211e;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-orb-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--text-dark);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-orb-secondary:hover {
  background-color: #ffffff;
  border-color: var(--text-dark);
  color: var(--text-dark);
  transform: translateY(-1px);
}

.btn-orb-primary-light {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--bg-cream);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-orb-primary-light:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--text-dark);
  transform: translateY(-1px);
}

/* 6. Media and Layout Helpers */
@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid var(--border-light) !important;
  }
}

/* 7. Footer Unified Style */
footer {
  background-color: var(--bg-charcoal) !important;
  color: var(--text-light) !important;
  padding: 60px 0;
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

footer a:hover {
  opacity: 1;
  color: var(--accent-green) !important;
}

/* ==========================================================================
   Page-Specific Style Classes
   ========================================================================== */

/* --- Homepage (index.html) --- */
.hero-section {
  background-color: var(--bg-cream);
  padding-top: 190px;
  padding-bottom: 120px;
  position: relative;
}

.hero-heading {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.hero-heading span {
  font-style: italic;
}

.ecosystem-section {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

.slider-row-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-row-track::-webkit-scrollbar {
  display: none;
}

.slider-card-wrapper {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 576px) {
  .slider-card-wrapper {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .slider-card-wrapper {
    flex: 0 0 33.333%;
  }
}

@media (min-width: 1200px) {
  .slider-card-wrapper {
    flex: 0 0 25%;
  }
}

.feature-strip-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-strip-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(91, 114, 251, 0.4);
  box-shadow: 0 10px 15px -3px rgba(19, 15, 11, 0.04);
}

.feature-strip-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  margin-top: 1rem;
  color: var(--text-dark);
}

.action-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: rgba(19, 15, 11, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
}

.feature-strip-card:hover .action-arrow-btn {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.track-timeline-container {
  height: 1px;
  background-color: var(--border-light);
  position: relative;
}

.track-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-nav-circle {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.slider-nav-circle:hover {
  background-color: var(--bg-charcoal);
  color: #ffffff;
  border-color: var(--bg-charcoal);
}

.zigzag-matrix-section {
  background-color: var(--bg-cream);
  position: relative;
}

.matrix-timeline-container {
  position: relative;
  border-radius: 32px;
  box-shadow: 0 20px 50px -20px rgba(19, 15, 11, 0.06);
  border: 1px solid rgba(19, 15, 11, 0.05);
  overflow: hidden;
  background-color: #ffffff;
}

.matrix-row-node {
  position: relative;
}

.matrix-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

.matrix-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 114, 251, 0.08);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.matrix-unified-card {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(19, 15, 11, 0.06);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0 !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0 !important;
}

.matrix-unified-card:first-child {
  border-radius: 32px 32px 0 0 !important;
}

.matrix-unified-card:last-child {
  border-radius: 0 0 32px 32px !important;
  border-bottom: none;
}

.matrix-unified-card:hover {
  background-color: rgba(251, 248, 240, 0.25);
}

.matrix-unified-card-text {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.matrix-unified-card-visual-pane {
  background-color: #F8F7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  height: 100%;
  min-height: 400px;
}

.matrix-framed-card {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
  position: relative;
}

.matrix-framed-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(19, 15, 11, 0.08);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.matrix-framed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .matrix-unified-card-text {
    padding: 3rem 2.5rem;
  }
  .matrix-unified-card-visual-pane {
    padding: 2rem;
    min-height: 320px;
  }
}

.sim-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--text-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 15px -3px rgba(19, 15, 11, 0.05);
}

.sim-title {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  font-weight: 600;
}

.sim-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #847e74;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.sim-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.sim-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light);
  outline: none;
  margin: 1.25rem 0;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.sync-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(19, 15, 11, 0.05);
}

.sync-node {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dark);
  text-align: center;
  width: 100%;
  max-width: 180px;
  z-index: 2;
}

.sync-node.active-node {
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(91, 114, 251, 0.08);
}

.sync-node.outcome-node {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(186, 242, 137, 0.08);
}

.sync-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pulse-path {
  stroke: var(--accent-blue);
  stroke-width: 1.5;
  stroke-dasharray: 6, 8;
  animation: dash 14s linear infinite;
}

.pulse-path-green {
  stroke: var(--accent-green);
  stroke-width: 1.5;
  stroke-dasharray: 6, 8;
  animation: dash 14s linear infinite;
}

.code-sandbox {
  background: #181411;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #dfd7cf;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.code-keyword {
  color: #f7768e;
}

.code-string {
  color: #9ece6a;
}

.code-number {
  color: #ff9e64;
}

.code-comment {
  color: #565f89;
  font-style: italic;
}

.sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(186, 242, 137, 0.1);
  border: 1px solid rgba(186, 242, 137, 0.2);
  color: var(--accent-green);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.custom-impact-banner {
  background-color: var(--bg-cream);
  position: relative;
  overflow: hidden;
  padding: 140px 0;
}

.showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-dark);
  box-shadow: 0 12px 24px -10px rgba(19, 15, 11, 0.08);
}

.showcase-image-box {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-cream);
}

.showcase-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries-dark-section {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

.industry-glass-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.industry-glass-card h4 {
  color: var(--text-dark);
  font-size: 1.15rem;
}

.industry-glass-card:hover {
  background: #ffffff;
  border-color: rgba(91, 114, 251, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(19, 15, 11, 0.04);
}

.industry-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: rgba(91, 114, 251, 0.08);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.industry-card-text {
  color: #5B5448 !important;
  font-size: 0.85rem;
  line-height: 1.6;
}

.insight-card-inner {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.insight-card-inner:hover {
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.pursue-split-banner {
  background-color: var(--bg-cream);
  overflow: hidden;
}

.pursue-split-image {
  min-height: 480px;
  background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.pursue-action-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.pursue-action-link:hover {
  gap: 0.75rem;
  color: var(--accent-blue);
}

.pursue-circle-arrow {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: rgba(19, 15, 11, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.orb-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  font-weight: 600;
}

.orb-card-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #0e0a07;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.orb-card-visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(19, 15, 11, 0.08);
}

.orb-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-card-visual:hover .orb-card-image {
  transform: scale(1.04);
}

.orb-card-arrow-circle {
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
}

.orb-card-visual:hover .orb-card-arrow-circle {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.orb-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5B5448 !important;
  margin-top: 1rem;
}

.orb-card-heading {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.col:hover .orb-card-heading {
  color: var(--accent-blue);
}

.featured-large-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-large-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-dark);
  box-shadow: 0 12px 24px -10px rgba(19, 15, 11, 0.08);
}

.featured-large-img-box {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
}

.featured-large-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.featured-small-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.featured-small-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-dark);
  box-shadow: 0 12px 24px -10px rgba(19, 15, 11, 0.08);
}

.featured-small-img-box {
  width: 160px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-small-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-title-large {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-dark);
}

.featured-title-small {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.featured-small-card:hover .featured-title-small {
  color: var(--accent-blue);
}

.service-card-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.service-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(19, 15, 11, 0.08);
  border-color: rgba(91, 114, 251, 0.2);
}

.service-card-img-box {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
}

.service-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-icon {
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: inline-block;
}

.service-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 1rem;
  min-height: 2.7em;
  transition: color 0.2s ease;
}

.service-card-box:hover .service-card-title {
  color: var(--accent-blue);
}

.service-card-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #5B5448 !important;
  margin-bottom: 1.5rem;
}

.service-card-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f37a22 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.service-card-box:hover .service-card-link {
  gap: 0.75rem;
}

/* --- About Page (about.html) --- */
.about-hero-section {
  padding-top: 200px;
  padding-bottom: 120px;
  background-color: var(--bg-cream);
  position: relative;
}

.about-section-padding {
  padding: 120px 0 !important;
  position: relative;
  background-color: var(--bg-cream);
}

.about-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 114, 251, 0.08);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.about-section-title {
  font-family: 'Lora', serif;
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-bento-grid-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  height: 100%;
  box-shadow: 0 10px 30px -15px rgba(19, 15, 11, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-bento-grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 114, 251, 0.3);
  box-shadow: 0 16px 36px -12px rgba(19, 15, 11, 0.06);
}

.about-visual-pane {
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.about-framed-mockup {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
  position: relative;
}

.about-framed-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-profile-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.leader-profile-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 24px -10px rgba(19, 15, 11, 0.06);
}

.leader-avatar-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.community-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px -10px rgba(19, 15, 11, 0.04);
}

.community-metric-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 28px -10px rgba(19, 15, 11, 0.06);
}

.metric-stars {
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  display: block;
}

@media (max-width: 991.98px) {
  .about-bento-grid-card {
    padding: 2rem;
  }
}

/* --- Services Page (services.html) --- */
.services-hero-section {
  padding-top: 220px;
  padding-bottom: 140px;
  background-color: var(--bg-cream);
  position: relative;
}

.services-section-padding {
  padding: 120px 0 !important;
  position: relative;
  background-color: var(--bg-cream);
}

.services-section-title {
  font-family: 'Lora', serif;
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.services-bento-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.25rem;
  height: 100%;
  box-shadow: 0 8px 24px -12px rgba(19, 15, 11, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.services-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 114, 251, 0.3);
  box-shadow: 0 16px 32px -10px rgba(19, 15, 11, 0.06);
}

.services-bento-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.services-bento-card:hover h3 {
  color: var(--accent-blue);
}

.services-bento-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5B5448 !important;
  margin-bottom: 0;
}

.services-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(19, 15, 11, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.25s ease;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
}

.services-bento-card:hover .services-card-arrow {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.services-visual-pane {
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.services-framed-mockup {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
  position: relative;
}

.services-framed-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Industries Page (industries.html) --- */
.industries-hero-section {
  padding-top: 220px;
  padding-bottom: 140px;
  background-color: var(--bg-cream);
  position: relative;
}

.industries-section-padding {
  padding: 120px 0 !important;
  position: relative;
  background-color: var(--bg-cream);
}

.industry-bento-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 8px 24px -12px rgba(19, 15, 11, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 114, 251, 0.3);
  box-shadow: 0 16px 32px -10px rgba(19, 15, 11, 0.06);
}

.industry-bento-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.industry-bento-card:hover h3 {
  color: var(--accent-blue);
}

.industry-bento-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5B5448 !important;
  margin-bottom: 0;
}

.industry-icon-pill-custom {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

/* --- Careers Page (careers.html) --- */
.careers-hero-section {
  padding-top: 220px;
  padding-bottom: 140px;
  background-color: var(--bg-cream);
  position: relative;
}

.careers-section-padding {
  padding: 120px 0 !important;
  position: relative;
  background-color: var(--bg-cream);
}

.careers-grid-card,
.careers-principle-card,
.careers-benefit-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem 2rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.careers-grid-card:hover,
.careers-principle-card:hover,
.careers-benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 36px -12px rgba(19, 15, 11, 0.06);
}

.careers-icon-pill-custom {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(91, 114, 251, 0.06);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.role-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  background-color: rgba(19, 15, 11, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.role-badge-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
}

.careers-visual-pane {
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.careers-framed-mockup {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
  position: relative;
}

.careers-framed-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Insights Page (insight.html) --- */
.insight-hero-section {
  padding-top: 220px;
  padding-bottom: 140px;
  background-color: var(--bg-cream);
  position: relative;
}

.insight-section-padding {
  padding: 120px 0 !important;
  position: relative;
  background-color: var(--bg-cream);
}

.article-catalog-card,
.article-catalog-block {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: block;
  padding: 2rem;
  box-shadow: 0 10px 30px -15px rgba(19, 15, 11, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.article-catalog-card:hover,
.article-catalog-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -12px rgba(19, 15, 11, 0.08);
  border-color: rgba(91, 114, 251, 0.2);
}

.article-card-img-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background-color: #F8F7F4;
}

.article-card-img-box img,
.article-img-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-catalog-card:hover .article-card-img-box img,
.article-catalog-block:hover .article-img-zoom {
  transform: scale(1.03);
}

.article-card-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.article-title-custom {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.article-catalog-card:hover .article-title-custom {
  color: var(--accent-blue);
}

.article-desc-custom {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5B5448 !important;
  margin-bottom: 1.5rem;
}

.article-read-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.article-catalog-card:hover .article-read-link,
.article-catalog-block:hover .article-read-link {
  gap: 10px;
  color: var(--accent-blue) !important;
}

.featured-visual-pane {
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.featured-framed-mockup {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
  position: relative;
}

.featured-framed-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Contact Page (contact.html) --- */
.contact-hero-section {
  padding-top: 220px;
  padding-bottom: 140px;
  background-color: var(--bg-cream);
  position: relative;
}

.contact-section-padding {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-cream);
}

.contact-channel-card {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  background-color: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(19, 15, 11, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1.5rem;
}

.contact-channel-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px -15px rgba(19, 15, 11, 0.08);
  transform: translateY(-2px);
}

.contact-form-container {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px -15px rgba(19, 15, 11, 0.04);
}

.form-control-custom {
  background-color: var(--bg-cream) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-dark) !important;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(91, 114, 251, 0.1) !important;
  background-color: #ffffff !important;
}

.form-label-custom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.675rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 500;
  display: block;
}

/* --- Detail Pages (service-*.html, industry-*.html) --- */
.service-hero-section {
  padding-top: 180px;
  padding-bottom: 80px;
  background-color: var(--bg-cream);
  position: relative;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(91, 114, 251, 0.08);
  color: var(--accent-blue);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.detail-section {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}

.detail-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 8px 24px -12px rgba(19, 15, 11, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 114, 251, 0.3);
  box-shadow: 0 16px 32px -10px rgba(19, 15, 11, 0.06);
}

.detail-card h4 {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.detail-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5B5448;
  margin-bottom: 0;
}

.services-visual-pane {
  background-color: #F8F7F4;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.services-framed-mockup {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(19, 15, 11, 0.08);
  border: 1px solid rgba(19, 15, 11, 0.06);
  aspect-ratio: 4 / 3;
}

.services-framed-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: rgba(19, 15, 11, 0.04);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.btn-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.btn-back:hover {
  color: var(--accent-blue);
  transform: translateX(-2px);
}

/* ==========================================================================
   8. Responsive Optimizations & Overrides
   ========================================================================== */

/* Large screens and under (Desktop / Tablet transition) */
@media (max-width: 1199.98px) {
  .navbar-floating-container {
    padding: 0.75rem 1rem 0 1rem;
  }

  .navbar-floating {
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(19, 15, 11, 0.08);
    border-radius: 12px;
    margin-top: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 16px 36px -12px rgba(19, 15, 11, 0.1), 0 4px 12px rgba(19, 15, 11, 0.04);
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 0.5rem !important;
    width: 100%;
  }

  .nav-link-custom {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.6rem 1rem !important;
    text-align: left;
  }

  .btn-nav-contact {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }
}

/* Medium devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
  .about-hero-section,
  .services-hero-section,
  .industries-hero-section,
  .careers-hero-section,
  .insight-hero-section,
  .contact-hero-section,
  .hero-section {
    padding-top: 150px !important;
    padding-bottom: 80px !important;
  }

  .careers-section-padding,
  .services-section-padding,
  .industries-section-padding,
  .about-section-padding,
  .insight-section-padding,
  .contact-section-padding,
  .custom-impact-banner {
    padding: 80px 0 !important;
  }

  .about-visual-pane,
  .services-visual-pane,
  .careers-visual-pane,
  .featured-visual-pane {
    min-height: 320px !important;
    padding: 2rem !important;
    margin-top: 1.5rem;
  }

  .matrix-framed-card,
  .about-framed-mockup,
  .services-framed-mockup,
  .careers-framed-mockup,
  .featured-framed-mockup {
    aspect-ratio: 16 / 10;
  }

  .pursue-split-image {
    min-height: 320px !important;
  }

  .detail-section {
    padding: 60px 0 !important;
  }
}

/* Small devices (Phones, less than 768px) */
@media (max-width: 767.98px) {
  .careers-section-padding,
  .services-section-padding,
  .industries-section-padding,
  .about-section-padding,
  .insight-section-padding,
  .contact-section-padding,
  .custom-impact-banner {
    padding: 60px 0 !important;
  }

  .service-hero-section {
    padding-top: 130px !important;
    padding-bottom: 50px !important;
  }

  h1 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: 1.35rem !important;
  }

  .about-bento-grid-card,
  .contact-card-box,
  .careers-principle-card,
  .careers-benefit-card,
  .detail-card,
  .contact-form-container {
    padding: 2rem !important;
  }

  .matrix-unified-card-text {
    padding: 2.5rem 1.5rem !important;
  }

  .contact-channel-card {
    padding: 1.75rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .about-bento-grid-card,
  .contact-card-box,
  .careers-principle-card,
  .careers-benefit-card,
  .detail-card,
  .contact-form-container {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .about-visual-pane,
  .services-visual-pane,
  .careers-visual-pane,
  .featured-visual-pane {
    padding: 1rem !important;
    border-radius: 16px !important;
    min-height: 260px !important;
  }

  .matrix-unified-card-text {
    padding: 2rem 1.25rem !important;
  }

  .btn-orb-primary,
  .btn-orb-secondary,
  .btn-orb-primary-light {
    width: 100%;
    text-align: center;
    padding: 12px 24px !important;
  }

  .slider-nav-circle {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   9. Scroll Reveal & Form Submission Animation Classes
   ========================================================================== */

/* Intersection Observer Scroll Reveal */
.reveal-on-scroll {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Spinner Loader */
.form-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(19, 15, 11, 0.1);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spinnerRotate 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* Form Submission Success States */
.form-success-wrapper {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeInSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-check {
  width: 56px;
  height: 56px;
  background-color: rgba(186, 242, 137, 0.2);
  color: #4f702b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1.5px solid rgba(186, 242, 137, 0.4);
}
