/* Red Sheep | inner pages (projects list and project page).
   Loaded after style.css. The homepage is a fixed field; these pages scroll. */

html, body { height: auto; min-height: 100%; }
body { overflow: visible; }
[hidden] { display: none !important; }

/* the top bar stays on top while scrolling: fade it into the page */
.bar {
  background: linear-gradient(to bottom, rgba(27, 28, 31, 0.96) 62%, rgba(27, 28, 31, 0));
}

.page {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(28px, 5vw, 64px)) clamp(16px, 3vw, 40px) 24px;
}

.eyebrow {
  margin: 0 0 12px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.page-title {
  margin: 0 0 14px; font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em;
}
.page-title em, .work-title em, .project-title em { font-style: italic; }
.lead { margin: 0 0 clamp(32px, 5vw, 56px); max-width: 52ch; color: #cfccc3; font-size: 17px; }
.notice { color: var(--ink-dim); font-size: 15px; }

/* ---------- projects list ---------- */
.works {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 32px);
}
.work { display: block; text-decoration: none; color: inherit; }
.work:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.work-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background-color: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  background-image: radial-gradient(rgba(236, 233, 225, 0.12) 1.1px, transparent 1.4px);
  background-size: 18px 18px;
}
.work-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.work:hover .work-media img, .work:focus-visible .work-media img { transform: scale(1.03); }

.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff; padding: 4px 8px; border-radius: 2px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.work-meta {
  margin: 16px 0 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}
.work-placeholder { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.work-title { margin: 0 0 8px; font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.work:hover .work-title { color: #fff; }
.work-text {
  margin: 0; color: #cfccc3; font-size: 14px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- project page ---------- */
.back {
  display: inline-block; margin-bottom: 28px; text-decoration: none;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
}
.back:hover { color: var(--ink); }
.back::before { content: "\2190\00a0\00a0"; letter-spacing: 0; }

.project-title {
  margin: 6px 0 10px; font-weight: 500; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em;
}
.project-original { margin: 0 0 14px; color: var(--ink-dim); font-style: italic; font-size: 17px; }
.project-lead {
  margin: 0 0 clamp(36px, 5vw, 60px); max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: var(--ink);
}

.project-grid {
  display: grid; grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.project-grid.no-poster { grid-template-columns: minmax(0, 1fr); }
.poster { margin: 0; }
.poster img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); border: 1px solid var(--line);
}

.fact-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 0 16px 0 0; }
.fact dt { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.fact dd { margin: 0; font-size: 17px; }

.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 6vw, 64px); }

.sec { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sec-num { font-size: 12px; letter-spacing: 0.14em; color: var(--red); font-weight: 500; }
.sec-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); }
.sec-head::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line); }

.story { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: #cfccc3; max-width: 62ch; }

.crew-list {
  display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0; font-size: 16px;
}
.crew-list dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); padding-top: 3px; }
.crew-list dd { margin: 0; }

/* laurels: the laurel image on top, the text under it (never over it) */
.laurels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 24px; }
.laurel { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 240px; margin: 0; text-align: center; }
.laurel img { display: block; width: 100%; max-height: 190px; height: auto; object-fit: contain; }
.laurel-text { display: grid; gap: 4px; width: 100%; }
.laurel.has-image .laurel-text { padding-top: 0; }
.laurel:not(.has-image) .laurel-text { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.laurel-kind { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 700; line-height: 1.4; }
.laurel-name { font-size: 15px; line-height: 1.25; color: var(--ink); }
.laurel-year { font-size: 12px; color: var(--ink-dim); }

.news-list { display: grid; gap: 0; }
.news-item { padding: 22px 0; border-top: 1px solid var(--line); max-width: 64ch; }
.news-date { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.news-title { margin: 0 0 8px; font-weight: 500; font-size: 20px; line-height: 1.3; }
.news-text { margin: 0 0 10px; color: #cfccc3; font-size: 15px; line-height: 1.6; }
.news-link { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.news-link:hover { border-bottom-color: var(--red); }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }

/* 16:9 image: always the main visual of a project, across the page */
.hero { margin: 0 0 clamp(36px, 5vw, 56px); }
.hero img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* keynotes and partners: under the poster in the left column (they scroll with it), or under the 16:9 image */
.project-info { display: grid; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); }
.project-side { display: grid; gap: 32px; align-content: start; }
.project-side .project-info { margin-bottom: 0; }
.project-side .fact-row { grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; }
.project-side .fact { padding: 12px 0; border-top: 1px solid var(--line); }
.project-side .fact:last-child { border-bottom: 1px solid var(--line); }

.side-label { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.partner { display: block; line-height: 0; }
.partner:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.partner img { display: block; height: 34px; width: auto; max-width: 150px; object-fit: contain; opacity: 0.8; transition: opacity 0.3s ease; }
.partner:hover img, .partner:focus-visible img { opacity: 1; }
.partner-name { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-dim); line-height: 1.4; }

/* cast: name, and the character under it */
.cast-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.cast-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.cast-name { display: block; font-size: 17px; }
.cast-char { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-dim); }

/* ---------- footer ---------- */
.site-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 96px); padding: 24px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}

@media (max-width: 820px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-side { max-width: 360px; }
}
@media (max-width: 640px) {
  .page { padding-bottom: calc(var(--foot-h) + 16px); }
  .site-foot { margin-bottom: var(--foot-h); }
  .bar .nav { background: rgba(27, 28, 31, 0.96); }
}

/* the vignette is fixed on the homepage; here it follows the page so it never shows as a band */
body { position: relative; }
body::before { position: absolute; }

/* ---------- about and contacts ---------- */
.about-intro { max-width: 980px; margin-bottom: clamp(56px, 8vw, 96px); }
.about-lead {
  margin: 0 0 28px; max-width: 30ch; font-weight: 300;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink);
}
.about-text { margin: 0 0 16px; max-width: 62ch; font-size: 17px; line-height: 1.7; color: #cfccc3; }

.services-grid {
  list-style: none; counter-reset: svc; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px;
}
.services-grid li {
  counter-increment: svc; padding: 22px 0 28px; border-top: 1px solid var(--line);
  font-size: 19px; font-weight: 300; line-height: 1.4;
}

.people { display: grid; gap: 0; }
.person {
  display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px);
  margin: 0; padding: 36px 0; border-top: 1px solid var(--line);
}
.portrait {
  aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: grid; place-items: center;
  background-color: var(--bg-2); border: 1px solid var(--line); border-radius: 3px;
  background-image: radial-gradient(rgba(236, 233, 225, 0.12) 1.1px, transparent 1.4px);
  background-size: 18px 18px;
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.monogram { font-size: clamp(48px, 6vw, 72px); font-weight: 300; letter-spacing: 0.04em; color: var(--ink-dim); }
.person-body .eyebrow { margin-bottom: 8px; }
.person-name { margin: 0 0 14px; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.person-body p:not(.eyebrow) { margin: 0 0 14px; color: #cfccc3; max-width: 60ch; line-height: 1.65; }

/* parent company: a framed block, closing the page */
.holding { border: 1px solid var(--line); border-radius: 3px; padding: clamp(24px, 4vw, 44px); margin-bottom: 24px; }
.holding-head { margin-bottom: 20px; }
.holding-logo { margin-bottom: 20px; }
.holding-logo img { display: block; max-width: 200px; max-height: 84px; object-fit: contain; }
.holding .person-body p:not(.eyebrow) { margin: 0 0 14px; color: #cfccc3; max-width: 66ch; line-height: 1.65; }

.contact-list dd { white-space: normal; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-bottom-color: var(--red); }
.pre { white-space: pre-line; }

/* ---------- gallery, news, groups, lightbox ---------- */
.gallery-item {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; border: 1px solid var(--line);
}
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--bg-2);
}
.news-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.news-card:hover .news-title { color: #fff; }
.news-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.news-date { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.news-title { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.3; }
.news-text { margin: 0; color: #cfccc3; font-size: 15px; line-height: 1.55; }
.news-link { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 700; }

.group { margin-bottom: clamp(56px, 8vw, 96px); }
.group-title {
  margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-weight: 300; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em;
}

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: transparent; color: var(--ink);
}
.lightbox::backdrop { background: rgba(14, 15, 17, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lb-img { display: block; max-width: 90vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 1px solid var(--line); background: rgba(27, 28, 31, 0.8); color: var(--ink);
  width: 44px; height: 44px; border-radius: 50%; font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--red); color: #fff; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-dim); }

/* ---------- typography with Lato: light for big titles, bold for labels ---------- */
.page-title, .project-title, .group-title { font-weight: 300; }
.work-title, .news-title, .person-name { font-weight: 700; }
.eyebrow, .sec-num, .laurel-kind, .badge, .back, .work-meta { font-weight: 700; }

@media (max-width: 640px) {
  .person { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .gallery-item { aspect-ratio: 4 / 3; }
}

/* ---------- version 13 ---------- */
/* the 16:9 image: a frame that holds an image a little taller than itself, so it can move with the scroll */
.hero { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 3px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.hero .slide { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity 1.1s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; transform: scale(1.03); transition: transform 3.5s linear; }
.hero .slide.on img { transform: scale(1); }
.hero .slide:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hero-dots .dot { background: rgba(14, 15, 17, 0.45); }
.hero-dots .dot.on { background: var(--red); }

/* on desktop the poster column stays in view while the text scrolls */
@media (min-width: 821px) {
  .project-side { position: sticky; top: calc(var(--bar-h) + 24px); }
}

/* gallery: stills move on by themselves */
.slider { position: relative; }
.slider-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-2); }
.slide { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.slide.on img { transform: scale(1); }
.slide:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.slider-arrow {
  position: absolute; top: calc(50% - 22px); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(27, 28, 31, 0.75); color: var(--ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer;
}
.slider-arrow:hover { border-color: var(--red); color: #fff; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--ink-dim); background: transparent; cursor: pointer; }
.dot.on { background: var(--red); border-color: var(--red); }

/* cast: a small line under the crew, not a big section */
.cast-label { margin: 28px 0 10px; }
.cast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cast-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 0; border: 0; }
.cast-name { display: inline; font-size: 15px; }
.cast-char { display: inline; margin: 0; font-size: 13px; color: var(--ink-dim); }
.cast-char::before { content: "as "; }

/* news without a photo: a dotted box, so the card still looks intentional */
.news-card.no-image { background-image: radial-gradient(rgba(236, 233, 225, 0.12) 1.1px, transparent 1.4px); background-size: 18px 18px; }
.news-card.no-image .news-body { padding-top: 26px; }

/* more projects: at the bottom of a project page */
.more { margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.more .eyebrow { margin-bottom: 20px; }
.more-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.more-card { display: block; text-decoration: none; color: inherit; }
.more-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.more-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-2); }
.more-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.more-card:hover .more-media img { transform: scale(1.03); }
.more-card .more-title { margin: 12px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.more-card:hover .more-title { color: #fff; }

/* ---------- version 15 ---------- */
/* gallery: the same size as the news cards */
.gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { aspect-ratio: 16 / 9; }

/* partners: all the same box, all white */
.partners { gap: 22px 28px; }
.partner { display: flex; align-items: center; justify-content: center; width: 170px; height: 76px; line-height: 0; }
.partner img { display: block; max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.partner:hover img, .partner:focus-visible img { opacity: 1; }

/* laurels: all the same height, all white like the partners */
.laurel img { display: block; width: auto; max-width: 100%; height: 170px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }

/* ---------- version 16 ---------- */
.project-grid { grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr); }
.project-col { min-width: 0; }
.fact-line { display: block; }

/* partners: between the first and the second size */
.partner { width: 150px; height: 56px; }
.partner img { max-height: 56px; }

/* news: one row that scrolls sideways, cards as tall as the tallest, "Read more" always at the bottom */
.news-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.news-track::-webkit-scrollbar { display: none; }
.news-track > * { flex: 0 0 min(300px, 82%); min-width: 0; scroll-snap-align: start; }
.news-card .news-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-card .news-link { margin-top: auto; align-self: flex-start; padding-top: 6px; }
.carousel-bar { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 14px; }
.carousel-bar[hidden] { display: none; }
.carousel-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); color: var(--ink); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.carousel-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- version 17 ---------- */
/* the footer sits at the bottom of the window, also on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > .page { flex: 1 0 auto; width: 100%; }
body > .site-foot { flex: 0 0 auto; }

/* project with a poster: the poster is larger; the left column holds only the back link and the poster */
.project-grid { grid-template-columns: minmax(340px, 0.7fr) minmax(0, 1fr); }
.project-side .back { margin: 0; }

/* partners: smaller again */
.partner { width: 120px; height: 44px; }
.partner img { max-height: 44px; }

/* about: what we believe, keywords, team with collapsible bios */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); }
.bio { margin-top: 10px; }
.bio summary { cursor: pointer; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 700; list-style: none; }
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: " +"; }
.bio[open] summary::after { content: " –"; }
.bio p { margin: 12px 0 0; }

/* ---------- version 18 ---------- */
/* desktop: a normal-size poster on the left, keynotes and partners under it, fixed while the page scrolls */
.project-grid { grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr); }
.project-side { display: grid; gap: 28px; align-content: start; }
.poster { width: 100%; }

/* mobile: one column in reading order: back link, title and lead, poster and keynotes, 16:9 image, sections */
@media (max-width: 820px) {
  .project-grid { display: flex; flex-direction: column; gap: 0; }
  .project-side, .project-col { display: contents; }
  .project-side > .back { order: 0; margin: 0 0 22px; }
  .project-col > .eyebrow { order: 1; }
  .project-col > .project-title, .project-col > .project-original, .project-col > .project-lead { order: 2; }
  .project-side > .poster { order: 3; width: min(230px, 64vw); margin: 0 0 22px; align-self: flex-start; }
  .project-side > .project-info { order: 4; margin: 0 0 36px; }
  .project-col > .hero { order: 5; }
  .project-col > .project-main { order: 6; }
  .project-col > .project-info { order: 4; }
  .project-grid .partner { width: 104px; height: 40px; }
  .project-grid .partner img { max-height: 40px; }
  .project-grid .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 4px; }
  .project-grid .fact { padding-right: 0; }
  .project-col > .project-title { font-size: clamp(38px, 11vw, 52px); }
  .page { padding-left: 16px; padding-right: 16px; }
  .news-track > * { flex-basis: 84%; }
  .project-main, .project-main .sec, .carousel, .news-track { min-width: 0; max-width: 100%; }
}

/* ---------- version 19 ---------- */
/* the poster keeps the proportion of the reference: about 73 wide to 100 high */
.poster img { width: 100%; height: auto; aspect-ratio: 73 / 100; object-fit: cover; }

@media (max-width: 820px) {
  .project-side > .poster { width: 100%; margin: 0 0 22px; }

  /* awards and gallery: two rows, one above the other, scrolling sideways like the news */
  .gallery, .laurels {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto);
    grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; padding-bottom: 2px;
  }
  .gallery::-webkit-scrollbar, .laurels::-webkit-scrollbar, .more-row::-webkit-scrollbar { display: none; }
  .gallery > *, .laurels > * { scroll-snap-align: start; min-width: 0; }

  /* more projects: one row, scrolling from the first card */
  .more-row {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .more-row > * { scroll-snap-align: start; min-width: 0; }

  .project-main, .project-main .sec, .gallery, .laurels, .more-row { max-width: 100%; }
}

/* ---------- version 21: About, rebuilt ---------- */
.about-statement { margin: 0 0 24px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }
.sec > .about-text { max-width: 62ch; color: #cfccc3; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; margin: 0 0 16px; }
.sec > .about-statement + .about-text { margin-top: 0; }

.steps { list-style: none; margin: 36px 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 36px; }
.steps li { border-top: 1px solid var(--line); padding: 26px 0 0; }
.steps .num { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--red); margin-bottom: 18px; }
.steps h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.15; }
.steps p { margin: 0; color: #cfccc3; line-height: 1.65; }

.service { display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.4fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 300; line-height: 1.12; }
.service p { margin: 0; color: #cfccc3; line-height: 1.65; }

.trentino { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.trentino::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); z-index: 1; }
.trentino .ridge svg { display: block; width: 100%; height: clamp(70px, 11vw, 130px); }
.trentino .ridge path { fill: rgba(236, 233, 225, 0.05); stroke: var(--ink-dim); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trentino-body { padding: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 60px) clamp(32px, 5vw, 56px); }
.trentino-body .about-text { color: #cfccc3; max-width: 60ch; line-height: 1.7; margin: 0 0 16px; }

.cta-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.cta-link:hover { color: var(--ink); }

.people { scroll-margin-top: calc(var(--bar-h, 64px) + 24px); }
#team { scroll-margin-top: calc(var(--bar-h, 64px) + 24px); }

.final-cta { margin: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); text-align: left; }
.final-cta h2 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 60px); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.final-cta-line { margin: 0 0 28px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--red); }
.cta-btn { display: inline-block; padding: 16px 28px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.cta-btn:hover { background: #b10f12; }
.cta-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
  .final-cta h2 { font-size: 34px; }
}

/* version 22: the page heading of About is for screen readers; the first section carries the title */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
