/* Case study pages. Same format as the live site: title, facts, summary, the deck, a closing quote. Loads after site.css. */

.study section { border-bottom: 0; }
body:has(.study) .veil { background: linear-gradient(to right, rgba(10,10,11,.9), rgba(10,10,11,.78) 55%, rgba(10,10,11,.5)); }
.label, .lede, .hint, .s-quote .by, .next { text-shadow: 0 0 5px rgba(10,10,11,.95), 0 0 16px rgba(10,10,11,.9); }
.s-hero { padding-top: 84px; padding-bottom: 84px; }
.crumb { display: flex; align-items: center; gap: 22px; margin-bottom: 64px; }
.crumb .btn svg { width: 12px; height: 12px; }
.label { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .crumb .btn:hover svg { transform: translateX(-3px); } }

.s-head { display: grid; grid-template-columns: minmax(0, 880px) 296px; justify-content: space-between; gap: 24px; align-items: start; }
.s-head h1 { font: 800 80px/0.96 var(--sans); letter-spacing: -0.045em; text-wrap: balance; }
.s-head h1 em { display: block; font: italic 400 80px/1.05 var(--serif); letter-spacing: -0.02em; color: var(--lilac); padding-top: 4px; }
.meta { margin: 6px 0 0; padding: 22px 22px 0; background: var(--panel); border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.meta div { display: flex; justify-content: space-between; gap: 18px; padding: 0 0 22px; }
.meta dt { font: 500 12px/1.6 var(--mono); color: var(--lilac); flex: none; }
.meta dd { margin: 0; font-size: 13px; line-height: 1.55; text-align: right; color: var(--text); }
.meta img { height: 20px; width: auto; }

.lede { font: 400 28px/1.15 var(--serif); max-width: 780px; margin: 64px 0 0; padding-left: 22px; border-left: 1.5px solid var(--lilac); color: #e9e9ee; text-wrap: pretty; }
.lede b { font-weight: 600; color: #fff; }
.lede i { color: var(--lilac); }

/* the deck */
.s-deck { padding-bottom: 96px; }
.deck { background: #0e0e10; border: 1px solid var(--line); }
.deck .bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 18px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--line); }
.deck .bar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); flex: none; }
.deck .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck .bar .btn { margin-left: auto; flex: none; }
.deck .frame { aspect-ratio: 16 / 9; background: #000; }
.deck iframe { display: block; width: 100%; height: 100%; border: 0; }
.deck:fullscreen { display: flex; flex-direction: column; border: 0; }
.deck:fullscreen .frame { flex: 1; aspect-ratio: auto; min-height: 0; }
.hint { font: 500 12px/1.7 var(--mono); color: var(--dim); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hint a { color: var(--lilac); text-underline-offset: 3px; }

/* reflection, CareerReactor only */
.s-more { padding-bottom: 96px; }
.s-more .title { display: block; font-size: 42px; margin-bottom: 44px; text-transform: none; }
.carry-grid { display: grid; grid-template-columns: minmax(0, 546px) minmax(0, 516px); justify-content: space-between; gap: 48px; padding: 0 24px; }
.carry li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 18px; padding-bottom: 44px; }
.carry li > span { grid-row: span 2; font: 400 30px/1 var(--serif); color: var(--lilac); }
.carry h3 { font: 600 16px/1.4 var(--sans); }
.carry p, .result p:last-child, .limits > p, .limits li { font-size: 13px; line-height: 1.55; color: var(--soft); }
.result { align-self: start; padding-top: 14px; }
.result .k, .limits .k { font: 700 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); margin-bottom: 16px; }
.result .big { font: 400 28px/1.15 var(--serif); margin-bottom: 16px; }
.limits { background: var(--panel); border: 1px solid var(--line); padding: 44px; margin-top: 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.limits .k { font-weight: 500; }
.limits h3 { font: 700 32px/1.15 var(--sans); letter-spacing: -0.03em; margin-bottom: 14px; }
.limits > p { max-width: 660px; }
.limits .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 32px; }
.limits .cols .k { color: var(--dim); margin-bottom: 8px; }

/* closing quote and the way on */
.s-quote { text-align: center; padding-top: 30px; padding-bottom: 120px; }
.s-quote blockquote { font: 400 28px/1.16 var(--serif); max-width: 880px; margin: 0 auto 22px; text-wrap: balance; text-shadow: 0 0 16px rgba(10,10,11,.9); }
.s-quote .by { font: 500 12px/1.6 var(--mono); color: var(--lilac); }
.s-next { position: relative; text-align: center; padding-top: 20px; padding-bottom: 150px; }
.next { display: inline-flex; align-items: center; gap: 18px; font: 700 56px/1.3 var(--sans); letter-spacing: -0.035em; text-transform: uppercase; color: #77777f; text-decoration: none; }
.next b { font-weight: inherit; transition: color 200ms ease; }
.next svg { width: 30px; height: 30px; transition: transform 300ms var(--ease-out); }
.next small { display: block; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--lilac); margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .next:hover b { color: var(--text); } .next:hover svg { transform: translate(5px, -5px); } }
.study .contact { border-top: 1px solid var(--line); padding-top: 120px; }

/* the top of the page plays on load */
.s-in { animation: lift 800ms var(--ease-out-expo) both; animation-delay: calc(120ms + var(--n, 0) * 70ms); }
.s-head h1 .s-in { display: block; animation-name: rise; animation-duration: 1000ms; }

@media (max-width: 1180px) {
  .s-head h1, .s-head h1 em { font-size: 60px; }
  .next { font-size: 44px; }
  .carry-grid { padding: 0; }
}
@media (max-width: 860px) {
  .s-hero { padding-top: 40px; padding-bottom: 56px; }
  .crumb { margin-bottom: 40px; gap: 14px; flex-wrap: wrap; }
  .s-head { grid-template-columns: 1fr; gap: 36px; }
  .s-head h1, .s-head h1 em { font-size: clamp(38px, 11vw, 56px); }
  .meta { margin: 0; padding: 6px 18px; }
  .meta div { padding: 14px 0; border-bottom: 1px solid var(--line); } .meta div:last-child { border-bottom: 0; }
  body:has(.study) .veil { background: rgba(10,10,11,.82); }
  .lede { font-size: 22px; margin-top: 40px; padding-left: 16px; }
  .s-deck, .s-more { padding-bottom: 64px; }
  .deck { margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; }
  .s-more .title { font-size: 32px; margin-bottom: 32px; }
  .carry-grid, .limits .cols { grid-template-columns: 1fr; gap: 24px; }
  .carry li { padding-bottom: 30px; }
  .limits { padding: 28px 22px; }
  .limits h3 { font-size: 26px; }
  .s-quote { padding-bottom: 80px; } .s-quote blockquote { font-size: 22px; }
  .s-next { padding-bottom: 110px; } .next { font-size: 30px; gap: 12px; } .next svg { width: 20px; height: 20px; }
}
