/* About page only */

.about-page { position: relative; }

/* Square grid behind the top of the page, fading to black as you scroll down */
.about-grid {
  --grid-size: 40px;
  --grid-fade: linear-gradient(to bottom, #000 0%, transparent 100%);
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  pointer-events: none;
  z-index: 0;
}
.about-grid__lines,
.about-grid__spot {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
}
.about-grid__lines {
  --grid-line: rgba(255, 255, 255, 0.1);
  opacity: 0.4;
  -webkit-mask-image: var(--grid-fade);
  mask-image: var(--grid-fade);
}
/* Brighter copy of the grid, visible only in a soft circle around the cursor */
.about-grid__spot {
  --grid-line: rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%), var(--grid-fade);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%), var(--grid-fade);
  mask-composite: intersect;
}
.about-grid.is-lit .about-grid__spot { opacity: 0.4; }

.about-page .cs-body { position: relative; z-index: 1; }
/* Menu and footer bars sit above the grid */
.about-page .bar { position: relative; z-index: 2; }

/* Hero */
.about-hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 80px 0 40px;
}
.about-portrait {
  flex-shrink: 0;
  width: 286px;
  height: 400px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  filter: grayscale(0.25);
  transition: filter 0.4s var(--enter-ease), translate 0.4s var(--enter-ease), box-shadow 0.4s var(--enter-ease);
}
.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-portrait:hover {
  filter: grayscale(0);
  translate: 0 -4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.about-hero__text { display: flex; flex-direction: column; gap: 24px; }
/* Medium Hero Text */
.about-hero__hello {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cs-text-strong);
  font-feature-settings: "salt" 1;
}
/* Previous role sits at Body size, below the current role */
.about-hero__previously { margin-top: -12px; }
.about-link { color: var(--cs-text-strong); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.about-link:hover, .about-link:focus-visible { color: var(--text-blue); }

/* Experience list */
.about-list { width: 100%; margin: 0; padding: 0; list-style: none; }
.about-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: 1px solid var(--border); }
.about-list .body-text { text-align: right; }
.about-subheading { margin-top: 24px; }

.about-closing { width: 100%; padding: 40px 0 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .about-portrait:hover { translate: none; }
  .about-grid__spot { display: none; }
}
@media (hover: none) {
  .about-grid__spot { display: none; }
}
@media (max-width: 900px) {
  .about-hero { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 48px; }
  .about-portrait { width: min(286px, 100%); height: auto; aspect-ratio: 286 / 400; }
  .about-list li { flex-direction: column; gap: 4px; }
  .about-list .body-text { text-align: left; }
}
@media (max-width: 600px) {
  .about-hero__hello { font-size: 26px; }
}
