/* about.css — About page only. Replaces the old about.css, header.css and why-cards.css.
   Load after site.css and before principles.css (which stays unchanged). */
section[id] {
  scroll-margin-top: 84px;
}
.accent {
  color: var(--orange);
}

/* ---- hero ---- */
.about-hero {
  padding-block: clamp(56px, 8vw, 112px);
}
.about-hero h1 {
  max-width: 15em;
  margin-bottom: 28px;
  font-size: var(--fs-3xl);
  color: #fff;
}
.about-hero h2 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--orange-light);
}
.lead {
  max-width: 62ch;
  margin-bottom: 32px;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.9);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: clamp(32px, 5vw, 64px);
}
.stat {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.stat b {
  display: block;
  margin-bottom: 10px;
  font: 800 var(--fs-stat)/1 var(--font-head);
  color: #fff;
}
.stat b i {
  font-style: normal;
  color: var(--orange-light);
}
.stat h3 {
  margin-bottom: 4px;
  font-size: var(--fs-base);
}
.stat p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
}

/* ---- who we serve ---- */
.serve {
  padding-block: var(--section-pad);
  background: var(--bg-warm);
}
.serve-head {
  display: grid;
  gap: 16px 64px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.serve-head .badge {
  margin-bottom: 16px;
}
.serve-intro {
  max-width: 46ch;
  font-size: var(--fs-md);
  color: var(--ink-soft);
}
.serve-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.serve-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--r-xl);
  transition:
    translate 0.35s var(--ease),
    box-shadow 0.35s;
}
.serve-card:hover {
  translate: 0 -6px;
  box-shadow: var(--shadow-xl);
}
.serve-card > img {
  transition: transform 1s var(--ease);
}
.serve-card:hover > img {
  transform: scale(1.05);
}
.serve-card h3 {
  font-size: var(--fs-xl);
}
.serve-card p {
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 1000px) {
  .serve-head {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
  .serve-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }
  .serve-card:first-child {
    grid-row: span 2;
    min-height: 420px;
  }
}

/* ---- principles wrapper (the stage itself is styled by principles.css) ---- */
.section-head {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---- team ---- */
.team {
  padding-block: var(--section-pad);
}
.team-roster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: var(--r-2xl);
  color: #fff;
  box-shadow: var(--shadow-xl);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(242, 101, 34, 0.22),
      transparent 36%
    ),
    linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
}
.team-head {
  display: grid;
  gap: 8px 32px;
  margin-bottom: 24px;
}
.team-label {
  font: 800 0.75rem var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9a68;
}
.team-head h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  color: #fff;
}
.team-head h3 span {
  color: #ff9a68;
}
.team-copy {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}
@media (min-width: 800px) {
  .team-head {
    grid-template-columns: 1fr minmax(250px, 0.8fr);
    align-items: end;
  }
  .team-label {
    grid-column: 1/-1;
  }
  .team-copy {
    justify-self: end;
  }
}
.team-profile-grid {
  display: flex;
  gap: 10px;
  height: clamp(430px, 39vw, 520px);
}
.team-profile-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background: var(--navy-mid);
  cursor: pointer;
  outline: none;
  transition:
    flex-grow 0.6s var(--ease),
    border-color 0.35s;
}
.team-profile-card:is(:hover, :focus-within) {
  flex-grow: 4.2;
  border-color: rgba(255, 154, 104, 0.8);
}
.team-profile-card:focus-visible {
  outline: 2px solid #ff9a68;
  outline-offset: 3px;
}
.team-profile-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ffb18a);
}
.team-profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 50, 0.02) 28%,
    rgba(6, 26, 50, 0.2) 53%,
    rgba(6, 26, 50, 0.94)
  );
}
.team-profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition:
    width 0.6s var(--ease),
    transform 0.8s var(--ease);
}
.team-profile-card:is(:hover, :focus-within) .team-profile-photo {
  width: 39%;
}
.team-profile-content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 16px;
  transition: inset 0.6s var(--ease);
}
.team-profile-card:is(:hover, :focus-within) .team-profile-content {
  inset: 0 0 0 39%;
  overflow-y: auto;
  padding: clamp(20px, 2vw, 30px);
  background: var(--bg-card);
  color: var(--ink);
}
.team-profile-kicker {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font: 800 0.6875rem var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb18a;
}
.team-profile-kicker span {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.85);
}
.team-profile-name {
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  color: #fff;
}
.team-profile-card:is(:hover, :focus-within) .team-profile-name {
  color: var(--ink-dark);
}
.team-profile-card:is(:hover, :focus-within) .team-profile-kicker {
  color: var(--orange-deep);
}
.team-profile-card:is(:hover, :focus-within) .team-profile-kicker span {
  color: var(--ink-soft);
  border-color: var(--line);
}
.team-profile-role,
.team-profile-title,
.team-profile-bio,
.team-profile-contact {
  display: none;
}
.team-profile-card:is(:hover, :focus-within)
  :is(.team-profile-role, .team-profile-title, .team-profile-bio) {
  display: block;
}
.team-profile-card:is(:hover, :focus-within) .team-profile-contact {
  display: inline-flex;
}
.team-profile-role {
  margin: 5px 0 16px;
  font-weight: 600;
  color: var(--ink-soft);
}
.team-profile-title {
  margin-bottom: 12px;
  font: 800 var(--fs-sm) var(--font);
  color: var(--orange-deep);
}
.team-profile-bio {
  margin-bottom: 18px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.team-profile-contact {
  align-items: center;
  gap: 9px;
  margin-top: auto;
  min-height: var(--touch-min);
  font-weight: 800;
  color: var(--ink-dark);
  text-decoration: none;
}
.team-profile-contact span {
  color: var(--orange);
  font-size: 1.25rem;
  transition: transform 0.25s;
}
.team-profile-contact:hover span {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .team-profile-grid {
    height: 480px;
    margin-inline: -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .team-profile-card {
    flex: 0 0 min(68vw, 430px);
    scroll-snap-align: center;
  }
  .team-profile-card:is(:hover, :focus-within) {
    flex-grow: 0;
  }
  .team-profile-card:is(:hover, :focus-within) .team-profile-photo {
    width: 34%;
  }
  .team-profile-card:is(:hover, :focus-within) .team-profile-content {
    inset-inline-start: 34%;
  }
}
@media (max-width: 640px) {
  .team-profile-grid {
    height: 520px;
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .team-profile-card {
    flex-basis: min(82vw, 340px);
  }
  .team-profile-card:is(:hover, :focus-within) .team-profile-photo {
    width: 100%;
    height: 38%;
  }
  .team-profile-card:is(:hover, :focus-within) .team-profile-content {
    inset: 38% 0 0;
  }
}

/* ---- final CTA extras (card itself comes from site.css) ---- */
.cta-card p {
  max-width: 46ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- hero: floating logo-mark shapes, slanted photo panel, quick-access portals ---- */
.about-hero {
  overflow: hidden;
}
.shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.shape--dot {
  right: -6%;
  bottom: -18%;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.2;
  animation: drift 14s ease-in-out infinite alternate;
}
.shape--bar {
  left: -4%;
  top: 6%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.07);
  clip-path: polygon(17.9% 0, 0 21.2%, 54.3% 84.3%, 100% 100%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0);
  }
  to {
    transform: translate(28px, -22px) rotate(6deg);
  }
}
.hero-top {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-art {
  position: relative;
  display: none;
}
.hero-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -8%;
  bottom: -8%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  animation: drift 9s ease-in-out infinite alternate;
}
.hero-panel {
  position: relative;
  z-index: 1;
  min-height: clamp(300px, 36vw, 500px);
  border-radius: 0;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
@media (min-width: 960px) {
  .hero-top {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-art {
    display: block;
  }
}
.portals {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: clamp(32px, 5vw, 56px);
}
.portal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 14px;
  min-height: 150px;
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-xl);
  color: #fff;
  text-decoration: none;
  transition:
    translate 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.portal:hover,
.portal:focus-visible {
  translate: 0 -6px;
  border-color: var(--orange);
  box-shadow: var(--shadow-xl);
}
.portal > img {
  transition: transform 1s var(--ease);
}
.portal:hover > img {
  transform: scale(1.08);
}
.portal__n {
  font: 800 1rem var(--font-head);
  color: var(--orange-light);
}
.portal__t {
  font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--font-head);
  letter-spacing: -0.02em;
}
.portal__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform 0.35s var(--ease);
}
.portal:hover .portal__go {
  transform: translateY(4px);
}
