:root {
  --paper-bg: #efefef;
  --panel-bg: #9f9a9c;
  --panel-text: #f7f4f2;
  --panel-line: rgba(255, 255, 255, 0.5);
  --body-text: #1f1c1d;
  --muted-text: rgba(255, 255, 255, 0.85);

  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;

  --shell-max: 1440px;
  --outer-pad: clamp(24px, 5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body-text);
  background: var(--paper-bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.06em;
}

.page-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px var(--outer-pad) 56px;
}

.page {
  background-image:
    linear-gradient(rgba(34, 24, 33, 0.55), rgba(34, 24, 33, 0.55)),
    url("../assets/bkg-paper-texture.png");
  background-repeat: repeat;
  background-size: auto, 420px auto;
}

/* TESTIMONIAL */

.testimonial {
  background: var(--paper-bg);
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 48px) clamp(20px, 3vw, 28px);
}

.testimonial__quote {
  margin: 0 auto 18px;
  max-width: 1100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.32;
}

.testimonial__name {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
}

.testimonial__role {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.3vw, 20px);
}

/* HERO VIDEO */

.streetcar-strip {
  width: 100%;
  max-width: var(--shell-max);
  margin: auto;
}

.streetcar-strip__video {
  width: 100%;
  height: clamp(180px, 22vw, 320px);
  object-fit: cover;
  background: #000;
}

/* SECTION SHARED */

.chapters,
.about,
.snapshots {
  color: var(--panel-text);
  padding-left: clamp(28px, 4vw, 72px);
  padding-right: clamp(28px, 4vw, 72px);
}

/* CHAPTERS */

.chapters {
  padding-top: clamp(50px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.chapters__header {
  text-align: center;
  padding-bottom: 30px;
}

.chapters__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.chapters__byline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
}

/* LOGOS */

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.logo-row__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-row__item img {
  max-height: 36px;
  opacity: 0.95;
}

/* CHAPTER GRID */

.chapter-list {
  display: grid;
  gap: clamp(80px, 7vw, 120px);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  column-gap: clamp(40px, 6vw, 80px);
  align-items: start;
  padding-top: 10px;
}

.chapter + .chapter {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: clamp(60px, 6vw, 90px);
}

.chapter__meta {
  max-width: 420px;
}

.chapter__number {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.chapter__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.05;
  max-width: 16ch;
}

.chapter__summary {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 44ch;
  color: var(--muted-text);
}

.chapter__facts {
  margin: 28px 0 0;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.95);
}

.chapter__facts li + li {
  margin-top: 10px;
}

/* MEDIA */

.chapter__media {
  width: 100%;
}

.chapter__asset {
  display: block;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1b1b1b;
  margin-left: auto;
  border-radius: 4px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.18),
    0 2px 6px rgba(0,0,0,.2);
}

/* CASE STUDY COPY */

.case-study-copy {
  color: var(--muted-text);
}

.case-study-copy__intro {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.45;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.94);
}

.more-text {
  display: none;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 34ch;
}

.more-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.more-text p + p {
  margin-top: 18px;
}

.case-study-copy__label {
  margin: 22px 0 8px;
  font-size: 14px;
  opacity: 0.95;
}

.case-study-copy__list {
  margin: 0;
  padding-left: 18px;
  padding-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.case-study-copy__list li + li {
  margin-top: 10px;
}

.more-link {
  display: inline;
  margin-left: 0.35em;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-thickness: 0.06em;
  cursor: pointer;
  vertical-align: baseline;
  white-space: nowrap;
}

/* ABOUT */

.about {
  padding-top: clamp(60px,6vw,90px);
  padding-bottom: clamp(60px,6vw,90px);
  border-top: 1px solid var(--panel-line);
}

.section-heading {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
}

.about__content {
  display: grid;
  grid-template-columns: 200px minmax(0,680px);
  column-gap: clamp(30px,4vw,50px);
  justify-content: center;
}

.about__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}

.about__text p {
  margin: 0 0 18px;
  line-height: 1.6;
}

/* SNAPSHOTS */

.snapshots {
  padding-top: clamp(50px, 6vw, 80px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--panel-line);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(26px,3vw,36px);
}

.snapshot img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 3px;
}

.snapshot__title {
  font-size: .95rem;
  font-weight: 700;
}

.snapshot__org {
  font-size: .92rem;
}

.snapshot__location {
  font-size: .92rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: clamp(32px, 4vw, 56px);
  padding: 28px 0 40px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--outer-pad);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.site-footer__nav {
  display: flex;
  gap: 18px;
}

.site-footer__nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .chapter {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "meta";
    row-gap: 24px;
  }

  .chapter__media {
    grid-area: media;
    width: 100%;
  }

  .chapter__meta {
    grid-area: meta;
    max-width: 100%;
  }

  .chapter__asset {
    margin-left: 0;
  }

  .about__content {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 32px;
    padding-left: 0;
  }

  .testimonial {
    padding-top: 40px;
    padding-right: 20px;
    padding-bottom: 44px;
    padding-left: 20px;
  }

  .streetcar-strip {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .streetcar-strip__video,
  .streetcar-strip img,
  .streetcar-strip video {
    display: block;
    width: 100%;
  }

  .chapters,
  .about,
  .snapshots {
    padding-left: 20px;
    padding-right: 20px;
  }

  .chapters {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .chapters__header {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .chapters__title {
    font-size: 88px;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .chapters__byline {
    font-size: 16px;
    line-height: 1.2;
  }

  .logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
    padding-top: 18px;
    padding-bottom: 18px;
    margin-bottom: 28px;
  }

  .snapshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chapter__meta,
  .chapter__title,
  .case-study-copy__intro,
  .more-text {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .chapter__number {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    opacity: 0.72;
  }

  .chapter__title {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    max-width: 100%;
  }

  .chapter__summary {
    font-size: 16px;
    line-height: 1.5;
  }

  .case-study-copy__intro {
    font-size: 15px;
    line-height: 1.45;
    max-width: 100%;
  }

  .more-text {
    max-width: 100%;
  }

  .more-text p {
    font-size: 15px;
    line-height: 1.48;
  }

  .streetcar-strip__video {
    width: 100%;
    height: clamp(220px, 28vw, 420px);
    object-fit: cover;
  }


  .testimonial {
    padding-top: 44px;
    padding-right: 16px;
    padding-bottom: 52px;
    padding-left: 16px;
  }

  .chapters,
  .about,
  .snapshots {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chapters {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .chapters__header {
    padding-top: 10px;
    padding-bottom: 44px;
  }

  .chapters__title {
    font-size: 72px;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .chapters__byline {
    font-size: 15px;
  }

  .logo-row {
    gap: 18px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .chapter__meta,
  .chapter__title,
  .case-study-copy__intro,
  .more-text {
    max-width: 100%;
  }
}