@font-face {
  font-family: "IBM Plex Serif";
  src: url("./IBM_Plex_Serif/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("./IBM_Plex_Sans/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: #111; color: #f4eee3; font-family: "IBM Plex Sans", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
.projects-header, .projects-main { width: min(100%, 105rem); margin-inline: auto; }
.projects-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.4rem, 4vw, 4rem) 0; }
.projects-back { padding-block: .6rem; color: #d8b37a; font-size: .72rem; letter-spacing: .075em; text-decoration: none; text-underline-offset: .4em; }
.projects-back:hover { color: #f4eee3; text-decoration: underline; }
.projects-back:focus-visible { outline: 1px solid #d8b37a; outline-offset: 6px; }
.projects-logo { display: block; width: 4rem; height: 2.3rem; object-fit: contain; }
.projects-main { padding: 1.7rem clamp(1.4rem, 4vw, 4rem) 2.2rem; }
.projects-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.projects-heading h1 { margin: 0; font: 400 clamp(3.1rem, 6.2vw, 5.75rem)/1.04 "IBM Plex Serif", Georgia, serif; letter-spacing: -.045em; }
.projects-count { flex: none; margin: 0; color: #c3b59d; font-size: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.projects-gallery { position: relative; display: flex; gap: .5rem; height: clamp(22.5rem, 64svh, 47.5rem); --active-weight: 5.5; }
.project-frame { position: relative; display: block; flex: 1 1 0; min-width: 0; height: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: #1b1a18; cursor: pointer; transition: flex-grow 850ms cubic-bezier(.22,.61,.36,1); }
.project-frame[aria-pressed="true"] { flex-grow: var(--active-weight); }
.project-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x, 50%) var(--focus-y, 50%); filter: brightness(.91) contrast(.98); transition: filter 600ms ease; }
.project-frame[aria-pressed="true"] img { filter: brightness(1.015) contrast(1.015); }
.project-frame:focus-visible { outline: 1px solid #d8b37a; outline-offset: -4px; }
.project-frame::after { content: ""; position: absolute; inset: -15%; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 35%, rgb(232 207 160 / 9%) 50%, transparent 65%); }
.project-frame.is-reflecting::after { animation: project-reflection 850ms ease-out; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes project-reflection {
  0% { opacity: 0; transform: translateX(-25%); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateX(25%); }
}
@media (max-width: 55.99rem) {
  .projects-header { padding-inline: 1.4rem; }
  .projects-main { padding: 1.8rem 0 1.8rem; }
  .projects-heading { padding-inline: 1.4rem; margin-bottom: 1.4rem; }
  .projects-heading h1 { font-size: clamp(3.1rem, 10.5vw, 4.6rem); }
  .projects-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; height: min(66svh, 34rem); min-height: 20rem; gap: .8rem; overflow-x: auto; overflow-y: hidden; padding-inline: 1.4rem; scroll-padding-inline: 1.4rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .projects-gallery::-webkit-scrollbar { display: none; }
  .project-frame { width: 100%; scroll-snap-align: start; transition: none; }
  .project-frame img { filter: none; }
  .project-frame[aria-pressed="true"] img { filter: none; }
  .project-frame::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.projects-back { font-size: 2rem; line-height: 1; padding: .3rem; text-decoration: none; }
.projects-back:hover { text-decoration: none; }
body[data-embedded="true"], body[data-embedded="true"] ~ * { background: transparent; }
body[data-embedded="true"] .projects-header { display: none; }
body[data-embedded="true"] .projects-main { padding: 0; }
body[data-embedded="true"] .projects-heading { margin-bottom: 1rem; justify-content: end; }
body[data-embedded="true"] .projects-heading h1 { display: none; }
body[data-embedded="true"] .projects-gallery { height: min(58svh, 38rem); }
@media(max-width:55.99rem) {
  body[data-embedded="true"] .projects-gallery { height: min(59svh, 34rem); }
}

/* Expanded desktop photographs show the entire person, including their feet. */
@media (min-width: 56rem) and (hover: hover) and (pointer: fine) {
  body[data-embedded="true"] { height: 100vh; }
  body[data-embedded="true"] .projects-main { height: 100%; display: flex; flex-direction: column; }
  body[data-embedded="true"] .projects-heading { flex: 0 0 auto; }
  body[data-embedded="true"] .projects-gallery { flex: 1 1 0; min-height: 0; height: auto; }
  .project-frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .project-frame[aria-pressed="true"] img { object-fit: contain; object-position: center; }
}
