/* ================= About page ================= */

/* Hero */
.about-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-badges { position: relative; height: 340px; }
.hb-core {
  position: absolute; left: 50%; top: 50%;
  width: 130px; height: 130px; margin: -65px;
  border-radius: 34px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 80px rgba(47, 107, 255, 0.55);
}
.hb-core.revealed { animation: hbSpin 12s ease-in-out infinite; }
@keyframes hbSpin { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
.hb-core img { width: 70px; filter: brightness(0) invert(1); }
.hb {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.92rem;
  white-space: nowrap;
}
.hb i { color: #8fb4ff; }
.hb1 { top: 6%; left: 4%; }
.hb2 { top: 40%; right: 0; }
.hb3 { bottom: 4%; left: 14%; }
.hb.revealed { animation: bob 6s ease-in-out infinite; }
.hb2.revealed { animation-delay: -2s; }
.hb3.revealed { animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Who we are */
.who-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.who-copy > p { color: var(--muted); }
.who-visual { position: relative; min-height: 440px; }
.who-card { position: absolute; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.who-card.main {
  inset: 0 50px 60px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 40px;
  background:
    radial-gradient(circle at 20% 20%, var(--primary-50), transparent 60%),
    #fff;
}
.who-card.main img { width: 80%; max-width: 320px; }
.who-lines { display: grid; gap: 10px; width: 70%; }
.who-lines span { height: 8px; border-radius: 8px; background: var(--primary-50); position: relative; overflow: hidden; }
.who-lines span::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--primary-200), transparent); animation: shimmer 2.4s infinite; }
.who-lines span:nth-child(2) { width: 80%; } .who-lines span:nth-child(3) { width: 55%; }
.who-lines span:nth-child(2)::after { animation-delay: 0.3s; } .who-lines span:nth-child(3)::after { animation-delay: 0.6s; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.who-card.exp {
  right: 0; bottom: 0;
  padding: 24px 28px;
  background: var(--grad);
  color: #e3ebff;
  border: 0;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-glow);
}
.who-card.exp strong { font-family: var(--font-head); font-size: 2.8rem; color: #fff; line-height: 1; }
.who-card.exp span { font-size: 0.88rem; line-height: 1.4; }
.who-card.mini { left: -20px; bottom: 90px; padding: 12px 18px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.who-card.mini i { color: var(--success); margin-right: 6px; }
.dots-pattern {
  position: absolute; right: 20px; top: -30px; z-index: -1;
  width: 140px; height: 140px;
  background-image: radial-gradient(var(--primary-200) 2px, transparent 2px);
  background-size: 16px 16px;
  animation: floatY 7s ease-in-out infinite;
}

/* Mission / vision tabs */
.mv-tabs { margin-top: 28px; padding: 8px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.mv-tablist { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mv-tab {
  position: relative; z-index: 1;
  padding: 12px; border: 0; border-radius: 14px; background: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; color: var(--muted);
  transition: color 0.3s;
}
.mv-tab.active { color: #fff; }
.mv-ink { position: absolute; top: 0; bottom: 0; left: 0; width: calc(50% - 2px); border-radius: 14px; background: var(--grad); box-shadow: var(--shadow-glow); transition: transform 0.5s var(--ease-back); }
.mv-tablist.second .mv-ink { transform: translateX(calc(100% + 4px)); }
.mv-panel { display: none; padding: 18px 16px 10px; }
.mv-panel.active { display: block; animation: panelIn 0.5s var(--ease); }
.mv-panel p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

/* Timeline */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 10px 0; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--primary-100); border-radius: 3px; }
.tl-fill { display: block; width: 100%; height: 0; background: var(--grad); border-radius: 3px; box-shadow: 0 0 14px rgba(47, 107, 255, 0.6); position: relative; }
.tl-fill::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(0, 67, 209, 0.15);
}
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-bottom: 46px; }
.tl-item:last-child { margin-bottom: 0; }
@media (min-width: 761px) { .tl-item + .tl-item { margin-top: -110px; } }
.tl-dot {
  position: absolute; left: 50%; top: 26px;
  width: 54px; height: 54px; margin-left: -27px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--primary-300);
  border: 3px solid var(--primary-100);
  z-index: 1;
  transform: scale(0.6);
  transition: transform 0.6s var(--ease-back), background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.tl-item.active .tl-dot { transform: scale(1); background: var(--primary); color: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(0, 67, 209, 0.15), var(--shadow-glow); }
.tl-card { grid-column: 1; opacity: 0; transform: translateX(-60px) rotate(-2deg); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.45s, border-color 0.45s; }
.tl-item:nth-child(odd) .tl-card { grid-column: 2; transform: translateX(60px) rotate(2deg); }
.tl-item.active .tl-card, .tl-item.active:nth-child(odd) .tl-card { opacity: 1; transform: none; }
.tl-item.active .tl-card:hover { transform: translateY(-6px); }

.tl-card h3 { margin-bottom: 8px; }
.tl-card p { color: var(--muted); margin: 0; }
.tl-year {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding: 4px 14px; border-radius: 100px;
  background: var(--primary-50); color: var(--primary);
  margin-bottom: 12px;
}
.tl-item.now .tl-card { background: var(--grad); border: 0; color: #e3ebff; box-shadow: var(--shadow-glow); }
.tl-item.now .tl-card h3 { color: #fff; }
.tl-item.now .tl-card p { color: #dbe5ff; margin-bottom: 14px; }
.tl-item.now .tl-year { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tl-item.now .link-arrow { color: #fff; }
.tl-item.now .tl-dot { animation: nowPulse 2s infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 14px rgba(0, 67, 209, 0); } }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.founder-photo { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.fp-blob {
  position: absolute; inset: -6% -6% -6% -6%; z-index: -1;
  background: var(--grad);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: blob 10s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes blob {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0); }
  33% { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; transform: rotate(8deg); }
  66% { border-radius: 38% 62% 35% 65% / 62% 38% 62% 38%; transform: rotate(-6deg); }
}
.fp-frame { border-radius: 32px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.fp-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.8s var(--ease); }
.fp-frame:hover img { transform: scale(1.05); }
.fp-badge {
  position: absolute; left: -30px; bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.fp-badge i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.fp-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.95rem; }
.fp-badge small { color: var(--muted); font-size: 0.8rem; }
.fp-ring { position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%; border: 2px dashed var(--primary-300); animation: spin 18s linear infinite; z-index: -2; }

.founder-copy h2 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 4px; }
.founder-copy .role { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: 1.1rem; margin-bottom: 24px; }
.founder-copy > p { color: var(--muted); }
.founder-copy blockquote {
  position: relative;
  margin: 0 0 24px;
  padding: 22px 26px 22px 64px;
  border-radius: 18px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--ink); line-height: 1.5;
}
.founder-copy blockquote i { position: absolute; left: 22px; top: 22px; font-size: 1.5rem; color: var(--primary-300); }
.founder-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.founder-highlights div {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.founder-highlights div:hover { border-color: var(--primary-200); transform: translateY(-3px); }
.founder-highlights i { color: var(--primary); }
.founder-social { display: flex; gap: 10px; }
.founder-social a {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary);
  transition: transform 0.4s var(--ease-back), background 0.3s, color 0.3s;
}
.founder-social a:hover { background: var(--primary); color: #fff; transform: translateY(-4px) rotate(-6deg); }

/* Values */
.values { overflow: hidden; isolation: isolate; }
.values .bg-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(110, 155, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(110, 155, 255, 0.15);
  transition: background 0.4s, border-color 0.4s, transform 0.45s var(--ease);
}
.value:hover { background: rgba(47, 107, 255, 0.12); border-color: rgba(110, 155, 255, 0.4); transform: translateY(-6px); }
.value i { font-size: 1.6rem; color: #7fa6ff; margin-bottom: 18px; display: inline-block; transition: transform 0.5s var(--ease-back); }
.value:hover i { transform: scale(1.2) rotate(-10deg); color: #fff; }
.value p { color: #a9b6dc; margin: 0; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 1024px) {
  .about-hero-inner, .who-grid, .founder-grid { grid-template-columns: 1fr; }
  .hero-badges { display: none; }
  .who-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { gap: 60px; }
}
@media (max-width: 760px) {
  .tl-line { left: 27px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 76px; }
  .tl-dot { left: 27px; top: 22px; }
  .tl-card, .tl-item:nth-child(odd) .tl-card { grid-column: 1; transform: translateX(40px); }
  .tl-item.active .tl-card, .tl-item.active:nth-child(odd) .tl-card { transform: none; }
}
@media (max-width: 680px) {
  .who-visual { min-height: 360px; }
  .who-card.main { inset: 0 20px 70px 0; padding: 26px; }
  .who-card.mini { left: 0; bottom: 110px; }
  .values-grid { grid-template-columns: 1fr; }
  .fp-badge { left: 0; bottom: 16px; }
  .fp-ring { right: -6px; }
  .founder-copy blockquote { padding-left: 54px; font-size: 1.02rem; }
}
