/* /author/ — the author's page. Same tokens as the site (style.css); the only motion is the photo popping up
   under html.motion-on, so the reduced-motion default is a still page. */

.page-head { padding: clamp(2rem, 4.8vw, 3.6rem) 0 0; }
.crumb { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
.crumb:hover { color: var(--text-hi); }
.page-title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--text-hi); margin: 1rem 0 0; }
.au-hero { padding: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(1.6rem, 4vw, 2.8rem); }
.au-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.au-name { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--text-hi); margin-bottom: .8rem; }
.au-copy .hero-tag { margin-bottom: 1rem; }
.au-role { font-size: var(--fs-lg); color: var(--text-hi); font-weight: 600; line-height: 1.4; max-width: 46ch; margin-bottom: .7rem; }
.au-sub { color: var(--muted); font-size: var(--fs-md); max-width: 46ch; margin-bottom: var(--sp-3); }
.au-sub a { color: var(--accent); text-decoration: none; }
.au-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.au-cta .btn-ghost, .au-cta .btn-primary { font-size: var(--fs-sm); }

/* the photo: pops up once on load under html.motion-on, lifts a little on hover */
.au-photo { margin: 0; justify-self: center; width: min(100%, 17rem); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; position: relative;
  border: 1px solid var(--hair); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(60, 207, 145, .08), 0 0 60px -10px rgba(60, 207, 145, .35);
  transition: transform .4s var(--ease), box-shadow .4s; }
.au-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.au-photo:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(60, 207, 145, .14), 0 0 80px -10px rgba(60, 207, 145, .5); }
.motion-on .au-photo { animation: au-pop .9s cubic-bezier(.2, 1.4, .3, 1) .15s both; }
@keyframes au-pop { from { opacity: 0; transform: translateY(24px) scale(.86); } }

/* what I built */
.au-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: .8rem; }
.au-asof { color: var(--muted); font-size: var(--fs-xs); margin-bottom: var(--sp-4); }
.au-stats li { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; background: rgba(19, 29, 49, .55); }
.au-stats b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.au-stats span { color: var(--muted); font-size: var(--fs-sm); }
.au-h3 { font-size: var(--fs-lg); color: var(--text-hi); font-weight: 700; margin: 0 0 1rem; }
.au-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.au-card { border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); border-radius: var(--r-lg); padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(22, 34, 58, .75), rgba(15, 23, 38, .75)); }
.au-card h4 { color: var(--tone); font-size: var(--fs-md); margin-bottom: .35rem; }
.au-card p { color: var(--text); font-size: var(--fs-sm); line-height: 1.55; }
.au-card.t-blue { --tone: var(--blue); } .au-card.t-green { --tone: var(--green); } .au-card.t-cyan { --tone: var(--cyan); } .au-card.t-violet { --tone: var(--violet); } .au-card.t-amber { --tone: var(--amber); }
.au-feature { grid-column: 1 / -1; }
.au-feature h4 { font-size: var(--fs-lg); }
.au-feature p { font-size: var(--fs-base); max-width: 75ch; }
.au-metrics { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.au-metrics li { border-top: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); padding-top: .6rem; }
.au-metrics b { display: block; color: var(--tone); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.au-metrics span { color: var(--muted); font-size: var(--fs-xs); }
.au-more { display: inline-block; margin-top: 1.2rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.au-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* how I work with agents */
.au-alt { background: linear-gradient(180deg, transparent, rgba(19, 29, 49, .45) 15%, rgba(19, 29, 49, .45) 85%, transparent); }
.au-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: var(--sp-4); }
.au-role-col { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; background: rgba(11, 17, 28, .6); }
.au-role-col h4 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.au-role-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.au-role-col li { position: relative; padding-left: 1.1rem; color: var(--text-hi); font-size: var(--fs-sm); line-height: 1.5; }
.au-role-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.au-role-col:nth-child(2) li::before { background: var(--blue); }
.au-role-col:nth-child(3) li::before { background: var(--violet); }
.au-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.au-new { border: 1px solid var(--hair); border-left: 3px solid var(--tone); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; background: rgba(11, 17, 28, .6); }
.au-new h4 { color: var(--text-hi); font-size: var(--fs-md); line-height: 1.35; margin-bottom: .45rem; }
.au-new p { color: var(--text); font-size: var(--fs-sm); line-height: 1.55; }
.au-new.t-green { --tone: var(--green); } .au-new.t-violet { --tone: var(--violet); } .au-new.t-amber { --tone: var(--amber); } .au-new.t-cyan { --tone: var(--cyan); }
.au-inline { color: var(--accent); font-weight: 600; text-decoration: none; }
.au-inline:hover { text-decoration: underline; text-underline-offset: 3px; }

/* research */
.au-research { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.au-research .section-lead { margin-bottom: 0; }
.au-badge { flex: none; margin-top: 2.6rem; color: var(--amber); border: 1px solid rgba(255, 181, 71, .45); border-radius: 999px; padding: .25rem .8rem; font-size: var(--fs-sm); font-weight: 600; }

/* experience, stack, education */
.au-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.au-timeline { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; border-left: 1px solid var(--border); padding-left: 1.2rem; }
.au-timeline li { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.au-timeline li::before { content: ""; position: absolute; left: calc(-1.2rem - 5px); top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.au-timeline time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.au-timeline b { color: var(--text-hi); font-size: var(--fs-md); }
.au-timeline span { color: var(--text); font-size: var(--fs-sm); line-height: 1.55; }
.au-stack { display: grid; gap: .45rem 0; }
.au-stack dt { color: var(--muted); font-size: var(--fs-sm); margin-top: .4rem; }
.au-stack dd { display: flex; flex-wrap: wrap; gap: .4rem; }
.au-stack dd span { font-size: var(--fs-sm); color: var(--text-hi); border: 1px solid var(--hair); border-radius: 999px; padding: .15rem .7rem; background: rgba(19, 29, 49, .6); }
.au-gap { margin-top: var(--sp-4); }
.au-edu { list-style: none; display: flex; flex-direction: column; gap: .4rem; color: var(--text); font-size: var(--fs-sm); }
.au-edu b { color: var(--text-hi); }

#built, #agents, #research, #experience, #contacts { padding: clamp(2rem, 4.8vw, 3.6rem) 0; }
.au-contacts { text-align: center; }
.au-contacts .section-title { margin-left: auto; margin-right: auto; }
.au-contacts .section-lead { margin-left: auto; margin-right: auto; }
.au-contacts .au-cta { justify-content: center; }

@media (max-width: 900px) {
  .au-hero-grid { grid-template-columns: 1fr; }
  .au-photo { width: min(55%, 11.5rem); order: -1; justify-self: start; border-radius: 22px; }
  .au-roles { grid-template-columns: 1fr; }
  .au-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .au-stats { grid-template-columns: 1fr; gap: .6rem; }
  .au-stats li { display: flex; align-items: baseline; gap: .8rem; padding: .9rem 1rem; }
  .au-stats b { font-size: 1.8rem; flex: none; min-width: 3.2rem; }
  .au-cards, .au-news { grid-template-columns: 1fr; }
  .au-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-research { flex-direction: column; }
  .au-badge { margin-top: 0; }
  .au-cta .btn-primary, .au-cta .btn-ghost { flex: 1 1 auto; text-align: center; }
}
#agents .section-title { max-width: none; }
