/* Hook pages (page-hook.php): the old site's industry pages, built from the case study parts in v3.css. Only what
   those parts don't already cover is here. Loaded only on those pages. */

/* Hero: the case study hero, with a line above the headline and a headline sized for a longer title. */
.bkH-hero__eyebrow { margin: 0 0 clamp(14px, 2.2vh, 24px); font-family: "IBM Plex Mono", monospace; font-size: 12px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.bkH-hero .bkA-chero__title { max-width: 15ch; font-size: clamp(40px, min(6.6vw, 10.5vh), 116px); line-height: .9; }
.bkH-hero .bkA-chero__btn svg { margin-left: 2px; }

/* The page's one line, filling in as it scrolls past. */
.bkA-intro.--inline.bkH-lede { padding: clamp(72px, 9vw, 150px) 0 clamp(24px, 3vw, 48px); }

/* Chapters: a related project's still, and its loop over it once it plays. */
.bkH-chapter__loop { display: block; aspect-ratio: 16 / 10; }
.bkH-chapter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bkH-chapter__loop .bkA-vloop { background: transparent; }
.bkH-chapter__loop .bkA-vloop:not([src]) { visibility: hidden; }
.bkH-text ul { max-width: 680px; margin: 1em 0 0; padding: 0; list-style: none; }
.bkH-text li { padding: 11px 0; border-top: 1px solid rgba(20, 20, 20, .14); font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.bkH-text li:last-child { border-bottom: 1px solid rgba(20, 20, 20, .14); }
.bkH-text ul + p { margin-top: 1em; }
.bkH-text a { text-decoration: underline; text-underline-offset: 3px; }

/* Selected work: cards that play the project's preview on hover (and in view on touch screens). */
.bkH-work { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid rgba(20, 20, 20, .12); }
.bkH-work__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 3.4vw, 64px) clamp(16px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
/* Exactly four cards: two by two, so the fourth doesn't sit alone on its row (Nov 10, industry pages round 2). Since
   Nov 11 this rule is the Journal's (page-journal.php); the hook pages have one for every count, below. */
@media (min-width: 900px) { .bkJ-work .bkH-work__grid:has(> .bkH-work__item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bkH-work__card { display: block; text-decoration: none; }
.bkH-work__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.bkH-work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bkH-work__card:hover .bkH-work__img { transform: scale(1.03); }
.bkH-work__media .bkA-vloop { background: transparent; opacity: 0; transition: opacity .35s var(--ease); }
.bkH-work__card:hover .bkA-vloop[src] { opacity: 1; }
@media (hover: none) { .bkH-work__media .bkA-vloop[src] { opacity: 1; } }
.bkH-work__client { display: block; margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 12px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.bkH-work__name { display: block; margin-top: 6px; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.bkH-work__desc { display: block; max-width: 44ch; margin-top: 10px; font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.5; opacity: .7; }
.bkH-work__more { margin-top: clamp(44px, 5vw, 80px); }
/* Hook pages: no empty place in a row of Selected work (Nov 11; Sean's rule is no empty sides). On a wide screen the
   cards run in threes, and a count that doesn't divide by three opens with wider cards: five is two then three, four
   is two and two, seven is two, two and three. Where they run in twos (an iPad), an odd count opens with one card
   across the row. page-hook.php gives the wider cards a larger image to match. */
@media (min-width: 1170px) {
	.bkH > .bkH-work .bkH-work__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.bkH > .bkH-work .bkH-work__item { grid-column: span 2; }
	.bkH > .bkH-work .bkH-work__item:first-child:nth-last-child(3n + 2),
	.bkH > .bkH-work .bkH-work__item:first-child:nth-last-child(3n + 2) + .bkH-work__item,
	.bkH > .bkH-work .bkH-work__item:first-child:nth-last-child(3n + 4),
	.bkH > .bkH-work .bkH-work__item:first-child:nth-last-child(3n + 4) ~ .bkH-work__item:nth-child(-n + 4) { grid-column: span 3; }
}
@media (min-width: 744px) and (max-width: 1169px) {
	.bkH > .bkH-work .bkH-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bkH > .bkH-work .bkH-work__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

/* Questions, two across. */
.bkH-faq { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid rgba(20, 20, 20, .12); }
.bkH-faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) clamp(32px, 6vw, 110px); }
.bkH-faq__q { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.bkH-faq__a { max-width: 56ch; margin-top: 14px; font-family: "Inter", sans-serif; font-size: 17px; line-height: 1.65; }
@media (max-width: 767px) {
	.bkH-faq__grid { grid-template-columns: minmax(0, 1fr); }
	.bkH-hero .bkA-chero__title { font-size: clamp(34px, 10.4vw, 48px); }
}

/* Phase 2 pages on the same template: a client quote, and lists of child or sibling pages. */
.bkH-hero__eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.bkH-quote { padding: clamp(72px, 9vw, 140px) 0; background: var(--ink); color: #fff; }
.bkH-quote__text { max-width: 1100px; margin: 0; font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: clamp(26px, 3.2vw, 52px); line-height: 1.08; letter-spacing: -.015em; text-transform: uppercase; }
.bkH-quote__text span { font-family: var(--font3), serif; font-weight: 400; letter-spacing: 0; }
.bkH-quote__by { margin-top: clamp(24px, 3vw, 40px); font-family: "IBM Plex Mono", monospace; font-size: 12px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.bkH-pages { padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid rgba(20, 20, 20, .12); }
.bkH-pages__list { margin: 0; padding: 0; list-style: none; }
.bkH-pages__link { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; gap: 12px 32px; align-items: baseline; padding: 20px 0; border-top: 1px solid rgba(20, 20, 20, .14); text-decoration: none; transition: padding .3s var(--ease); }
.bkH-pages__list li:last-child .bkH-pages__link { border-bottom: 1px solid rgba(20, 20, 20, .14); }
.bkH-pages__link b { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 30px); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.bkH-pages__link span { font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.5; opacity: .7; }
.bkH-pages__link:hover { padding-left: 12px; }
.bkH-pages__link:hover b { color: var(--accent); }
@media (max-width: 767px) { .bkH-pages__link { grid-template-columns: minmax(0, 1fr) auto; } .bkH-pages__link span { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Nov 11: a page's own media (inc/hook-pages.php, "A page's own choice of media"). ---------- */
/* A chapter's photograph, pair or loop, with its caption on the left and the photographer on the right. */
.bkH-chapter__link { display: block; }
.bkH-chapter__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; }
/* An upright photograph: capped to the screen like the case studies' tall media, and not pinned. */
.bkH-chapter.--tall .bkA-story__img { width: 100%; }

/* One gap between the line under the hero, the chapters and the photo sections among them (the case studies'
   "Vertical rhythm" in v3.css: two sections on the same color don't stack their paddings). */
.bkH { --bkP: clamp(64px, 7vw, 112px); }
.bkH > .bkA-intro.--inline.bkH-lede { padding-bottom: var(--bkP); }
.bkH > .bkH-chapter, .bkH > .bkH-gallery { padding-top: 0; padding-bottom: var(--bkP); }
@media (max-width: 767px) { .bkH { --bkP: 56px; } }
/* The hero stays pinned behind the whole page (v3.css, "Hero curtain"). Where two sections meet on part of a pixel it
   showed through as a hairline across the page, so each section starts one pixel up, over the end of the one before
   (always empty space). A one-pixel shadow did this first and still left a faint line when the page was scaled. */
.bkH > section + section { margin-top: -1px; }

/* Photo sections between chapters: the case studies' Frames (mosaic, grid) and Photos (row) with a line of notes. */
.bkH-gallery .bkA__head { margin-bottom: clamp(18px, 3vh, 36px); }
.bkH-gallery .bkA-frames__bar, .bkH-gallery .bkA-media__top .bkA-frames__title { margin-bottom: clamp(18px, 3vh, 36px); }
.bkH-gallery .bkA-media__top { margin-bottom: 0; }
.bkH-gallery__notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; margin-top: 14px; }
.bkH-gallery.bkA-media .bkA-media__img { height: 100%; object-fit: cover; }

/* ---------- The Index (page-index.php): the Journal page's list, in groups. ---------- */
.bkH-index .bkJ-idx__head { scroll-margin-top: calc(var(--bkHdr) + 24px); }
.bkH-index .bkJ-idx__list + .bkJ-idx__head { margin-top: clamp(64px, 8vw, 128px); }
.bkH-index .bkJ-idx__title { font-size: clamp(64px, min(17vw, 28vh), 280px); }
@media (max-width: 767px) { .bkH-index .bkJ-idx__title { font-size: clamp(64px, 24vw, 130px); } }
