body.about-page {
  min-height: 100vh;
  overflow: hidden;
  background: #0B0F1A;
}

.about-page main {
  position: relative;
}

.about-page .section-heading {
  margin-bottom: 28px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.about-page .section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-page .about-screen {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top center, rgba(201, 166, 70, 0.06) 0%, rgba(11, 15, 26, 0) 36%),
    #0B0F1A;
  transform: translateY(100%);
  visibility: hidden;
  z-index: 1;
  overflow: hidden;
}

.about-page .about-screen.panel-active,
.about-page .about-screen.panel-entering {
  visibility: visible;
}

.about-page .about-screen.panel-active {
  transform: translateY(0);
  z-index: 2;
}

.about-page .about-screen.panel-above {
  transform: translateY(-100%);
}

.about-page .about-screen.panel-below {
  transform: translateY(100%);
}

.about-page .about-screen.panel-entering {
  z-index: 3;
  transition: transform 0.75s ease;
}

.about-shell {
  width: 100%;
  padding: 48px 0;
}

.opening-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}

.opening-image {
  min-height: 560px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.04);
}

.opening-content {
  display: flex;
  align-items: center;
  min-height: 560px;
}

.opening-panels {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}

.opening-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12%);
  pointer-events: none;
  transition: transform 0.75s ease, opacity 0.55s ease;
}

.opening-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.opening-copy {
  max-width: 820px;
  margin-bottom: 0;
}

.opening-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}

.opening-body {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.principle-text {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.about-values .about-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.about-values .section-heading {
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 20px;
}

.values-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
  min-height: 320px;
  margin-bottom: 28px;
}

.values-visual img {
  display: block;
  width: min(100%, 620px);
  max-height: 340px;
  object-fit: contain;
}

.values-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.value-card {
  flex: 0 0 180px;
  min-height: 260px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.44), rgba(8, 12, 21, 0.8));
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.94);
}

.value-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.value-card.is-active {
  transform: scale(1.035);
  border-color: rgba(201, 166, 70, 0.44);
  background: linear-gradient(180deg, rgba(20, 29, 49, 0.62), rgba(9, 13, 24, 0.92));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.thinking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.thinking-copy {
  max-width: 680px;
}

.thinking-line {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
}

.thinking-line + .thinking-line {
  margin-top: 26px;
}

.thinking-line-primary {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.96);
}

.thinking-visual {
  display: flex;
  justify-content: center;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.thinking-visual-image {
  width: min(100%, 420px);
  height: 460px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.46), rgba(7, 11, 20, 0.88));
  min-height: 560px;
  overflow: hidden;
}

.team-image {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: calc(100% - 48px);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center 18%;
  transition: width 0.7s ease, height 0.7s ease, right 0.7s ease, border-radius 0.7s ease;
}

.team-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.24) 0%, rgba(7, 11, 20, 0.8) 28%, rgba(7, 11, 20, 0.95) 100%);
  backdrop-filter: blur(8px);
  transition: left 0.7s ease, right 0.7s ease, top 0.7s ease, bottom 0.7s ease, padding 0.7s ease, background 0.7s ease;
}

.team-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.team-head h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
}

.team-role {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.56);
}

.team-link {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: 0.3s;
}

.team-link svg {
  width: 18px;
  height: 18px;
}

.team-link:hover {
  color: var(--accent);
  border-color: rgba(201, 166, 70, 0.5);
}

.team-oneliner {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.8);
}

.team-expanded {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  font-size: 0.9rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.6);
  transition: max-height 0.6s ease, margin-top 0.45s ease, opacity 0.4s ease, transform 0.45s ease;
}

.team-card:hover .team-image,
.team-card:focus-within .team-image {
  right: 52%;
  height: calc(100% - 48px);
}

.team-card:hover .team-expanded,
.team-card:focus-within .team-expanded {
  max-height: 360px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover .team-content,
.team-card:focus-within .team-content {
  top: 24px;
  bottom: 24px;
  left: 51%;
  right: 24px;
  justify-content: flex-start;
  padding: 12px 0 0 22px;
  background: none;
  backdrop-filter: none;
}

.team-card:hover .team-oneliner,
.team-card:focus-within .team-oneliner {
  margin-bottom: 0;
}

.about-final-shell {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

.about-cta-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-cta-shell .section-heading {
  justify-content: center;
}

.closing-line {
  max-width: 720px;
  margin-bottom: 34px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.footer-shell {
  display: flex;
  align-items: flex-end;
}

.footer-shell .final-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  align-content: start;
  padding: 36px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-shell .footer-column h3,
.footer-shell .footer-column h4 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.footer-shell .footer-column p,
.footer-shell .footer-column li,
.footer-shell .footer-column a {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
}

.footer-shell .footer-column ul {
  list-style: none;
}

.footer-shell .footer-column a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.footer-shell .footer-bottom {
  grid-column: 1 / -1;
  padding-top: 10px;
}

.footer-shell .footer-bottom p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  body.about-page {
    overflow: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .about-page .about-screen {
    position: relative;
    top: auto;
    height: auto;
    min-height: calc(100vh - 72px);
    padding: 0;
    transform: none;
    visibility: visible;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .about-page .about-screen.panel-active,
  .about-page .about-screen.panel-entering,
  .about-page .about-screen.panel-above,
  .about-page .about-screen.panel-below {
    transform: none;
  }

  .about-shell {
    padding: 24px 16px; /* add side padding for breathing room */
  }

  /* Structural consistency */
  .about-page .section-heading {
    justify-content: center; /* Keep headings centered on mobile */
    margin-bottom: 24px;
    width: 100%;
  }
  /* Values heading should also center on mobile */
  .about-values .section-heading {
    justify-content: center;
  }

  /* 1. ABOUT SUVAQUAD (INTRO SECTION) */
  /* Ensure content starts below fixed navbar */
  .about-opening .about-shell {
    padding-top: calc(72px + max(14px, env(safe-area-inset-top)));
  }
  .opening-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .opening-content,
  .opening-panels {
    display: contents; /* Unbox to order elements interleaving with image */
  }

  .opening-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    width: 100%;
  }

  .opening-panel + .opening-panel {
    margin-top: 0;
  }

  .opening-panel:nth-child(1) {
    order: 1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
  }

  .opening-panel:nth-child(1) .section-heading {
    margin-bottom: 16px;
  }

  .opening-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align body copy */
    text-align: left;
  }

  .opening-lead,
  .opening-body {
    font-size: 15px;
    line-height: 1.62;
    text-align: left; /* Left align body copy */
    max-width: 100%;
    margin-bottom: 16px;
  }

  .opening-image {
    order: 2;
    min-height: 0;
    width: min(88%, 280px);
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mission and Vision horizontal cards */
  .opening-panel:nth-child(2),
  .opening-panel:nth-child(3) {
    order: 3;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.44), rgba(8, 12, 21, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  /* Headings remain centered globally; no override here */

  .opening-panel:nth-child(2) .section-heading,
  .opening-panel:nth-child(3) .section-heading {
    margin-bottom: 12px;
  }

  .principle-text {
    font-size: 15px;
    line-height: 1.62;
    text-align: left;
    margin: 0;
  }

  /* 2. VALUES SECTION */
  .about-values .about-shell {
    display: block; /* Reset centering from desktop */
  }

  .values-visual {
    min-height: 0;
    margin-bottom: 32px;
  }

  .values-visual img {
    width: 100%;
    max-height: 22vh;
  }

  .values-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    gap: 14px;
    padding: 0 16px 20px; /* minimal gutter; JS sets exact centering */
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
  }

  /* During JS-driven initial centering, disable snap to avoid mid-list locking */
  .values-list[data-initializing="true"] {
    scroll-snap-type: none;
  }

  /* neutralize any pseudo spacers if present */
  .values-list::before,
  .values-list::after {
    content: none;
    flex: 0 0 auto;
  }

  .values-list::-webkit-scrollbar {
    display: none;
  }

  .value-card {
    flex: 0 0 76vw;
    min-width: 76vw;
    scroll-snap-align: center;
    min-height: 300px; /* portrait feel */
    padding: 24px;
    border-radius: 20px;
    transform: none;
    background: linear-gradient(180deg, rgba(20, 29, 49, 0.62), rgba(9, 13, 24, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  }

  /* focused card (one at a time) */
  .value-card.is-active {
    transform: scale(1.02);
    border-color: rgba(201, 166, 70, 0.7);
    box-shadow:
      0 22px 44px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px rgba(201, 166, 70, 0.14);
  }

  /* Mission and Vision horizontal cards radius consistency */
  .opening-panel:nth-child(2),
  .opening-panel:nth-child(3) {
    border-radius: 20px;
  }

  .value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .value-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* 3. HOW WE THINK */
  .thinking-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .thinking-copy {
    display: contents; /* Unbox to reorder heading and text around image */
  }

  .thinking-line-primary {
    order: 1;
    font-size: 1.6rem;
    line-height: 1.25;
    text-align: center; /* Keep this headline centered */
    margin-bottom: 24px;
  }

  .thinking-visual {
    order: 2;
    margin-bottom: 24px;
    border-radius: 20px;
    width: 100%;
    background: none;
  }

  .thinking-visual-image {
    width: min(88%, 280px);
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .thinking-line:not(.thinking-line-primary) {
    order: 3;
    font-size: 15px;
    line-height: 1.62;
    text-align: left; /* Left align supporting text */
  }

  .thinking-line + .thinking-line {
    margin-top: 16px;
  }

  /* 4. CORE TEAM */
  .team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .team-card {
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-image {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(88%, 280px);
    max-width: 280px;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    margin-bottom: 24px;
    transition: none;
    margin-left: auto;
    margin-right: auto;
  }

  .team-content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
    margin-top: 0;
    background: none;
    backdrop-filter: none;
    text-align: left; /* Left align body copy */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: none;
  }

  .team-head {
    flex-direction: column;
    align-items: flex-start; /* Left align the content block */
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
  }
  .team-head > div { /* Make text block full-width so name can center while role stays left */
    width: 100%;
  }

  .team-head h3 {
    text-align: center; /* Keep names centered */
    font-size: 1.3rem;
  }

  .team-role {
    text-align: left;
  }

  .team-oneliner {
    text-align: left;
    font-size: 15px;
    margin-bottom: 0;
  }

  .team-expanded {
    max-height: none;
    margin-top: 16px;
    opacity: 1;
    transform: none;
    text-align: left;
    transition: none;
  }

  .team-card:hover .team-image,
  .team-card:focus-within .team-image {
    right: auto;
    height: 400px;
    width: 100%;
  }

  .team-card:hover .team-content,
  .team-card:focus-within .team-content {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }

  /* FINAL CTA & FOOTER */
  .about-final-shell {
    grid-template-rows: auto auto;
    gap: 24px;
  }

  .closing-line {
    margin-bottom: 22px;
    font-size: clamp(1.9rem, 8vw, 2.3rem);
    text-align: left; /* Left align closing sentence */
  }

  .footer-shell {
    align-items: flex-start;
  }

  .footer-shell .final-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0 10px;
  }
}

@media (max-width: 560px) {
  .values-list,
  .footer-shell .final-footer {
    grid-template-columns: 1fr;
  }
}
