/* ============================================================
   ABOUT / WHO WE ARE PAGE — css/pages/about.css

   Company story, values section, leadership team grid,
   and dual-CTA closing section. Builds on shared components
   from components.css (team-card, value-card, hero, etc.).
   ============================================================ */


/* ------------------------------------------------------------
   1. PAGE HERO — Compact banner with crew photo
   Same compact pattern as services hero (~40vh).
   ------------------------------------------------------------ */

.about-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-12);
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
  background-image: url('../../images/about/hero.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.about-hero .hero__overlay {
  background:
    linear-gradient(
      to top,
      rgba(17, 17, 17, 0.88) 0%,
      rgba(17, 17, 17, 0.5) 40%,
      rgba(17, 17, 17, 0.3) 100%
    );
}

.about-hero .hero__content {
  position: relative;
  z-index: var(--z-raised);
}

.about-hero__subtitle {
  max-width: 34rem;
}

/* Entrance animation */
@keyframes aboutHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero .hero__content > * {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: aboutHeroFadeIn 0.6s ease-out forwards;
}

.about-hero .hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.about-hero .hero__content > *:nth-child(2) { animation-delay: 0.25s; }
.about-hero .hero__content > *:nth-child(3) { animation-delay: 0.4s; }


/* ------------------------------------------------------------
   2. COMPANY STORY — Split two-column layout
   Large photo left, narrative text right. On mobile stacks
   vertically with photo on top.
   ------------------------------------------------------------ */

.about-story {
  background-color: var(--color-surface-white);
}

.about-story__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 64rem) {
  .about-story__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-12);
  }
}

@media (min-width: 90rem) {
  .about-story__inner {
    gap: var(--space-16);
  }
}

.about-story__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accent bar on bottom of image */
.about-story__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-brand-accent);
}

/* Floating year badge on image */
.about-story__badge {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 1;
  padding: var(--space-3) var(--space-5);
  background-color: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}

.about-story__content {
  padding: var(--space-4) 0;
}

.about-story__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand-accent);
  margin-bottom: var(--space-3);
}

.about-story__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-heading);
  margin-bottom: var(--space-6);
}

.about-story__text {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.about-story__text:last-of-type {
  margin-bottom: 0;
}

/* Pull-quote / differentiator callout */
.about-story__callout {
  position: relative;
  margin: var(--space-6) 0;
  padding: var(--space-5) 0 var(--space-5) var(--space-6);
  border-left: 3px solid var(--color-brand-accent);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-text-heading);
}


/* ------------------------------------------------------------
   2b. BRAND VIDEO — "Watch the full version" link below player
   ------------------------------------------------------------ */

.about-video__more {
  margin-top: var(--space-6);
  text-align: center;
}


/* ------------------------------------------------------------
   3. VALUES / CULTURE — Dark section with icon-driven pillars
   Typography-forward layout: large SVG icons with bold text.
   No photos — atmospheric dark background with subtle
   blueprint-grid texture and accent glow.
   ------------------------------------------------------------ */

.about-values {
  position: relative;
  background-color: var(--palette-charcoal);
  color: var(--color-text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Atmospheric background — solar module photo with a softer
   overlay so the module rows remain visible behind the content */
.about-values__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      rgba(17, 17, 17, 0.72),
      rgba(17, 17, 17, 0.8)
    ),
    url('../../images/about/mods.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.about-values .section-heading__title {
  color: var(--color-text-on-dark);
}

.about-values .section-heading__subtitle {
  color: var(--color-text-on-dark-muted);
}

.about-values .section-heading__divider {
  background-color: var(--color-border-dark);
}

.about-values .section-heading__divider::before,
.about-values .section-heading__divider::after {
  background-color: var(--color-text-on-dark);
}

/* Values pillar grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* Individual value pillar */
.value-pillar {
  position: relative;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--transition-base),
              transform var(--transition-base);
}

.value-pillar:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* Animated outline — four edges trace simultaneously from corners.
   Same pattern as .value-card on the homepage. */

/* UL anchor: top + left edges */
.value-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  border-top: 2px solid var(--color-brand-accent);
  border-left: 2px solid var(--color-brand-accent);
  border-radius: var(--radius-md) 0 0 0;
  z-index: 2;
  pointer-events: none;
  transition: width 0.3s ease-in,
              height 0.3s ease-in,
              opacity 0s linear 0.3s;
}

.value-pillar:hover::before {
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: width 0.3s ease-out,
              height 0.3s ease-out,
              opacity 0s linear 0s;
}

/* Helper span hosts UR and BL corner edges */
.value-pillar__outline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* UR anchor: right edge grows downward */
.value-pillar__outline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-right: 2px solid var(--color-brand-accent);
  border-radius: 0 var(--radius-md) 0 0;
  transition: height 0.3s ease-in;
}

.value-pillar:hover .value-pillar__outline::before {
  height: 100%;
  transition: height 0.3s ease-out;
}

/* BL anchor: bottom edge grows rightward */
.value-pillar__outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: 2px solid var(--color-brand-accent);
  border-radius: 0 0 0 var(--radius-md);
  transition: width 0.3s ease-in;
}

.value-pillar:hover .value-pillar__outline::after {
  width: 100%;
  transition: width 0.3s ease-out;
}

/* Icon container — large circle with accent ring */
.value-pillar__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  border: 2px solid rgba(63, 116, 255, 0.3);
  background-color: rgba(63, 116, 255, 0.08);
  color: var(--color-brand-accent);
  transition: border-color var(--transition-base),
              background-color var(--transition-base);
}

.value-pillar:hover .value-pillar__icon {
  border-color: rgba(63, 116, 255, 0.6);
  background-color: rgba(63, 116, 255, 0.15);
}

.value-pillar__icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.value-pillar__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.value-pillar__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-on-dark-muted);
}


/* ------------------------------------------------------------
   4. LEADERSHIP TEAM — Responsive card grid
   C-suite gets featured (larger) cards in a 3-column top row.
   Directors/VPs in standard cards, 3-per-row desktop.
   ------------------------------------------------------------ */

.about-team {
  background-color: var(--color-surface-ghost);
}

/* Grid for C-suite featured row */
.team-grid--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 48rem) {
  .team-grid--featured {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* Grid for directors/VPs */
.team-grid--standard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .team-grid--standard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .team-grid--standard {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured C-suite card — slightly larger headshot */
.team-card--featured .team-card__photo {
  width: 11rem;
  height: 11rem;
}

/* Founder badge — small accent tag */
.team-card__badge {
  display: inline-block;
  background-color: var(--color-brand-accent);
  color: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: 1;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

/* TODO placeholder styling */
.team-card__bio--todo {
  font-style: italic;
  color: var(--color-text-muted);
}


/* ------------------------------------------------------------
   5. ABOUT CTA — Dual call-to-action closing section
   Dark background with two side-by-side CTAs:
   "Join the Team" → careers, "Get in Touch" → contact.
   ------------------------------------------------------------ */

.about-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--palette-dark-blue);
  background-image:
    linear-gradient(
      rgba(31, 37, 50, 0.8),
      rgba(31, 37, 50, 0.9)
    ),
    url('../../images/about/Kinston%2C%20NC%201.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-cta__ornament {
  position: absolute;
  top: -0.2em;
  right: -0.05em;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: clamp(6rem, 4rem + 8vw, 14rem);
  line-height: 0.8;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-on-dark);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: var(--z-base);
}

.about-cta__inner {
  position: relative;
  z-index: var(--z-raised);
  max-width: 48rem;
}

.about-cta__eyebrow {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand-accent);
}

.about-cta__title {
  margin: 0 0 var(--space-6);
  max-width: 40rem;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-on-dark);
}

.about-cta__text {
  margin: 0 0 var(--space-8);
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.82);
}

/* Dual CTA buttons */
.about-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 63.9375rem) {
  .about-cta__ornament {
    right: -0.15em;
    opacity: 0.04;
  }
}
