/* ───── About ───── */
.about-page {
  overflow-y: auto;
}

/* A narrower measure than the galleries — this page is mostly prose — but the
   same side margins and the same clearance over the footer bar. */
.ab-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--page-pad-top) var(--page-pad-x) var(--page-pad-bottom);
  box-sizing: border-box;
}

/* ── Identity ── */
.ab-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  /* Stretch, not start: the portrait matches the height of the text column
     instead of the two ending at different points. */
  align-items: stretch;
  margin-bottom: 3rem;
}

.ab-portrait {
  border: 1px solid rgba(var(--fg-rgb), 0.3);
  overflow: hidden;
  background: var(--bg);
  margin-top: 0.35rem;
  min-height: 260px;
}

.ab-portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Follows the theme: phosphor on black, sepia on paper. It used to hardcode
     the green tint, which stayed green in light mode. */
  filter: var(--photo-rest);
}

.ab-name {
  margin-top: 0;
  font-size: clamp(1.32rem, 3vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--fg);
  text-shadow: 0 0 14px rgba(var(--fg-rgb), 0.45);
  margin: 0 0 0.3rem;
}

.ab-role {
  font-size: 0.97rem;
  letter-spacing: 0.16em;
  color: rgba(var(--fg-rgb), 0.95);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* The breadth sits under the title rather than inside it, so the headline
   stays one parseable role while the range is still stated. */
.ab-role-sub {
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  color: rgba(var(--fg-rgb), 0.55);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
}

.ab-bio {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(var(--fg-rgb), 0.88);
  margin: 0 0 0.8rem;
  max-width: 72ch;
}

.ab-bio a {
  color: var(--fg);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.45);
}

.ab-bio a:is(:hover, .is-hover) {
  text-shadow: 0 0 10px rgba(var(--fg-rgb), 0.7);
}

/* ── Sections ── */
.ab-section {
  margin-bottom: 2.75rem;
}

.ab-heading {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: rgba(var(--fg-rgb), 0.45);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.18);
  font-weight: normal;
}

/* ── Awards ── */
.ab-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ab-award {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ab-award-badge {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  color: var(--fg);
  filter: drop-shadow(0 0 6px rgba(var(--fg-rgb), 0.45));
}

.ab-award-rank {
  font-family: inherit;
  font-size: 19px;
  font-weight: bold;
  fill: var(--fg);
}

.ab-award-event {
  font-family: inherit;
  font-size: 8px;
  fill: rgba(var(--fg-rgb), 0.8);
  letter-spacing: 0.06em;
}

.ab-award-label {
  font-size: 0.79rem;
  color: rgba(var(--fg-rgb), 0.9);
  line-height: 1.4;
}

.ab-award-work {
  font-size: 0.72rem;
  color: rgba(var(--fg-rgb), 0.45);
  margin-top: 0.1rem;
}

/* ── Disciplines: one row each, no menus to click through ── */
.ab-disciplines {
  display: flex;
  flex-direction: column;
}

.ab-discipline {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.09);
}

.ab-discipline-name {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.ab-discipline-line {
  font-size: 0.81rem;
  line-height: 1.7;
  color: rgba(var(--fg-rgb), 0.62);
}

/* ── Timeline ── */
.ab-timeline {
  display: flex;
  flex-direction: column;
}

.ab-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.09);
  align-items: baseline;
}

.ab-entry-period {
  font-size: 0.75rem;
  color: rgba(var(--fg-rgb), 0.45);
  letter-spacing: 0.06em;
}

.ab-entry-title {
  font-size: 0.87rem;
  color: var(--fg);
}

.ab-entry-org {
  font-size: 0.79rem;
  color: rgba(var(--fg-rgb), 0.55);
}

/* ── Elsewhere ── */
.ab-elsewhere {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ab-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(var(--fg-rgb), 0.25);
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ab-card:is(:hover, .is-hover) {
  border-color: var(--fg);
  background: rgba(var(--fg-rgb), 0.06);
  box-shadow: 0 0 14px rgba(var(--fg-rgb), 0.2);
}

.ab-card-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--fg);
}

.ab-card-desc {
  font-size: 0.72rem;
  color: rgba(var(--fg-rgb), 0.5);
}

/* ── Contact ── */
.ab-contact {
  display: flex;
  flex-direction: column;
}

.ab-contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.09);
  text-decoration: none;
  transition: background 0.18s ease;
}

.ab-contact-row:is(:hover, .is-hover) {
  background: rgba(var(--fg-rgb), 0.06);
}

.ab-contact-key {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgba(var(--fg-rgb), 0.45);
}

.ab-contact-value {
  font-size: 0.85rem;
  color: var(--fg);
}

@media (max-width: 760px) {
  .ab-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ab-portrait {
    max-width: 220px;
  }

  .ab-discipline,
  .ab-entry,
  .ab-contact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

/* ───── CV ───── */
/* The résumé deck was the last row of the contact list, where nobody looking
   to hire would find it. It gets its own block. */
.ab-cv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--fg);
  background: rgba(var(--fg-rgb), 0.09);
  box-shadow: 0 0 16px rgba(var(--fg-rgb), 0.18);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ab-cv:is(:hover, .is-hover) {
  background: var(--fg);
  box-shadow: 0 0 26px rgba(var(--fg-rgb), 0.5);
}

.ab-cv-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ab-cv-title {
  font-size: 1.06rem;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-shadow: 0 0 10px rgba(var(--fg-rgb), 0.5);
}

.ab-cv-sub {
  font-size: 0.74rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.ab-cv-arrow {
  font-size: 1.38rem;
  color: var(--fg);
  transition: transform 0.2s ease;
}

.ab-cv:is(:hover, .is-hover) .ab-cv-arrow {
  transform: translateX(5px);
}

.ab-cv:is(:hover, .is-hover) .ab-cv-title,
.ab-cv:is(:hover, .is-hover) .ab-cv-sub,
.ab-cv:is(:hover, .is-hover) .ab-cv-arrow {
  color: var(--bg);
  text-shadow: none;
}

/* ───── Cycling terms ───── */
/* One term at a time comes forward and hands off to the next. The transition
   is long and eased so the change reads as a slow crossfade rather than a
   blink; both directions use it, so the outgoing term dims at the same rate
   the incoming one brightens. */
.ab-term {
  /* A term must not split across lines, or the lit one reads as two. */
  display: inline-block;
  white-space: nowrap;
  color: rgba(var(--fg-rgb), 0.38);
  transition: color 1.1s ease, text-shadow 1.1s ease;
}

.ab-term.is-lit {
  color: var(--fg);
  text-shadow: 0 0 10px rgba(var(--fg-rgb), 0.45);
}

.ab-role-sub i {
  font-style: normal;
  color: rgba(var(--fg-rgb), 0.25);
  margin: 0 0.4em;
}

/* A colour crossfade carries no vestibular risk, so reduced-motion shortens
   it rather than removing it — cutting it entirely made the handover snap. */
@media (prefers-reduced-motion: reduce) {
  .ab-term {
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
}

/* ───── Phone ───── */
@media (max-width: 620px) {

  /* Portrait crops to a wider frame, roughly an eighth off the top and the
     bottom, so it does not eat the screen when everything is stacked. */
  .ab-portrait {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .ab-portrait video {
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
  }

  /* A step up from the desktop sizes for a shorter viewing distance — the
     same step every other page takes, not a different type scale. */
  .ab-name { font-size: 1.7rem; }
  .ab-role { font-size: 0.94rem; }
  .ab-role-sub { font-size: 0.79rem; }
  .ab-bio { font-size: 0.97rem; line-height: 1.75; }
  .ab-heading { font-size: 0.79rem; }
  .ab-discipline-name { font-size: 0.92rem; }
  .ab-discipline-line { font-size: 0.86rem; }
  .ab-entry-period { font-size: 0.79rem; }
  .ab-entry-title { font-size: 0.92rem; }
  .ab-entry-org { font-size: 0.85rem; }
  .ab-card-label { font-size: 0.92rem; }
  .ab-card-desc { font-size: 0.81rem; }
  .ab-contact-key { font-size: 0.77rem; }
  .ab-contact-value { font-size: 0.9rem; }
  .ab-award-label { font-size: 0.85rem; }
  .ab-award-work { font-size: 0.77rem; }
  .ab-cv-title { font-size: 1.1rem; }
  .ab-cv-sub { font-size: 0.81rem; }
}
