/* The editorial base lives in portfolio.css. This layer adds exploration and scroll scenes. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.hero h1 {
  font-size: clamp(75px, calc(10.7vw * var(--headline-scale, 1)), 164px);
}
.hero-line {
  display: block;
}
.hero-photo {
  translate: 0 var(--hero-photo-y, 0px);
}
.hero h1 {
  translate: 0 var(--hero-type-y, 0px);
}
.hero-aside {
  right: 10%;
  font-size: clamp(23px, 2.45vw, 35px);
}
.hero-photo figcaption span:first-child {
  max-width: 66%;
}
.about {
  padding-bottom: 85px;
}

/* A living selection: native links for sites, full-screen viewing for photography. */
.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -15px 0 45px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}
.portfolio-filters button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  transition:
    background 0.25s,
    color 0.25s;
}
.portfolio-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.portfolio-filters button:hover:not([aria-pressed="true"]) {
  border-color: var(--line);
}
.portfolio-filters button > span {
  font:
    9px/1 "Courier New",
    monospace;
  margin-left: 8px;
  opacity: 0.65;
}
.shuffle-work {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  font-size: 13px;
  padding: 10px 0 10px 15px;
  min-height: 44px;
}
.shuffle-work > span {
  font-size: 24px;
  line-height: 1;
  transition: rotate 0.5s;
}
.shuffle-work:hover > span {
  rotate: 140deg;
}
.work-grid {
  grid-template-columns: 1.08fr 1fr;
  gap: 75px 6vw;
}
.work-grid > .work-item:nth-child(even) {
  margin-top: 120px;
}
.work-visual {
  display: block;
  width: 100%;
}
.photo-work {
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
}
.photo-work .work-image {
  display: block;
}
.photo-work .work-caption {
  display: flex;
}
.photo-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.work-caption > .photo-title {
  max-width: 65%;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  text-align: left;
}
.photography-preview {
  aspect-ratio: 1.14;
}
.photography-preview > img {
  object-fit: cover;
}
.work-grid[data-view="photo"] .work-item:nth-child(3n) .photography-preview {
  aspect-ratio: 0.96;
}
.work-item:focus-within .work-open,
.work-item:hover .work-open {
  background: var(--accent);
  color: #191914;
}
.photo-work:focus-visible {
  outline-offset: 8px;
}
.photography-work:hover .work-open,
.photography-work:focus-within .work-open {
  transform: scale(1.08);
}
.site-preview {
  aspect-ratio: 1.14;
  padding: 35px;
  display: grid;
  align-items: center;
  background: var(--site-tint, #dedbd2);
}
.browser-window {
  width: 100%;
  overflow: hidden;
  background: white;
  box-shadow: 0 12px 30px #25241f20;
  border: 1px solid #25241f12;
  transform: rotate(-3deg);
  transition: transform 0.7s var(--ease);
}
.work-item:nth-child(even) .browser-window {
  transform: rotate(3deg);
}
.site-visual:hover .browser-window,
.site-visual:focus-visible .browser-window {
  transform: rotate(0) translateY(-7px);
}
.browser-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #faf9f6;
  color: #62615b;
  font:
    9px/1.4 "Courier New",
    monospace;
  border-bottom: 1px solid #dedbd2;
}
.browser-dots {
  font-size: 7px;
  letter-spacing: 2px;
  color: #9b978c;
}
.browser-window img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center top;
}
.website-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 15px;
  max-width: 490px;
}
.app-links {
  display: flex;
  gap: 22px;
  margin-top: 15px;
  font-size: 12px;
}
.app-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  border-bottom: 1px solid var(--line);
}
.app-links a:hover {
  border-color: var(--ink);
}
.app-links span {
  color: #b3341e;
}
.work-postscript {
  max-width: 970px;
}
.work-postscript > span {
  display: inline;
}

/* An edge-to-edge photo gallery, with no navigation to raw image files. */
.photo-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: #171815;
  color: var(--paper);
  overflow: hidden;
}
.photo-dialog[open] {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 100px;
}
.photo-dialog::backdrop {
  background: #171815;
}
.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid #ffffff25;
  gap: 20px;
}
.gallery-topbar > .eyebrow {
  font-size: 10px;
  color: #c4c4ba;
}
.gallery-close {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  padding: 8px 0 8px 16px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
}
.gallery-close > span {
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.gallery-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px 100px;
}
.gallery-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.gallery-arrow {
  position: absolute;
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff50;
  background: #171815d9;
  color: var(--paper);
  border-radius: 50%;
  font-size: 24px;
  transition:
    background 0.2s,
    color 0.2s;
}
.gallery-arrow:hover {
  background: var(--paper);
  color: #171815;
}
.gallery-prev {
  left: 25px;
}
.gallery-next {
  right: 25px;
}
.gallery-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 4vw 20px;
  gap: 25px;
  border-top: 1px solid #ffffff25;
}
.gallery-bottom > div {
  display: flex;
  align-items: baseline;
  gap: 30px;
}
.gallery-index,
.gallery-hint {
  font:
    10px/1.5 "Courier New",
    monospace;
  color: #c4c4ba;
  white-space: nowrap;
}
.gallery-bottom h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.gallery-hint > span {
  margin-left: 20px;
  font-size: 17px;
}
.photo-dialog :focus-visible {
  outline-color: #d8f36a;
}

@media (min-width: 1600px) {
  .hero-aside {
    bottom: 0;
  }
}
@media (max-width: 1100px) {
  .hero h1 {
    font-size: calc(11.5vw * var(--headline-scale, 1));
  }
  .hero-aside {
    right: 5%;
    font-size: 28px;
  }
  .site-preview {
    padding: 24px;
  }
  .work-caption > .photo-title {
    max-width: none;
  }
  .photo-work .work-caption {
    display: block;
  }
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: calc(16.3vw * var(--headline-scale, 1));
  }
  .hero-aside {
    left: 0;
    right: auto;
    bottom: 18px;
    font-size: 25px;
  }
  .hero-photo figcaption span:first-child {
    max-width: none;
  }
  .hero-photo figcaption {
    font-size: 9px;
  }
  .about {
    padding-bottom: 40px;
  }
  .portfolio-toolbar {
    margin: 0 0 30px;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
  }
  .portfolio-filters {
    gap: 3px;
    width: 100%;
    justify-content: space-between;
  }
  .portfolio-filters button {
    padding: 8px 13px;
    font-size: 12px;
  }
  .portfolio-filters button > span {
    font-size: 8px;
    margin-left: 4px;
  }
  .shuffle-work {
    font-size: 12px;
    margin-left: auto;
    min-height: 40px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .work-grid > .work-item:nth-child(even) {
    margin-top: 0;
  }
  .work-caption > .photo-title {
    font-size: 21px;
    max-width: 66%;
  }
  .photo-work .work-caption {
    display: flex;
  }
  .photo-work .work-caption > span:last-child {
    max-width: 35%;
  }
  .site-preview {
    aspect-ratio: 1.18;
    padding: 25px;
  }
  .browser-topline {
    padding: 8px;
    font-size: 8px;
  }
  .browser-dots {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .website-description {
    font-size: 13px;
    margin-top: 12px;
  }
  .app-links {
    gap: 22px;
    font-size: 11px;
    margin-top: 10px;
  }
  .photography-preview {
    aspect-ratio: 1.18;
  }
  .photo-dialog[open] {
    grid-template-rows: 66px minmax(0, 1fr) 108px;
  }
  .gallery-topbar {
    padding: 0 5vw;
    gap: 15px;
  }
  .gallery-topbar > .eyebrow {
    font-size: 8px;
    max-width: 190px;
  }
  .gallery-close {
    font-size: 12px;
    gap: 17px;
  }
  .gallery-stage {
    padding: 15px 0 55px;
  }
  .gallery-arrow {
    top: auto;
    bottom: 0;
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
  .gallery-prev {
    left: calc(50% - 58px);
  }
  .gallery-next {
    right: calc(50% - 58px);
  }
  .gallery-bottom {
    margin-top: 10px;
    padding: 15px 5vw;
  }
  .gallery-bottom > div {
    display: block;
  }
  .gallery-index {
    display: block;
    font-size: 9px;
    margin-bottom: 9px;
  }
  .gallery-bottom h2 {
    font-size: 25px;
  }
  .gallery-hint {
    display: none;
  }
}
@media (max-width: 390px) {
  .portfolio-filters button {
    padding-left: 9px;
    padding-right: 9px;
  }
  .portfolio-filters button > span {
    display: none;
  }
  .work-caption > .photo-title {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero h1 {
    translate: none;
  }
}

.app-platforms {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}
.app-platforms > span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  font:
    10px/1.3 "Courier New",
    monospace;
  color: var(--muted);
}
html:not(.js-menu) .photography-work .work-open {
  display: none;
}
