/* ============================================================
   PHOTOGRAPHY — real images, and the frames they sit in
   ============================================================ */

.floor-photo, .room-photo, .maker-photo, .tex-photo,
.look-photo, .letter-photo, .story-photo, .source-photo, .moment-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* the shoot will not be colour-matched to the brand; this pulls any
     photograph a little toward the bone-and-walnut palette */
  filter: saturate(.88) contrast(1.02);
  transition: transform .9s var(--ease-out), filter .6s var(--ease);
}

/* the placeholder notice, on every photographic section */
.stand-in{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  max-width: 68ch;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--on-light-mute);
}
.stand-in span{
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(169, 111, 69, .12);
  border: 1px solid rgba(169, 111, 69, .26);
  color: var(--espresso);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* — 1 · the floor, right now — */

.floorband{ padding: clamp(46px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.floor-intro{
  padding: 0 var(--gutter);
  margin-bottom: clamp(26px, 3vw, 40px);
}
.floor-intro .sec-label{ display: block; margin-bottom: 16px; color: var(--on-light-mute); }
.floor-intro h2{ margin-bottom: 16px; }
.floor-intro .sec-note{ max-width: 52ch; }

.floor-rail{
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  padding: 4px var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.floor-rail::-webkit-scrollbar{ display: none; }
.floor-shot{
  flex: 0 0 min(76vw, 620px);
  margin: 0;
  scroll-snap-align: start;
}
.floor-img{
  aspect-ratio: 9 / 5;
  border-radius: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  background: var(--sand);
}
.floor-shot:hover .floor-photo{ transform: scale(1.03); }
.floor-shot figcaption{
  margin-top: 12px;
  font-size: .82rem;
  color: var(--on-light-mute);
}
.floor-foot{ padding: 0 var(--gutter); }

/* — 2 · in real rooms — */

.room-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.room-card{ margin: 0; }
.room-img{
  aspect-ratio: 4 / 3;
  border-radius: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  background: var(--sand);
}
.room-card:hover .room-photo{ transform: scale(1.04); }
.room-card figcaption{
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.room-where{ font-family: var(--display); font-size: 1.16rem; line-height: 1.2; }
.room-what{ font-size: .82rem; color: var(--on-light-mute); }

/* — 3 · the people — */

.makers{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.maker{ margin: 0; }
.maker-img{
  aspect-ratio: 4 / 5;
  border-radius: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  background: var(--sand);
}
.maker:hover .maker-photo{ transform: scale(1.05); filter: saturate(1) contrast(1.04); }
.maker figcaption{ display: grid; gap: 1px; margin-top: 12px; }
.maker-name{ font-size: .88rem; font-weight: 500; }
.maker-role{ font-size: .78rem; color: var(--on-light-mute); }
.maker-years{
  font-size: .72rem;
  color: var(--clay);
  font-family: var(--ui-latin);
  font-variant-numeric: tabular-nums;
}

/* — 4 · material, photographed — */

.texes{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.tex{ margin: 0; }
.tex-img{
  aspect-ratio: 1;
  border-radius: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  background: var(--sand);
}
.tex:hover .tex-photo{ transform: scale(1.12); }
.tex figcaption{ display: grid; gap: 3px; margin-top: 14px; }
.tex-name{ font-family: var(--display); font-size: 1.18rem; }
.tex-note{ font-size: .8rem; line-height: 1.5; color: var(--on-light-mute); }

/* — 5 · the look book — */

.lookbook{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
}
.look-main{
  grid-column: 1 / 7;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: var(--sand);
}
.look-words{ grid-column: 8 / 13; }
.look-words .sec-label{ display: block; margin-bottom: 18px; color: var(--on-light-mute); }
.look-quote{
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.look-note{
  max-width: 42ch;
  margin: 0 0 26px;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--on-light-mute);
}
.look-detail{
  grid-column: 7 / 11;
  margin: -18% 0 0;
  z-index: 2;
}
.look-detail img{
  aspect-ratio: 1;
  border-radius: clamp(14px, 1.6vw, 20px);
  box-shadow: 0 26px 60px rgba(22, 21, 26, .2);
}
.look-detail figcaption{
  margin-top: 12px;
  font-size: .78rem;
  color: var(--on-light-mute);
}
.lookbook .stand-in{ grid-column: 1 / -1; }

@media (max-width: 1000px){
  .room-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .makers{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lookbook{ grid-template-columns: 1fr; }
  .look-main, .look-words{ grid-column: 1; }
  .look-detail{ grid-column: 1; margin: 0; max-width: 260px; }
}
@media (max-width: 620px){
  .room-grid{ grid-template-columns: 1fr; }
  .makers{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .texes{ grid-template-columns: 1fr; }
  .floor-shot{ flex-basis: 84vw; }
}

/* ============================================================
   ABOUT — letter, story, sourcing, press
   ============================================================ */

.letter-band{
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 4vw, 66px);
}
.letter-face{ margin: 0; }
.letter-face img{
  aspect-ratio: 4 / 5;
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: var(--sand);
}
.letter-face figcaption{
  margin-top: 12px;
  font-size: .8rem;
  color: var(--on-light-mute);
}
.letter .sec-label{ display: block; margin-bottom: 18px; color: var(--on-light-mute); }
.letter h2{ margin-bottom: 22px; }
.letter-body p{
  max-width: 62ch;
  margin: 0 0 16px;
  font-size: var(--fs-lead);
  line-height: 1.72;
  color: var(--on-light-mute);
}
.letter-sign{ margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.sign{ width: 150px; height: 46px; color: var(--clay); }
.letter-name{ margin: 8px 0 0; font-size: .92rem; font-weight: 500; }
.letter-role{ margin: 2px 0 0; font-size: .82rem; color: var(--on-light-mute); }

/* — the photo essay — */

.story{ display: grid; gap: clamp(34px, 5vw, 76px); }
.story-beat{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.4vw, 54px);
}
.story-flip .story-img{ order: 2; }
.story-img{ margin: 0; }
.story-img img{
  aspect-ratio: 4 / 3;
  border-radius: clamp(16px, 1.8vw, 24px);
  overflow: hidden;
  background: var(--sand);
}
.story-img figcaption{
  margin-top: 12px;
  font-size: .78rem;
  color: var(--on-light-mute);
}
.story-year{ display: block; margin-bottom: 12px; color: var(--clay); }
.story-words h3{
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.story-words p{
  max-width: 50ch;
  margin: 0 0 13px;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--on-light-mute);
}

/* a photographed milestone */
.moment-shot{ grid-template-columns: 8rem minmax(0, 1fr) 130px; }
.moment-img{ margin: 0; }
.moment-img img{
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
}

/* — sourcing — */

.sources{ margin: 0; padding: 0; list-style: none; }
.source{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.source-img{
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
}
.source-body{ display: grid; gap: 2px; }
.source-name{ font-family: var(--display); font-size: 1.2rem; line-height: 1.16; }
.source-from{ font-size: .82rem; color: var(--on-light-mute); }
.source-who{ font-size: .84rem; text-align: end; color: var(--on-light-mute); }

/* — press — */

.presses{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.press{
  margin: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: clamp(16px, 1.8vw, 22px);
  background: var(--bone-hi);
  border: 1px solid var(--line-light);
}
.press blockquote{
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.34;
}
.press figcaption{
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: .84rem;
  font-weight: 500;
}
.press figcaption span{ font-weight: 400; font-size: .78rem; color: var(--on-light-mute); }

@media (max-width: 1000px){
  .letter-band{ grid-template-columns: 1fr; }
  .letter-face img{ max-width: 340px; }
  .story-beat{ grid-template-columns: 1fr; }
  .story-flip .story-img{ order: 0; }
  .presses{ grid-template-columns: 1fr; }
  .moment-shot{ grid-template-columns: 7rem minmax(0, 1fr); }
  .moment-img{ grid-column: 2; max-width: 200px; }
}
@media (max-width: 620px){
  .source{ grid-template-columns: 68px minmax(0, 1fr); }
  .source-who{ grid-column: 2; text-align: start; }
  .moment-shot{ grid-template-columns: 1fr; }
  .moment-img{ grid-column: 1; }
}

/* — the rail has to look, and be, draggable —
   2600px of photographs in a 500px window is only useful if there is a
   way to move it. A vertical mouse wheel will not, so: drag, arrows,
   and the wheel remapped while the pointer is over it. */

.rail-wrap{ position: relative; }

.floor-rail{ cursor: grab; }
.floor-rail.is-dragging{ cursor: grabbing; scroll-snap-type: none; }
.floor-rail.is-dragging .floor-shot{ pointer-events: none; }
.floor-rail:focus-visible{ outline: 2px solid var(--clay-soft); outline-offset: 4px; }

.rail-nav{
  position: absolute;
  top: 34%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250, 248, 244, .82);
  border: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 26px rgba(22, 21, 26, .18);
  color: var(--on-light);
  transition:
    opacity .3s var(--ease),
    transform .3s var(--ease-out),
    background-color .3s var(--ease);
}
.rail-nav:hover{ background: var(--bone-hi); transform: scale(1.06); }
.rail-nav[hidden]{ display: none; }
.rail-prev{ inset-inline-start: clamp(8px, 1.6vw, 22px); }
.rail-next{ inset-inline-end: clamp(8px, 1.6vw, 22px); }
/* the arrows point the way the rail moves, which flips in Arabic */
[dir="rtl"] .rail-nav svg{ transform: scaleX(-1); }

@media (hover: none){
  /* on touch the rail is already draggable; the arrows are clutter */
  .rail-nav{ display: none !important; }
}
