/* Relay v4: every page after the homepage (case studies, Work, Services, About, Perspectives,
   Made in America, 404). Uses the tokens and five type sizes in v4.css; nothing here adds a font size.
   The rules these follow are written up in docs/v4-style.md. */

body { padding-top:var(--bar); }
/* the page's own content always fills the first screen, so the ending never shows above the fold */
body main { min-height:calc(100svh - var(--bar)); }

/* ── Page title block: label (optional), title, one-line description ── */
.cs-head { padding-block:40px; }
.cs-head .label { display:block; margin-bottom:12px; }
.cs-head .label:empty { display:none; }
.cs-head h1 { font-size:var(--fs-xl); line-height:1.2; letter-spacing:-.01em; font-weight:600; }
.cs-head .lead { font-size:var(--fs-l); line-height:1.45; max-width:40em; margin-top:10px; }
/* on pages without a hero the first section follows close behind, with no rule under the title */
.pg-head { padding-bottom:0; }
.pg-head + .cs-sec { padding-top:80px; }
/* a page with a hero photo (case studies, articles) keeps a clear gap between the title and the photo */
.pg-head + .cs-hero { margin-top:40px; }
.pg-body { padding-top:64px; }

/* ── Case study hero, facts row and quote ── */
.cs-hero { width:100%; aspect-ratio:2/1; max-height:calc(100svh - var(--bar) - 342px); min-height:300px; overflow:hidden; }
.cs-facts { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; padding-block:22px; border-bottom:1px solid var(--line); }
.cs-facts .label { display:block; margin-bottom:6px; }
.cs-facts a { text-decoration:none; }
.cs-facts a span { color:var(--spark); }
.cs-facts a:hover { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; }
.cs-quote { margin-block:20px; }
.cs-quote .q { padding-left:24px; border-left:2px solid var(--spark); }
.cs-quote blockquote { margin:0; }
.cs-quote blockquote p { font-size:var(--fs-l); line-height:1.5; text-wrap:balance; }
.cs-quote figcaption { display:flex; align-items:center; gap:12px; margin-top:20px; }
.cs-quote figcaption img { width:40px; height:40px; border-radius:50%; object-fit:cover; filter:var(--photo); }
.cs-quote figcaption b { display:block; font-weight:500; }
.cs-quote figcaption em { font-style:normal; font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; color:var(--sub); }

/* ── Sections, the same on every page: the title on the left with a hairline running from it to the
   story on the right. The title stays in view while its section scrolls past. ── */
.cs-sec { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); gap:24px 0; padding-top:96px; }
.cs-sec > h2 { grid-column:1; font-size:var(--fs-xl); line-height:1.2; letter-spacing:-.01em; font-weight:600;
  position:sticky; top:calc(var(--bar) + 32px); align-self:start; display:flex; align-items:center; gap:20px; padding-right:24px; }
.cs-sec > h2::after { content:''; flex:1; height:1px; background:var(--line); margin-top:.15em; }
.cs-sec > .cs-story { grid-column:2; }
.cs-story { display:grid; gap:24px; align-content:start; min-width:0; }
.cs-story p { line-height:1.65; text-wrap:pretty; }
.cs-story .gap { margin-top:24px; }
.cs-story .lede { font-size:var(--fs-l); line-height:1.45; }
.cs-story .cs-closing { font-size:var(--fs-xl); line-height:1.32; letter-spacing:-.01em; margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.cs-story .cs-note { font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; color:var(--sub); line-height:1.6; }
.cs-fig { margin-block:16px; }
.cs-fig .cap { margin-top:12px; }

/* figures: panels on the page's own tone, one step apart; only the hero contrasts with the page */
.cs-panels { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cs-panel { position:relative; aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--fig-bg); color:var(--fig-sub); }
.cs-panel small { position:absolute; left:16px; top:14px; font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; line-height:1.35; }
.cs-shot { width:100%; height:auto; display:block; }

/* ── Lists and boxes ── */
/* item titles inside lists and boxes: medium, semibold; their line underneath in the quiet color */
ul.plus h3, .cols h3, .proc-row h3 { font-size:var(--fs-m); line-height:1.4; font-weight:600; }
ul.plus p, .cols p, .proc-row p { color:var(--sub); line-height:1.55; }
/* Services and How We Work: two boxes to a row, each led by an oxblood plus */
ul.plus { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
ul.plus li { position:relative; background:var(--fig-bg); padding:24px 24px 26px 50px; }
ul.plus li::before { content:'+'; position:absolute; left:24px; top:22px; color:var(--spark); font-size:var(--fs-l); line-height:1.2; }
ul.plus p { margin-top:4px; }
ul.plus h3 a { text-decoration:none; }
ul.plus h3 a span { color:var(--spark); }
ul.plus h3 a:hover { text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; }
/* Narrative Strategy: three boxes to a row */
.cols { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.cols > div { background:var(--fig-bg); padding:24px 24px 26px; display:grid; gap:4px; align-content:start; }
.risk { color:var(--spark); }
/* the six-week process as lanes */
.proc { display:grid; }
.proc-weeks { display:grid; grid-template-columns:repeat(6, 1fr); font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; color:var(--sub); padding-bottom:10px; }
.proc-weeks span:first-child { display:none; }
.proc-row { display:grid; gap:10px; padding-block:20px; border-top:1px solid var(--line); }
.proc-row > div:first-child { display:flex; align-items:baseline; gap:14px; }
.lane { display:grid; grid-template-columns:repeat(6, 1fr); height:8px; background:var(--fig-bg); }
.lane i { display:block; background:var(--spark); }

/* ── About: the story and a smaller photo side by side in the right column ── */
.about-split { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:24px 40px; align-items:start; }
.about-photo { margin:0; }
.about-photo img { width:100%; aspect-ratio:4/5; object-fit:cover; display:block; }
.links { display:flex; flex-wrap:wrap; gap:14px 32px; }


/* ── Perspectives articles: a traditional blog post, centered. The title block, the photo and the text
   share one reading width; the photo is shown whole (never cropped, so it stays sharp). The text is the
   site's body size; the headings step up to the section-title size so the article reads in clear steps. ── */
.art { display:grid; justify-items:center; gap:48px; padding-top:72px; }
.art-meta, .art-photo, .art .prose { width:min(100%, 760px); }
.art-meta { display:grid; gap:14px; justify-items:start; }
.art-meta h1 { font-size:clamp(30px, 2.8vw, 40px); font-weight:600; line-height:1.12; letter-spacing:-.02em; text-wrap:pretty; }
.art-by { color:var(--sub); }
.art .prose { gap:22px; }
.art .prose h2 { font-size:var(--fs-xl); line-height:1.2; letter-spacing:-.01em; margin-top:32px; }
.art .prose h3 { font-size:var(--fs-l); margin-top:12px; }
.art-photo { margin:0; background:var(--ph); }
.art-photo img { width:100%; height:auto; display:block; filter:var(--hero-dim); }
.prose { display:grid; gap:22px; min-width:0; }
.prose p, .prose li { line-height:1.65; text-wrap:pretty; }
.prose h2 { font-size:var(--fs-l); font-weight:600; line-height:1.3; margin-top:18px; }
.prose h3 { font-size:var(--fs-m); font-weight:600; margin-top:8px; }
.prose ul { padding-left:1.1em; display:grid; gap:8px; }
.prose li::marker { color:var(--spark); }
.prose a { text-underline-offset:4px; text-decoration-thickness:1px; }
.prose blockquote { margin:0; padding-left:24px; border-left:2px solid var(--spark); font-size:var(--fs-l); line-height:1.5; }
.prose figure { margin:8px 0; }
.prose figure img { width:100%; height:auto; display:block; }
.prose figcaption { margin-top:10px; font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; color:var(--sub); }
.prose .x-quote { font-size:var(--fs-m); background:var(--fig-bg); border-left:2px solid var(--spark); padding:18px 22px; }
.prose .x-quote-who { margin-top:8px; font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; color:var(--sub); }
.art-close { margin-top:12px; font-style:italic; color:var(--sub); }


/* ── 404: two cards, then the client logos on their own (no heading) ── */
.pg-body.nf { padding-top:40px; }
.grid.two { grid-template-columns:repeat(2, minmax(0,1fr)); }
.grid.two .card .ph { aspect-ratio:5/2; }
.grid.two .card .label { display:block; margin-bottom:6px; }
.grid.two .card p:last-child { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.logo-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:28px 40px; margin-top:32px; padding-top:28px; border-top:1px solid var(--line); }
.logo-row img { height:var(--h, 22px); width:auto; filter:var(--logo); opacity:var(--logo-o); }
.logo-row .l-fu { --h:10px; } .logo-row .l-ge { --h:28px; } .logo-row .l-sp { --h:25px; } .logo-row .l-fr { --h:29px; }
.logo-row .l-ny { --h:26px; } .logo-row .l-si { --h:20px; } .logo-row .l-us { --h:24px; }

@media (max-width:820px) {
  .cs-head { padding-block:36px 32px; }
  .pg-head { padding-bottom:0; }
  .pg-head + .cs-sec { padding-top:56px; }
  .pg-head + .cs-hero { margin-top:32px; }
  .pg-body { padding-top:48px; }
  .cs-hero { aspect-ratio:4/5; max-height:none; }
  .cs-facts { grid-template-columns:1fr; gap:16px; }
  .cs-sec { grid-template-columns:1fr; padding-top:72px; }
  .cs-sec > h2 { position:static; }
  .cs-sec > h2::after { display:none; }
  .cs-sec > .cs-story { grid-column:1; }
  .art { gap:32px; padding-top:40px; }
  .art-meta h1 { font-size:28px; }
  .cs-panels, ul.plus, .cols, .about-split, .grid.two { grid-template-columns:1fr; }
  .logo-row { justify-content:flex-start; gap:24px 32px; margin-top:48px; }
  .about-split .about-photo img { max-width:260px; }
  .proc-weeks { display:none; }
}
