/* Case studies. Shared by the index and the four study pages.
   Band geometry comes from CASE-STUDIES-SPEC.md section 3:
   240px label column at x=64, 1000px content column at x=376,
   72px gap, 64px side padding, 140px top and bottom. */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --ink:#181818;
  --mono:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --display:"Bright",Georgia,"Times New Roman",serif;
  --line:rgba(255,255,255,.08);
  --muted:rgba(255,255,255,.45);
  --body:rgba(255,255,255,.76);
}
@font-face{
  font-family:"Bright";
  src:url("/bright_ds_otf.otf") format("opentype");
  font-weight:normal;font-display:swap;
}
html{scroll-behavior:smooth}
body{background:var(--ink);color:#fff;font-family:var(--mono);-webkit-font-smoothing:antialiased}
a{color:inherit}

.page-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  padding:140px 6rem 24px;
  max-width:1600px;margin:0 auto;
}
.lockup{font-size:13px;line-height:1.15;letter-spacing:.01em;text-decoration:none}
/* breathing room under the last block. no rule, no content. */
.page-foot{height:9rem}

/* ---------- index deck ---------- */
#deck{padding:0 6rem;max-width:1600px;margin:0 auto;display:grid;row-gap:0}
/* slides touch, so the stacked hairlines collapse into one */
.slide + .slide{margin-top:-1px}
.slide{position:relative;height:50vh;min-height:360px;overflow:hidden;display:block;
  text-decoration:none;color:inherit;border:1px solid var(--line)}
.slide img.plate{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.slide img.plate{z-index:0}
.cs-scrim{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background-image:linear-gradient(to top,
    rgba(24,24,24,.95) 0%,
    rgba(24,24,24,.88) 20%,
    rgba(24,24,24,.6)  42%,
    rgba(24,24,24,.2)  66%,
    rgba(24,24,24,0)   88%);
}
/* the client label that sat below this is gone; the copy keeps its lift */
.copy{position:absolute;z-index:3;left:48px;right:48px;bottom:72px}
.client-logo{display:block;height:20px;width:auto;margin-bottom:14px;filter:brightness(0) invert(1);opacity:.92}
.client-logo.stacked{height:42px}
.slide h2{font-family:var(--display);font-weight:400;font-size:clamp(34px,4.4vw,58px);line-height:1;letter-spacing:-.01em;margin-bottom:14px}
.slide p{font-size:13px;line-height:1.65;color:var(--body);max-width:600px;font-weight:300}
/* ---------- study page ---------- */
/* Every section is its own outlined box, stacked flush the way the index
   slides are, so the page reads as one column of containers. */
.study{padding:0 6rem;max-width:1600px;margin:0 auto}
.study > *{display:block;border:1px solid var(--line);background:transparent}
.study > * + *{margin-top:-1px}

.study-head{padding:5rem 4rem}
.eyebrow{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:22px}
.study-head h1{
  font-family:var(--display);font-weight:400;
  font-size:clamp(44px,7vw,104px);line-height:.98;letter-spacing:-.015em;margin-bottom:34px;
}
.intro{font-size:15px;line-height:1.75;color:var(--body);font-weight:300;max-width:720px}

.hero-media{position:relative;margin:0;padding:0;overflow:hidden}
.hero-media video,.hero-media img{display:block;width:100%;height:auto;border:0}
.hero-caption{
  padding:14px 4rem 18px;font-size:11px;letter-spacing:.1em;color:var(--muted);
  border-top:1px solid var(--line);
}

.band{
  display:grid;grid-template-columns:240px minmax(0,1000px);
  column-gap:72px;padding:4.5rem 4rem;
}
.band h2{font-size:11px;letter-spacing:.2em;text-transform:lowercase;color:var(--muted);font-weight:400}
.band ul{list-style:none}
.band ul li{
  font-size:15px;line-height:1.7;color:var(--body);font-weight:300;
  padding:18px 0;border-bottom:1px solid var(--line);
}
.band ul li:first-child{padding-top:0}
.band ul li:last-child{border-bottom:0;padding-bottom:0}
.band p{font-size:15px;line-height:1.75;color:var(--body);font-weight:300}

.figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:48px}
/* a strip with a figure still to come keeps the same column rhythm
   rather than stretching two figures across the full band */
.figures-2{grid-template-columns:repeat(2,minmax(0,1fr)) 1fr}
.figures-1{grid-template-columns:minmax(0,1fr) 2fr}
.figure .value{
  font-family:var(--display);font-weight:400;
  font-size:clamp(34px,4vw,56px);line-height:1;margin-bottom:14px;
}
.figure .figure-caption{font-size:12px;line-height:1.6;color:var(--muted);font-weight:300}

/* sources: citations, so the url is the link text and stays selectable */
.sources ol{list-style:none}
.sources li + li{margin-top:22px}
.sources .src-label{font-size:13px;line-height:1.6;color:var(--body);font-weight:300;margin-bottom:8px}
.sources a{
  display:block;font-size:11px;line-height:1.75;letter-spacing:.01em;
  color:var(--muted);text-decoration:none;word-break:break-all;
  border-bottom:1px solid transparent;width:fit-content;max-width:100%;
}
@media (hover: hover) and (pointer: fine){
  .sources a:hover{color:#fff;border-bottom-color:rgba(255,255,255,.4)}
}
.sources .pending{font-size:11px;line-height:1.75;color:rgba(255,255,255,.3)}

/* ---------- image strip ----------
   Native aspect ratios at one fixed height, so widths vary and the row runs
   past both gutter edges. Clipped by the box; arrows page through it. */
.strip{position:relative;padding:0;overflow:hidden}
.strip-viewport{
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;
  scroll-behavior:smooth;overscroll-behavior-x:contain;
}
.strip-viewport::-webkit-scrollbar{display:none}
.strip-track{display:flex;align-items:stretch;width:max-content}
.strip-item{flex:0 0 auto;height:420px;background:#101010}
.strip-item + .strip-item{border-left:1px solid var(--line)}
.strip-item img{display:block;height:100%;width:auto;object-fit:contain}

.strip-arrow{
  position:absolute;top:0;bottom:0;width:72px;z-index:4;
  display:flex;align-items:center;justify-content:center;
  background:none;border:0;cursor:pointer;padding:0;color:inherit;
}
.strip-arrow-left{left:0}
.strip-arrow-right{right:0}
.strip-arrow::before{
  content:"";position:absolute;top:0;bottom:0;width:160px;
  opacity:0;pointer-events:none;transition:opacity .55s ease;
}
.strip-arrow-left::before{
  left:0;background:linear-gradient(to right,
    rgba(24,24,24,.9) 0%, rgba(24,24,24,.45) 45%, rgba(24,24,24,0) 100%);
}
.strip-arrow-right::before{
  right:0;background:linear-gradient(to left,
    rgba(24,24,24,.9) 0%, rgba(24,24,24,.45) 45%, rgba(24,24,24,0) 100%);
}
.strip-glyph{
  position:relative;z-index:1;font-family:var(--mono);font-size:1rem;line-height:1;
  color:rgba(255,255,255,.5);transition:color .35s ease,transform .35s ease;
}
/* pointer gated: touch latches :hover and would leave the sweep lit */
@media (hover: hover) and (pointer: fine){
  .strip-arrow:hover::before{opacity:1}
  .strip-arrow:hover .strip-glyph{color:#fff}
  .strip-arrow-left:hover  .strip-glyph{transform:translateX(-4px)}
  .strip-arrow-right:hover .strip-glyph{transform:translateX(4px)}
}

.next-study{
  display:flex;align-items:baseline;justify-content:space-between;gap:24px;
  padding:4rem;text-decoration:none;
}
.next-study .next-label{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:16px}
.next-study h3{font-family:var(--display);font-weight:400;font-size:clamp(30px,4vw,54px);line-height:1}
.next-study .read{font-size:11px;letter-spacing:.14em;color:var(--muted);white-space:nowrap}

/* a field the Figma copy has not been pasted into yet */
.todo{display:block;color:rgba(255,180,90,.75);font-style:normal}

@media (max-width:980px){
  .band{grid-template-columns:1fr;row-gap:28px;padding:3rem 2.5rem}
  .figures,.figures-2,.figures-1{grid-template-columns:1fr;row-gap:40px}
  .strip-item{height:320px}
  #deck,.page-head,.hero-media{padding-left:3rem;padding-right:3rem}
  .study-head,.back,.hero-caption,.next-study{padding-left:3rem;padding-right:3rem}
}
@media (max-width:768px){
  #deck,.page-head,.hero-media{padding-left:1.5rem;padding-right:1.5rem}
  .copy{left:24px;right:24px}
  .slide{height:56vh}
  .band{padding:2.5rem 1.5rem}
  .strip-item{height:240px}
  .strip-arrow{width:52px}
  .study-head,.next-study,.hero-caption{padding-left:1.5rem;padding-right:1.5rem}
}
@media (max-width:480px){
  #deck,.page-head,.hero-media{padding-left:1rem;padding-right:1rem}
  .copy{left:16px;right:16px}
  .band{padding:2rem 1rem}
  .strip-item{height:200px}
  .study-head,.next-study,.hero-caption{padding-left:1rem;padding-right:1rem}
}
