/* About Us — full-width gray/white bands, Figma detail */
:root {
  --about-gray: #e9e9e9;
  --about-gray-photo: #d8d8d8;
  --about-white: #ffffff;
  --about-text: #2a2a2a;
  --about-text-muted: #7a7a7a;
  --about-blue: #0c58d0;
  --about-navy: #0a1a32;
  --about-border: #d4d4d4;
  --about-container: 1180px;
  --about-title: #000099;
}

.about-page {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--about-text);
  overflow-x: hidden;
}

/* Normal page flow — footer scrolls to end of content, not pinned to viewport */
html:has(.about-page:not(.about-employee-page)),
body:has(.about-page:not(.about-employee-page)) {
  display: block;
  height: auto;
  min-height: 100%;
}

.about-container {
  width: 100%;
  max-width: var(--about-container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

/* Full-bleed gray bands */
.about-gray-band {
  width: 100%;
  background: var(--about-gray);
  padding: clamp(2rem, 4vw, 3rem) 0 0;
  box-sizing: border-box;
}

.about-gray-band--why {
  /* Figma red-mark spacing (desktop) */
  --why-card-size: 280px;
  --why-card-gap: 70px;
  --why-grid-width: calc(var(--why-card-size) * 3 + var(--why-card-gap) * 2);
  --why-section-top: 56px;
  --why-section-bottom: 48px;
  --why-title-gap: 48px;
  --why-icon-gap: 16px;
  --why-title-text-gap: 14px;
  padding: var(--why-section-top) 0 var(--why-section-bottom);
  margin-bottom: 0;
}

.about-gray-band--why .about-container {
  padding-left: 0;
  padding-right: 0;
}

/* About page footer — flush line + compact gap like Figma */
.about-page + .footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 30px;
  padding: 18px 2rem 20px;
}

/* —— Intro —— */
.about-intro {
  padding: 0.25rem 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--about-white);
}

.about-intro__title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--about-title);
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.about-intro__tagline {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: #111;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.about-intro__text {
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  line-height: 1.85;
  color: #4a4a4a;
  max-width: 100%;
}

.about-intro__preview {
  display: inline;
  margin: 0;
}

.about-read-more {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 0 0.2rem;
  font: inherit;
  font-weight: 600;
  color: var(--about-text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
}

.about-read-more:hover {
  color: #0947a8;
}

.about-intro__more {
  margin-top: 1rem;
}

.about-intro__more p {
  margin-bottom: 1rem;
}

.about-intro__more p:last-child {
  margin-bottom: 0;
}

.about-intro__text > .about-read-more {
  display: inline-block;
  margin-top: 0.15rem;
}

/* —— Founder (white panel on gray) —— */
.about-founder-panel {
  background: var(--about-white);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.about-founder__inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 320px);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.about-founder__title {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.about-founder__bio {
  font-size: clamp(0.75rem, 1vw, 0.82rem);
  line-height: 1.85;
  color: #3a3a3a;
}

.about-founder__bio p {
  margin-bottom: 0.9rem;
}

.about-founder__bio p:last-child {
  margin-bottom: 0;
}

.about-founder__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* —— Team —— */
.about-team__title {
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2rem);
  padding-top: 0.25rem;
}

/* Grid aligns with founder panel — 1px gray gutters like Figma */
.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--about-gray);
  width: 100%;
  margin-bottom: 0;
}

.about-team__card {
  background: var(--about-white);
  padding: clamp(0.85rem, 1.5vw, 1.15rem);
  padding-bottom: clamp(0.9rem, 1.4vw, 1.15rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background-color 0.3s ease;
  cursor: default;
  overflow: visible;
  min-height: 0;
}

/* Hover: card melts into gray band background */
.about-team__card:hover {
  background: var(--about-gray);
}

.about-team__photo-wrap {
  background: var(--about-gray-photo);
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: clamp(0.65rem, 1vw, 0.85rem);
}

.about-team__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

/* Fixed info block so designation always shows (top row fix) */
.about-team__info {
  flex: 0 0 auto;
  min-height: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-team__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.about-team__name {
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.about-team__arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: var(--about-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.28s ease, color 0.28s ease;
  text-decoration: none;
}

a.about-team__arrow:hover {
  background: var(--about-blue);
  color: #fff;
}

/* Default: plain blue arrow — hover: solid blue square + white arrow */
.about-team__card:hover .about-team__arrow {
  background: var(--about-blue);
  color: #fff;
}

.about-team__role {
  font-size: clamp(0.68rem, 0.9vw, 0.76rem);
  color: var(--about-text-muted);
  margin: 0;
  line-height: 1.45;
  min-height: 1.15rem;
  display: block;
}

/* Gray band continues below team grid before OUR CLIENTS */
.about-team__gray-tail {
  width: 100%;
  height: clamp(2.75rem, 5vw, 4.25rem);
  background: var(--about-gray);
  flex-shrink: 0;
}

/* —— Clients (white band) —— */
.about-clients-band {
  width: 100%;
  background: var(--about-white);
  padding: clamp(2.75rem, 5.5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.about-clients__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-clients__title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--about-blue);
  letter-spacing: 0.07em;
  margin: 0 0 clamp(2rem, 3.5vw, 2.75rem);
}

.about-clients__slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.about-clients__track {
  width: 100%;
}

.about-clients__slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  justify-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  min-height: clamp(72px, 10vw, 96px);
  animation: aboutFadeIn 0.4s ease;
}

.about-clients__slide.is-active {
  display: grid;
}

.about-clients__slide--few {
  grid-template-columns: repeat(2, 1fr);
  max-width: 68%;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

@keyframes aboutFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 0.25rem 0.5rem;
}

.about-clients__logo img {
  display: block;
  max-width: min(220px, 100%);
  max-height: clamp(52px, 8vw, 76px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.about-clients__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(1.75rem, 3vw, 2.35rem);
  min-height: 14px;
}

.about-clients__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #b5c4d8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.about-clients__dot.is-active {
  width: 7px;
  height: 7px;
  background: var(--about-blue);
  box-shadow: 0 0 0 2px var(--about-white), 0 0 0 3.5px var(--about-blue);
  transform: scale(1.05);
}

.about-clients__dot:hover:not(.is-active) {
  background: #7fa8e0;
}

/* —— Why Choose Us —— */
.about-why__title {
  text-align: center;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin: 0 0 var(--why-title-gap);
}

.about-why__grid {
  display: grid;
  grid-template-columns: repeat(3, var(--why-card-size));
  gap: var(--why-card-gap);
  width: min(100%, var(--why-grid-width));
  max-width: var(--why-grid-width);
  margin: 0 auto;
  justify-content: center;
  box-sizing: border-box;
}

.about-why__card {
  background: var(--about-navy);
  color: #fff;
  width: var(--why-card-size);
  height: var(--why-card-size);
  padding: 44px 30px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.about-why__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  margin-bottom: var(--why-icon-gap);
  flex-shrink: 0;
  box-sizing: border-box;
}

.about-why__icon-box svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 26px;
  max-height: 22px;
}

.about-why__card-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 var(--why-title-text-gap);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.about-why__card-text {
  font-size: 0.68rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 250px;
}

/* —— Tablet —— */
@media (max-width: 1024px) {
  .about-founder__inner {
    grid-template-columns: 1fr 280px;
    gap: 1.75rem;
  }

  .about-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-gray-band--why {
    --why-card-size: 280px;
    --why-card-gap: 18px;
    --why-grid-width: calc(var(--why-card-size) * 3 + var(--why-card-gap) * 2);
    --why-title-gap: 40px;
    --why-section-top: 48px;
    --why-section-bottom: 40px;
  }

  .about-why__card {
    width: var(--why-card-size);
    height: var(--why-card-size);
    padding: 38px 24px 34px;
  }

  .about-why__card-text {
    max-width: 220px;
  }
}

@media (max-width: 900px) {
  .about-founder__inner {
    grid-template-columns: 1fr;
  }

  .about-founder__media {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-clients__slide,
  .about-clients__slide--few {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-gray-band--why {
    --why-card-size: 330px;
    --why-card-gap: 20px;
    --why-grid-width: var(--why-card-size);
    --why-title-gap: 36px;
    --why-section-top: 40px;
    --why-section-bottom: 36px;
  }

  .about-why__grid {
    grid-template-columns: 1fr;
    width: min(100%, var(--why-card-size));
    max-width: var(--why-card-size);
  }

  .about-why__card {
    width: 100%;
    height: var(--why-card-size);
    margin: 0 auto;
    padding: 44px 28px 40px;
  }

  .about-why__card-text {
    max-width: 250px;
  }

  .about-page + .footer {
    padding: 16px 1.25rem 18px;
  }
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .about-founder-panel {
    padding: 1.5rem 1.25rem;
  }

  .about-team__grid {
    grid-template-columns: 1fr;
  }

  .about-team__photo-wrap img {
    width: 100%;
    height: 100%;
  }
}

/* —— Employee detail sub-page —— */
html:has(.about-employee-page),
body:has(.about-employee-page) {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.about-employee-page {
  flex: 1 1 auto;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--about-text);
  overflow-x: hidden;
  background: var(--about-white);
}

.about-employee-page + .footer {
  flex-shrink: 0;
  margin-top: auto;
}

.about-employee {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.about-employee__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--about-gray-photo);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-employee__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.about-employee__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
  line-height: 1.2;
}

.about-employee__role {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.4;
}

.about-employee__credential {
  margin: 0 0 1.15rem;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 700;
  color: #111;
  line-height: 1.55;
}

.about-employee__bio {
  margin-bottom: 1.25rem;
}

.about-employee__bio p {
  margin: 0 0 1rem;
  font-size: clamp(0.84rem, 1.05vw, 0.92rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--about-text-muted);
}

.about-employee__bio p:last-child {
  margin-bottom: 0;
}

.about-employee__expertise-title {
  margin: 0 0 0.85rem;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 700;
  color: #111;
}

.about-employee__expertise-list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.about-employee__expertise-list li {
  margin-bottom: 0.45rem;
  font-size: clamp(0.84rem, 1.05vw, 0.92rem);
  line-height: 1.65;
  color: var(--about-text-muted);
}

.about-employee__expertise-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .about-employee {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 720px) {
  .about-employee {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-employee__photo {
    max-width: 320px;
  }
}
