@font-face {
  font-family: "Caslon";
  src: url("fonts/CaslonGraD.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sackers Gothic";
  src: url("fonts/SackersGothicStd-Heavy.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
}

.slideshow__tagline,
.project-intro__title,
.project-next__title,
.about-page__title,
.contact-page__title {
  font-family: "Caslon", "Adobe Caslon Pro", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: none;
}

.about-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 160px 28px 120px;
}

.about-page__title {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 48px;
}

.about-page__content {
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  max-width: 680px;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .about-page {
    padding: 110px 18px 80px;
  }

  .about-page__title {
    font-size: 42px;
    margin-bottom: 32px;
  }
}

.contact-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 180px 28px 120px;
  text-align: center;
}

.contact-page__title {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact-page__intro {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin-bottom: 64px;
  opacity: 0.7;
}

.contact-page__email-link {
  display: inline-block;
  font-family: "Caslon", "Adobe Caslon Pro", Georgia, serif;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.contact-page__email-link:hover {
  opacity: 0.7;
}

.contact-page__dm {
  display: inline-block;
  margin-top: 48px;
  padding: 14px 28px;
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  background: transparent;
  border: 1px solid #111;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-page__dm:hover {
  background: #111;
  color: #fff;
}

@media (max-width: 640px) {
  .contact-page {
    padding: 110px 18px 80px;
  }

  .contact-page__title {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .contact-page__intro {
    margin-bottom: 44px;
  }

  .contact-page__email-link {
    font-size: 22px;
    word-break: break-all;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-nav__brand {
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__primary {
  display: flex;
  gap: 24px;
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav__primary a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.site-nav__primary a:hover,
.site-nav__primary a.is-active {
  opacity: 1;
}

.site-nav__right {
  display: flex;
  gap: 18px;
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.site-nav__right a:hover {
  opacity: 1;
}

.filter-bar {
  padding: 14px 28px;
  min-height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.filter-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.filter-bar__list a {
  opacity: 0.55;
  transition: opacity 0.2s ease;
  padding-bottom: 2px;
}

.filter-bar__list a:hover {
  opacity: 1;
}

.filter-bar__list a.is-active {
  opacity: 1;
  border-bottom: 1px solid #111;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 86vh;
  min-height: 520px;
  overflow: hidden;
  background: #111;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-name: slideshow-fade;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 1;
}

.slideshow__tagline {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  max-width: 720px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  z-index: 2;
}

.portfolio {
  padding: 40px 28px 80px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.tile {
  display: block;
  position: relative;
}

.tile__media {
  display: block;
  width: 100%;
  background: #ececec;
  overflow: hidden;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover .tile__media img {
  transform: scale(1.02);
}

.tile--portrait .tile__media {
  aspect-ratio: 4 / 5;
}

.tile--square .tile__media {
  aspect-ratio: 1 / 1;
}

.tile--landscape .tile__media {
  aspect-ratio: 4 / 3;
}

.tile--tall .tile__media {
  aspect-ratio: 3 / 4;
}

.tile__caption {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tile__title {
  font-size: 18px;
  line-height: 1.2;
}

.tile__meta {
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 10px;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #e4e4e4;
  color: rgba(0, 0, 0, 0.4);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.placeholder-img--alt {
  background: #d8d8d8;
}

.placeholder-img--dark {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.45);
}

.placeholder-img--warm {
  background: #e8dfd2;
}

.placeholder-img--cool {
  background: #dbe2e3;
}

.site-footer {
  padding: 40px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.project-page {
  padding-top: 60px;
}

.project-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 28px 60px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.project-intro__eyebrow {
  display: block;
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.6;
}

.project-intro__title {
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 32px;
  line-height: 1.05;
}

.project-gallery {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-gallery__item {
  width: 100%;
  background: #ececec;
  overflow: hidden;
}

.project-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery__item--wide img,
.project-gallery__item--tall img,
.project-gallery__item--square img {
  height: 100%;
  object-fit: cover;
}

.project-gallery__item--wide {
  aspect-ratio: 16 / 9;
}

.project-gallery__item--tall {
  aspect-ratio: 3 / 4;
  max-width: 720px;
  margin: 0 auto;
}

.project-gallery__item--square {
  aspect-ratio: 1 / 1;
  max-width: 920px;
  margin: 0 auto;
}

.project-gallery__item--portrait {
  max-width: 720px;
  margin: 0 auto;
}

.project-gallery__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.project-quote {
  max-width: 920px;
  margin: 32px auto;
  padding: 64px 28px;
  text-align: center;
  font-size: 26px;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
}

.project-quote__attribution {
  display: block;
  margin-top: 24px;
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.project-sections {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
}

.project-sections__label {
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-top: 6px;
}

.project-sections__body {
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.project-sections__body p + p {
  margin-top: 14px;
}

.project-sections__body ul {
  display: grid;
  gap: 6px;
}

.project-sections__body li {
  font-size: 14px;
}

.project-next {
  display: block;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 60px 28px;
  text-align: center;
}

.project-next__eyebrow {
  font-family: "Sackers Gothic", "Trade Gothic", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: 16px;
}

.project-next__title {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 960px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-sections {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-sections__label {
    padding-top: 0;
    margin-top: 24px;
  }

  .project-sections__label:first-child {
    margin-top: 0;
  }

  .project-gallery__pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-intro__title {
    font-size: 34px;
  }

  .slideshow__tagline {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav__primary {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .filter-bar {
    top: 92px;
    padding: 10px 18px;
  }

  .filter-bar__list {
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar__list a {
    white-space: nowrap;
  }

  .slideshow {
    height: 70vh;
    min-height: 420px;
  }

  .slideshow__tagline {
    left: 18px;
    right: 18px;
    bottom: 22px;
    font-size: 22px;
  }

  .portfolio {
    padding: 28px 18px 60px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-intro,
  .project-quote,
  .project-sections {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-gallery {
    padding: 0 18px;
    gap: 20px;
  }
}
