/* About, stats, projects, experience, skills and the photography grid. */

/* --- About ---------------------------------------------------------------- */

.about {
  position: relative;
  padding: 120px var(--gutter) 84px;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.about__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 78% 18%, var(--accent-soft), rgba(0, 0, 0, 0) 70%);
}

.about__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: end;
}

.about__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* The frame is 9:16 and the subject sits low in it, so a centred crop puts
     him half off the bottom edge. */
  object-position: 50% 78%;
  background: var(--bg-raise);
  filter: saturate(0.9) contrast(1.05);
}

/* --- Stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(242, 240, 236, 0.02);
}

.stat__value {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--accent);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* --- Projects -------------------------------------------------------------- */

.projects { display: grid; gap: 2px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.project__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-raise);
  filter: saturate(0.9) contrast(1.05);
}

.project__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.5);
}
.project__kind { color: var(--accent); }

.project__title {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.project__body {
  margin-bottom: 18px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(242, 240, 236, 0.66);
  text-wrap: pretty;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 22px;
}

.metric__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.metric__label {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.5);
}

.tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tech__chip {
  padding: 7px 12px;
  border: 1px solid rgba(242, 240, 236, 0.18);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.66);
}

.repo-link {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Experience ------------------------------------------------------------ */

.role {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 44px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.role__period {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.role__location {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.42);
}

.role__title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.role__company {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(242, 240, 236, 0.6);
}

.role__bullets {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

.role__bullet {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-68);
  text-wrap: pretty;
}

.role__dash {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.role .tech { margin-top: 20px; gap: 8px; }

/* --- Education & skills ---------------------------------------------------- */

.edu__degree { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.edu__where { margin-top: 8px; font-size: 15px; color: rgba(242, 240, 236, 0.6); }
.edu__note {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-55);
  text-wrap: pretty;
}

.skills { display: grid; gap: 18px; }

.skill__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.62);
}
.skill__years { color: var(--ink-45); }

.skill__rail { height: 2px; background: var(--line); }
.skill__fill { height: 2px; background: var(--accent); }

/* --- Photography ----------------------------------------------------------- */

.gallery {
  columns: 3 300px;
  column-gap: 16px;
}

.shot {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  /* Keep a figure from splitting across two columns. */
  break-inside: avoid;
}

.shot__img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 3 / 4);
  object-fit: cover;
  background: var(--bg-raise);
  filter: saturate(0.85) contrast(1.05);
  transition: transform 700ms var(--ease), filter 400ms ease;
}
.shot:hover .shot__img,
.shot:focus-visible .shot__img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

.shot__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  /* The scrim is the caption's only background, so it needs runway above the
     text to fade in over — a bright sky or a lit stage will swallow 9px mono
     caps otherwise. */
  padding: 48px 16px 14px;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0) 0%,
    rgba(11, 11, 12, 0.5) 55%,
    rgba(11, 11, 12, 0.88) 100%
  );
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.shot__exif { color: rgba(242, 240, 236, 0.7); }
