/* ============================================================
   WALIFE - about page
   Builds on styles.css + home.css + projects.css
   ============================================================ */
.ab-section {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,8,.82);
  backdrop-filter: blur(9px);
  padding: 88px 56px;
}

/* ---------- Intro ---------- */
.ab-hero { padding-bottom: 72px; }
.ab-intro {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 64px;
  align-items: center;
}
.ab-title { font-size: clamp(52px, 7.6vw, 136px); }
.ab-bio {
  max-width: 720px;
  margin: 40px 0 0;
  color: var(--text);
  font-size: clamp(19px, 1.65vw, 25px);
  line-height: 1.5;
  letter-spacing: -.015em;
}
.ab-bio2 {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.ab-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}
.ab-facts li {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.ab-facts li::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
}

.ab-photo {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 440px);
}
.ab-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(99,201,148,.45);
  border-radius: 34px;
  animation: abSpin 40s linear infinite;
}
.ab-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background: #f5f5f2;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(53,185,120,.18);
}
.ab-photo figcaption {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .14em;
}
@keyframes abSpin { to { rotate: 360deg; } }

/* ---------- Section heads ---------- */
.ab-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 40px;
  margin-bottom: 44px;
}
.ab-head .section-index { grid-column: 1 / -1; margin-bottom: 4px; }
.ab-h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 80px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 600;
}
.ab-h2 em { font-family: var(--serif); font-weight: 400; color: var(--accent-light); letter-spacing: -.03em; }

/* ---------- Software ---------- */
.ab-legend {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ab-legend span { display: inline-flex; align-items: center; gap: 10px; }
.ab-tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.ab-tool {
  --fg: #fff;
  --bg: #111;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.ab-tool::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--sx, 30%) var(--sy, 50%), color-mix(in srgb, var(--fg) 18%, transparent), transparent 65%);
  transition: opacity .4s;
}
.ab-tool:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.ab-tool:hover::after { opacity: 1; }
.ab-icon {
  flex: none;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg);
  border: 2px solid var(--fg);
  color: var(--fg);
  font: 700 22px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.03em;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  transition: transform .5s var(--ease);
}
.ab-tool:hover .ab-icon { transform: rotate(-6deg) scale(1.06); }
.ab-tool-info { flex: 1; min-width: 0; }
.ab-tool-name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.ab-tool-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ab-meter { display: inline-flex; gap: 4px; }
.ab-meter i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
}
.ab-meter i.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease) calc(var(--k, 0) * .12s + .2s);
}
.ab-tool.in .ab-meter i.on::after,
.ab-legend .ab-meter i.on::after { transform: none; }

/* ---------- Education / Experience ---------- */
.ab-cv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.ab-cv .ab-h2 { margin-bottom: 40px; }
.ab-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.ab-timeline li {
  position: relative;
  padding: 0 0 40px 30px;
}
.ab-timeline li:last-child { padding-bottom: 0; }
.ab-timeline li::before {
  content: "";
  position: absolute;
  left: -6px; top: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #080808;
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 12px rgba(53,185,120,.6);
}
.ab-years {
  display: block;
  color: var(--accent-light);
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: .1em;
}
.ab-item-title {
  margin: 12px 0 0;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 600;
}
.ab-item-place { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.ab-item-desc { margin: 10px 0 0; color: #b5b5af; font-size: 15px; line-height: 1.65; max-width: 520px; }

/* ---------- Contact ---------- */
.ab-ct-lead { margin: 0 0 6px; color: var(--muted); font-size: 17px; }
.page-about .contact-main a { font-size: clamp(32px, 6.4vw, 104px); word-break: break-word; }

/* reveal */
.js .ab-rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .ab-rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ab-section { width: calc(100% - 24px); padding: 56px 24px; }
  .ab-intro { grid-template-columns: 1fr; gap: 48px; }
  .ab-photo { justify-self: start; width: min(100%, 320px); margin-left: 14px; }
  .ab-cv { grid-template-columns: 1fr; gap: 56px; }
  .ab-head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ab-tool-grid { grid-template-columns: 1fr; }
  .ab-legend { flex-wrap: wrap; gap: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-photo::before { animation: none; }
}
