/* The brand page: the mark, the lean, the colours, the type and the
   files. Built from the same parts as the rest of the site. */
.page--brand .bar__end { margin-left: auto; }
.b-hero { padding: clamp(112px, 16vh, 150px) 0 clamp(56px, 8vh, 88px); }
.b-title { font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: clamp(64px, 11vw, 168px); line-height: 0.92; letter-spacing: -0.045em; }
.b-intro { max-width: 30em; margin: 22px 0 clamp(36px, 6vh, 56px); font-size: clamp(19px, 2vw, 25px); line-height: 1.35; letter-spacing: -0.01em; }
.b-board { width: 100%; height: auto; }

.b-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b-mark { display: grid; place-items: center; aspect-ratio: 1; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.b-mark .jv { width: 58%; height: auto; }

.b-lean { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.b-lean .head { margin-bottom: 0; }
.b-print { width: 100%; height: auto; }
.b-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-left: 6px; }
/* two photos at 4:5 locked across the gap; 12° is 26.57% of the width */
.b-lock { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.b-lock img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(26.57% 0, 100% 0, 73.43% 100%, 0 100%); }
.b-lock img + img { margin-left: calc(-26.57% + 10px); width: 100%; }

.b-sws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); }
.sw { display: grid; justify-items: start; gap: 2px; padding: 0; font-size: 14px; color: var(--dim); text-align: left; }
.sw i { display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 14px; background: var(--sw); box-shadow: inset 0 0 0 1px var(--line-2); transform: skewX(var(--slant)); transition: transform 0.5s var(--ease); }
.sw b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--ink); }
.sw em { font-style: normal; }
@media (hover: hover) and (pointer: fine) { .sw:hover i { transform: skewX(var(--slant)) translateY(-6px); } }

.b-types li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.b-types em { font-style: normal; font-size: 15px; color: var(--dim); }
.b-t1 { font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 108%; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.b-t2 { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.015em; }
.b-t3 { font-size: clamp(34px, 4.6vw, 60px); }
.b-t4 { font-family: var(--mono); font-size: clamp(20px, 2.8vw, 34px); }

.dls { border-top: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px clamp(24px, 4vw, 48px); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl__name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.025em; }
.dl__files { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.dl__files a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dl__files a:hover { text-decoration-thickness: 2px; }

@media (max-width: 767px) {
  .b-marks, .b-sws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-lean { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .page--brand .bar__name .wordmark { display: inline-block; }
}
