/* =========================================================
   PRIME TECH ENGINEERING — About & Contact pages
   Extends "Meridian" · reuses styles.css + service.css tokens
   Loaded AFTER service.css — no token or component overrides
   ========================================================= */

/* ============================== UTILITIES ============================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stat__unit { font-size: 0.52em; color: var(--on-dark-muted); font-weight: 500; }

/* ============================== SECTION BACKDROPS ============================== */
.bg-surface { background: var(--surface); }
.bg-alt { background: var(--surface-alt); }

/* generic sub-page hero lead paragraph (reuses .svc-hero shell) */
.page-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* ============================== STORY (About) ============================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}
.story-copy .kicker { margin-bottom: 18px; }
.story-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-wrap: balance;
}
.story-copy > p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.72; color: var(--text); }
.story-copy > p + p { margin-top: 15px; }
.story-copy strong { color: var(--ink); font-weight: 600; }

.story-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: var(--hair);
}
.story-sign__mark {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(10, 90, 83, 0.2);
}
.story-sign__mark .ico { width: 24px; height: 24px; }
.story-sign b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.story-sign small { font-size: 13px; color: var(--muted); }

.story-media { position: relative; }
.story-media__frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  box-shadow: inset 0 0 0 1px rgba(14, 124, 116, 0.4), var(--sh-float);
}
.story-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.story-stat {
  position: absolute;
  right: -18px; bottom: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--base);
  color: var(--on-dark);
  border-radius: var(--r-card);
  box-shadow: var(--sh-float);
}
.story-stat .ico { width: 32px; height: 32px; color: var(--accent-on-dark); flex: none; }
.story-stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 27px;
  color: #fff;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.story-stat small { display: block; font-size: 12px; color: var(--on-dark-muted); margin-top: 4px; }

/* ============================== VALUES (About) ============================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.value-card {
  padding: 28px 24px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--sh-rest);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--sh-hover); }
.value-card__ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(10, 90, 83, 0.18);
}
.value-card__ico .ico { width: 27px; height: 27px; }
.value-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.value-card p { margin: 9px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================== TEAM (About) ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.team-card {
  padding: 30px 26px 26px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--sh-rest);
  text-align: center;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.team-card__photo {
  width: 108px; height: 108px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line), var(--sh-rest);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.team-card__role {
  display: inline-block;
  margin: 7px 0 13px;
  padding: 4px 13px;
  border-radius: var(--r-chip);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-deep);
}
.team-card p { font-size: 13.5px; color: var(--muted); line-height: 1.62; }
.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.team-tag {
  padding: 4px 11px;
  border-radius: var(--r-chip);
  background: var(--surface);
  border: var(--hair);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ============================== MILESTONES / JOURNEY (About) ============================== */
.milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.milestones__rail {
  position: absolute;
  top: 35px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
  z-index: 0;
}
.milestone {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  text-align: center;
}
.milestone__dot {
  width: 18px; height: 18px;
  margin: 27px auto 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.milestone__year {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 23px;
  color: var(--accent-deep);
  font-feature-settings: "tnum" 1;
}
.milestone h3 { margin-top: 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.milestone p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============================== CONTACT METHODS ============================== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--sh-rest);
  color: inherit;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
a.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--sh-hover); }
.contact-card__ico {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(10, 90, 83, 0.18);
}
.contact-card__ico .ico { width: 26px; height: 26px; }
.contact-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  margin-top: 5px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.contact-card__sub { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.contact-card__go {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
}
.contact-card__go .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
a.contact-card:hover .contact-card__go .ico { transform: translateX(3px); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .story-grid { gap: 40px; }
  .story-copy h2 { font-size: 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-media { order: -1; max-width: 540px; width: 100%; margin-inline: auto; }
  .story-stat { right: 16px; }
  .milestones { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .milestones__rail { display: none; }
  .milestone__dot { margin-top: 4px; }
}

@media (max-width: 640px) {
  .story-copy h2 { font-size: 27px; }
  .story-stat { right: 12px; bottom: -16px; padding: 13px 18px; }
  .story-stat b { font-size: 23px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .milestones { grid-template-columns: 1fr; gap: 26px; }
  .contact-methods { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .value-card,
  .contact-card,
  .team-card { transition: none !important; }
}
