/* ============================================================
   MCNEISH SOLUTION LLC — ABOUT PAGE SPECIFIC STYLES
   ============================================================ */

/* ─── VALUE BLUEPRINT MAP HERO ────────────────────────────── */
.about-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--lapis); /* Rich blueprint navy #1A2B4A */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.blueprint-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blueprint-svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.bp-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-bp 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes draw-bp {
  to { stroke-dashoffset: 0; }
}

/* Hover highlights rooms of our house blueprint in copper */
.bp-room {
  transition: fill 0.3s var(--ease-out-expo), stroke 0.3s;
}

.bp-room:hover,
.bp-room.active {
  fill: rgba(184, 115, 51, 0.15) !important;
  stroke: var(--copper-lit) !important;
  stroke-width: 1.5;
}

.blueprint-overlay-layout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding-bottom: var(--space-64);
  pointer-events: none;
}

.blueprint-instructions {
  pointer-events: auto;
}

.blueprint-value-card {
  width: 380px;
  background: var(--void);
  border: var(--border-copper);
  padding: var(--space-32);
  box-shadow: 0 0 30px rgba(10, 11, 13, 0.85);
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s;
}

/* ─── COMPANY STORY TIMELINE (SITE LOG STYLE) ────────────── */
.story-timeline-section {
  background: var(--void);
}

.site-log-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Lined-paper margin red rule */
.site-log-timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 87, 51, 0.15); /* Ember line */
}

.log-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-48);
  margin-bottom: var(--space-64);
  position: relative;
}

.log-year {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--copper);
  text-align: right;
  padding-top: var(--space-4);
}

.log-details {
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: var(--space-32);
}

.log-details h3 {
  color: var(--ivory);
  margin-bottom: var(--space-12);
}

.log-details p {
  color: var(--ash-light);
  line-height: 1.5;
}

/* ─── TEAM CREDENTIAL BADGES FLIP MECHANICS ──────────────── */
.team-badges-section {
  background: var(--steel);
}

.badges-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-48);
}

.badge-card-3d {
  height: 340px;
  perspective: 1000px;
  cursor: pointer;
}

.badge-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.badge-card-3d:hover .badge-card-inner {
  transform: rotateY(180deg);
}

.badge-front,
.badge-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 4px;
  padding: var(--space-32);
}

/* Front Badge Design: Contractor Safety Pass Aesthetic */
.badge-front {
  background: var(--void);
  border: var(--border-steel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

/* Simulated badge safety clip slot */
.badge-punch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
}

.badge-seal-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, var(--copper-lit) 50%);
  opacity: 0.1;
}

/* Badge Photo Container and Images */
.badge-photo-container {
  position: absolute;
  top: 36px;
  left: var(--space-32);
  right: var(--space-32);
  height: 140px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--steel);
}

.badge-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.1) grayscale(0.15) brightness(0.9);
  transition: filter var(--duration-mid), transform var(--duration-mid);
}

.badge-card-3d:hover .badge-photo {
  filter: sepia(0) contrast(1.0) grayscale(0) brightness(1.0);
  transform: scale(1.02);
}

.media-frame__corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--copper);
  z-index: 2;
  pointer-events: none;
}

.media-frame__corner.top-left {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.media-frame__corner.top-right {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
}

.media-frame__corner.bottom-left {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
}

.media-frame__corner.bottom-right {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.badge-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ivory);
  margin-top: var(--space-12);
}

.badge-title {
  font-size: 0.8125rem;
  color: var(--ash-light);
  margin-bottom: var(--space-16);
}

.badge-specialty {
  font-size: 0.55rem;
  color: var(--ash);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-12);
}

/* Back Badge Design: Quote and details */
.badge-back {
  background: var(--charcoal);
  border: var(--border-copper);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-deep), var(--shadow-copper);
}

.badge-quote {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ivory);
}

/* ─── ACCREDITATION STAMPED SEALS ────────────────────────── */
.certifications-section {
  background: var(--void);
}

.seals-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-64);
}

.seal-stamped {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  opacity: 0.2;
  transform: scale(1.15);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s;
}

.seal-stamped.stamped-active {
  opacity: 0.85;
  transform: scale(1.0);
}

.seal-svg {
  width: 100px;
  height: 100px;
}

.seal-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blueprint-overlay-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-32);
    padding: var(--space-48) var(--space-24);
  }
  
  .blueprint-value-card {
    width: 100%;
  }

  .badges-layout {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .badge-card-3d {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .site-log-timeline::before {
    left: 20px;
  }
  
  .log-entry {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .log-year {
    text-align: left;
  }

  .seals-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-48);
  }
}
