/* ============================================================
   ABOUT.CSS
============================================================ */

/* ============================================================
   HERO
============================================================ */
.about-hero {
  position:    relative;
  min-height:  80vh;
  display:     flex;
  align-items: flex-start;
  overflow:    hidden;
  padding-top: var(--header-total-h);
}

.about-hero__bg {
  position: absolute;
  inset:    0;
  z-index:  0;
  overflow: hidden;
}

.about-hero__video {
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center 40%;
  display:    block;
}

.about-hero__overlay {
  position:   absolute;
  inset:      0;
  z-index:    1;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 35, 0.30) 0%,
    rgba(5, 14, 35, 0.65) 60%,
    var(--c-dark) 100%
  );
}

.about-hero__content {
  position:       relative;
  z-index:        3;
  padding-top:    clamp(3.5rem, 9vh, 6rem);
  padding-bottom: 2rem;
  max-width:      60%;
}

.about-hero__eyebrow {
  font-size:      0.78rem;
  font-weight:    var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--c-white-70);
  margin-bottom:  1.25rem;
}

.about-hero__headline {
  font-size:     clamp(1.6rem, 3vw, 2.6rem);
  font-weight:   var(--fw-extrabold);
  line-height:   1.1;
  color:         var(--c-white);
  margin-bottom: 1rem;
}

.about-hero__sub {
  font-size:   0.95rem;
  color:       var(--c-white-70);
  line-height: 1.7;
  max-width:   500px;
}

.about-hero__diagonal {
  position:   absolute;
  bottom:     -1px;
  left:       0;
  right:      0;
  height:     32%;
  background: #fff;
  clip-path:  polygon(0 75%, 100% 0, 100% 100%, 0 100%);
  z-index:    2;
}

.about-hero__quote {
  position:    absolute;
  bottom:      0rem;
  right:       var(--container-px);
  max-width:   600px;
  font-family: "Playfair Display", serif;
  font-style:  italic;
  font-size:   clamp(1rem, 2vw, 4.25rem);
  font-weight: 400;
  line-height: 1.55;
  color:       #c8a24a;
  z-index:     3;
  pointer-events: none;
  overflow: visible;
}

/* ============================================================
   BODY WRAPPER
============================================================ */
.about-body {
  background:     #fff;
}

/* ============================================================
   PLACEHOLDER IMAGES
   The triangle is part of the element's own clip-path shape —
   no pseudo-elements, no overflow dependency.

   Left-aligned  → triangle extends RIGHT from the top-right corner
   Right-aligned → triangle extends LEFT from the bottom-left corner
============================================================ */
/* ============================================================
   PLACEHOLDER / IMAGE BLOCKS
   clip-path is on the container so a real <img> inside can
   cover both the rectangle and the triangular tail seamlessly.
============================================================ */
.about-img {
  background:  #7e8fa0;   /* shows while image loads */
  flex-shrink: 0;
  position:    relative;
  overflow:    visible;   /* let the photo element extend into the tail */
}

/* The photo fills the rectangle + extends to cover the triangle.
   max-width: none overrides the global img { max-width: 100% } rule. */
.about-img__photo {
  display:    block;
  position:   absolute;
  object-fit: cover;
  max-width:  none;   /* allow photo to exceed container width for the tail */
  max-height: none;
}

/* Left-aligned: triangle at TOP-RIGHT.
   Right angle at top-right corner; one leg goes RIGHT along the top,
   other leg goes DOWN the right edge; hypotenuse closes diagonally. */
.about-img--left {
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% + 80px) 0,   /* tip right along top */
    100% 80px,             /* tip down right edge */
    100% 100%,
    0 100%
  );
}
.about-img--left .about-img__photo {
  top:    0;
  left:   0;
  width:  calc(100% + 80px); /* extends right to fill the triangle */
  height: 100%;
}

/* Right-aligned: triangle at BOTTOM-LEFT.
   Right angle at bottom-left corner; one leg goes LEFT along the bottom,
   other leg goes UP the left edge; hypotenuse closes diagonally.
   Triangle stays within the image's vertical bounds — nothing below. */
.about-img--right {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    -80px 100%,            /* tip left along bottom */
    0 calc(100% - 80px)    /* tip up left edge      */
  );
}
.about-img--right .about-img__photo {
  top:    0;
  left:   -80px;            /* extends left to fill the triangle */
  width:  calc(100% + 80px);
  height: 100%;             /* no extra height — triangle doesn't go below */
}

/* ============================================================
   TEAM & LEADERSHIP SECTION
============================================================ */
.about-team {
  padding-block: var(--sp-xl);
  position:      relative;
}

/* Row 1: label + quote/text + tall right image */
.about-team__inner {
  display:     grid;
  grid-template-columns: 230px 1fr 38%;
  gap:         2rem;
  align-items: flex-start;
  margin-bottom: var(--sp-lg);
}

.about-team__label {
  padding-top: 0.3rem;
  text-align:  right;
}

.about-team__content {
  min-width: 0;
}

.about-img--tall {
  aspect-ratio: 3 / 4;
  width:        100%;
}

/* Row 2: left stats image + right quote */
.about-team__stats {
  display:     grid;
  grid-template-columns: 42% 1fr;
  gap:         3rem;
  align-items: center;
  margin-bottom: var(--sp-lg);
}

.about-img--stats {
  aspect-ratio: 3 / 4;
  width:        100%;
}

.about-team__quote-block {
  padding-left: 1rem;
}

/* Row 3: text + small right image */
.about-team__person {
  display:     grid;
  grid-template-columns: 1fr 38%;
  gap:         3rem;
  align-items: flex-start;
}

.about-img--person {
  aspect-ratio: 1 / 1;
  width:        100%;
}

/* ============================================================
   SHARED QUOTE / TEXT STYLES
============================================================ */
.about-quote {
  font-size:     clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight:   var(--fw-extrabold);
  line-height:   1.25;
  color:         black;
  margin-bottom: 1.5rem;
  quotes:        none;
}

.about-quote--italic {
  font-style: italic;
  font-size:  clamp(1.1rem, 2vw, 1.5rem);
}

.about-body-text {
  font-size:     0.9rem;
  color:         #000;
  line-height:   1.85;
  margin-bottom: 2rem;
}

.about-body-text--mt {
  margin-top:    2.5rem;
  margin-bottom: 0;
}

.about-attribution {
  font-size:   0.9rem;
  color:       var(--c-white-70);
  margin-top:  1rem;
}

.about-person-name {
  font-size:     0.95rem;
  font-weight:   var(--fw-bold);
  color:         var(--c-white);
  margin-bottom: 1rem;
}

/* ============================================================
   SHARED ROW LAYOUT  (Bread & Butter, Personality, Insights)
============================================================ */
.about-section {
  padding-block: var(--sp-lg);
  background-color: white;
}

.about-row {
  display:     flex;
  gap:         2.5rem;
  align-items: flex-start;
}

.about-row__label {
  flex:        0 0 230px;
  padding-top: 0.3rem;
  text-align:  right;
  color:#060b27;
}

.about-row__content {
  flex:      1;
  min-width: 0;
}

/* ============================================================
   BREAD & BUTTER
============================================================ */
.about-heading {
  font-size:     clamp(1.6rem, 3vw, 2.4rem);
  font-weight:   var(--fw-bold);
  line-height:   1.15;
  color:         #060b27;
  margin-bottom: 2.5rem;
}

.about-services-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2.5rem;
}

.about-service-item__icon {
  width:           56px;
  height:          56px;
  background:      transparent;
  border:          1px solid rgba(200, 162, 74, 0.35);
  color:           #C8A24A;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   1.25rem;
  padding:         8px;
  transition:      all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-service-item:hover .about-service-item__icon {
  background:   #C8A24A;
  color:        var(--c-dark);
  border-color: #C8A24A;
  box-shadow:   0 8px 30px rgba(200, 162, 74, 0.25);
  transform:    translateY(-3px);
}

.about-service-item__icon svg {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-service-item:hover .about-service-item__icon svg {
  transform: scale(1.1);
}

.about-service-item__title {
  font-size:     1rem;
  font-weight:   var(--fw-bold);
  color:         #060b27;
  margin-bottom: 0.5rem;
}

.about-service-item__desc {
  font-size:     0.85rem;
  color:         #060b27;
  line-height:   1.65;
  margin-bottom: 1.25rem;
}

/* ============================================================
   PERSONALITY
============================================================ */
.about-traits-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   2.5rem;
}

.about-trait__title {
  font-size:     1.1rem;
  font-weight:   700;
  color:         #060b27;
  margin-bottom: 0.5rem;
}

.about-trait__desc {
  font-size:   0.85rem;
  color:       #060b27;
  line-height: 1.7;
}

/* ============================================================
   INSIGHTS  (reuses case-card styles from case.css)
============================================================ */
.about-insights-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.25rem;
}

/* ============================================================
   CONTACT OVERRIDE
============================================================ */
.about-contact__bg {
  position:            absolute;
  inset:               0;
  z-index:             0;
  background-image:    url('https://picsum.photos/seed/about-contact/1600/900');
  background-size:     cover;
  background-position: center 40%;
}

/* ============================================================
   ABOUT-PAGE ANIMATIONS
   Extends the global data-animate system from index.css.
   Kept subtle, smooth, premium — no bounce, no overshoot.
============================================================ */

/* Hero — eyebrow fades only (no vertical shift) */
.anim-ready .about-hero__eyebrow[data-animate] {
  --anim-translate: 0px;
  transition-duration: 0.8s;
}

/* Hero — headline/sub use 20px translateY */
.anim-ready .about-hero__headline[data-animate],
.anim-ready .about-hero__sub[data-animate] {
  --anim-translate: 20px;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade-left images slide from -40px */
.anim-ready .about-img[data-animate="fade-left"] {
  transform: translate3d(-40px, 0, 0);
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade-right images slide from 40px */
.anim-ready .about-img[data-animate="fade-right"] {
  transform: translate3d(20px, 0, 0);
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Quote scale intro (0.98 → 1) */
.anim-ready .about-quote[data-animate] {
  transform: scale(0.98) translate3d(0, 10px, 0);
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-ready .about-quote[data-animate].is-visible {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Service-item icons scale in */
.anim-ready .about-service-item[data-animate] {
  transform: scale(0.92) translate3d(0, 18px, 0);
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-ready .about-service-item[data-animate].is-visible {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Section title ::after — animate width from 0 */
.anim-ready .section-title::after {
  right: 100%;
  transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.anim-ready [data-animate].is-visible .section-title::after,
.anim-ready .section-title[data-animate].is-visible::after {
  right: 0;
}

/* Insight card — default & hover */
.about-insights-grid .case-card {
  background:     #f8f5ef;
  border-top:     2px solid transparent;
  box-shadow:     0 2px 10px rgba(0, 0, 0, 0.07);
  transition:     transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  border-color 0.28s ease;
  cursor:         default;
}
.about-insights-grid .case-card:hover {
  transform:    translateY(-4px);
  box-shadow:   0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: #C8A24A;
}

/* Button opacity fade on load */
.anim-ready .btn[data-animate] {
  transition-duration: 0.7s;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {

  .about-hero__content { max-width: 80%; }

  /* Collapse 3-col team row to label + content (image drops to full row below) */
  .about-team__inner {
    grid-template-columns: 180px 1fr;
    gap:                   1.5rem;
  }

  .about-img--tall {
    grid-column: 1 / -1;  /* span full width on its own row */
    max-width:   420px;
    aspect-ratio: 4 / 3;
  }

  .about-team__stats  { grid-template-columns: 1fr 1fr; }
  .about-team__person { grid-template-columns: 1fr 1fr; }

  .about-row         { gap: 2rem; }
  .about-row__label  { flex: 0 0 180px; }

}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
============================================================ */
@media (max-width: 768px) {

  .about-hero__content {
    padding-top: clamp(3rem, 10vh, 6rem);
    max-width:   100%;
  }

  /* All team rows become single column */
  .about-team__inner,
  .about-team__stats,
  .about-team__person {
    grid-template-columns: 1fr;
    gap:                   1.5rem;
  }

  .about-team__label { text-align: left; }

  /* Images: all become landscape on mobile */
  .about-img--tall,
  .about-img--stats,
  .about-img--person {
    width:        100%;
    max-width:    none;
    aspect-ratio: 4 / 3;
    grid-column:  1;
  }

  /* Shrink triangle tails on narrow screens */
  .about-img--left {
    clip-path: polygon(0 0, 100% 0, calc(100% + 48px) 0, 100% 48px, 100% 100%, 0 100%);
  }
  .about-img--left .about-img__photo {
    width: calc(100% + 48px);
  }
  .about-img--right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, -48px 100%, 0 calc(100% - 48px));
  }
  .about-img--right .about-img__photo {
    left:  -48px;
    width: calc(100% + 48px);
  }

  /* Flex rows → stack */
  .about-row {
    flex-direction: column;
    gap:            1.5rem;
  }

  .about-row__label {
    flex:       none;
    text-align: left;
  }

  .about-services-grid,
  .about-traits-grid {
    grid-template-columns: 1fr;
  }

  .about-insights-grid { grid-template-columns: 1fr; }

}


/* ============================================================
   CASE CARDS (Insights section) � migrated from case.css
============================================================ */
.case-card {
  background: #ffffff;
  padding:    1.25rem 1.25rem 1.75rem;
  color:      var(--c-form-text);
}

.case-card__meta {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   0.85rem;
}

.case-card__category {
  font-size:      0.77rem;
  font-weight:    var(--fw-semibold);
  letter-spacing: 0.04em;
  color:          #555555;
}

.case-card__date {
  font-size: 0.77rem;
  color:     #777777;
}

.case-card__divider {
  border:        none;
  border-top:    1px solid #d1d5db;
  margin-bottom: 1.1rem;
}

.case-card__title {
  font-size:   0.95rem;
  font-weight: var(--fw-bold);
  color:       var(--c-form-text);
  line-height: 1.4;
}
