/* Extra sections on a location or sector page that has them (the Transformation page): a definition, a point of
   view, one case in focus, the signs that call for the work, and Field Guide articles. Loaded only on those pages. */

/* the intro without its label keeps to the text column */
@media (min-width: 1025px) { .uae-intro > .uae-intro__p:first-child { grid-column: 2; } }

/* Definition: answer first, set like the intro but framed by a rule above */
.tf-def { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 80px);
  margin: 0 var(--gut, 60px); padding: clamp(40px, 7vh, 90px) 0 clamp(100px, 18vh, 220px); border-top: 1px solid rgba(255, 255, 255, .16); }
.tf-def__p { margin: 0; max-width: 26em; font-weight: 300; font-size: clamp(22px, 1.9vw, 38px); line-height: 1.34; letter-spacing: -.01em; color: #d6d6d0; }
.tf-def__p dfn { font-style: italic; color: var(--ink, #ededea); }

/* Point of view: set like the definition, the title as the lead line of the text column */
.tf-pov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 80px);
  margin: 0 var(--gut, 60px); padding-bottom: clamp(100px, 18vh, 220px); }
.tf-pov__t { margin: 0 0 clamp(18px, 2.6vh, 30px); max-width: 18em; font-weight: 300; font-size: clamp(28px, 2.6vw, 50px); line-height: 1.1; letter-spacing: -.015em; }
.tf-pov__p { margin: 0; max-width: 34em; font-size: clamp(18px, 1.3vw, 26px); line-height: 1.6; color: #c9c9c4; }

/* In focus: one large photograph beside the story */
.tf-feat { padding-bottom: clamp(100px, 18vh, 220px); }
.tf-feat__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 80px); align-items: end; padding: 0 var(--gut, 60px); }
.tf-feat__ph { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; max-height: 92vh; background: #0b0b0b; }
.tf-feat__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tf-feat__k { margin: 0 0 clamp(14px, 2vh, 24px); font-style: italic; font-size: clamp(14px, .95vw, 19px); color: #8d8d88; }
.tf-feat__t { margin: 0 0 clamp(22px, 3.5vh, 40px); font-weight: 300; font-size: clamp(40px, 4.4vw, 92px); line-height: .98; letter-spacing: -.025em; }
.tf-feat__p { margin: 0; max-width: 30em; font-size: clamp(16px, 1.05vw, 21px); line-height: 1.62; color: #c9c9c4; }
@media (hover: hover) { .tf-feat__in:hover .tf-feat__ph img { transform: scale(1.04); } }

/* In focus, continued: what changed, as photo tiles, then who was in the room */
.tf-scope { padding: clamp(90px, 14vh, 180px) var(--gut, 60px) 0; }
/* every photo frame takes its height from one column's width, so a wide tile lines up with the tile beside it */
.tf-scope__grid { --g: clamp(14px, 1.4vw, 26px); --cols: 3; container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(40px, 6vh, 72px) var(--g); }
.tf-scope__c { margin: 0; }
.tf-scope__ph { display: grid; gap: 2px; height: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols) * 1.25); overflow: hidden; background: #0b0b0b; }
.tf-scope__ph--2 { grid-template-columns: 1fr 1fr; }
.tf-scope__ph--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tf-scope__ph--3 img:first-child { grid-column: 1 / -1; }
.tf-scope__ph img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tf-scope__c figcaption { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding-top: clamp(16px, 2vh, 24px); }
.tf-scope__n { grid-row: span 2; padding-top: .45em; font-style: italic; font-size: clamp(13px, .9vw, 17px); color: #8d8d88; }
.tf-scope__t { margin: 0 0 8px; font-weight: 300; font-size: clamp(24px, 1.9vw, 38px); line-height: 1.08; letter-spacing: -.015em; }
.tf-scope__p { margin: 0; max-width: 26em; font-size: clamp(15px, 1vw, 19px); line-height: 1.55; color: #a3a39e; }
@media (hover: hover) { .tf-scope__c:hover img { transform: scale(1.04); } }
.tf-room { padding: clamp(90px, 14vh, 180px) var(--gut, 60px) 0; }
.tf-room__t { margin: 0; max-width: 22em; padding-top: clamp(18px, 2.4vh, 28px); border-top: 1px solid rgba(255, 255, 255, .16);
  font-weight: 300; font-size: clamp(26px, 2.6vw, 52px); line-height: 1.16; letter-spacing: -.015em; }
.tf-scope__c--wide { grid-column: span 2; }

.tf-credit { margin: clamp(28px, 4vh, 44px) var(--gut, 60px) 0; font-style: italic; font-size: clamp(13px, .9vw, 16px); color: #8d8d88; }

/* When: five short signs, side by side on laptops */
.tf-when { padding-bottom: clamp(100px, 18vh, 220px); }
.tf-when__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 30px); margin: 0 var(--gut, 60px); padding: 0; list-style: none; }
.tf-when__c { display: flex; flex-direction: column; padding-top: clamp(18px, 2.4vh, 28px); border-top: 1px solid rgba(255, 255, 255, .16); }
.tf-when__n { margin-bottom: clamp(18px, 3vh, 40px); font-style: italic; font-size: clamp(14px, .95vw, 19px); color: #8d8d88; }
.tf-when__t { margin: 0 0 14px; font-weight: 300; font-size: clamp(22px, 1.6vw, 32px); line-height: 1.12; letter-spacing: -.015em; }
.tf-when__p { margin: 0; font-size: clamp(15px, .95vw, 18px); line-height: 1.55; color: #a3a39e; }

/* Field Guide: the article tiles sit in the same grid as the projects */
.tf-guide { padding-bottom: clamp(100px, 16vh, 200px); }
.tf-shelf { margin: 0 var(--gut, 60px); }
.shelf.tf-shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .shelf.tf-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .shelf.tf-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 1024px) {
  .tf-def { grid-template-columns: 1fr; gap: 0; }
  .tf-pov { grid-template-columns: 1fr; gap: 0; }
  .tf-feat__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .tf-when__row { grid-template-columns: 1fr; gap: 0; }
  .tf-when__c { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: clamp(16px, 3vw, 60px); padding: clamp(22px, 3.5vh, 36px) 0; }
  .tf-when__c:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .tf-when__n { grid-row: span 2; margin: 0; padding-top: .35em; }
  .tf-scope__grid { --cols: 2; }
  /* tablets: the first tile and the wide one run full width in the wide photo's shape, then the rest in pairs */
  .tf-scope__c:first-child, .tf-scope__c--wide, .tf-scope__c:last-child:nth-child(odd) { grid-column: span 2; }
  .tf-scope__c:first-child .tf-scope__ph, .tf-scope__c--wide .tf-scope__ph { height: calc(100cqw / 1.62); }
  .tf-scope__c:last-child:nth-child(odd) .tf-scope__ph { height: calc(100cqw * .75); }
  .tf-when__t { font-size: clamp(24px, 3.6vw, 34px); }
  .tf-when__p { font-size: clamp(15px, 2.1vw, 18px); }
}
@media (max-width: 760px) {
  .tf-feat__in { grid-template-columns: 1fr; }
  .tf-feat__ph { aspect-ratio: 4 / 5; max-height: none; }
  .tf-scope__grid { --cols: 1; }
  .tf-scope__ph { height: 100cqw; }
  .tf-scope__c:first-child, .tf-scope__c--wide, .tf-scope__c:last-child:nth-child(odd) { grid-column: auto; }
  .tf-scope__c:first-child .tf-scope__ph, .tf-scope__c:last-child:nth-child(odd) .tf-scope__ph { height: 100cqw; }
  .tf-scope__c--wide .tf-scope__ph { height: calc(100cqw / 1.62); }
}
