/* ==========================================================================
   About Us page. Builds on styles.css (tokens, page hero, cards, CTA)
   and home.css (flow line, application cards, feature cards).
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.about-hero {
  min-height: min(760px, 88svh);
  display: flex;
  align-items: center;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); line-height: 1.04; }
.about-hero__accent { color: var(--steel-300); }
.about-hero p:not(.eyebrow) { max-width: 640px; }

.about-hero__lines {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(62vw, 860px);
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.about-hero__lines .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: about-draw 2.4s var(--ease) forwards;
}
.ln--a { stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.5; animation-delay: 0.3s !important; }
.ln--b { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; animation-delay: 0.7s !important; }
.ln--c { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 1; animation-delay: 1.1s !important; }
.ln--d { stroke: rgba(242, 157, 69, 0.75); stroke-width: 1.3; animation-delay: 1.5s !important; }
.ln--e { stroke: rgba(242, 157, 69, 0.5); stroke-width: 1; animation-delay: 1.9s !important; }
.about-hero__lines circle {
  fill: var(--navy-950);
  stroke: var(--amber-400);
  stroke-width: 1.5;
  opacity: 0;
  animation: about-fade 0.8s var(--ease) 2.2s forwards;
}
@keyframes about-draw { to { stroke-dashoffset: 0; } }
@keyframes about-fade { to { opacity: 1; } }

@media (max-width: 760px) {
  .about-hero { min-height: 0; }
  .about-hero__lines { width: 120vw; opacity: 0.35; }
}

/* ---------- 2. Company introduction ---------- */
.about-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.about-intro__media {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 6;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.about-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.about-intro__media::after {
  /* fine inner frame */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  pointer-events: none;
}
/* A steel-grey panel slides off the image when it scrolls into view */
.js .reveal-image { transform: none; }
.js .reveal-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--navy-700);
  transform-origin: right;
  transition: transform 1.1s var(--ease) 0.15s;
}
.js .reveal-image.is-visible::before { transform: scaleX(0); }
.reveal-image.is-visible img { transform: scale(1); }

.about-intro__tag {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(7, 15, 27, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.about-intro__tag span {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--navy-900);
  background: var(--amber-500);
  border-radius: 2px;
}

.about-intro__copy { display: grid; gap: 1.25rem; }
.about-intro__copy h2 { font-size: var(--fs-h2); }
.about-intro__copy .lead { color: var(--color-text); }
.about-intro__copy p:not(.eyebrow):not(.lead) { color: var(--color-text-muted); }

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.capability-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.capability-tags svg { width: 18px; height: 18px; color: var(--amber-600); flex-shrink: 0; }
.capability-tags li:hover { border-color: var(--amber-500); transform: translateY(-2px); box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .about-intro__inner { grid-template-columns: 1fr; }
  .about-intro__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .about-intro__tag { left: 16px; right: 16px; bottom: 16px; font-size: 0.82rem; }
}

/* ---------- 3. Commitment (five-step flow) ---------- */
@media (min-width: 961px) {
  .flow-track--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow-track--5::before,
  .flow-track--5::after { left: 10%; right: 10%; }
}
.commitment .section-head p { max-width: 760px; }

/* ---------- 4. Leadership ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.leader {
  position: relative;
  display: grid;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.leader:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--steel-200); }

.leader__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--steel-100);
}
/* Cut-out portrait sits on a light blueprint backdrop */
.leader__photo--cutout {
  background-color: #e3e8ee;
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 65%),
    linear-gradient(rgba(11, 21, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 21, 36, 0.06) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}
.leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s var(--ease);
}
.leader__photo--cutout img { object-fit: contain; object-position: center bottom; }
.leader:hover .leader__photo img { transform: scale(1.04); }
/* Corner registration marks */
.leader__photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--amber-500), var(--amber-500)) top left / 18px 2px,
    linear-gradient(var(--amber-500), var(--amber-500)) top left / 2px 18px,
    linear-gradient(var(--amber-500), var(--amber-500)) bottom right / 18px 2px,
    linear-gradient(var(--amber-500), var(--amber-500)) bottom right / 2px 18px;
  background-repeat: no-repeat;
  opacity: 0.85;
  transition: inset 0.5s var(--ease);
}
.leader:hover .leader__photo::after { inset: 10px; }

.leader__body {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 1.9rem) 1.7rem;
}
.leader__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-600);
  transition: color var(--dur) var(--ease), letter-spacing 0.5s var(--ease);
}
.leader:hover .leader__role { color: var(--amber-600); letter-spacing: 0.2em; }
.leader__name { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); letter-spacing: -0.015em; }
.leader__rule {
  display: block;
  width: 36px;
  height: 2px;
  margin: 0.45rem 0 0.25rem;
  background: var(--amber-500);
  transition: width 0.6s var(--ease);
}
.leader:hover .leader__rule { width: 96px; }
.leader__company { font-size: 0.9rem; color: var(--color-text-muted); }

@media (max-width: 680px) {
  .leader-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ---------- 5. Industries (2 × 2 application cards) ---------- */
.apps-grid--4 .app-card { grid-column: span 3; min-height: 360px; }
.apps-grid--4 .app-card h3 { max-width: 420px; }
@media (max-width: 1024px) {
  .apps-grid--4 .app-card { grid-column: span 1; }
  .apps-grid--4 .app-card:last-child { grid-column: span 1; }
}
@media (max-width: 640px) {
  .apps-grid--4 .app-card { min-height: 280px; }
}

/* ---------- 6. Why choose us ---------- */
.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.why-choose .feature .card__icon svg { transition: transform 0.5s var(--ease); }
.why-choose .feature:hover .card__icon svg { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 1100px) {
  .why-choose__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .why-choose__grid { grid-template-columns: 1fr; }
}

/* ---------- 7. Mission ---------- */
.mission {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
  color: var(--color-on-dark);
  text-align: center;
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(232, 137, 43, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  animation: mission-drift 50s linear infinite;
}
@keyframes mission-drift { to { background-position: 0 0, 0 48px, 48px 0; } }

.mission__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.js .mission__frame.reveal { transform: none; }
.mission__frame path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 2.6s var(--ease);
}
.mf--far path { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.mf--near path { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.2; transition-delay: 0.4s; }
.mf--purlins path { stroke: rgba(242, 157, 69, 0.3); stroke-width: 1.2; transition-delay: 1s; }
.mission__frame.is-visible path { stroke-dashoffset: 0; }

.mission__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}
.mission__inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.mission h2 { font-size: var(--fs-h2); color: var(--white); max-width: 820px; text-wrap: balance; }
.mission__quote {
  position: relative;
  margin: 1rem 0 0;
  max-width: 820px;
  padding-top: 2.5rem;
}
.mission__quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.75rem;
  background: linear-gradient(var(--amber-500), transparent);
}
.mission__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(238, 242, 246, 0.9);
}

/* ---------- 8. CTA (compact) ---------- */
.about-cta { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-top: 1px solid var(--line-on-dark); }

/* Keep section labels at eyebrow size inside section heads */
.section-head p.eyebrow { margin-top: 0; max-width: none; font-size: var(--fs-xs); color: var(--amber-600); }
.section--dark .section-head p.eyebrow { color: var(--amber-400); }
