/* ── Main page bg match: crisp stars, no blur overlay ── */
main.page-frame {
  background: rgba(10,14,28,.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme="light"] main.page-frame {
  background: transparent !important;
}
.about-page-frame {
  min-height: 100svh;
  min-height: 100dvh;
}
.about-screen {
  position: relative;
  z-index: 1;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── About light theme overrides ── */
[data-theme="light"] .about-left-content h2 {
  text-shadow: none;
  color: var(--text);
}
[data-theme="light"] .about-left-content p { text-shadow: none; }
[data-theme="light"] .about-fact {
  background: rgba(255,255,255,.75) !important;
  border-color: rgba(0,212,255,.2);
}
[data-theme="light"] .about-col {
  background: rgba(255,255,255,.82);
  border-color: rgba(0,0,60,.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.1);
}
[data-theme="light"] .about-side-rack { opacity: .18; }

/* Accent text — purple in light */
[data-theme="light"] .about-col-title { color: var(--accent-text); }
[data-theme="light"] .about-col-title::before { background: var(--accent-text); }
[data-theme="light"] .about-section-hdg { color: var(--accent-text); }
[data-theme="light"] .about-section-hdg::before { background: var(--accent-text); }
[data-theme="light"] .case-card-v .case-tag { color: var(--accent-text); }
[data-theme="light"] .btn-show-more { color: var(--accent-text); border-color: rgba(97,50,242,.2); background: rgba(97,50,242,.04); }

/* Light theme: case cards (about page variant — .case-card-v) */
[data-theme="light"] .case-card-v {
  background: rgba(255,255,255,.85) !important;
  border-color: rgba(0,0,50,.12) !important;
}
[data-theme="light"] .case-card-v:hover {
  border-color: rgba(97,50,242,.3) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
[data-theme="light"] .case-card-v .case-tag { background: rgba(97,50,242,.1); }
/* Light theme: section dividers */
[data-theme="light"] .about-trust-inner,
[data-theme="light"] .about-testi-inner { border-top-color: rgba(0,0,0,.08); }

main.page-frame::before {
  left: 0 !important;
  right: 0 !important;
}

/* ── Page hero in banner strip ── */
.about-hero-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 39px;
  padding: 6px 40px !important;
}
.about-hero-lead {
  margin: 0;
  max-width: min(1280px, calc(100vw - 80px));
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-wrap: balance;
  white-space: normal;
}
.about-sla-hint {
  display: inline-block; margin-left: 2px; font-size: 9px; font-weight: 700;
  color: var(--accent); cursor: help; vertical-align: super; line-height: 1;
}

/* ── Full-width overrides — match header width across all sections ── */
#hero-nav {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.about-cols {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 2.8vw, 40px);
  flex: 1 1 0;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative; z-index: 1;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}
.about-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(6px, 1vh, 12px);
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(6px, 1.2vh, 14px) 28px clamp(6px, 1vh, 12px) !important;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

/* ── Column title ── */
.about-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 2.2vh, 28px) clamp(18px, 2vw, 26px);
  border: 1px solid rgba(0,212,255,.22);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: rgba(8,11,26,.55);
  box-shadow:
    0 22px 56px rgba(0,0,0,.35),
    0 0 0 1px rgba(0,212,255,.08),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
/* Center column — title centered to match content alignment */
.about-cols > .about-col:nth-child(2) .about-col-title { justify-content: center; }
.about-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.about-col-title::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent);
}

/* ── LEFT: Company card — transparent, bg shows through ── */
.about-left-card {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: flex-start;
}
.about-left-content h2 {
  text-shadow: 0 1px 16px rgba(0,0,0,.9), 0 0 40px rgba(0,0,0,.7);
}
.about-left-content p {
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
}
.about-fact {
  background: rgba(0,0,0,.35) !important;
  backdrop-filter: blur(8px);
}
.about-left-content {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, .45) transparent;
}
.about-left-content::-webkit-scrollbar {
  width: 6px;
}
.about-left-content::-webkit-scrollbar-track {
  background: transparent;
}
.about-left-content::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, .45);
  border-radius: 999px;
}
.about-left-content .about-discuss-btn {
  align-self: flex-end;
  display: inline-flex;
  margin-top: auto !important;
}
.about-left-content h2 {
  font-size: clamp(26px, 2.1vw, 36px); font-weight: 900; letter-spacing: 0;
  margin-bottom: 16px; line-height: 1.18;
}
.about-left-content p {
  font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 0;
}
.about-facts {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
.about-fact {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,212,255,.06); border: 1px solid rgba(0,212,255,.14);
  border-radius: 12px; padding: 11px 14px;
}
.about-fact-num {
  font-size: 20px; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, #00bcef, #733cfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; min-width: 44px; flex-shrink: 0;
}
.about-fact-lbl { font-size: 12px; color: var(--muted); line-height: 1.4; min-width: 0; word-wrap: break-word; }

/* ── Side server rack decorations — z-index:0 keeps them behind content ── */
.about-side-rack {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 340px;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}
.about-side-rack-left  { left: 0; }
.about-side-rack-right { right: 0; }
.about-side-rack canvas { display: block; width: 340px; height: 100%; }
.about-side-rack-left canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}
.about-side-rack-right canvas {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 45%);
  mask-image: linear-gradient(to left, transparent 0%, black 45%);
}
@media (max-width: 1480px) { .about-side-rack { opacity: .65; } }
@media (max-width: 1240px) { .about-side-rack { display: none; } }

/* ── RIGHT: Cases ── */
.about-cases-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  min-width: 0;
  height: 100%;
  align-content: start;
  position: relative;
  padding-bottom: 62px;
}
.about-cases-list .case-card-v {
  background: rgba(28,35,51,.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  min-width: 0;
}
.about-cases-list .case-card-v:hover,
.about-cases-list .case-card-v:focus-visible {
  border-color: rgba(0,188,239,.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  outline: none;
}
.about-cases-list .case-card-v:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.about-cases-list .case-card-v .case-img { aspect-ratio: 16 / 10; }
.about-cases-list .case-card-v .case-body { padding: 14px 16px 16px; min-width: 0; }
.about-cases-list .case-card-v .case-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(0,212,255,.1); border-radius: 6px;
  padding: 3px 8px; margin-bottom: 0;
}
.about-cases-list .case-card-v h3 {
  font-size: 14px; font-weight: 700; margin-bottom: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.about-cases-list .case-card-v p {
  font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.about-cases-list .case-card-v h3,
.about-cases-list .case-card-v p {
  display: none;
}
.about-cases-error,
.about-cases-fallback {
  grid-column: 1 / -1; text-align: center; padding: 20px 12px;
  border: 1px dashed rgba(255,255,255,.12); border-radius: 12px;
}
.about-cases-error p,
.about-cases-fallback-text { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.about-cases-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; }
.about-cases-list .btn-show-more { display: block; text-align: center; text-decoration: none; grid-column: 1 / -1; }
.about-cases-list > .btn-show-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
}
.btn-show-more {
  width: 100%; margin-top: 6px;
  padding: 11px; border-radius: 10px;
  border: 1px solid rgba(0,212,255,.2);
  background: rgba(0,212,255,.05);
  color: var(--accent); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: .2s;
}
.btn-show-more:hover { background: rgba(0,212,255,.12); border-color: var(--accent); }

/* ── Process timeline — same rhythm as the home page ── */
.about-process-steps {
  position: relative;
  --process-gap: clamp(8px, 1.2vw, 14px);
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--process-gap);
  align-items: start;
  flex-shrink: 0;
  padding: clamp(8px, 1.2vh, 14px) 0 0;
}
.about-process-steps .process-step .desc {
  font-size: clamp(11px, 1.05vw, 13px);
  color: rgba(143, 180, 211, .88);
  line-height: 1.5;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(4px, .6vw, 8px);
}
.about-process-steps .process-connector {
  position: absolute;
  left: calc((100% - (4 * var(--process-gap))) / 10);
  right: calc((100% - (4 * var(--process-gap))) / 10);
  top: calc(clamp(40px, 4.2vh, 48px) / 2);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(0, 212, 255, 0) 0%,
    rgba(0, 212, 255, .4) 15%,
    rgba(0, 212, 255, .4) 85%,
    rgba(0, 212, 255, 0) 100%
  );
  z-index: 0;
  overflow: visible;
}
.about-process-steps .process-connector::before,
.about-process-steps .process-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,.9), 0 0 20px rgba(0,212,255,.5);
}
.about-process-steps .process-connector::before { left: 0; }
.about-process-steps .process-connector::after { left: 100%; }
.about-process-steps .process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #9ccfe8;
  font-size: 12px;
}
.about-process-steps .process-step .num-wrap {
  position: relative;
  width: clamp(40px, 4.2vh, 48px);
  height: clamp(40px, 4.2vh, 48px);
  margin: 0 auto clamp(6px, .8vh, 10px);
}
.about-process-steps .process-step .num {
  width: clamp(40px, 4.2vh, 48px);
  height: clamp(40px, 4.2vh, 48px);
  border-radius: 50%;
  background: rgba(5,10,20,.72);
  border: 2px solid rgba(0,212,255,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(13px, 1.3vw, 15px);
  color: #00d4ff;
  box-shadow: 0 0 16px rgba(0,212,255,.15);
  position: relative;
  z-index: 1;
}
.about-process-steps .process-step .title {
  font-weight: 700;
  color: #e6edf3;
  font-size: clamp(12px, 1.25vw, 15px);
  margin-bottom: clamp(6px, .8vh, 8px);
  line-height: 1.3;
}
[data-theme="light"] .about-process-steps .process-step .title { color: #0e1624; }
[data-theme="light"] .about-process-steps .process-step .desc { color: #3a4d63; }
[data-theme="light"] .about-process-steps .process-step .num {
  background: rgba(255,255,255,.88);
  border-color: rgba(0,180,255,.45);
  color: #0077aa;
}

/* ── Trust & Testimonials sections ── */
.about-trust-wrap, .about-testi-wrap {
  max-width: 100% !important; margin: 0 !important; padding: 0 !important;
  position: relative; z-index: 1; width: 100%; box-sizing: border-box;
  /* no border-top here — empty placeholders must be invisible */
}
/* border only renders when JS has filled the inner content */
.about-trust-inner { padding: 40px 40px 12px; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.06); }
.about-testi-inner { padding: 40px 40px 64px; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.06); }
.about-section-hdg {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.about-section-hdg::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent);
}
.about-testi-wrap .testi-card.hidden { display: none; }
.about-testi-wrap .btn-show-more { margin-top: 16px; }

/* ── Responsive ── */
/* 961–1240px: three columns get too cramped — stack them earlier */
@media (max-width: 1240px) {
  .about-screen {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
  }
  .about-stage {
    flex: 0 0 auto;
    overflow: visible;
  }
  .about-cols {
    grid-template-columns: 1fr !important;
    gap: 28px;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .about-col {
    min-height: auto;
    overflow: visible;
  }
  .about-left-card {
    height: auto;
  }
  .about-left-content {
    height: auto;
    overflow-y: visible;
  }
  .about-cases-list {
    height: auto;
    min-height: 0;
  }
}
@media (max-width: 900px) {
  .about-stage {
    padding: 8px 14px 12px !important;
    gap: 10px;
  }
  .about-process-steps {
    width: 100%;
    padding: 8px 0 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .about-process-steps .process-connector { display: none; }
  .about-process-steps .process-step .desc { max-width: none; padding: 0 6px; }
}
@media (max-width: 960px) {
  .about-trust-inner { padding: 32px 24px 8px; }
  .about-testi-inner { padding: 32px 24px 48px; }
  .about-hero-banner { padding: 5px 20px !important; min-height: 33px; }
  .about-hero-lead {
    max-width: calc(100vw - 40px);
    text-wrap: pretty;
  }
}
@media (max-width: 560px) {
  .about-col { padding: 22px 18px; border-radius: 16px; }
  .about-left-card { min-height: 0; }
  .about-cases-list { grid-template-columns: 1fr; }
  .about-process-steps { grid-template-columns: 1fr; padding: 16px 14px 24px; }
  .about-process-steps .process-step .num-wrap,
  .about-process-steps .process-step .num { width: 40px; height: 40px; font-size: 12px; }
}
/* Reserve heights to prevent CLS */
#casesList { min-height: 420px; }
@media (max-width: 1240px) {
  #casesList { min-height: 0; }
}
