/* ═══════════════════════════════════════════════════
   ABOUT PAGE  ·  Maximus 3D Printing
   Page-specific styles — loaded after style.css
   ═══════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   ABOUT HERO
   ════════════════════════════════════════════════ */
.about-hero {
  background: var(--off);
  background-image:
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(var(--yellow-rgb),0.16) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(var(--navy-rgb),0.06) 0%, transparent 55%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 100px);
  overflow: hidden;
  position: relative;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* ── Back link ──────────────────────────────────── */
.about-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 28px;
  padding: 6px 4px;
  transition: gap 0.2s;
}
.about-back:hover { gap: 12px; }

/* ── Eyebrow (light-bg variant) ───────────────────── */
.ah-eyebrow {
  opacity: 1 !important; /* visible immediately, no dark-hero dependency */
  color: var(--blue);
}
.ah-eyebrow .eyebrow-dot {
  background: var(--blue);
  animation: blink-blue 2.2s ease-in-out infinite;
}
@keyframes blink-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--navy-rgb),0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(var(--navy-rgb),0); }
}

/* ── Heading ───────────────────────────────────────── */
.ah-h1 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.9vw, 3.9rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ah-h1 .word-line { display: block; }
.ah-h1 .accent-line {
  display: inline-block;
  width: fit-content;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.ah-h1 .accent-line::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -10px; right: -10px;
  top: 12%; bottom: 6%;
  background: var(--yellow);
  transform: skewX(-4deg);
  border-radius: 6px;
  opacity: 0.95;
}

/* ── Subtitle (light-bg variant) ─────────────────────── */
.ah-sub {
  color: var(--muted-text);
  max-width: 460px;
}

/* ── Actions ──────────────────────────────────────────── */
.ah-actions { margin-bottom: 40px; }

.ah-btn-ghost {
  color: var(--navy);
  border: 2px solid rgba(var(--navy-rgb),0.16);
}
.ah-btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(var(--navy-rgb),0.06);
}

/* ── Quick-fact badges ────────────────────────────────── */
.ah-badges {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.ahb { display: flex; flex-direction: column; gap: 3px; }
.ahb strong {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1;
}
.ahb span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ahb-sep {
  width: 1px; height: 36px;
  background: rgba(var(--navy-rgb),0.12);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   PORTRAIT / MEDIA PANEL
   ════════════════════════════════════════════════ */
.about-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Organic accent shape behind the frame */
.ahm-blob {
  position: absolute;
  width: 88%;
  height: 88%;
  top: 4%;
  left: 10%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow));
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
}

/* Portrait frame */
.ahm-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  margin-left: 6%;
}

/* Portrait photo */
.ahm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

/* Name tag — overlaps bottom-left of the frame */
.ahm-tag {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 22px;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ahm-tag strong {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}
.ahm-tag span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Floating stat badge — overlaps top-right of the frame */
.ahm-float {
  top: 26px;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy);
  color: var(--white);
}
.ahm-float svg { flex-shrink: 0; color: var(--yellow); }
.ahm-float strong {
  display: block;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--yellow);
}
.ahm-float span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(var(--white-rgb),0.75);
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-hero-media { order: -1; margin-bottom: 12px; }
  .about-back { align-self: flex-start; }
  .ah-eyebrow, .about-back { justify-content: center; }
  .ah-h1 { align-items: center; }
  .ah-h1 .accent-line { margin: 0 auto; }
  .ah-sub { margin-left: auto; margin-right: auto; }
  .ah-actions { justify-content: center; }
  .ah-badges { justify-content: center; }
  .ahm-frame { margin-left: 0; }
  .ahm-tag { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 560px) {
  .ahm-float { right: 6px; top: 16px; padding: 11px 16px; }
  .ahm-float strong { font-size: 1rem; }
  .ah-badges { gap: 18px; }
  .ahb strong { font-size: 1.4rem; }
}


/* ════════════════════════════════════════════════
   HIS STORY — timeline
   ════════════════════════════════════════════════ */
.story { background: var(--white); padding: 88px 0 96px; }

.story-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.story-header-left { display: flex; flex-direction: column; align-items: flex-start; }
.story-header-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-text);
  line-height: 1.75;
  align-self: flex-end;
  padding-bottom: 6px;
  max-width: 440px;
  margin-left: auto;
}

.story-timeline { position: relative; }
.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 6px; bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    rgba(var(--navy-rgb),0.14) 0px, rgba(var(--navy-rgb),0.14) 8px,
    transparent 8px, transparent 16px
  );
}
/* Animated fill line — scrubbed in via GSAP as you scroll (script.js) */
.story-progress {
  position: absolute;
  left: 50%; top: 6px; bottom: 6px;
  width: 3px;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, var(--yellow), var(--blue));
  border-radius: 2px;
  z-index: 1;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
}
.story-item:last-child { margin-bottom: 0; }
.story-empty { min-height: 1px; }

.story-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--navy);
  justify-self: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--white);
}

.story-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid rgba(var(--navy-rgb),0.09);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  max-width: 380px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--navy-rgb),0.22);
}
.story-item:nth-child(odd) .story-card { justify-self: end; text-align: right; }
.story-item:nth-child(even) .story-card { justify-self: start; text-align: left; }

/* Ghost index number watermark */
.story-index {
  position: absolute;
  top: -6px;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(var(--navy-rgb),0.055);
  z-index: 0;
  pointer-events: none;
}
.story-item:nth-child(odd) .story-index { right: 14px; }
.story-item:nth-child(even) .story-index { left: 14px; }

/* Icon + year row */
.story-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.story-item:nth-child(odd) .story-top { flex-direction: row-reverse; justify-content: flex-end; }
.story-item:nth-child(even) .story-top { flex-direction: row; justify-content: flex-start; }

.story-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.story-year {
  display: inline-block;
  font-family: var(--fb);
  font-weight: 700;
  color: var(--blue);
  background: rgba(var(--navy-rgb),0.08);
  padding: 4px 14px;
  border-radius: var(--pill);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.story-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.story-card p {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: var(--muted-text);
  line-height: 1.65;
  margin: 0;
  max-width: 340px;
}
.story-item:nth-child(odd) .story-card p { margin-left: auto; }
.story-item:nth-child(even) .story-card p { margin-right: auto; }


/* ════════════════════════════════════════════════
   WHY HE DOES IT — mission / quote / values
   ════════════════════════════════════════════════ */
.mission { padding: 88px 0 96px; }

.mission-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.mission-header-left { display: flex; flex-direction: column; align-items: flex-start; }
.mission .section-h2 { color: var(--white); }
.mission-header-desc {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(var(--white-rgb),0.5);
  line-height: 1.75;
  align-self: flex-end;
  padding-bottom: 6px;
  max-width: 420px;
  margin-left: auto;
}

.mission-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: stretch;
}

/* ── Left: "In His Own Words" card ─────────────────── */
.mission-visual { position: relative; }

.mv-card {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(var(--white-rgb),0.045);
  border: 1.5px solid rgba(var(--white-rgb),0.12);
  border-radius: 22px;
  padding: 34px 32px 28px;
  overflow: hidden;
}

.mv-quote-icon {
  position: absolute;
  top: 22px; right: 26px;
  color: rgba(var(--white-rgb),0.06);
}

.mv-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.mv-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--yellow);
  flex-shrink: 0;
}
.mv-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mv-top-text { display: flex; flex-direction: column; gap: 2px; }
.mv-top-text strong { font-family: var(--fd); font-weight: 800; font-size: 1rem; color: var(--white); }
.mv-top-text span { font-family: var(--fb); font-weight: 700; font-size: 0.72rem; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }

.mv-text {
  position: relative;
  z-index: 1;
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: rgba(var(--white-rgb),0.85);
  flex: 1;
}

.mv-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--white-rgb),0.1);
}
.mv-foot span {
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(var(--white-rgb),0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mv-foot em {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ── Right: value list ──────────────────────────────── */
.mission-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mission-values .why-feat {
  border-left: 3px solid var(--yellow);
  background: rgba(var(--white-rgb),0.045);
}


/* ════════════════════════════════════════════════
   IN THE WORKSHOP — mosaic gallery
   ════════════════════════════════════════════════ */
.workshop { background: var(--white); padding: 88px 0 96px; }

.workshop-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.workshop-header-left { display: flex; flex-direction: column; align-items: flex-start; }
.workshop-header-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-text);
  line-height: 1.75;
  align-self: flex-end;
  padding-bottom: 6px;
  max-width: 420px;
  margin-left: auto;
}

.workshop-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 14px;
}
.wk-img {
  position: relative;
  border-radius: var(--r24);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.wk-img--lg { grid-column: 1 / 3; grid-row: 1 / 3; }
.wk-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.wk-img:hover img { transform: scale(1.06); }
.wk-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--navy-rgb),0.65) 0%, transparent 45%);
  pointer-events: none;
}
.wk-label {
  position: absolute;
  z-index: 2;
  left: 14px; bottom: 14px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
}


/* ════════════════════════════════════════════════
   MILESTONES
   ════════════════════════════════════════════════ */
.milestones { background: var(--off); padding: 88px 0 96px; }
.milestones-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ════════════════════════════════════════════════
   A WORD FROM MAXIMUS
   ════════════════════════════════════════════════ */
.mx-quote { padding: 100px 0; }
.mxq-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.mxq-mark {
  display: block;
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(70px, 10vw, 120px);
  line-height: 1;
  color: rgba(var(--yellow-rgb),0.22);
  margin-bottom: -20px;
}
.mxq-text {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 32px;
}
.mxq-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.mxq-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--yellow);
  flex-shrink: 0;
}
.mxq-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mxq-author-text { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.mxq-author-text strong { font-family: var(--fd); font-weight: 800; font-size: 1rem; color: var(--white); }
.mxq-author-text span { font-family: var(--fb); font-weight: 600; font-size: 0.78rem; color: rgba(var(--white-rgb),0.5); }


/* ════════════════════════════════════════════════
   RESPONSIVE — story / mission / workshop / milestones / quote
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .story-header,
  .mission-header,
  .workshop-header { grid-template-columns: 1fr; gap: 16px; }
  .story-header-desc,
  .mission-header-desc,
  .workshop-header-desc { align-self: flex-start; margin-left: 0; max-width: 100%; }

  /* Timeline collapses to single left-aligned column */
  .story-timeline::before { left: 15px; }
  .story-progress { left: 15px; }
  .story-item { grid-template-columns: 32px 1fr; gap: 0 20px; }
  .story-dot { grid-row: 1; grid-column: 1; justify-self: start; margin-left: 7px; }
  .story-empty { display: none; }
  .story-item:nth-child(odd) .story-card,
  .story-item:nth-child(even) .story-card {
    grid-column: 2; grid-row: 1;
    justify-self: start; text-align: left;
    max-width: 100%;
  }
  .story-item:nth-child(odd) .story-card p,
  .story-item:nth-child(even) .story-card p { margin-left: 0; margin-right: 0; max-width: 100%; }
  .story-item:nth-child(odd) .story-top,
  .story-item:nth-child(even) .story-top { flex-direction: row; justify-content: flex-start; }
  .story-item:nth-child(odd) .story-index { left: 14px; right: auto; }

  .mission-layout { grid-template-columns: 1fr; gap: 28px; }

  .workshop-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .wk-img--lg { grid-column: 1 / 3; grid-row: 1; }
}

@media (max-width: 640px) {
  .story, .mission, .workshop, .milestones { padding: 64px 0 72px; }
  .mx-quote { padding: 72px 0; }
  .workshop-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 160px); }
  .wk-img--lg { grid-column: 1 / 3; grid-row: 1; height: 220px; }
  .mxq-author { flex-direction: row; }
}
