/* Case study pages: the Monograph (brand work), the Feed and the Shoot (social work). Sits on top of site.css. */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: clamp(70px, 10vw, 160px); }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.prompt { font-style: italic; color: var(--accent); }
main figure { margin: 0; overflow: hidden; background: var(--bg-2); }
main figure img, main figure video { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
main figure:hover img { transform: scale(1.025); }
main figure.placeholder { display: grid; place-items: center; }

/* Shared: the hero */
.hero { position: relative; height: calc(100svh - 64px); min-height: 520px; overflow: hidden; isolation: isolate; background: var(--cover-bg, var(--bg-2)); color: #FBF5F0; }
.hero > img, .hero > video { position: absolute; inset: 0; animation: slowzoom 18s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(30, 20, 16, .62), rgba(30, 20, 16, 0) 55%); }
.hero .t { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.hero h1 { font: 300 clamp(60px, 10vw, 190px)/.86 var(--serif); letter-spacing: -.035em; text-wrap: balance; max-width: 12ch; }
.hero h1 em { font-weight: 500; }
.hero .meta { font-size: 12px; line-height: 1.9; text-align: right; opacity: .92; }

/* Shared: the opening paragraph and the facts */
.open { padding-top: clamp(80px, 11vw, 170px); text-align: center; }
.open > p { font: 300 clamp(28px, 3.2vw, 50px)/1.18 var(--serif); max-width: 26ch; margin: 0 auto; text-wrap: balance; letter-spacing: -.035em; }
.open > p em { font-weight: 500; }
.open > p em { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: var(--gutter); margin-top: clamp(50px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font: 300 19px/1.35 var(--serif); }

/* Monograph: chapters */
.chap { align-items: center; }
.chap .no { font: italic 300 clamp(90px, 12vw, 210px)/.8 var(--serif); color: var(--accent); letter-spacing: -.035em; }
.chap .no em { font-weight: 500; }
.chap h2 { font: 300 clamp(40px, 4.4vw, 70px)/1 var(--serif); margin: 18px 0 20px; letter-spacing: -.035em; }
.chap h2 em { font-weight: 500; }
.chap .txt p { max-width: 40ch; }
.chap .txt .kicker { color: var(--accent); }
.chap h2.hl { font: 300 clamp(44px, 4.6vw, 76px)/1.02 var(--serif); margin: 16px 0 22px; text-wrap: balance; letter-spacing: -.035em; }
.chap h2.hl em { font-weight: 500; }
.chap h2.hl em { color: var(--accent); }
.chap .txt { grid-column: 2 / 6; }
.chap .pic { grid-column: 7 / 13; aspect-ratio: 4 / 5; }
.chap.flip .txt { grid-column: 8 / 12; grid-row: 1; }
.chap.flip .pic { grid-column: 1 / 7; grid-row: 1; }
.chap.nopic .txt { grid-column: 3 / 11; }
.bleed { margin-top: clamp(70px, 10vw, 160px); height: min(92vh, 62vw); position: relative; overflow: hidden; }
.bleed img { position: absolute; inset: -8% 0; height: 116%; will-change: transform; }
.wide1 { margin-top: clamp(70px, 10vw, 160px); }
.wide1 figure { grid-column: 2 / 12; aspect-ratio: 16 / 10; }
.single { margin-top: clamp(70px, 10vw, 160px); }
.single figure { grid-column: 4 / 10; aspect-ratio: 4 / 5; }
.pair { margin-top: clamp(70px, 10vw, 160px); align-items: start; }
.pair figure { grid-column: span 6; aspect-ratio: 4 / 5; }
.pair figure:nth-child(2) { margin-top: clamp(60px, 9vw, 160px); }
.trio { margin-top: clamp(70px, 10vw, 160px); align-items: start; }
.trio figure { grid-column: span 4; aspect-ratio: 2 / 3; }
.trio figure:nth-child(2) { margin-top: clamp(60px, 9vw, 160px); }
.trio figure:nth-child(3) { margin-top: clamp(20px, 3vw, 50px); }
/* Monograph: the sideways gallery, pinned while scrolling moves it across (case-study.js sets its height) */
.sideways { margin-top: clamp(70px, 10vw, 160px); }
.sideways .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; gap: clamp(20px, 3vh, 36px); }
.sideways .track { display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.sideways figure { height: min(66vh, 680px); aspect-ratio: 4 / 5; flex: none; }
.sideways figure.w { aspect-ratio: 3 / 2; }
.sideways figure:nth-child(odd) { margin-top: 5vh; }
.sideways .count { display: flex; align-items: center; gap: 20px; }
.sideways .count b { font: italic 300 24px var(--serif); min-width: 3.6em; letter-spacing: -.035em; }
.sideways .count b em { font-weight: 500; }
.sideways .bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.sideways .bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); }
.sideways.flat .pin { position: static; height: auto; overflow-x: auto; }
.sideways.flat .count { display: none; }
/* The opening words fill in as you read down (case-study.js wraps each word) */
.open .w { opacity: .16; transition: opacity .3s; }
.open .w.on { opacity: 1; }
.palette { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); height: clamp(300px, 34vw, 520px); margin-top: clamp(50px, 6vw, 90px); }
.palette div { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; font-size: 12px; min-width: 0; }
.palette b { font: 300 clamp(22px, 2vw, 32px)/1 var(--serif); display: block; margin-bottom: 6px; letter-spacing: -.035em; }
.palette b em { font-weight: 500; }
.made { align-items: start; }
.made h2 { grid-column: 1 / 5; font: 300 clamp(34px, 3.4vw, 54px)/1 var(--serif); letter-spacing: -.035em; }
.made h2 em { font-weight: 500; }
.made ul { grid-column: 6 / 13; list-style: none; columns: 2; column-gap: var(--gutter); }
.made li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font: 300 20px var(--serif); }

/* Shared: quote and next project */
.quote { text-align: center; }
.quote blockquote { font: italic 300 clamp(30px, 3.6vw, 58px)/1.12 var(--serif); max-width: 24ch; margin: 0 auto; text-wrap: balance; letter-spacing: -.035em; }
.quote blockquote em { font-weight: 500; }
.quote cite { display: block; margin-top: 22px; font: 400 12px var(--sans); color: var(--muted); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gutter); padding: clamp(60px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--line); margin-top: clamp(70px, 10vw, 150px); }
.next .label { display: block; margin-bottom: 8px; }
.next b { font: 300 clamp(48px, 8vw, 140px)/.9 var(--serif); letter-spacing: -.035em; transition: color .3s; }
.next b em { font-weight: 500; }
.next b em { color: var(--accent); }
.next:hover b { color: var(--accent); }
.next figure { width: clamp(120px, 18vw, 260px); aspect-ratio: 4 / 5; }

/* Feed */
.feed-top { padding-top: clamp(40px, 6vw, 80px); text-align: center; }
.feed-top .kicker { color: var(--accent); }
.feed-top h1 { font: 300 clamp(56px, 8vw, 140px)/.88 var(--serif); letter-spacing: -.035em; margin: 18px auto 0; max-width: 14ch; text-wrap: balance; }
.feed-top h1 em { font-weight: 500; }
.feed-top .intro { font: 300 clamp(20px, 1.8vw, 26px)/1.35 var(--serif); max-width: 36ch; margin: 22px auto 0; color: var(--ink); letter-spacing: -.035em; }
.feed-top .intro em { font-weight: 500; }
.feed-top .intro em { color: var(--accent); }
.reels { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: center; max-width: calc(var(--n, 3) * 400px); margin: clamp(40px, 5vw, 70px) auto 0; padding: 0 var(--gutter); }
.reels figure { aspect-ratio: 9 / 16; border-radius: 6px; }
.reels.three { grid-template-columns: 1fr 1.25fr 1fr; }
.reels.three figure:nth-child(odd) { transform: translateY(8%); }
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 5vw, 70px); }
.stats div { padding: clamp(24px, 3vw, 44px) var(--gutter); border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 300 clamp(46px, 5vw, 86px)/.9 var(--serif); letter-spacing: -.035em; }
.stats b em { font-weight: 500; }
.stats span { font-size: 12px; color: var(--muted); }
.result { text-align: center; }
.result h2 { font: 300 clamp(40px, 4.4vw, 70px)/1 var(--serif); margin-bottom: 18px; letter-spacing: -.035em; }
.result h2 em { font-weight: 500; }
.result p { max-width: 46ch; margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: clamp(12px, 1.6vw, 24px); }
.pillars figure { aspect-ratio: 3 / 4; position: relative; }
.pillars figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 20, 16, .55), transparent 50%); }
.pillars figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #FBF5F0; }
.pillars figcaption b { display: block; font: 300 clamp(24px, 2.2vw, 34px)/1 var(--serif); letter-spacing: -.035em; }
.pillars figcaption b em { font-weight: 500; }
.pillars figcaption span { font-size: 12px; opacity: .85; }
.gridphone { align-items: center; }
.gridphone .ig { grid-column: 1 / 8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gridphone .ig figure { aspect-ratio: 4 / 5; }
.gridphone .side { grid-column: 9 / 13; }
.side h2 { font: 300 clamp(36px, 3.4vw, 56px)/1 var(--serif); margin: 30px 0 14px; letter-spacing: -.035em; }
.side h2 em { font-weight: 500; }
.side p { max-width: 36ch; }
.phone { width: min(300px, 100%); aspect-ratio: 9 / 19; border-radius: 42px; background: #1E1512; padding: 12px; margin: 0 auto; box-shadow: 0 30px 60px rgba(58, 40, 36, .25); }
.phone > div { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone .bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 40px 16px 18px; color: #fff; font-size: 12px; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.phone .bar b { font-weight: 500; }

/* Shoot */
.cs-shoot .hero::after { background: rgba(30, 20, 16, .3); }
.cs-shoot .hero .t { inset: 0; display: grid; place-items: center; grid-template-columns: 1fr; text-align: center; }
.cs-shoot .hero h1 { margin: 18px auto; max-width: 14ch; }
.cs-shoot .hero .line { font: italic 300 clamp(20px, 1.8vw, 28px) var(--serif); letter-spacing: -.035em; }
.cs-shoot .hero .line em { font-weight: 500; }
.cs-shoot .hero .corner { position: absolute; z-index: 1; bottom: 22px; font-size: 12px; opacity: .85; }
.callsheet { align-items: start; }
.callsheet .intro { grid-column: 1 / 5; position: sticky; top: 90px; }
.callsheet .intro h2 { font: 300 clamp(40px, 4vw, 64px)/1 var(--serif); margin: 16px 0 18px; letter-spacing: -.035em; }
.callsheet .intro h2 em { font-weight: 500; }
.callsheet .intro p { max-width: 34ch; }
.callsheet table { grid-column: 6 / 13; border-collapse: collapse; width: 100%; }
.callsheet tr { border-top: 1px solid var(--line); }
.callsheet tr:last-child { border-bottom: 1px solid var(--line); }
.callsheet td { padding: 16px 12px 16px 0; vertical-align: top; }
.callsheet td.time { font: italic 400 20px var(--serif); color: var(--accent); width: 76px; white-space: nowrap; }
.callsheet td b { display: block; font: 300 26px/1.1 var(--serif); margin-bottom: 4px; letter-spacing: -.035em; }
.callsheet td b em { font-weight: 500; }
.callsheet td span { font-size: 13px; color: var(--muted); }
.callsheet td.th { width: clamp(70px, 9vw, 120px); padding-right: 0; }
.callsheet td.th figure { aspect-ratio: 4 / 5; }
.sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 8px; padding: 22px 22px 40px; background: #2A1F1B; margin: 0 var(--gutter); }
.sheet figure { aspect-ratio: 2 / 3; position: relative; background: #000; overflow: visible; }
.sheet figure:not(.pick) { opacity: .72; }
.sheet figure span { position: absolute; left: 0; bottom: -18px; font: 10px/1 ui-monospace, monospace; color: #C9A98F; letter-spacing: .1em; }
.sheet figure.pick::after { content: ""; position: absolute; inset: -5px; border: 2px solid #E36A3A; border-radius: 50%; transform: rotate(-4deg); pointer-events: none; }
.sheet-cap { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--gutter) 0; font-size: 12px; color: var(--muted); }
.posted { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(20px, 3vw, 50px); max-width: calc(var(--n, 3) * 370px); margin: 0 auto; padding: 0 var(--gutter); }
.posted .p { display: grid; gap: 14px; justify-items: center; }
.posted .phone { width: 100%; max-width: 280px; }
.posted .p > span { font-size: 12px; color: var(--muted); text-align: center; }

/* Phones */
@media (max-width: 860px) {
  .g12 { grid-template-columns: 1fr; }
  .g12 > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .hero .t { grid-template-columns: 1fr; }
  .hero .meta { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .chap .pic { margin-top: 24px; }
  .chap.flip .txt, .chap.flip .pic { grid-row: auto; }
  .pair, .trio { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pair figure, .trio figure { grid-column: auto !important; }
  .trio figure:nth-child(3) { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3; }
  .palette { grid-template-columns: 1fr; height: auto; }
  .palette div { min-height: 84px; flex-direction: row; justify-content: space-between; align-items: end; }
  .made ul { columns: 1; margin-top: 10px; }
  .sideways figure { height: 50vh; }
  .sideways figure:nth-child(odd) { margin-top: 3vh; }
  .next figure { width: 96px; }
  .reels, .reels.three { grid-template-columns: 1fr 1fr; }
  .reels figure { transform: none !important; }
  .reels.three figure:nth-child(2) { grid-column: 1 / 3; grid-row: 1; width: 72%; margin: 0 auto; }
  .reels.one { grid-template-columns: 1fr; max-width: 300px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .gridphone .side { margin-top: 40px !important; }
  .callsheet .intro { position: static; margin-bottom: 20px; }
  .sheet { grid-template-columns: repeat(3, 1fr); padding: 16px 16px 34px; }
  .posted { grid-template-columns: 1fr; }
  .posted .p:nth-child(n+2) { display: none; }
}

/* Results and client quote for presentation pages. Each page sets --o-bg, --o-fg and --o-ac in its brand colours.
   [data-sample] marks placeholder copy: it carries a visible tag, and the build warns until it is replaced. */
.cs-process { position: relative; background: var(--o-bg, var(--ink)); color: var(--o-fg, var(--bg)); padding: clamp(80px, 11vw, 170px) var(--gutter); }
.cs-process .lead { margin: 22px 0 0; max-width: 24ch; font: 300 clamp(32px, 4vw, 64px)/1.08 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.cs-process .lead em { font-weight: 500; }
.cs-process .steps { list-style: none; margin: clamp(56px, 7vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.cs-process .steps li { padding: 26px 28px 0 0; }
.cs-process .steps li + li { padding-left: 28px; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.cs-process .n { display: block; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--o-ac, currentColor); }
.cs-process h3 { margin: 18px 0 0; font: italic 300 clamp(26px, 2.6vw, 40px)/1.1 var(--serif); letter-spacing: -.035em; }
.cs-process h3 em { font-weight: 500; }
.cs-process p:not(.lead) { margin: 14px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.55; opacity: .88; }
.cs-process .tag { position: absolute; top: 18px; right: var(--gutter); font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; border: 1px dashed currentColor; border-radius: 99px; opacity: .8; }
.cs-process:not([data-sample]) .tag { display: none; }
@media (max-width: 760px) {
  .cs-process .steps { grid-template-columns: 1fr; }
  .cs-process .steps li, .cs-process .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
}
