/* =========================================================
   Case study pages, built on styles.css
   ========================================================= */

/* arial narrow body copy: same white, -2%, lowercase, softly blurred treatment */
.sans {
  --rest: var(--soft);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.02em;
  text-transform: lowercase;
  color: #fff;
  filter: blur(calc(var(--rest) + var(--fx)));
}

.case main { padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }

/* ---------- intro ---------- */
.case-hero { padding: clamp(72px, 11vw, 200px) 0 clamp(40px, 5vw, 90px); }
.case-kicker { font-size: clamp(14px, 1.35vw, 22px); margin-bottom: clamp(14px, 1.6vw, 28px); }
.case-title {
  font-family: var(--serif);
  font-weight: 100;
  font-size: clamp(54px, 9.6vw, 176px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: none;
  color: #f4f1ea;
  text-shadow: 0 0 .25em rgba(255, 250, 235, .22);
}
.case-title span, .case-title em { display: inline-block; }
.case-title em { font-weight: 300; font-style: italic; letter-spacing: -.02em; }
.case-lede {
  max-width: 20em;
  margin-top: clamp(18px, 2vw, 36px);
  font-size: clamp(20px, 2.55vw, 44px);
  line-height: 1.25;
}

/* ---------- framed images ---------- */
.frame { margin-top: clamp(20px, 2.4vw, 40px); }
.frame img { width: 100%; height: auto; }
.frame--knockout img { filter: url(#knockout); } /* image has a grey backdrop baked in */
.frame--paper { padding: clamp(16px, 3vw, 52px); background: #f3f1ec; } /* transparent images with dark text need a light page */
.note { margin-top: clamp(10px, 1vw, 16px); font-size: clamp(14px, 1.1vw, 18px); color: var(--muted); }

/* ---------- facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.9vw, 52px);
  padding-top: clamp(56px, 7vw, 120px);
}
.fact { border-top: 1px solid rgba(255,255,255,.16); padding-top: clamp(14px, 1.4vw, 24px); }
.fact__label {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  font-size: clamp(22px, 2.1vw, 36px);
  letter-spacing: -.02em;
  filter: none;
  margin-bottom: clamp(12px, 1.2vw, 20px);
}
.fact__list { font-size: clamp(17px, 1.45vw, 24px); line-height: 1.3; }
.fact__list li + li { margin-top: .55em; }

/* ---------- chapters ---------- */
.chapter { padding-top: clamp(110px, 13vw, 240px); }
.statement {
  max-width: 17em;
  font-family: var(--serif);
  font-weight: 100;
  font-size: clamp(34px, 4.8vw, 88px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-transform: none;
  color: #f4f1ea;
}
.statement em { font-weight: 300; font-style: italic; letter-spacing: -.015em; }
.statement--hmw { max-width: 19em; }
.aside {
  max-width: 28em;
  margin-top: clamp(16px, 1.8vw, 32px);
  font-size: clamp(19px, 1.9vw, 32px);
  line-height: 1.3;
}
.caption {
  max-width: 34em;
  margin: clamp(56px, 6vw, 110px) 0 0;
  font-size: clamp(18px, 1.65vw, 28px);
  line-height: 1.3;
}
.chapter > .eyebrow + .caption { margin-top: 0; }

/* ---------- the demo, threaded through a strip of 35mm film ---------- */
.reel {
  position: relative;
  margin-top: clamp(20px, 2.4vw, 40px);
  background: #17120f;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.reel__strip {
  height: clamp(22px, 3vw, 50px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1%;
}
.reel__strip i {
  width: 3.3%;
  aspect-ratio: 1.15;
  max-height: 64%;
  border-radius: 18%;
  background: #030303;
  box-shadow: inset 0 0 5px rgba(0,0,0,.9);
}
.reel__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  filter: contrast(1.03) saturate(.95);
}
.reel__toggle {
  position: absolute;
  right: 1.4%;
  top: 0;
  height: clamp(22px, 3vw, 50px);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: clamp(12px, 1.05vw, 17px);
  color: var(--accent);
}
.reel__toggle:hover { color: #fff; }

/* ---------- takeaways: reuse the interview card hover ---------- */
.takeaways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 44px);
  margin-top: clamp(28px, 3.4vw, 60px);
}
.quote.takeaway {
  aspect-ratio: auto;
  min-height: clamp(260px, 26vw, 440px);
  justify-content: flex-start;
  padding: clamp(24px, 3.2vw, 56px);
}
.takeaway__label { font-size: clamp(16px, 1.4vw, 24px); margin-bottom: clamp(18px, 2vw, 36px); position: relative; }
.takeaway__list {
  position: relative;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.35vw, 42px);
  line-height: 1.22;
  letter-spacing: -.02em;
  text-transform: lowercase;
  filter: blur(var(--soft));
  color: #b9b6b0;
  transition: color .7s var(--ease), transform .9s var(--ease);
}
.takeaway__list li + li { margin-top: .6em; }
.takeaway:hover .takeaway__list { color: #f6f4ef; transform: translateY(-2px); }
.takeaways:has(.takeaway:hover) .takeaway:not(:hover) { opacity: .45; filter: blur(1.5px); }
.takeaways:has(.takeaway:hover) .takeaway.reveal.in { transition-delay: 0s; transition-duration: .6s; }

/* ---------- more work ---------- */
.more .work-grid { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 700px) {
  .facts, .takeaways { grid-template-columns: 1fr; }
  }

/* =========================================================
   Type hierarchy + accent
   statement (largest) > section heading > lede/labels (white) > secondary copy (grey)
   ========================================================= */
.case .eyebrow {
  font-size: clamp(24px, 3.5vw, 62px);   /* sits just under the 4.8vw statements */
  margin-left: 0;
  margin-bottom: clamp(18px, 2vw, 34px);
}

/* secondary copy drops to warm grey so the statements and lede lead */
.case-kicker, .aside, .caption, .fact__list { color: var(--muted); }

/* accent on the few words that matter most */
.statement em, .case-title em { color: var(--accent); }
.takeaway__label { color: var(--accent); }
.fact__label { color: #fff; }

.takeaway:hover .quote__name::after { background: var(--accent); }

/* =========================================================
   Extra building blocks (first used on the Bloc page)
   ========================================================= */
.inline-link { color: var(--accent); border-bottom: 1px solid currentColor; transition: opacity .3s var(--ease); }
.inline-link:hover { opacity: .7; }

/* numbered lists in arial narrow */
.steps {
  counter-reset: step;
  max-width: 40em;
  margin-top: clamp(16px, 1.8vw, 30px);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: clamp(12px, 1.2vw, 20px) 0 clamp(12px, 1.2vw, 20px) 2.6em;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: clamp(18px, 1.65vw, 28px);
  line-height: 1.3;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: clamp(12px, 1.2vw, 20px);
  color: var(--accent);
}

/* images side by side */
.glimpses { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(14px, 2.4vw, 44px); align-items: start; }
.glimpses__stack { display: grid; gap: clamp(14px, 2.4vw, 44px); }
.pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 2.4vw, 44px); align-items: center; }
.glimpses .frame, .pair .frame, .glimpses__stack .frame { margin-top: clamp(20px, 2.4vw, 40px); }
.glimpses__stack .frame + .frame { margin-top: 0; }

/* process, drawn as two timelines */
.process { margin-top: clamp(28px, 3vw, 52px); }
.process__label { font-size: clamp(16px, 1.35vw, 22px); color: var(--muted); margin-bottom: clamp(12px, 1.2vw, 20px); }
.process__label span { margin-left: .8em; color: #fff; }
.process__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 28px);
  counter-reset: p;
}
.process__row li {
  counter-increment: p;
  position: relative;
  padding-top: clamp(16px, 1.6vw, 26px);
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.15;
}
.process__row li::before {          /* the node on the line */
  content: "";
  position: absolute; left: 0; top: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
}
.process__row li em { display: block; margin-top: .5em; font-style: normal; font-size: .62em; line-height: 1.3; color: var(--muted); }
.process--real .process__row li { border-top-color: var(--accent); }
.process--real .process__row li::before { background: var(--accent); }
.process__loop { margin-top: clamp(12px, 1.2vw, 20px); font-size: clamp(15px, 1.25vw, 20px); color: var(--accent); }
.process__loop::before { content: "\21BA  "; }
.process + .statement { margin-top: clamp(80px, 9vw, 160px); }

/* image + text */
.duo { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 90px); }
.duo__media { margin-top: 0; max-width: 360px; }
.duo .caption { margin-top: 0; }

/* card grids reuse the interview card hover */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 44px); margin-top: clamp(4px, 1vw, 16px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards .quote.takeaway { min-height: clamp(200px, 20vw, 340px); }
.cards:has(.takeaway:hover) .takeaway:not(:hover) { opacity: .45; filter: blur(1.5px); }
.persona__list { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(10px, 1vw, 16px) clamp(16px, 1.6vw, 28px); font-size: clamp(16px, 1.35vw, 22px); line-height: 1.3; color: var(--muted); transition: color .7s var(--ease); }
.persona__list dt { color: #fff; }
.persona__list dd { margin: 0; }
.persona:hover .persona__list { color: #d9d6d0; }

/* decisions: an arial lead-in, then the decision in serif */
.decisions { counter-reset: d; margin-top: clamp(8px, 1vw, 16px); }
.decisions li {
  counter-increment: d;
  position: relative;
  padding: clamp(28px, 3vw, 52px) 0 clamp(28px, 3vw, 52px) clamp(48px, 6vw, 110px);
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--serif);
  font-weight: 100;
  font-size: clamp(28px, 3.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -.03em;
  text-transform: none;
  color: #f4f1ea;
}
.decisions li::before {
  content: counter(d, decimal-leading-zero);
  position: absolute; left: 0; top: clamp(34px, 3.6vw, 62px);
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 22px);
  letter-spacing: -.02em;
  color: var(--accent);
}
.decisions li span { display: block; margin-bottom: .5em; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.3; color: var(--muted); }
.decisions li em { font-weight: 300; font-style: italic; color: var(--accent); }

/* phone screenshots in a row */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 36px); margin: clamp(8px, 1vw, 16px) 0 clamp(20px, 2.4vw, 40px); }
.phones img { width: 100%; height: auto; border-radius: clamp(10px, 1.4vw, 22px); }

@media (max-width: 900px) {
  .glimpses, .pair, .duo, .cards, .cards--3 { grid-template-columns: 1fr; }
  .process__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo__media { max-width: 260px; }
}

/* =========================================================
   Catalog Rail page pieces
   ========================================================= */
/* hero: phone and tile gifs side by side */
.showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 6vw, 120px);
  margin-top: clamp(20px, 2.4vw, 40px);
}
.showcase img { height: auto; }
.showcase img:first-child { width: min(36vw, 400px); }
.showcase img:last-child  { width: min(36vw, 400px); border-radius: 3.4% / 2.4%; }

/* rows of tiles, corners clipped to match the tile's own radius */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 36px);
  margin-top: clamp(20px, 2.4vw, 40px);
}
.tiles + .tiles { margin-top: clamp(14px, 2vw, 32px); }
.tiles figure { margin: 0; }
.tiles img { width: 100%; height: auto; border-radius: 3.4% / 2.4%; transition: opacity .5s var(--ease); }
.tiles figcaption { margin-top: .8em; font-size: clamp(14px, 1.2vw, 20px); color: var(--muted); }
.tiles .is-pick figcaption { color: #fff; }
.tiles figcaption span { margin-left: .5em; color: var(--accent); }
.tiles:not(.tiles--final) figure:not(.is-pick) img { opacity: .62; }
.tiles:not(.tiles--final):hover figure img { opacity: .62; }
.tiles:not(.tiles--final) figure:hover img { opacity: 1; }
.tiles + .decisions { margin-top: clamp(48px, 6vw, 110px); }

/* motion spec as a quiet table */
.spec { margin-top: clamp(24px, 3vw, 52px); }
.spec__row {
  display: grid;
  grid-template-columns: 1.1fr 2.2fr .6fr .7fr;
  gap: clamp(10px, 1.6vw, 28px);
  padding: clamp(12px, 1.2vw, 20px) 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 1.3;
  color: var(--muted);
}
.spec__row span:first-child { color: #fff; }
.spec__row span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.spec__head { border-top: 0; font-size: clamp(13px, 1.05vw, 17px); }
.spec__head span:first-child { color: var(--muted); }

@media (max-width: 700px) {
  .showcase { gap: 16px; }
  .showcase img:first-child, .showcase img:last-child { width: 46vw; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__row { grid-template-columns: 1fr 1.6fr; }
  .spec__row span:nth-child(n+3) { display: none; }
}
