/* about page styles — owned by the about page agent */

.about {
  /* same label | content split as the case studies, so the text column holds its place between pages */
  --about-cols: minmax(0, 4fr) minmax(0, 8fr);
  --about-gap: var(--gutter);
  --row-pad: clamp(18px, 2vw, 30px);
  --sec-gap: clamp(88px, 10vw, 176px);
}
.about-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ===== Hero ===== */
.about-hero {
  display: grid;
  /* the panel never outgrows the first screen on short, wide windows */
  grid-template-columns: minmax(0, 1fr) min(40vw, 560px, max(340px, calc((100svh - var(--hdr-h) - 96px) / 1.08)));
  column-gap: clamp(32px, 5vw, 96px);
  padding-top: calc(var(--hdr-h) + clamp(24px, 6vh, 88px));
}
.about-hero__text {
  min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding-bottom: 34px; /* caption height: title baseline sits on the panel's bottom edge */
}
.about-hero__from { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .7em; padding-top: 4px; }
.about-hero__to { color: var(--accent); }
.about-hero__title {
  font-size: min(var(--t-2xl), 13svh);
  text-wrap: balance;
}
.about-nw { white-space: nowrap; }
.about-hero__lead { display: block; }
.about-hero__dot { color: var(--accent); }

.about-hero__fig { margin: 0; align-self: start; min-width: 0; }
.about-panel {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08;
  border-radius: 28px; overflow: hidden; background: #111E21;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  clip-path: inset(14% 10% 0 10% round 28px);
  transition: transform .9s var(--ease-out), clip-path 1.6s var(--ease-out);
  transition-delay: 0s, calc(var(--d, 0ms) + 80ms);
  touch-action: pan-y;
}
.about-hero__fig.is-in .about-panel { clip-path: inset(0 0 0 0 round 28px); }
.about-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(237, 228, 208, .07);
}
.about-panel__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-hero__cap {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; line-height: 16px; color: var(--sand-dim);
}
.about-hero__capdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ===== Bio ===== */
.about-bio {
  display: grid; grid-template-columns: var(--about-cols); column-gap: var(--about-gap);
  margin-top: clamp(80px, 11vw, 184px);
}
.about-bio__body { grid-column: 2; display: grid; gap: .9em; font-size: var(--t-lg); }
.about-bio__p { max-width: 25em; line-height: 1.3; letter-spacing: -0.014em; text-wrap: pretty; }
.about-bio__link { color: var(--sand); }

/* ===== Section scaffold: sticky mono label | content ===== */
.about-sec {
  display: grid; grid-template-columns: var(--about-cols); column-gap: var(--about-gap);
  margin-top: var(--sec-gap);
}
.about-sec__label { min-width: 0; }
.about-sec__h {
  position: sticky; top: calc(var(--hdr-h) + 12px);
  display: flex; gap: 14px; align-items: baseline;
  padding-top: calc(var(--row-pad) + 8px);
  color: var(--sand);
}
.about-sec__n { color: var(--sand-dim); }
.about-sec__body { min-width: 0; }

/* ===== Rows ===== */
.about-row { position: relative; }
.about-row__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(8.5em, auto) 1.5em;
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: baseline;
  padding: var(--row-pad) 0;
  --shift: 24px;
}
/* Hover/focus slides the text, not the row box: the arrow and focus ring stay put. */
.about-row__name, .about-row__role, .about-row__when, .about-row__note {
  transition: transform .65s var(--ease-out), opacity .45s var(--ease-out);
}
.about-row__name {
  font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.03em; line-height: 1.04;
  font-variation-settings: "opsz" 48; text-wrap: pretty;
}
.about-row__role { font-size: var(--t-sm); line-height: 1.4; color: var(--sand-2); text-wrap: pretty; }
.about-row__where {
  display: block; margin-top: 6px;
  font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .02em; text-transform: lowercase; color: var(--sand-dim);
}
.about-row__when {
  font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .02em; text-transform: lowercase;
  color: var(--sand-dim); text-align: right; white-space: nowrap;
}
.about-row__arrow { justify-self: end; font-size: var(--t-md); line-height: 1; transition: transform .6s var(--ease-out), color .3s; }
.about-row__note {
  grid-column: 2 / -1; margin-top: 12px; max-width: 44em;
  font-size: var(--t-sm); line-height: 1.5; color: var(--sand-dim); text-wrap: pretty;
}
.about-row__dot {
  position: absolute; left: 0; top: calc(var(--row-pad) + var(--t-lg) * .5);
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .5s var(--ease-spring);
}
.about-rows__end { height: 0; }

.about-row--link .about-row__in:focus-visible { outline-offset: 6px; }
.about-row--link .about-row__in:focus-visible .about-row__arrow { color: var(--accent); }
@media (hover: hover) {
  .about-row--link:hover :is(.about-row__name, .about-row__role, .about-row__when, .about-row__note),
  .about-row--link .about-row__in:focus-visible :is(.about-row__name, .about-row__role, .about-row__when, .about-row__note) {
    transform: translateX(var(--shift));
  }
  .about-row--link:hover .about-row__dot,
  .about-row--link .about-row__in:focus-visible .about-row__dot { transform: scale(1); }
  .about-row--link:hover .about-row__arrow { color: var(--accent); }
  /* Quiet the other rows' headline text only (still readable); mono years and notes keep their base tone. */
  .about-rows:has(.about-row--link:hover) .about-row:not(:hover) :is(.about-row__name, .about-row__role) { opacity: .7; }
}

/* ===== Recognition ===== */
.about-rec {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(28px, 6vw, 112px); align-items: end;
  padding: var(--row-pad) 0 clamp(28px, 3.5vw, 52px);
}
.about-rec__total { display: flex; flex-direction: column; gap: 18px; }
.about-rec__num {
  display: block; min-width: 1.15em;
  font-size: var(--t-3xl); line-height: .78; letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.about-rec__cap { color: var(--sand); }
.about-award {
  position: relative;
  display: grid; grid-template-columns: 96px 2.4em minmax(0, 1fr) auto;
  align-items: center; column-gap: clamp(12px, 1.6vw, 24px);
  padding: 16px 0;
}
.about-award__pips { display: flex; gap: 6px; }
.about-pip {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  transform: scale(0); transition: transform .55s var(--ease-spring);
  transition-delay: calc(var(--k, 0) * 65ms + 380ms);
}
.about-pip--a { background: var(--accent); }
.about-pip--b { background: var(--sand); }
.about-pip--c { box-shadow: inset 0 0 0 1.5px var(--sand); }
.about-rec__list.is-in .about-pip { transform: scale(1); }
.about-award__n { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .04em; color: var(--sand-dim); }
.about-award__name { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.about-award__tier {
  font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: .02em; text-transform: lowercase;
  color: var(--sand-dim); text-align: right;
}

/* ===== Skills ===== */
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: calc(var(--row-pad) + 4px); }
.about-pill {
  border: 1px solid var(--sand-faint); border-radius: 999px;
  padding: .7em 1.2em .74em; font-size: var(--t-sm); font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  cursor: default;
}

/* ===== Off the clock: marquee ===== */
.about-off { margin-top: var(--sec-gap); }
.about-sec--off { margin-top: 0; }
.about-sec--off .about-sec__h { position: static; padding-top: 0; }
.about-mq {
  overflow: hidden; margin-top: clamp(14px, 2vw, 28px);
  padding: .04em 0 .12em; font-size: clamp(60px, 10vw, 176px);
  user-select: none; -webkit-user-select: none;
}
.about-mq__track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.about-mq__set { display: flex; align-items: center; flex: none; }
.about-mq__item {
  display: block; flex: none;
  font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap;
  font-variation-settings: "opsz" 96;
}
.about-mq__sep {
  display: inline-block; width: .15em; height: .15em; margin: 0 .44em; border-radius: 50%;
  background: var(--accent); vertical-align: .2em;
}
/* Reduced motion: the same words as one still, wrapping paragraph. */
.about-mq.is-static { font-size: clamp(32px, 6vw, 96px); padding: 0 var(--gutter); }
.about-mq.is-static .about-mq__track { display: block; width: auto; }
.about-mq.is-static .about-mq__set { display: block; line-height: 1.06; text-wrap: balance; }
.about-mq.is-static .about-mq__item { display: inline-block; max-width: 100%; white-space: normal; }
.about-mq.is-static .about-mq__tail { white-space: nowrap; }
.about-mq.is-static .about-mq__sep { margin: 0 .16em 0 .34em; }
.about-mq.is-static .about-mq__item:last-child .about-mq__sep { display: none; }
.about-mq.is-static .about-mq__set ~ .about-mq__set { display: none; }

/* ===== CTA ===== */
.about-cta {
  margin-top: var(--sec-gap);
  padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(72px, 10vw, 160px);
}
.about-cta[data-line]::before { left: var(--gutter); right: var(--gutter); }
.about-cta__label { margin-bottom: clamp(18px, 2.4vw, 32px); }
.about-cta__link {
  display: inline-flex; align-items: center; gap: .16em;
  font-size: var(--t-3xl); line-height: 1; letter-spacing: -0.05em;
}
.about-cta__mask { display: block; overflow: hidden; height: 1em; padding-right: .04em; }
.about-cta__rise { display: block; transform: translateY(105%); transition: transform 1.15s var(--ease-out) .1s; }
.about-cta.is-in .about-cta__rise { transform: none; }
.about-cta__roll { display: flex; flex-direction: column; transition: transform .8s var(--ease-io); }
.about-cta__txt { display: block; height: 1em; line-height: 1; white-space: nowrap; }
.about-cta__txt--b { color: var(--accent); }
.about-cta__arrow { display: block; overflow: hidden; height: 1em; line-height: 1; font-weight: 500; }
.about-cta__arrow-in {
  display: block; transform: translateX(-105%);
  transition: transform 1s var(--ease-out) .35s, color .4s;
}
.about-cta.is-in .about-cta__arrow-in { transform: none; }
.about-cta__link:hover .about-cta__roll,
.about-cta__link:focus-visible .about-cta__roll { transform: translateY(-50%); }
.about-cta.is-in .about-cta__link:hover .about-cta__arrow-in,
.about-cta.is-in .about-cta__link:focus-visible .about-cta__arrow-in {
  color: var(--accent); transform: translateX(.08em); transition: transform .6s var(--ease-out), color .4s;
}
/* 6px of padding top and bottom makes a 44px touch target; the margins and the
   content-box underline keep the text and its rule exactly where they were. */
.about-cta__mail {
  display: table; margin: calc(clamp(22px, 3vw, 44px) - 6px) 0 -6px; padding: 6px 0;
  background-origin: content-box;
  font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.015em;
}

/* ===== Tablet / mobile ===== */
/* Short laptop screens: pull the hero up so the whole headline lands on the first screen. */
@media (min-width: 861px) and (max-height: 820px) {
  .about-hero { padding-top: calc(var(--hdr-h) + 16px); }
  .about-hero__text { gap: 24px; }
}

/* Below ~1240px the 4/8 split would squeeze the four-column rows: give the content more room. */
@media (max-width: 1240px) {
  .about { --about-cols: minmax(0, 1fr) minmax(0, 2.6fr); }
}

@media (max-width: 1100px) {
  /* fixed years column so every row's columns line up */
  .about-row__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 7.5em 1.5em; }
  .about-award { grid-template-columns: 96px 2.4em minmax(0, 1fr); row-gap: 4px; }
  .about-award__tier { grid-column: 3; text-align: left; }
}

@media (max-width: 860px) {
  .about { --row-pad: 18px; }
  .about-row__in { --shift: 12px; }
  .about-hero { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-top: calc(var(--hdr-h) + 28px); }
  .about-hero__text { padding-bottom: 0; gap: 22px; justify-content: flex-start; }
  /* Stacked: the panel spans the full column. Landscape on tablets so the bio still
     starts on the first screen; square on phones. */
  .about-hero__fig { width: 100%; max-width: none; }
  .about-panel { aspect-ratio: 3 / 2; border-radius: 24px; clip-path: inset(10% 6% 0 6% round 24px); }
  .about-hero__fig.is-in .about-panel { clip-path: inset(0 0 0 0 round 24px); }

  .about-bio, .about-sec { grid-template-columns: minmax(0, 1fr); }
  .about-bio__body { grid-column: 1; }
  .about-sec__h { position: static; padding-top: 0; margin-bottom: 14px; }

  .about-row__in { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .about-row__name { grid-column: 1; grid-row: 1; }
  .about-row__arrow { grid-column: 2; grid-row: 1; }
  .about-row__role, .about-row__when, .about-row__note { grid-column: 1 / -1; }
  .about-row__when { text-align: left; margin-top: 4px; }
  .about-row__note { margin-top: 8px; }
  .about-row__dot { display: none; }

  .about-rec { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .about-award { grid-template-columns: 90px 2.2em minmax(0, 1fr); row-gap: 4px; }
  .about-award__tier { grid-column: 3; text-align: left; }
}

@media (max-width: 560px) {
  .about-panel { aspect-ratio: 1 / 1; }
}

@media (max-width: 380px) {
  .about-award { grid-template-columns: 84px minmax(0, 1fr); }
  /* visually hidden, still read aloud */
  .about-award__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .about-award__tier { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .about-panel { clip-path: none !important; transform: none !important; }
  .about-cta__rise, .about-cta__arrow-in, .about-pip { transform: none !important; }
}
