/* Closet case study, open state. The top bar lives in nav.css. */

.case-card{
  margin:0 24px;
  background:#fff;
  border-radius:28px 28px 0 0;
  box-shadow:inset 0 0 0 1.5px rgba(23,26,51,.10);
  min-height:calc(100vh - 82px);
}
.case-hero{
  position:relative;
  height:clamp(420px,66vh,720px);
  margin-left:96px;
  margin-right:96px;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
}
.case-hero .pills{left:40px;top:34px}
.case-hero-flow,
.case-hero-shot{
  display:grid;
  place-items:center;
  background:#F3F6F6;
}
.case-hero-shot{background:#F6F5F4;padding:28px 40px}
.case-hero-shot img{
  height:100%;
  width:auto;
  max-width:100%;
  min-height:0;
  object-fit:contain;
}
.case-hero .flow-scale{
  width:min(92%,760px);
  aspect-ratio:700 / 480;
  position:relative;
  container-type:inline-size;
}
.case-hero .flow-scale .flow{
  position:absolute;
  left:0;top:0;
  transform-origin:top left;
  transform:scale(calc(100cqw / 700px));
}

.case-head{
  display:block;
  padding:48px 96px 72px;
}
/* The title, subline, and meta row sit above the picture on every case study. */
.case-lead{padding:72px 96px 48px}
.case-lead .case-kicker + h1{margin-top:10px}
.tldr-title{
  margin:0 0 28px;
  font-family:var(--font-heading);
  font-stretch:100%;
  font-weight:700;
  font-size:26px;
  letter-spacing:-.02em;
  line-height:1.15;
}
.tldr-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);
  column-gap:56px;
  align-items:start;
}
.tldr-split .tldr{margin:0;gap:32px}
.tldr-split .tldr > div,
.tldr-side{
  border-top:1px solid rgba(23,26,51,.12);
  padding-top:16px;
}
.tldr-split .tldr dt,
.tldr-side h3{
  margin:0;
  font-family:var(--font-heading);
  font-stretch:100%;
  font-size:16px;
  font-weight:700;
  letter-spacing:-.015em;
  text-transform:none;
  color:var(--ink);
  line-height:1.2;
}
.tldr-side h3{margin:0 0 12px}
.tldr-split .tldr dd,
.tldr-side{color:rgba(23,26,51,.62)}
.tldr-side ul{
  margin:0;
  padding:0 0 0 1.15em;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tldr-side li{line-height:1.5}
/* Phone frame sits about 38px above the middle of the 776px stage.
   Shift the stage so the phone, not the empty room below it, is centered. */
.snap.is-hero .snap-fit{
  top:50%;
  transform-origin:center center;
  transform:translate(-50%, -50%) translateY(calc(38px * min(100cqw / 852px, 100cqh / 776px))) scale(min(calc(100cqw / 852px), calc(100cqh / 776px)));
}
.tldr .gain{color:#7A8C16;font-weight:700}
.case-kicker{
  font-family:var(--font-display);
  font-stretch:125%;
  font-weight:700;
  font-size:15px;
  color:rgba(23,26,51,.55);
}
.case-head h1:focus,
.case-lead h1:focus{outline:none}
.case-head h1,
.case-lead h1{
  margin:10px 0 0;
  font-family:var(--font-display);
  font-stretch:125%;
  font-weight:700;
  font-size:40px;
  line-height:1.06;
  letter-spacing:-.03em;
  text-wrap:balance;
}
.case-lead h1{margin-top:0}
.tldr{
  margin:6px 0 0;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.tldr div{display:flex;flex-direction:column;gap:6px}
.tldr dt{
  margin:0;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--subtle);
  font-weight:400;
}
.tldr dd{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:#3B3E58;
}
.tldr ul{
  margin:0;
  padding:0 0 0 1.1em;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.case-body{padding:0 96px 0}
.case-body section{
  padding:72px 0;
  border-top:1px solid rgba(23,26,51,.1);
  display:grid;
  /* minmax(0, …) lets the column shrink. Without the 0, a wide table or
     chart sets the column’s minimum and the section runs off the page. */
  grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:40px;
}
.case-body h2{
  margin:0;
  min-width:0;
  font-family:var(--font-heading);
  font-stretch:100%;
  font-weight:700;
  font-size:26px;
  letter-spacing:-.02em;
  line-height:1.2;
}
.case-body .prose{
  font-size:17px;
  line-height:1.6;
  color:#3B3E58;
  max-width:none;
  min-width:0;
}
body[data-case="closet"] .case-body .prose{max-width:none}
.case-body .prose p{margin:0 0 16px}
.case-body .prose p:last-child{margin-bottom:0}
.case-body .prose ol,
.case-body .prose ul{margin:0;padding-left:1.2em}
.case-body .prose ul{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.case-body .prose ul:last-child{margin-bottom:0}
.case-body .prose ol{display:flex;flex-direction:column;gap:18px}
.case-body .prose ol + p{margin-top:28px}
.case-body .prose li ul{margin-top:8px}
.case-body blockquote{
  margin:28px 0;
  padding:2px 0 2px 18px;
  border-left:3px solid var(--lilac);
  font-family:var(--font-heading);
  font-stretch:100%;
  font-weight:700;
  font-size:22px;
  line-height:1.35;
  letter-spacing:-.02em;
  color:var(--ink);
}
.case-meta{
  margin:22px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:15px;
  line-height:1.45;
  color:#3B3E58;
}
.case-meta strong{color:var(--ink);font-weight:600}
.case-lead .case-meta{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:0 0;
}
.case-lead .case-meta li{display:inline-flex;align-items:center}
.case-lead .case-meta li+li::before{
  content:"";
  width:4px;
  height:4px;
  margin:0 12px;
  border-radius:50%;
  background:currentColor;
  flex:none;
}
.case-principle{
  margin:18px 0 0;
  font-family:var(--font-heading);
  font-stretch:100%;
  font-weight:500;
  font-size:18px;
  letter-spacing:-.015em;
  color:var(--ink);
}
.case-lead .case-principle{
  font-weight:500;
  color:#3B3E58;
}
.case-visual{
  margin:48px 0;
  width:fit-content;
  max-width:100%;
  border-radius:20px;
  overflow:hidden;
  background:#F4F3F8;
  line-height:0;
}
.case-visual img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
}
.case-visual.is-mark{max-width:280px}
.case-visual.is-mark img{width:100%}
body[data-case="attentive"] .case-body .prose > p.quote-by{
  margin:-12px 0 28px;
  font-size:15px;
  color:var(--subtle);
}
.case-figure{margin:48px 0}
.case-figure .case-visual,
.case-figure .placeholder{margin:0}
.case-figure .placeholder{height:auto;min-height:180px}
.case-figure figcaption,
.case-cap{
  margin:12px 0 0;
  max-width:640px;
  font-size:14px;
  line-height:1.45;
  color:var(--subtle);
}
.case-hero + .case-cap{margin:14px 96px 0}
.exp tr.score td{font-weight:700;color:var(--ink)}
.placeholder{
  margin:48px 0;
  max-width:100%;
  height:260px;
  border-radius:20px;
  background:repeating-linear-gradient(135deg,#F4F3F8 0 12px,#EFEDF5 12px 24px);
  display:flex;
  align-items:flex-end;
  padding:18px 20px;
  color:var(--subtle);
  font-size:14px;
  line-height:1.4;
}
.case-hero-hold{
  display:flex;
  align-items:flex-end;
  padding:36px 48px;
  background:repeating-linear-gradient(135deg,#F4F3F8 0 12px,#EFEDF5 12px 24px);
  color:var(--subtle);
  font-size:15px;
  line-height:1.4;
}
.case-hero-hold p{margin:0;max-width:360px}
.exp{
  width:100%;
  border-collapse:collapse;
  margin:64px 0 48px;
  font-size:15px;
  line-height:1.45;
}
.exp th{
  text-align:left;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:400;
  color:var(--subtle);
  padding:0 18px 10px 0;
}
.exp td{
  padding:12px 18px 12px 0;
  border-top:1px solid rgba(23,26,51,.1);
  vertical-align:top;
}
.exp td:first-child{color:var(--ink);font-weight:600;width:32%}
.exp-scroll{
  min-width:0;
  max-width:100%;
  overflow-x:auto;
}
/* The table keeps its columns readable and scrolls inside the column
   instead of stretching the page. */
.exp-scroll .exp{min-width:680px}
.exp .cut-slot{
  display:block;
  width:64px;
  height:80px;
  border-radius:10px;
  background:repeating-linear-gradient(135deg,#F4F3F8 0 8px,#EFEDF5 8px 16px);
}
.case-foot{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:8px 96px 80px;
  font-family:var(--font-heading);
  font-stretch:100%;
  font-weight:600;
  font-size:15px;
}
.case-foot a{color:var(--ink);text-decoration:none}

@media (max-width:899px){
  .case-card{margin:0 16px}
  .case-hero{height:56vh}
  /* Same labels as the homepage card. On a phone they don't fit in one
     row, so they stack on the white field and the picture sits under them. */
  .case-hero:has(.pills){
    display:flex;
    flex-direction:column;
    height:auto;
  }
  .case-hero:has(.pills) .snap.is-hero{
    position:relative;
    inset:auto;
    height:56vh;
    flex:none;
  }
  .case-hero .pills{
    position:relative;
    order:-1;
    left:auto;
    top:auto;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin:12px 16px;
  }
  .case-lead,.case-head,.case-body,.case-foot{padding-left:28px;padding-right:28px}
  .case-hero{margin-left:28px;margin-right:28px}
  .case-hero + .case-cap{margin-left:28px;margin-right:28px}
  .case-head,.case-body section{grid-template-columns:minmax(0,1fr);gap:20px}
  .tldr-split{grid-template-columns:1fr;row-gap:32px}
  .tldr-title{font-size:24px}
  .case-body blockquote{font-size:20px}
  .case-hero-shot{padding:16px}
  .case-hero-hold{padding:20px}
  .tldr{margin-top:8px}
  .exp{table-layout:fixed}
  .exp th,.exp td{padding-right:10px}
}
@media (max-width:480px){
  .case-head h1,
  .case-lead h1{font-size:32px}
}
/* The hero sits in the same side padding as the title and meta above it.
   The picture stops at the size it was drawn; the field fills that padded box. */
.case-hero.case-hero-conv{
  height:auto;
  aspect-ratio:auto;
  background:#171A33;
}
.case-hero.case-hero-conv .conv-mount{width:100%}
.conv-mount{display:block;width:100%;overflow:hidden}
/* Section pictures live in the text column, so they line up with the
   paragraphs and stop at the page's right padding. */
.case-figure .conv-mount{
  background:#171A33;
  border-radius:28px;
}
