/* ═══════════════════════════════════════
   GLOBAL BOX-SIZING & OVERFLOW FIX
═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ═══════════════════════════════════════
   ALIGNMENT SYSTEM
   Every section container uses the same
   3rem left/right padding and 1400px max-width
   so all content edges line up with the hero.
═══════════════════════════════════════ */
:root {
  --px: 3rem; /* horizontal page padding — matches hero */
  /* max content width — matches hero        */
}

/* ═══════════════════════════════════════
   HERO LAYOUT
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h, 80px);
  padding-left: var(--px);
  padding-right: var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--mw);
  margin: 0 auto;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  padding: 5rem 0 4rem;
}

.hero-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2.2rem;
  opacity: 0;
}
.hero-crumb-sep {
  color: var(--w38);
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(48px);
  font-weight: 900;
}
.hero-title-em {
  display: block;
  background: linear-gradient(115deg, #ff6b00 0%, rgba(255, 155, 60, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--font-size-large, 1rem);
  line-height: var(--line-height-loose, 1.75);
  color: var(--w60);
  margin-bottom: 2.8rem;
  opacity: 0;
  transform: translateY(28px);
}
.hero-desc strong {
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(22px);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta-key {
  font-size: 0.56rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--w38);
}
.hero-meta-val {
  font-size: 0.94rem;
  font-weight: var(--font-weight-medium);
  color: var(--w80);
}

.hero-scroll-hint {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
}
.hero-scroll-text {
  font-size: 0.58rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--w38);
}
.hero-scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(5px);
    opacity: 0.4;
  }
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  height: 100%;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 55% 48%,
    var(--o12) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: glowBreath 5s ease-in-out infinite;
}
@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
.hero-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 0;
}
.hero-corner--tl {
  top: 3rem;
  left: -1rem;
  border-top: 1.5px solid var(--o20);
  border-left: 1.5px solid var(--o20);
}
.hero-corner--br {
  bottom: 3rem;
  right: -1rem;
  border-bottom: 1.5px solid var(--o20);
  border-right: 1.5px solid var(--o20);
}

.collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 600px;
}
.collage-scan {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1.2rem;
  opacity: 0;
}
.collage-scan::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--o35) 40%,
    var(--o60) 50%,
    var(--o35) 60%,
    transparent 100%
  );
  animation: scanDown 4s ease-in-out infinite;
}
@keyframes scanDown {
  0% {
    top: -4px;
  }
  100% {
    top: 100%;
  }
}

.col-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 75%;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--w08);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px var(--o06);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}
.col-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.9);
  transition:
    transform 0.6s var(--ease),
    filter 0.4s var(--ease);
}
.col-main:hover img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(1);
}
.col-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 2;
}
.col-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.46) 100%
  );
  z-index: 1;
}

.col-sec {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  height: 48%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--w08);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px var(--o06);
  opacity: 0;
  transform: translateX(30px);
}
.col-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
  transition:
    transform 0.6s var(--ease),
    filter 0.4s var(--ease);
}
.col-sec:hover img {
  transform: scale(1.05);
  filter: brightness(0.88) saturate(1);
}
.col-sec-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
  z-index: 1;
}

.col-ter {
  position: absolute;
  top: 6%;
  right: 2%;
  width: 33%;
  height: 28%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--w08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(20px) translateY(-10px);
}
.col-ter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.8);
  transition: transform 0.5s var(--ease);
}
.col-ter:hover img {
  transform: scale(1.06);
}
.col-ter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.col-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
}
.col-corner--tl {
  top: 0.5rem;
  left: 0.5rem;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}
.col-corner--br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.img-chip {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--w12);
  border-radius: 2rem;
  font-size: 0.56rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w60);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.img-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid var(--o20);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 10;
  opacity: 0;
  transform: scale(0.85);
}
.badge--tl {
  top: -2%;
  left: -6%;
}
.badge--bl {
  bottom: 24%;
  left: -8%;
}
.badge--tr {
  top: 34%;
  right: -6%;
}
.badge-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.badge-lbl {
  font-size: 0.55rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--w60);
}
.badge-trend {
  font-size: 0.58rem;
  font-weight: var(--font-weight-bold);
  color: #22c55e;
  margin-top: 0.1rem;
}
.badge-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.badge-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}
.badge-live-text {
  font-size: 0.6rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22c55e;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--w03) 1px, transparent 1px),
    linear-gradient(90deg, var(--w03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.next-section {
  position: relative;
  z-index: 1;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--w08);
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w38);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 2rem;
  }
  .hero-right {
    display: flex;
    margin-top: 3rem;
    padding: 2rem 0;
    min-height: 500px;
  }
  .hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero-right {
    min-height: 400px;
    margin-top: 2rem;
    padding: 1rem 0;
  }
  .collage {
    max-width: 100%;
    height: 400px;
  }
  .col-main {
    width: 75%;
    height: 70%;
  }
  .col-sec {
    width: 60%;
    height: 45%;
  }
  .col-ter {
    width: 35%;
    height: 30%;
  }
  .badge {
    padding: 0.6rem 0.8rem;
  }
  .badge-num {
    font-size: 1.2rem;
  }
  .badge-lbl {
    font-size: 0.5rem;
  }
}

/* ═══════════════════════════════════════
   TECH STACK CAROUSEL
   padding-left/right uses --px so the heading
   text aligns with the hero left edge
═══════════════════════════════════════ */
.tech-carousel-section {
  padding: 4rem var(--px);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.carousel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
}
.carousel-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.carousel-wrap {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  padding: 1.5rem 0;
  width: 100%;
  max-width: 100%;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: carouselScroll 30s linear infinite;
  will-change: transform;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carouselScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 0.7rem;
  background: var(--sur);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  cursor: default;
}
.tech-chip:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}
.tech-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.45rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--bdr-o);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.tech-chip-icon svg {
  width: 15px;
  height: 15px;
}
.tech-chip-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--w90);
}
.tech-chip-cat {
  font-size: 0.6rem;
  color: var(--w35);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   PROBLEM STATEMENT SECTION
   max-width + margin:auto + padding:0 var(--px)
   = same left/right edges as hero
═══════════════════════════════════════ */
.problem-section {
  padding: 6rem var(--px);
  max-width: var(--mw);
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.problem-content h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 900;
  margin: 1rem 0;
  color: var(--w90);
}
.problem-content h2 .accent {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.problem-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--w60);
  margin-bottom: 2rem;
}
.problem-quote {
  border-left: 3px solid var(--primary);
  padding: 1.2rem 1.8rem;
  margin: 2rem 0;
  background: rgba(255, 107, 0, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
}
.problem-quote-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--w90);
  margin-bottom: 0.8rem;
}
.problem-quote-author {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.stats-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 107, 0, 0.08)
  );
  border: 1px solid var(--bdr);
  border-radius: 1rem;
  padding: 1.8rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), transparent);
  transition: height 0.6s ease;
}
.stat-card:hover {
  border-color: var(--bdr-o);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.15);
}
.stat-card:hover::before {
  height: 100%;
}
.stat-card.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid var(--bdr-o);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--w90);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.stat-desc {
  font-size: 0.8rem;
  color: var(--w60);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
@media (max-width: 480px) {
  .problem-section {
    padding: 4rem 1.25rem;
  }
}

/* ═══════════════════════════════════════
   ARCHITECTURE SECTION (full-bleed bg,
   inner container matches hero alignment)
═══════════════════════════════════════ */
.architecture-section {
  padding: 6rem 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  background: var(--s);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.arch-grid.reverse {
  direction: rtl;
}

.arch-grid.reverse > * {
  direction: ltr;
}

.arch-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.arch-content h2 .accent {
  color: var(--primary);
}

.arch-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--w60);
  margin-bottom: 2rem;
}

/* Architecture Diagram */
.arch-diagram {
  border: 1px solid var(--bdr);
  border-radius: 1.2rem;
  background: var(--sur);
  overflow: hidden;
  transition: all 0.3s ease;
}

.arch-diagram:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.1);
}

.arch-diagram-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-diagram-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w35);
}

.arch-diagram-body {
  padding: 2rem;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--bdr);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.8rem;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.arch-layer.animate-in {
  animation: slideInLeft 0.5s ease forwards;
}

.arch-layer:nth-child(1) {
  animation-delay: 0.1s;
}
.arch-layer:nth-child(2) {
  animation-delay: 0.2s;
}
.arch-layer:nth-child(3) {
  animation-delay: 0.3s;
}
.arch-layer:nth-child(4) {
  animation-delay: 0.4s;
}
.arch-layer:nth-child(5) {
  animation-delay: 0.5s;
}
.arch-layer:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.arch-layer:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.05);
  transform: translateX(4px);
}

.arch-layer-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--bdr-o);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.arch-layer-icon svg {
  width: 16px;
  height: 16px;
}

.arch-layer-name {
  font-size: 0.85rem;
  font-weight: 700;
  flex: 1;
  color: var(--w90);
}

.arch-layer-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  background: rgba(255, 107, 0, 0.08);
  color: var(--primary);
  border: 1px solid var(--bdr-o);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 107, 0, 0.06)
  );
  border: 1px solid var(--bdr);
  border-radius: 0.8rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
}

.metric-card.animate-in {
  animation: scaleIn 0.5s ease forwards;
}

.metric-card:nth-child(1) {
  animation-delay: 0.1s;
}
.metric-card:nth-child(2) {
  animation-delay: 0.2s;
}
.metric-card:nth-child(3) {
  animation-delay: 0.3s;
}
.metric-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.metric-card:hover {
  border-color: var(--bdr-o);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.12);
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w35);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.8rem;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ffb347);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s ease;
}

.metric-card.animate-in .metric-bar-fill {
  width: var(--fill-width, 0);
}

/* Responsive */
@media (max-width: 960px) {
  .arch-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .architecture-section {
    padding: 5rem 2rem;
  }
}

@media (max-width: 768px) {
  /* Global section heading styles for consistency */
  .problem-section h2,
  .architecture-section h2,
  .thinking-header h2,
  .integration-header h2,
  .implementation-header h2,
  .handover-header h2,
  .success-header h2,
  .testimonial-header h2,
  .cta-header h2,
  .sec-title,
  .arch-content h2 {
    font-size: 2rem !important;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .architecture-section {
    padding: 4rem 1.5rem;
    max-width: 100%;
  }

  .arch-grid {
    gap: 2.5rem;
  }

  .arch-content h2 {
    font-size: 2rem;
  }

  .arch-content p {
    font-size: 0.95rem;
  }

  .arch-diagram-body {
    padding: 1.5rem;
  }

  .arch-layer {
    padding: 0.8rem 1rem;
  }

  .metrics-grid {
    gap: 1rem;
  }

  .metric-card {
    padding: 1.2rem;
  }

  .metric-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  /* Global section heading styles for consistency */
  .problem-section h2,
  .architecture-section h2,
  .thinking-header h2,
  .integration-header h2,
  .implementation-header h2,
  .handover-header h2,
  .success-header h2,
  .testimonial-header h2,
  .cta-header h2,
  .sec-title,
  .arch-content h2 {
    font-size: 1.75rem !important;
    background: linear-gradient(135deg, #fff 0%, #ff6b00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .architecture-section {
    padding: 3rem 1rem;
    max-width: 100%;
    margin: 0;
  }

  .arch-grid {
    gap: 2rem;
  }

  .arch-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .arch-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .arch-diagram {
    border-radius: 0.8rem;
  }

  .arch-diagram-header {
    padding: 0.8rem 1rem;
  }

  .arch-diagram-title {
    font-size: 0.6rem;
  }

  .arch-diagram-body {
    padding: 1rem;
  }

  .arch-layer {
    padding: 0.7rem 0.9rem;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .arch-layer-icon {
    width: 28px;
    height: 28px;
  }

  .arch-layer-icon svg {
    width: 14px;
    height: 14px;
  }

  .arch-layer-name {
    font-size: 0.8rem;
  }

  .arch-layer-tag {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
  }

  .metrics-grid {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .metric-card {
    padding: 1rem;
    border-radius: 0.6rem;
  }

  .metric-label {
    font-size: 0.65rem;
  }

  .metric-value {
    font-size: 1.6rem;
  }

  .metric-bar {
    margin-top: 0.6rem;
  }
}

/* ═══════════════════════════════════════
   THOUGHT PROCESS & TECHNICAL DECISIONS
═══════════════════════════════════════ */
.thinking-section {
  padding: 6rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.01);
}

.thinking-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.thinking-header {
  text-align: center;
  margin-bottom: 4rem;
}

.thinking-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 900;
  margin: 1rem 0;
  line-height: 1.1;
  color: var(--white);
  /* background: linear-gradient(135deg, #fff 0%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
}

.thinking-header h2 .accent {
  color: var(--primary);
}

.thinking-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--w60);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Thinking Cards Grid */
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  justify-items: center;
  align-items: stretch;
}

.thinking-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 107, 0, 0.06)
  );
  border: 2px solid var(--primary);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  opacity: 1;
  transform: translateY(0) !important;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.thinking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
  display: none;
}

.thinking-card:hover::before {
  transform: scaleX(1);
}

.thinking-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.12);
  z-index: 2;
}

.thinking-card-header {
  margin-bottom: 1.5rem;
}

.thinking-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid var(--bdr-o);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.thinking-icon svg {
  width: 24px;
  height: 24px;
}

.thinking-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.thinking-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--w60);
  margin-bottom: 1.2rem;
}

.thinking-challenge {
  margin-bottom: 1.2rem;
}

.thinking-challenge strong,
.thinking-decision strong {
  color: var(--primary);
  font-weight: 700;
}

.thinking-decision {
  margin-bottom: 1.5rem;
}

.thinking-outcome {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.outcome-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--bdr-o);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--w80);
  transition: all 0.25s ease;
}

.outcome-badge:hover {
  background: rgba(255, 107, 0, 0.12);
  transform: translateX(4px);
}

.outcome-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.outcome-badge span {
  flex: 1;
}

/* Key Principles */
.thinking-principles {
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

.thinking-principles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), #ffaa00);
}

.thinking-principles h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2.5rem;
  text-align: center;
}

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

.principle-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;

  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.principle-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.principle-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.principle-item:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.05);
  transform: translateY(-5px);
}

.principle-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.principle-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.principle-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 960px) {
  .thinking-section {
    padding: 4rem 1.5rem;
  }

  .thinking-container {
    padding: 0;
    margin: 0 auto;
  }

  .thinking-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .thinking-card {
    max-width: 100%;
    width: 100%;
  }

  .thinking-header {
    margin-bottom: 3rem;
  }

  .thinking-card {
    padding: 1.5rem;
  }

  .thinking-card-header h3 {
    font-size: 1.1rem;
  }

  .thinking-content p {
    font-size: 0.9rem;
  }

  .outcome-badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .thinking-principles {
    padding: 2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .principle-item {
    flex-direction: column;
    gap: 1rem;
  }

  .principle-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .thinking-section {
    padding: 3rem 1rem;
  }

  .thinking-container {
    padding: 0 0.8rem;
    margin: 0 auto;
  }

  .thinking-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    justify-items: center;
  }

  .thinking-card {
    padding: 1.2rem 1rem;
    max-width: 100%;
    width: 100%;
  }

  .thinking-icon {
    width: 40px;
    height: 40px;
  }

  .thinking-icon svg {
    width: 20px;
    height: 20px;
  }

  .thinking-card-header h3 {
    font-size: 1rem;
  }

  .thinking-content p {
    font-size: 0.85rem;
  }

  .outcome-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ARCHITECTURE & SOLUTION SECTION
   ═══════════════════════════════════════════════════════════ */

.architecture-section {
  padding: 8rem 0;
  background: var(--s);
  position: relative;
  overflow: hidden;
}
.architecture-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 0, 0.3),
    transparent
  );
}

/* THE KEY: same max-width and padding as hero */
.arch-container {
  margin: 0 auto;
  padding: 0 var(--px);
  max-width: 100%;
  width: 100%;
}

.arch-header {
  text-align: center;
  margin-bottom: 5rem;
}
.arch-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
}
.arch-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.arch-subtitle {
  font-size: 1.2rem;
  color: var(--color-white);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.arch-diagram-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Slightly wider diagram side */
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: start; /* Crucial for sticky to work */
}
.arch-diagram {
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  backdrop-filter: blur(10px);
  max-height: none;
  overflow: visible;
}

.arch-grid {
  display: none; /* Removed as a separate element to avoid scroll clipping */
}

.arch-diagram {
  background: var(--s);
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: local; /* Grid scrolls with content */
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  max-height: none;
  overflow: visible;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}
.arch-diagram-wrap.is-full {
  grid-template-columns: 1fr;
}
.arch-layer {
  position: relative;
  margin-bottom: 3rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: archLayerFadeIn 0.6s ease forwards;
}
.arch-layer:nth-child(1) {
  animation-delay: 0.1s;
}
.arch-layer:nth-child(2) {
  animation-delay: 0.2s;
}
.arch-layer:nth-child(3) {
  animation-delay: 0.3s;
}
.arch-layer:nth-child(4) {
  animation-delay: 0.4s;
}
.arch-layer:nth-child(5) {
  animation-delay: 0.5s;
}
@keyframes archLayerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.arch-layer-label {
  font-size: 0.75rem;
  min-width: 250px; /* fix: added semicolon */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  /* remove margin-right entirely */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.arch-layer-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
.arch-layer-content {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.arch-node {
  flex: 1;
  min-width: 150px;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.arch-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.arch-node:hover::before {
  transform: translateX(100%);
}
.arch-node:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}
.arch-node-wide {
  flex: 1 1 100%;
}
.arch-node-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.arch-node-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.arch-node-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.arch-node-desc {
  font-size: 0.85rem;
  color: var(--color-white);
  line-height: 1.4;
}
.arch-connector {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}
.arch-connector-down::after {
  content: "";
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 0, 0.5),
    rgba(255, 107, 0, 0.1)
  );
  position: relative;
  animation: dataFlow 2s ease-in-out infinite;
}
@keyframes dataFlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.arch-image-container {
  position: sticky;
  top: 100px;
  border-radius: 1.5rem;
  overflow: hidden;
  width: 100%;
  height: clamp(400px, 70vh, 600px);
  background: #1a1a1a;
  display: block;
}
.arch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 1;
}
.arch-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.arch-image-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  z-index: 3;
}

.arch-image-badge span {
  color: var(--color-surface);
}
.arch-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.arch-particles::before,
.arch-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: particleFloat 8s ease-in-out infinite;
}
.arch-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.arch-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(0, -200px);
    opacity: 0;
  }
}

.solution-details {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--s);
  /* border: 1px solid rgba(255, 107, 0, 0.2); */
  border-radius: 1.5rem;
  padding: 3rem;
}
.solution-col h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.solution-col h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}
.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  color: var(--color-white);
  line-height: 1.6;
  transition: all 0.3s ease;
}
.solution-list li:last-child {
  border-bottom: none;
}
.solution-list li:hover {
  color: var(--color-dim);
  padding-left: 0.5rem;
}
.solution-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@media (max-width: 1024px) {
  .arch-diagram-wrap {
    grid-template-columns: 1fr;
  }
  .arch-image-container {
    min-height: 400px;
  }
  .solution-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .arch-container {
    padding: 0 1.5rem;
  }
  .arch-header {
    margin-bottom: 3rem;
  }
  .arch-diagram-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .arch-diagram {
    padding: 2rem 1.5rem;
  }
  .arch-layer-content {
    flex-direction: column;
  }
  .arch-node {
    min-width: 100%;
  }
  .solution-details {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .arch-image-container {
    min-height: 300px;
  }
}
@media (max-width: 480px) {
  .arch-container {
    padding: 0 1.25rem;
  }
  .arch-header {
    margin-bottom: 2rem;
  }
  .arch-header h2 {
    font-size: 1.8rem;
  }
  .arch-subtitle {
    font-size: 0.95rem;
  }
  .arch-diagram {
    padding: 1.5rem 1rem;
  }
  .arch-node {
    min-width: 100%;
    padding: 1rem;
  }
  .arch-node-title {
    font-size: 0.9rem;
  }
  .arch-node-desc {
    font-size: 0.8rem;
  }
  .solution-details {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  .arch-image-container {
    min-height: 250px;
  }
}

/* ═══════════════════════════════════════
   THOUGHT PROCESS SECTION
   Same pattern: outer padding uses --px
═══════════════════════════════════════ */
.thinking-section {
  padding: 6rem var(--px);
  max-width: var(--mw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.01);
}
.thinking-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.thinking-header {
  text-align: center;
  margin-bottom: 4rem;
}
.thinking-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
  line-height: 1.1;
  color: var(--color-white);
}
.thinking-header h2 .accent {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thinking-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--w60);
  max-width: 700px;
  margin: 1.5rem auto 0;
}
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  justify-items: center;
  align-items: stretch;
}
.thinking-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 107, 0, 0.06)
  );
  border: 2px solid var(--primary);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  opacity: 1;
  transform: translateY(0) !important;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.thinking-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.12);
  z-index: 2;
}
.thinking-card-header {
  margin-bottom: 1.5rem;
}
.thinking-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid var(--bdr-o);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.thinking-icon svg {
  width: 24px;
  height: 24px;
}
.thinking-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.thinking-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--w60);
  margin-bottom: 1.2rem;
}
.thinking-challenge strong,
.thinking-decision strong {
  color: var(--primary);
  font-weight: 700;
}
.thinking-outcome {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.outcome-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--bdr-o);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--w80);
  transition: all 0.25s ease;
}
.outcome-badge:hover {
  background: rgba(255, 107, 0, 0.12);
  transform: translateX(4px);
}
.outcome-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.outcome-badge span {
  flex: 1;
}
.thinking-principles {
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}
.thinking-principles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), #ffaa00);
}
.thinking-principles h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2.5rem;
  text-align: center;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.principle-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;

  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.principle-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}
.principle-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.principle-item:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.05);
  transform: translateY(-5px);
}
.principle-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.principle-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.principle-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-white);
}

@media (max-width: 960px) {
  .thinking-section {
    padding: 4rem 1.5rem;
  }
  .thinking-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .thinking-principles {
    padding: 2rem;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .principle-item {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .thinking-section {
    padding: 3rem 1.25rem;
  }
  .thinking-card {
    padding: 1.2rem 1rem;
  }
  .thinking-card-header h3 {
    font-size: 1rem;
  }
  .thinking-content p {
    font-size: 0.85rem;
  }
  .outcome-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ═══════════════════════════════════════
   INTEGRATION SECTION
   Full-bleed bg, inner container uses --px
═══════════════════════════════════════ */
.integration-section {
  padding: 8rem 0;
  background: var(--s);
  position: relative;
  overflow: hidden;
}
.integration-container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--px);
}
.integration-header {
  text-align: center;
  margin-bottom: 5rem;
}
.integration-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
}
.integration-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.integration-subtitle {
  font-size: 1.2rem;
  color: var(--color-dim);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}
.integration-timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(255, 107, 0, 0.1));
}
.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateX(-30px);
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-dot {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid #000;
  position: relative;
  z-index: 2;
}
.marker-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.timeline-content {
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s ease;
}
.timeline-content:hover {
  border-color: rgba(255, 107, 0, 0.2);
  transform: none;
  box-shadow: none;
}
.timeline-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--primary);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}
.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.timeline-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.timeline-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.timeline-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.timeline-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.timeline-stat .stat-label {
  font-size: 0.85rem;
  color: var(--dim);
}
.timeline-image {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  height: 520px;
  margin-top: 1.5rem;
}
.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.timeline-content:hover .timeline-image img {
  transform: none;
}
.timeline-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.2),
    rgba(0, 0, 0, 0.5)
  );
}
.timeline-tech {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 0, 0.1);
  color: var(--dim);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.tech-tag:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .integration-container {
    padding: 0 1.5rem;
  }
  .integration-header {
    margin-bottom: 3rem;
  }
  .timeline-item {
    padding-left: 70px;
    margin-bottom: 3rem;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-marker {
    width: 40px;
    height: 40px;
  }
  .marker-dot {
    width: 16px;
    height: 16px;
    border: 3px solid #000;
  }
  .timeline-content {
    padding: 2rem 1.5rem;
  }
  .timeline-content h3 {
    font-size: 1.4rem;
  }
  .timeline-desc {
    font-size: 0.95rem;
  }
  .timeline-stats {
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .integration-container {
    padding: 0 1.25rem;
  }
  .timeline-item {
    padding-left: 0;
    padding-top: 3rem;
    margin-bottom: 2rem;
    position: relative;
  }
  .timeline-line {
    display: none;
  }
  .timeline-item::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, var(--primary), rgba(255, 107, 0, 0.3));
    z-index: 0;
  }
  .timeline-item:last-child::before {
    display: none;
  }
  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 50px;
    height: 50px;
    z-index: 2;
    background: #000;
    border-radius: 50%;
  }
  .marker-dot {
    width: 14px;
    height: 14px;
    border: 3px solid #000;
  }
  .marker-pulse {
    width: 35px;
    height: 35px;
  }
  .timeline-content {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.98);
  }
  .timeline-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════
   IMPLEMENTATION SECTION
═══════════════════════════════════════ */
.implementation-section {
  padding: 8rem 0;
  background: var(--s);
  position: relative;
}
.implementation-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
}
.dev-process.is-full {
  grid-template-columns: 1fr;
}
.implementation-header {
  text-align: center;
  margin-bottom: 5rem;
}
.implementation-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
}
.implementation-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.implementation-subtitle {
  font-size: 1.2rem;
  color: var(--color-white);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}
.dev-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}
.process-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 400px;
}
.process-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.process-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 2;
  pointer-events: none;
}
.process-stats-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  z-index: 3;
}
.overlay-stat {
  text-align: center;
  background: var(--s2);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
}
.overlay-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.overlay-stat-label {
  font-size: 0.85rem;
  color: var(--color-white);
  margin-top: 0.5rem;
}
.process-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.process-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.process-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.process-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.process-metric:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}
.metric-icon-small {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-icon-small svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.metric-value-small {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}
.metric-label-small {
  font-size: 0.9rem;
  color: var(--dim);
}
.tech-stack-deep {
  margin-bottom: 5rem;
  padding: 3rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
}
.tech-stack-deep h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 3rem;
}
.stack-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.stack-category {
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.stack-category:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.category-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.category-header h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}
.stack-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stack-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(255, 107, 0, 0.05);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.stack-item:hover {
  background: rgba(255, 107, 0, 0.1);
  transform: translateX(5px);
}
.stack-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}
.stack-purpose {
  font-size: 0.85rem;
  color: var(--color-white);
}
.cicd-pipeline {
  margin-bottom: 5rem;
  padding: 3rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
}
.cicd-pipeline h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1rem;
}
.cicd-desc {
  text-align: center;
  font-size: 1rem;
  color: var(--dim);
  margin-bottom: 3rem;
}
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.pipeline-step {
  flex: 1;
  min-width: 150px;
  padding: 1.5rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}
.pipeline-step:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}
.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.pipeline-step h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.pipeline-step p {
  font-size: 0.85rem;
  color: var(--dim);
}
.pipeline-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}
.pipeline-stats {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.pipeline-stat {
  text-align: center;
}
.pipeline-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.pipeline-stat-label {
  font-size: 0.9rem;
  color: var(--dim);
}
.implementation-results {
  padding: 3rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
}
.implementation-results h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 3rem;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.result-card {
  text-align: center;
  padding: 2rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}
.result-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.result-label {
  font-size: 1rem;
  color: var(--dim);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .dev-process {
    grid-template-columns: 1fr;
  }
  .stack-categories {
    grid-template-columns: 1fr;
  }
  .pipeline-flow {
    flex-direction: column;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
  }
}
@media (max-width: 768px) {
  .implementation-container {
    padding: 0 1.5rem;
  }
  .implementation-header {
    margin-bottom: 3rem;
  }
  .process-visual {
    height: 300px;
  }
  .dev-process {
    grid-template-columns: 1fr;
  }
  .process-visual img {
    transform: none !important;
    display: block;
  }
}
@media (max-width: 480px) {
  .implementation-container {
    padding: 0 1.25rem;
  }
  .integration-header h2,
  .implementation-header h2 {
    font-size: 1.8rem;
  }
  .integration-subtitle,
  .implementation-subtitle {
    font-size: 0.95rem;
  }
  .process-visual {
    height: 250px;
  }
  .process-stats-overlay {
    flex-direction: row;
    gap: 0.5rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    justify-content: space-between;
  }
  .overlay-stat {
    padding: 0.6rem 0.8rem;
    flex: 1;
    min-width: 0;
    background: var(--s);
  }
  .overlay-stat-value {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  .overlay-stat-label {
    font-size: 0.65rem;
  }
  .stack-categories {
    grid-template-columns: 1fr;
  }
  .pipeline-flow {
    flex-direction: column;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   HANDOVER SECTION
═══════════════════════════════════════ */
.handover-section {
  padding: 8rem 0;
  background: var(--s);
  position: relative;
}
.handover-container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--px);
}
.handover-header {
  text-align: center;
  margin-bottom: 5rem;
}
.handover-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
  text-transform: uppercase;
}

.handover-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.handover-subtitle {
  font-size: 1.2rem;
  color: var(--color-white);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}
.handover-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 5rem;
}
.handover-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
}
.handover-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.2);
}
.handover-card-visual {
  position: relative;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}
.handover-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.handover-card:hover .handover-card-visual img {
  transform: scale(1.1);
}
.handover-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}
.handover-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--s);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-weight: 600;
}
.handover-badge svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.handover-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.handover-card-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.handover-card-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.handover-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.handover-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-white);
  line-height: 1.6;
}
.handover-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.handover-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
}
.handover-metric {
  text-align: center;
  padding: 2rem;
  background: var(--s);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.handover-metric:hover {
  transform: translateY(-5px);
  background: rgba(255, 107, 0, 0.05);
}
.handover-metric-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.handover-metric-label {
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .handover-card {
    grid-template-columns: 1fr;
  }
  .handover-card-visual {
    min-height: 300px;
  }
}
@media (max-width: 768px) {
  .handover-container {
    padding: 0 1.5rem;
  }
  .handover-header {
    margin-bottom: 3rem;
  }
  .handover-grid {
    gap: 2rem;
  }
  .handover-card {
    grid-template-columns: 1fr;
  }
  .handover-card-visual {
    min-height: 250px;
  }
  .handover-card-content {
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .handover-container {
    padding: 0 1.25rem;
  }
}

/* ═══════════════════════════════════════
   SUCCESS STORY SECTION
═══════════════════════════════════════ */
.success-section {
  background: var(--s);
  position: relative;
}
.success-container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--px);
}
.success-header {
  text-align: center;
  margin-bottom: 5rem;
}
.success-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 1rem 0;
}

.success-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-subtitle {
  font-size: 1.2rem;
  color: var(--color-dim);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
  align-items: center;
}
.comparison-side {
  padding: 3rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  transition: all 0.4s ease;
}
.comparison-side:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.2);
}
.comparison-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--primary);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.comparison-side h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.comparison-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.comparison-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.comparison-stat:hover {
  transform: translateX(10px);
}
.comparison-stat.negative {
  border-left: 3px solid #ef4444;
  background: rgba(255, 255, 255, 0.03);
}
.comparison-stat.positive {
  border-left: 3px solid #10b981;
  background: rgba(255, 255, 255, 0.03);
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comparison-stat.negative .stat-icon {
  background: rgba(239, 68, 68, 0.1);
}
.comparison-stat.negative .stat-icon svg {
  color: #ef4444;
  width: 24px;
  height: 24px;
}
.comparison-stat.positive .stat-icon {
  background: rgba(16, 185, 129, 0.1);
}
.comparison-stat.positive .stat-icon svg {
  color: #10b981;
  width: 24px;
  height: 24px;
}
.stat-content {
  flex: 1;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.stat-desc {
  font-size: 0.9rem;
  color: var(--color-dim);
}
.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider-arrow {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.achievement-card {
  padding: 2.5rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
}
.achievement-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.2);
}
.achievement-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 0, 0.1);
  border: 2px solid rgba(255, 107, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}
.achievement-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  transition: all 0.3s ease;
}
.achievement-card:hover .achievement-icon {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}
.achievement-card:hover .achievement-icon svg {
  transform: scale(1.1);
}
.achievement-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.achievement-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.achievement-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .before-after {
    grid-template-columns: 1fr;
  }
  .comparison-divider {
    transform: rotate(90deg);
  }
  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
@media (max-width: 768px) {
  .success-container {
    padding: 0 1.5rem;
  }
  .success-header {
    margin-bottom: 3rem;
  }
  .before-after {
    grid-template-columns: 1fr;
  }
  .comparison-side {
    padding: 2rem 1.5rem;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .success-container {
    padding: 0 1.25rem;
  }
}

/* ═══════════════════════════════════════
   TESTIMONIAL SECTION
═══════════════════════════════════════ */
.testimonial-section {
  padding: 8rem 0;
  background: var(--s);
  position: relative;
}
.testimonial-container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--px);
}
.testimonial-header {
  text-align: center;
  margin-bottom: 5rem;
}
.testimonial-header h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1rem 0;
  text-transform: uppercase;
}

.testimonial-header h2 span {
  background: linear-gradient(
    115deg,
    var(--color-primary) 0%,
    rgba(255, 155, 60, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonial-main {
  padding: 4rem;
  border-radius: 1.5rem;
  background: var(--s);
  position: relative;
  margin-bottom: 4rem;
  border: 1px solid var(--color-white-25);
}
.testimonial-quote-mark {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 107, 0, 0.2);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-quote {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-white);
  margin: 0 0 3rem 0;
  position: relative;
  z-index: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.author-image {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.author-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.author-image-border {
  position: absolute;
  inset: -5px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: rotateBorder 10s linear infinite;
}
@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.author-title {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.author-company {
  font-size: 0.95rem;
  color: var(--color-white);
}
.testimonial-stats {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 107, 0, 0.2);
}
.testimonial-stat {
  text-align: center;
}
.testimonial-stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.testimonial-stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.testimonial-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.testimonial-stat-label {
  font-size: 0.9rem;
  color: var(--color-white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  padding: 2rem;
  background: var(--s);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}
.testimonial-card-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-white);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
}
.card-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}
.card-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.card-author-title {
  font-size: 0.85rem;
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .before-after {
    grid-template-columns: 1fr;
  }
  .comparison-divider {
    transform: rotate(90deg);
  }
  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
@media (max-width: 768px) {
  .testimonial-container {
    padding: 0 1.5rem;
  }
  .testimonial-header {
    margin-bottom: 3rem;
  }
  .testimonial-main {
    padding: 2rem 1.5rem;
  }
  .testimonial-quote {
    font-size: 1.1rem;
  }
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-stats {
    flex-direction: column;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .testimonial-container {
    padding: 0 1.25rem;
  }
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 0, 0.3),
    transparent
  );
}
.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--px);
  text-align: center;
}
.cta-container h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.cta-container p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
}
.cta-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}
.cta-btn-primary:hover {
  background: var(--bg);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}
.cta-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 107, 0, 0.5);
}
.cta-btn-secondary:hover {
  background: rgba(255, 107, 0, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-container {
    padding: 0 1.5rem;
  }
  .cta-container h2 {
    font-size: 1.8rem;
  }
  .cta-container p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .cta-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    text-align: center;
  }
  .cta-btn:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  .cta-container {
    padding: 0 1.25rem;
  }
  .cta-container h2 {
    font-size: 1.5rem;
  }
  .cta-container p {
    font-size: 0.95rem;
  }
  .cta-btn {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
  }
}

/* ═══════════════════════════════════════
   TIMELINE (Story Section)
   story-inner uses --px for same alignment
═══════════════════════════════════════ */
.story-sec {
  padding: 7rem 0;
  background: var(--s);
  position: relative;
  overflow: hidden;
}
.story-bg-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28vw;
  font-weight: 900;
  color: var(--w03);
  letter-spacing: -0.05em;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
}
.story-inner {
  margin: 0 auto;
  padding: 0 var(--px);
  position: relative;
  z-index: 2;
}
.story-header {
  text-align: center;
  margin-bottom: 5rem;
}
.story-header .sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
}
.story-header .sec-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}
.story-header .sec-title {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.story-header .sec-title span {
  display: block;
  background: linear-gradient(135deg, var(--primary), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.story-header .sec-body {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-white);
  font-weight: 500;
}

.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--p),
    var(--w22),
    var(--p),
    transparent
  );
  transform: translateX(-50%);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 2rem;
  row-gap: 0;
  margin-bottom: 2.5rem;
}
.tl-item:nth-child(odd) .tl-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.tl-item:nth-child(odd) .tl-center {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.tl-item:nth-child(odd) .tl-empty {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.tl-item:nth-child(even) .tl-empty {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.tl-item:nth-child(even) .tl-center {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.tl-item:nth-child(even) .tl-content {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.tl-expand {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.32s ease,
    padding 0.38s ease;
  padding-top: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.tl-expand.open {
  max-height: 700px;
  opacity: 1;
  padding-top: 1.2rem;
}
.tl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.tl-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--p);
  text-transform: uppercase;
  background: var(--s);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--o20);
  white-space: nowrap;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--p);
  box-shadow:
    0 0 0 4px var(--s),
    0 0 0 5px var(--o35),
    0 0 20px var(--o60);
  flex-shrink: 0;
  transition: box-shadow 0.35s;
}
.tl-item.active .tl-dot {
  box-shadow:
    0 0 0 4px var(--s),
    0 0 0 7px var(--o60),
    0 0 32px var(--o60);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
.tl-item.active .tl-year {
  background: var(--o08);
  box-shadow: 0 0 12px var(--o20);
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px var(--s),
      0 0 0 7px var(--o60),
      0 0 32px var(--o60);
  }
  50% {
    box-shadow:
      0 0 0 4px var(--s),
      0 0 0 9px var(--o35),
      0 0 50px var(--o35);
  }
}
.tl-content {
  padding: 1.4rem 1.6rem;
  background: var(--s2);
  border: 1px solid var(--w08);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
  user-select: none;
}
.tl-content:hover {
  border-color: var(--o35);
  background: var(--o06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}
.tl-content:focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 3px;
}
.tl-content.active {
  border-color: var(--p);
  background: var(--o08);
  box-shadow:
    0 0 0 1px var(--o20),
    0 16px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
.tl-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p);
  background: var(--o08);
  border: 1px solid var(--o12);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.65rem;
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 0.5rem;
}
.tl-body {
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--w50);
}
.tl-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p);
  opacity: 0.45;
  transition:
    opacity 0.2s,
    gap 0.2s;
}
.tl-hint svg {
  transition: transform 0.35s ease;
}
.tl-content:hover .tl-hint {
  opacity: 0.9;
  gap: 0.5rem;
}
.tl-content.active .tl-hint {
  opacity: 1;
}
.tl-content.active .tl-hint svg {
  transform: rotate(180deg);
}
.tl-expand-inner {
  border: 1px solid var(--o20);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--s) 0%, var(--s) 60%, var(--s) 100%);
  padding: 2.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-expand.open .tl-expand-inner {
  transform: translateY(0);
}
.tl-expand-inner::before,
.tl-expand-inner::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.tl-expand-inner::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--p);
  border-left: 2px solid var(--p);
  border-radius: 18px 0 0 0;
}
.tl-expand-inner::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--p);
  border-right: 2px solid var(--p);
  border-radius: 0 0 18px 0;
}
.tl-exp-bg-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    ellipse at center,
    var(--o06) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.tl-exp-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.3rem;
}
.tl-exp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--o12);
  border: 1px solid var(--o35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--o12);
}
.tl-exp-icon svg {
  width: 24px;
  height: 24px;
  color: var(--p);
}
.tl-exp-year {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 0.2rem;
}
.tl-exp-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--w);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tl-exp-body {
  font-size: 0.95rem;
  line-height: 1.82;
  color: var(--w70);
  margin-bottom: 1.8rem;
  max-width: 100%;
}
.tl-exp-metrics {
  display: flex;
  margin-bottom: 1.6rem;
  background: var(--w03);
  border: 1px solid var(--w08);
  border-radius: 12px;
  overflow: hidden;
}
.tl-exp-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  gap: 0.3rem;
  text-align: center;
  transition: background 0.2s;
}
.tl-exp-metric + .tl-exp-metric {
  border-left: 1px solid var(--w08);
}
.tl-exp-metric:hover {
  background: var(--o06);
}
.tem-val {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tem-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w38);
}
.tl-exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tl-exp-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w50);
  background: var(--w05);
  border: 1px solid var(--w08);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.tl-exp-tag:hover {
  background: var(--o08);
  color: var(--p);
  border-color: var(--o20);
}

@media (max-width: 768px) {
  .story-sec {
    padding: 4rem 0;
  }
  .story-inner {
    padding: 0 1.5rem;
  }
  .story-header {
    margin-bottom: 3rem;
  }
  .story-bg-num {
    font-size: 40vw;
  }
  .tl-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    row-gap: 1rem;
    margin-bottom: 3.5rem;
  }
  .tl-item:nth-child(odd) .tl-center,
  .tl-item:nth-child(even) .tl-center {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 0;
  }
  .tl-item:nth-child(odd) .tl-content,
  .tl-item:nth-child(even) .tl-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-self: start;
  }
  .tl-item:nth-child(odd) .tl-empty,
  .tl-item:nth-child(even) .tl-empty {
    display: none;
  }
  .tl-expand {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 1rem;
  }
  .tl-expand.open {
    max-height: 1200px;
    padding-bottom: 1rem;
  }
  .timeline::before {
    left: 25px;
    transform: none;
  }
  .tl-content {
    padding: 1.2rem 1.4rem;
    position: relative;
  }

  /* Add chevron down indicator for mobile */
  .tl-content::after {
    content: "";
    position: absolute;
    /* top: 1.2rem; */
    bottom: 1rem;
    right: 1.4rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(255, 107, 0, 0.7);
    transition: transform 0.3s ease;
  }

  /* Add "Tap to expand" text */
  .tl-content::before {
    content: "Tap to expand";
    position: absolute;
    bottom: 0.8rem;
    right: 3rem;
    font-size: 0.6rem;
    color: rgba(255, 107, 0, 0.6);
    font-family: var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .tl-content:hover::after {
    transform: translateY(2px);
  }

  /* Rotate chevron when expanded */
  .tl-item:has(.tl-expand.open) .tl-content::after {
    transform: rotate(180deg);
  }

  /* Make year badge smaller on mobile to fit longer text */
  .tl-year {
    font-size: 0.5rem;
    padding: 0.1rem 0.4rem;
    letter-spacing: 0.08em;
    max-width: 45px;
    overflow: visible;
    text-align: center;
  }

  .tl-dot {
    width: 10px;
    height: 10px;
  }

  .tl-center {
    gap: 0.4rem;
  }

  .tl-tag {
    font-size: 0.6rem;
  }
  .tl-title {
    font-size: 0.9rem;
  }
  .tl-body {
    font-size: 0.8rem;
  }
  .tl-exp-metrics {
    flex-direction: column;
  }
  .tl-exp-metric + .tl-exp-metric {
    border-left: none;
    border-top: 1px solid var(--w08);
  }
  .tl-expand-inner {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .story-inner {
    padding: 0 1.25rem;
  }
}

/* ═══════════════════════════════════════
   CTA STRIP (bottom strip variant)
═══════════════════════════════════════ */
.cta-strip {
  padding: 6rem 0;
  background: var(--s);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(
    ellipse at center,
    var(--o12) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--px);
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-inner .sec-label {
  justify-content: center;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--w);
  margin-bottom: 1.2rem;
}
.cta-title em {
  font-style: normal;
  color: var(--p);
}
.cta-body {
  font-size: 1.05rem;
  color: var(--w50);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 9px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-p:hover {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transform: translateY(-2px);
}
.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--w70);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--w12);
  border-radius: 9px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.btn-g:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--w05);
}

/* ═══════════════════════════════════════
   LIGHT MODE — UNIFORM MEDIUM SHADOWS
   Applied to all card/box elements so
   every section has consistent depth.
═══════════════════════════════════════ */
html[data-theme="light"] .stat-card,
html[data-theme="light"] .arch-diagram,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .thinking-card,
html[data-theme="light"] .thinking-principles,
html[data-theme="light"] .principle-item,
html[data-theme="light"] .tech-chip,
html[data-theme="light"] .badge,
html[data-theme="light"] .outcome-badge,
html[data-theme="light"] .arch-layer,
html[data-theme="light"] .arch-layer-tag,
html[data-theme="light"] .tl-content,
html[data-theme="light"] .integration-card,
html[data-theme="light"] .integration-node,
html[data-theme="light"] .step-card,
html[data-theme="light"] .handover-card,
html[data-theme="light"] .result-card,
html[data-theme="light"] .achievement-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .comparison-side,
html[data-theme="light"] .arch-node,
html[data-theme="light"] .arch-node-wide,
html[data-theme="light"] .problem-quote {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .stat-card:hover,
html[data-theme="light"] .arch-diagram:hover,
html[data-theme="light"] .metric-card:hover,
html[data-theme="light"] .thinking-card:hover,
html[data-theme="light"] .principle-item:hover,
html[data-theme="light"] .tech-chip:hover,
html[data-theme="light"] .tl-content:hover,
html[data-theme="light"] .integration-card:hover,
html[data-theme="light"] .step-card:hover,
html[data-theme="light"] .handover-card:hover,
html[data-theme="light"] .result-card:hover,
html[data-theme="light"] .achievement-card:hover,
html[data-theme="light"] .testimonial-card:hover,
html[data-theme="light"] .comparison-side:hover,
html[data-theme="light"] .arch-node:hover,
html[data-theme="light"] .arch-node-wide:hover {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.07);
}
