/* ============================================================
   818 Business Solutions — About Us
   Page-specific styles. Loads after 818-home.css, which already
   provides: hero-main/hero-shift/hero-h1, grid-2, about-ghost,
   marquee-track, why-row/why-num/why-blob, mnav, footer-*,
   glass-cta, lang-btn and the shared keyframes.
   ============================================================ */

.ipage-wrap { position: relative; }

/* ---- Nav overlaid on the video hero (opt-in via $nav_overlay) ---- */
.top-nav--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  animation: navDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Hero ---- */
.a-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b1320;
  padding: 84px 24px 0;
  box-sizing: border-box;
  text-align: center;
}
.a-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.a-hero-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,19,32,0.42) 0%, rgba(11,19,32,0.18) 38%, rgba(11,19,32,0.62) 100%);
}
.a-hero-inner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  max-width: 960px;
}

/* ---- Marquee band ---- */
.a-marquee {
  position: relative;
  overflow: hidden;
  background: #0E1929;
  border-top: 1px solid rgba(198,168,119,0.28);
  border-bottom: 1px solid rgba(198,168,119,0.28);
  padding: 22px 0;
}

/* ---- Founders ---- */
.f-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.f-card-area {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}

/* The two invisible hover halves sitting over the founders photo.
   Both start desaturated; the hovered side returns to full colour. */
.f-half-left,
.f-half-right {
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  transition: backdrop-filter 0.55s ease-out, -webkit-backdrop-filter 0.55s ease-out;
}
.f-grid.f-left  .f-half-left,
.f-grid.f-right .f-half-right {
  backdrop-filter: grayscale(0);
  -webkit-backdrop-filter: grayscale(0);
}

.f-hint { opacity: 1; transition: opacity 0.4s ease-out; }
.f-grid.f-left .f-hint,
.f-grid.f-right .f-hint { opacity: 0; }

.f-card-box {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.f-grid.f-left .f-card-box,
.f-grid.f-right .f-card-box { opacity: 1; transform: none; }

.f-connector path {
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s;
}
.f-grid.f-left  .f-connector path,
.f-grid.f-right .f-connector path { stroke-dashoffset: 0; }

/* Placeholder shown until a real founders photo is dropped in. */
.f-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #122C48 0%, #0E1929 70%);
  color: rgba(235,231,216,0.4);
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; padding: 0 24px;
}

/* ---- Vision & mission ---- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.vm-card {
  position: relative;
  background: #0E1929;
  border: 1px solid rgba(235,231,216,0.1);
  border-top: 2px solid #C6A877;
  border-radius: 8px;
  padding: 44px 40px;
  box-sizing: border-box;
  transition: border-color 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.45s cubic-bezier(0.22,1,0.36,1);
}
.vm-card:hover {
  border-color: rgba(198,168,119,0.6);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 56px rgba(0,0,0,0.5), 0 0 46px rgba(198,168,119,0.24);
}

/* ---- What makes 818 different (typewriter) ---- */
@keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.a-caret {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: #C6A877;
  margin-left: 7px;
  vertical-align: -0.08em;
  animation: caretBlink 1.05s steps(1) infinite;
}

/* ---- Mobile ---- */
@media (max-width: 980px) {
  .a-hero { height: 100svh; min-height: 620px; padding: 96px 24px 0; }
  #story    { padding: 100px 24px 88px !important; }
  #founders { padding: 96px 24px !important; }
  #vision   { padding: 96px 24px !important; }
  #diff     { padding: 96px 24px !important; }
  .vm-grid  { grid-template-columns: 1fr !important; gap: 20px !important; }
  .f-grid   { grid-template-columns: 1fr !important; gap: 36px !important; }
  .f-card-area { min-height: 300px !important; }
  .f-connector { display: none !important; }
}
