/* ============================================================
   ABOUT.CSS — hero-specific, work-blocks, stat-band, certs,
               timeline, closing, reveal animation
   ============================================================ */

/* ── Hero (about-specific) ── */
.hero-inner {
  display: grid;
  grid-template-columns: 2fr 0.8fr;
  gap: 180px;
  align-items: flex-start;
}
.hero h1 .thin {
  display: block;
  margin-bottom: 8px;
  font-variant: small-caps;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.stat-pill {
  padding: 0;
}
.stat-pill .stat-num {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-pill .stat-num .suf {
  font-size: 0.55em;
  color: var(--green-400);
}
.stat-pill .stat-label {
  font-family: "NimbusMono", monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 16px;
  line-height: 1.5;
  font-weight: 600;
}

/* ── Work Section (uses common .section styles from global) ── */
.work-blocks {
  display: flex;
  flex-direction: column;
}
.work-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.work-block:last-child {
  border-bottom: 1px solid var(--rule);
}
.work-num {
  font-family: "NimbusMono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.work-num .glyph {
  color: var(--green-400);
  font-size: 9px;
}
.work-body {
  max-width: 72ch;
}
.work-body h3 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
  text-transform: uppercase;
}
.work-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.work-body p:last-child { margin-bottom: 0; }

/* ── Architecture SVG Icon ── */
.work-num--icon {
  display: block;
  padding-top: 0;
  align-self: start;
}
.work-arch-icon {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
@keyframes arch-pulse-1 {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.08; transform: scale(1.35); }
}
@keyframes arch-pulse-2 {
  0%, 100% { opacity: 0.05; transform: scale(1); }
  50%       { opacity: 0;    transform: scale(1.6); }
}
.work-arch-icon .arch-pulse-1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: arch-pulse-1 3.5s ease-in-out infinite;
}
.work-arch-icon .arch-pulse-2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: arch-pulse-2 3.5s ease-in-out infinite 0.6s;
}
@keyframes eng-cursor-blink {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0; }
}
.work-arch-icon .eng-cursor {
  animation: eng-cursor-blink 1.2s step-end infinite;
}

/* ── Stat Band ── */
.stat-band {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(at 50% 0%, rgba(63, 185, 122, 0.08),
    transparent 60%), #040506;
}
.stat-band--hero {
  padding: 48px 0;
  border-top: 1px solid rgba(63, 185, 122, 0.2);
  border-bottom: none;
  background: none;
  margin-top: 48px;
}
.stat-eyebrow {
  display: block;
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  padding-right: 48px;
  border-right: 1px solid var(--rule);
}
.stat-cell:nth-child(2) {
  padding: 0 48px;
}
.stat-cell:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 48px;
}
.stat-cell::before {
  content: attr(data-num);
  display: block;
  font-family: "NimbusMono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.stat-num {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .suf {
  font-size: 0.55em;
  color: var(--green-400);
}
.stat-label {
  margin-top: 20px;
  font-family: "NimbusMono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.stat-band--hero .stat-num {
  font-size: clamp(36px, 5vw, 64px);
}
.stat-band--hero .stat-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.stat-band--hero .stat-cell::before {
  font-size: 9px;
  margin-bottom: 8px;
}

/* ── Certifications ── */
.certs-section {
  padding: 180px 0;
}
.certs-head {
  margin-bottom: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
  position: relative;
}
.certs-head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--green-400);
  box-shadow: 0 0 18px rgba(63, 185, 122, 0.6);
}
.certs-head h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-transform: uppercase;
  color: var(--ink);
}
.certs-head .meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
.certs-head .meta b {
  color: var(--ink-2);
  font-weight: 600;
}
.cert-group {
  margin-bottom: 52px;
}
.cert-group:last-child { margin-bottom: 0; }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.group-label {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-400);
}
.group-count {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px 18px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cert-card:hover {
  border-color: var(--rule-2);
  background: var(--bg-3);
}
.cert-card--pending {
  border-style: dashed;
}
.cert-badge {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.cert-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-badge--empty {
  width: 68px;
  height: 68px;
  border: 1px dashed var(--rule-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "NimbusMono", monospace;
  font-size: 20px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.cert-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cert-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.cert-name--dim {
  color: var(--ink-3);
  font-weight: 400;
}
.cert-tier {
  font-family: "NimbusMono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Timeline ── */
.timeline-section {
  padding: 180px 0;
  border-top: 1px solid var(--rule);
}
.tl-head {
  margin-bottom: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
  position: relative;
}
.tl-head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--green-400);
  box-shadow: 0 0 18px rgba(63, 185, 122, 0.6);
}
.tl-head h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink);
}
.tl-head h2 .thin {
  font-weight: 300;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: -0.025em;
}
.tl-head h2 .em {
  color: var(--green-400);
}
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rule);
  transform: translateX(-0.5px);
}
.tl-entry {
  position: relative;
  width: calc(50% - 20px);
  padding-right: 44px;
  padding-bottom: 56px;
}
.tl-entry.right {
  margin-left: calc(50% + 20px);
  padding-right: 0;
  padding-left: 44px;
}
.tl-node {
  position: absolute;
  top: 8px;
  right: -27px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rule-2);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rule-2);
  z-index: 1;
}
.tl-entry.right .tl-node {
  right: auto;
  left: -27px;
}
.tl-entry.is-current .tl-node {
  background: var(--green-400);
  box-shadow: 0 0 0 1px var(--green-400), var(--glow);
}
.tl-card {
  padding: 28px 32px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  transition: border-color 0.2s ease;
}
.tl-entry.is-current .tl-card {
  border-color: rgba(63, 185, 122, 0.3);
  background: var(--bg-3);
}
.tl-year {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--green-400);
  text-transform: uppercase;
  margin: 0 0 2px;
}
.tl-meta {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.now { color: var(--green-400); }
.tl-role {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: var(--ink);
  text-transform: uppercase;
}
.tl-context {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.tl-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(63, 185, 122, 0.2);
  background: rgba(63, 185, 122, 0.08);
  border-radius: 4px;
  font-family: "NimbusMono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tech-pill:hover {
  border-color: rgba(63, 185, 122, 0.4);
  background: rgba(63, 185, 122, 0.15);
}

/* ── Closing ── */
.closing {
  padding: 180px 0;
  border-top: 1px solid var(--rule);
  background: radial-gradient(at 85% 20%, rgba(63, 185, 122, 0.1),
    transparent 55%),
    radial-gradient(at 15% 90%, rgba(1, 97, 54, 0.2), transparent 55%), #040506;
}
.closing h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 52px;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink);
}
.closing h2 .thin {
  font-weight: 300;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: -0.025em;
}
.closing h2 .em {
  color: var(--green-400);
}
.closing-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.closing-sub {
  font-family: "NimbusMono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 2fr 0.8fr;
    gap: 120px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }
  .stat-cell:last-child {
    grid-column: 1 / -1;
    padding: 40px 0 0;
    border-top: 1px solid var(--rule);
    margin-top: 40px;
  }
  /* Timeline collapses to left-aligned single column */
  .timeline::before {
    left: 7px;
  }
  .tl-entry,
  .tl-entry.right {
    width: 100%;
    margin-left: 0;
    padding-left: 52px;
    padding-right: 0;
  }
  .tl-node,
  .tl-entry.right .tl-node {
    right: auto;
    left: 0;
  }
}
@media (max-width: 720px) {
  .hero {
    padding: 100px 0 140px;
  }
  .section,
  .certs-section,
  .timeline-section,
  .closing {
    padding: 100px 0;
  }
  .stat-band {
    padding: 72px 0;
  }
  .work-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat-cell,
  .stat-cell:nth-child(2),
  .stat-cell:last-child {
    padding: 0 0 32px;
    border-right: 0;
    border-top: 0;
    margin-top: 0;
  }
  .stat-cell:last-child {
    grid-column: auto;
    padding-bottom: 0;
  }
  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
