@import url('../shared/tokens.css');
/* About page. Design handoff: full-viewport hero, approach, timeline, education,
   speaking, recognition, skills marquee, contact. Dark and raised grounds alternate,
   and one cyan accent carries through every section. */
:root {
  --ab-ground: #0c0c0e;
  --ab-raised: #111318;
  --ab-surface: #15171a;
  --ab-line: #353a3f;
  --ab-line-hover: #6c7078;
  --ab-ink: #f2f1ed;
  --ab-muted: #b1b8b1;
  --ab-lead: #cfe0ff;
  --ab-accent: #4fd8ff;
  --ab-link-hover: #5cb4ff;
  --ab-gutter: max(clamp(20px, 5vw, 64px), calc((100% - 1200px) / 2));
  --ab-nav: 56px;
  --ab-ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ab-ground); color: var(--ab-ink);
  font: 400 var(--pf-type-body)/1.65 var(--pf-font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ab-link-hover); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--ab-ink); color: var(--ab-ground); }
:focus-visible { outline: 3px solid var(--ab-accent); outline-offset: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px;
  border-radius: var(--pf-radius); background: var(--ab-ink); color: var(--ab-ground);
  font: 500 16px/1.4 'Space Grotesk', Arial, sans-serif;
}
.skip-link:focus { top: 8px; color: var(--ab-ground); }
[id] { scroll-margin-top: var(--ab-nav); }

/* Nav: back to the portfolio at the left, the email as a copy control at the right. */
.ab-nav {
  position: fixed; inset: 0 0 auto; z-index: 85; display: flex; align-items: center;
  justify-content: space-between; height: var(--ab-nav); padding: 0 clamp(20px, 3vw, 56px);
  background: var(--ab-ground); border-bottom: 0;
}
.ab-back, .ab-email {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 16px/1.4 'Space Grotesk', Arial, sans-serif; color: var(--ab-ink);
}
.ab-back-arrow { display: inline-flex; transition: transform .35s var(--ab-ease); }
.ab-back:hover .ab-back-arrow { transform: translateX(-3px); }
.ab-email {
  padding: 0; border: 0; background: none; color: var(--ab-muted); cursor: pointer;
  transition: color .2s ease;
}
.ab-email:hover { color: var(--ab-ink); }
.ab-email-stack { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ab-email-ghost { visibility: hidden; white-space: nowrap; }
.ab-email-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }

/* Hero: the pointer moves a blurred hue wash and lifts the letters of the name. */
.ab-hero {
  position: relative; isolation: isolate; min-height: 100svh; display: flex;
  flex-direction: column; justify-content: center; gap: clamp(24px, 3vh, 40px);
  padding: 104px var(--ab-gutter) 92px; overflow: hidden;
  border-bottom: 0; background: var(--ab-ground);
}
.ab-wash {
  position: absolute; inset: -25%; z-index: -2; pointer-events: none; filter: blur(18px);
  background: radial-gradient(ellipse 66% 66% at 50% 45%, hsl(222 95% 62% / .38), hsl(268 90% 58% / .15) 46%, transparent 72%);
}
.ab-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #00000066 1px, transparent 1px); background-size: 5px 5px;
}
.ab-eyebrow {
  position: relative; margin: 0; font: 400 15px/1.5 'JetBrains Mono', Consolas, monospace;
  letter-spacing: .06em; color: var(--ab-muted);
}
.ab-name {
  position: relative; display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%;
  font: 500 clamp(64px, 10vw, 144px)/.9 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.055em; color: var(--ab-ink); user-select: none; cursor: default;
}
.ab-letter { display: inline-block; white-space: pre; will-change: transform; }
.ab-hero-copy { position: relative; max-width: 660px; width: min(100%, 58%); }
.ab-lead {
  margin: 0 0 20px; font: 500 clamp(24px, 2.4vw, 32px)/1.35 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.025em; color: var(--ab-lead); text-wrap: pretty;
}
.ab-verb {
  animation: ab-verb-cycle 12s linear infinite;
  transition: filter .35s ease; cursor: default;
}
.ab-verb[data-verb='1'] { animation-delay: -4s; }
.ab-verb[data-verb='2'] { animation-delay: -8s; }
.ab-lead:hover .ab-verb { animation-play-state: paused; }
.ab-verb:hover { filter: brightness(1.25); }
@keyframes ab-verb-cycle {
  0% { color: #ff6fb5; text-shadow: 0 0 22px #ff6fb555; }
  33.3% { color: #5cb4ff; text-shadow: 0 0 22px #5cb4ff55; }
  66.6% { color: #4fd8ff; text-shadow: 0 0 22px #4fd8ff55; }
  100% { color: #ff6fb5; text-shadow: 0 0 22px #ff6fb555; }
}
.ab-sub { margin: 0; font: 400 20px/1.65 'Space Grotesk', Arial, sans-serif; color: var(--ab-muted); max-width: 44ch; text-wrap: pretty; }
.ab-scroll {
  position: absolute; right: var(--ab-gutter); bottom: 32px; display: flex; align-items: center; gap: 8px;
  font: 400 15px/1.5 'JetBrains Mono', Consolas, monospace; letter-spacing: .06em; color: var(--ab-muted);
}
.ab-scroll-arrow { color: var(--ab-ink); }

/* Sections share one rhythm: 96px of padding, 32px from the heading to the content. */
.ab-section { padding: var(--pf-section) var(--ab-gutter); border-bottom: 0; background: var(--ab-ground); }
.ab-section-raised { background: var(--ab-raised); }
#contact { border-bottom: 0; }
.ab-h2 { font: 500 clamp(30px, 2.8vw, 40px)/1.15 'Space Grotesk', Arial, sans-serif; letter-spacing: -.035em; }
.ab-h2-wide { max-width: 22ch; }
.ab-accent { color: var(--ab-accent); }
.ab-kicker {
  display: block; font: 400 15px/1.5 'JetBrains Mono', Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ab-accent);
}

/* Approach: three flat steps, no cards. */
.ab-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-top: var(--pf-heading-gap); }
.ab-step p { margin: 12px 0 0; color: var(--ab-muted); }

/* Experience: one unbroken rail with a dot per role. */
.ab-timeline { position: relative; max-width: 820px; margin-top: var(--pf-heading-gap); padding-left: 2px; }
.ab-rail {
  position: absolute; left: 1px; top: 9px; bottom: 10px; width: 2px; border-radius: 999px;
  background: linear-gradient(to top, rgba(79, 216, 255, .28), rgba(79, 216, 255, .6) 55%, var(--ab-accent));
}
.ab-role { position: relative; padding: 0 0 40px 36px; }
.ab-role:last-child { padding-bottom: 0; }
.ab-dot {
  position: absolute; left: -6px; top: 9px; width: 12px; height: 12px; border-radius: 50%;
  box-sizing: border-box; background: var(--ab-ground); border: 2px solid rgba(79, 216, 255, .88);
  transition: transform .35s var(--ab-ease), background-color .35s var(--ab-ease), box-shadow .35s var(--ab-ease);
}
.ab-role:nth-child(3) .ab-dot { border-color: rgba(79, 216, 255, .77); }
.ab-role:nth-child(4) .ab-dot { border-color: rgba(79, 216, 255, .66); }
.ab-role:nth-child(5) .ab-dot { border-color: rgba(79, 216, 255, .55); }
.ab-role:nth-child(6) .ab-dot { border-color: rgba(79, 216, 255, .44); }
.ab-role:nth-child(7) .ab-dot { border-color: rgba(79, 216, 255, .33); }
.ab-role.is-current .ab-dot,
.ab-role:hover .ab-dot,
.ab-role:focus-within .ab-dot {
  background: var(--ab-accent); border: 0;
  box-shadow: 0 0 0 4px rgba(79, 216, 255, .14), 0 0 12px #4fd8ff66;
}
.ab-role:hover .ab-dot, .ab-role:focus-within .ab-dot { transform: scale(1.25); }
.ab-role-inner { transition: transform .35s var(--ab-ease); }
.ab-role:hover .ab-role-inner, .ab-role:focus-within .ab-role-inner { transform: translateX(4px); }
.ab-role-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.ab-org { font: 400 16px/1.6 'Space Grotesk', Arial, sans-serif; color: var(--ab-accent); }
.ab-chip {
  padding: 2px 10px; border: 1px solid var(--ab-line); border-radius: 999px;
  font: 400 15px/1.5 'JetBrains Mono', Consolas, monospace; letter-spacing: .06em; color: var(--ab-muted);
}
.ab-role-title { margin-top: 8px; font: 500 21px/1.3 'Space Grotesk', Arial, sans-serif; letter-spacing: -.02em; }
.ab-now {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid #4fd8ff55;
  border-radius: 999px; background: #4fd8ff14; font: 500 12px/1.5 'JetBrains Mono', Consolas, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ab-accent); vertical-align: middle;
}
.ab-role-desc { margin: 10px 0 0; color: var(--ab-muted); max-width: 58ch; text-wrap: pretty; }
.ab-role-desc-wide { max-width: 60ch; }
.ab-entry { max-width: 820px; margin-top: var(--pf-heading-gap); }

/* Speaking: two wide tiles beside one tall tile. */
.ab-speaking {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr); gap: 24px; margin-top: var(--pf-heading-gap);
}
.ab-tile {
  position: relative; margin: 0; overflow: hidden; border: 1px solid var(--ab-line);
  border-radius: var(--pf-radius); background: var(--ab-surface);
}
.ab-tile-wide { aspect-ratio: 16 / 9; }
.ab-tile-tall { grid-column: 2; grid-row: 1 / span 2; min-height: 100%; }
.ab-tile :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.ab-tile-wide :is(img, video) { position: absolute; inset: 0; }
.ab-tile-tall :is(img, video) { position: absolute; inset: 0; }
.ab-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 12, 14, .95), rgba(12, 12, 14, .35) 38%, transparent 62%);
}
.ab-tile figcaption { position: absolute; inset: auto 0 0; padding: 20px 24px; font: 400 16px/1.6 'Space Grotesk', Arial, sans-serif; color: var(--ab-ink); }
.ab-tile figcaption .ab-kicker { margin-bottom: 4px; }

/* Recognition: two cards, the publication linking out. */
.ab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: var(--pf-heading-gap); }
.ab-card {
  display: block; overflow: hidden; border: 1px solid var(--ab-line); border-radius: var(--pf-radius);
  background: var(--ab-surface); transition: border-color .35s var(--ab-ease);
}
.ab-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 0; }
.ab-card-body { padding: 20px 24px; }
.ab-card-title { margin-top: 8px; font: 500 21px/1.3 'Space Grotesk', Arial, sans-serif; letter-spacing: -.02em; }
.ab-card-desc { margin: 8px 0 0; font: 400 16px/1.6 'Space Grotesk', Arial, sans-serif; color: var(--ab-muted); }
.ab-card-source { margin: 12px 0 0; font: 400 15px/1.5 'Space Grotesk', Arial, sans-serif; color: var(--ab-muted); }
.ab-card-link:hover { border-color: var(--ab-line-hover); color: inherit; }

/* Skills: two marquee rows, the second travelling the other way. */
.ab-section-marquee { padding: var(--pf-section) 0; overflow: hidden; }
.ab-h2-gutter { margin: 0 var(--ab-gutter); }
.ab-marquee { display: flex; flex-direction: column; gap: 16px; margin-top: var(--pf-heading-gap); }
.ab-marquee-row { overflow: hidden; }
.ab-marquee-track { display: flex; gap: 16px; width: max-content; animation: ab-marquee 46s linear infinite; }
.ab-marquee-reverse { animation-duration: 52s; animation-direction: reverse; }
.ab-pill {
  padding: 12px 24px; border: 1px solid var(--ab-line); border-radius: 9999px;
  background: var(--ab-surface); font: 400 18px/1.5 'Space Grotesk', Arial, sans-serif;
  color: var(--ab-ink); white-space: nowrap;
}
@keyframes ab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Contact: the closing line and two bare icons. */
.ab-contact-title { font: 500 clamp(40px, 6vw, 88px)/1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.05em; }
.ab-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: var(--pf-heading-gap); }
.ab-icon {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  color: #fff; transition: color .2s ease;
}
.ab-icon-linkedin:hover { color: #0a66c2; }
.ab-icon-resume:hover { color: var(--ab-accent); }

@media (max-width: 720px) {
  .ab-hero-copy { width: 100%; }
  .ab-scroll { display: none; }
  .ab-speaking { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .ab-tile-tall { grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .ab-section { padding: var(--pf-section) var(--ab-gutter); }
  .ab-section-marquee { padding: var(--pf-section) 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ab-marquee-track { animation: none; }
  .ab-verb { animation: none; color: var(--ab-accent); }
  .ab-role-inner, .ab-dot, .ab-back-arrow { transition: none; }
}
