/* Slate's home page. The shared home.css gives the nav, hero type, How stage, closer and footer;
   this adds Slate's own pictures: storyboard sketches that draw themselves in, the take log on
   a phone, a call sheet, and the hand-off to Shutter. Everything rests in its final state under
   reduced motion. */

.logo .clap .stick { transform-origin: 3px 11px; transition: transform .35s cubic-bezier(.65, 0, .25, 1); }
.logo:hover .clap .stick { transform: rotate(-14deg); }

.sl-free { margin: 18px 0 0; color: var(--text-2); font-size: 14px; }
.hero-sub a, .sl-split-copy a:not(.more) { color: var(--text); text-underline-offset: 3px; }

/* Hero: the shot list for a scene, with a phone on set beside it */
.sl-board {
  position: relative;
  margin: 72px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.sl-board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 14px; }
.sl-scene { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; }
.sl-scene b, .sl-mini-scene b { min-width: 30px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--invert); color: var(--on-invert); font: 700 14px var(--mono); text-align: center; }
.sl-board-meta { color: var(--text-2); font: 13px var(--mono); }
.sl-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-right: 23%; }
.sl-card { display: grid; gap: 4px; padding: 10px 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); }
.js .sl-card[data-rise]:nth-child(2) { transition-delay: .12s; }
.js .sl-card[data-rise]:nth-child(3) { transition-delay: .24s; }
.sl-shot { margin-top: 6px; font: 800 22px var(--mono); }
.sl-spec { color: var(--text-2); font-size: 13px; }
.sl-desc { font-size: 15px; }
.sl-state { justify-self: start; margin-top: 6px; padding: 1px 9px; border-radius: 10px; background: var(--invert); color: var(--on-invert); font-size: 12px; font-weight: 700; }
.sl-state.is-next { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Pencil sketches on white: they draw themselves when they come into view. */
.sk { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; background: #fff; }
.sk path { fill: none; stroke: #151515; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .sk path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.45, 0, .2, 1); }
.js .is-in .sk path, .js [data-step="2"] .sk path { stroke-dashoffset: 0; }
.js .is-in .sk path:nth-child(2), .js [data-step="2"] .sk path:nth-child(2) { transition-delay: .25s; }
.js .is-in .sk path:nth-child(3), .js [data-step="2"] .sk path:nth-child(3) { transition-delay: .5s; }
.js .is-in .sk path:nth-child(4), .js [data-step="2"] .sk path:nth-child(4) { transition-delay: .75s; }
.js .is-in .sk path:nth-child(5) { transition-delay: 1s; }
.js .is-in .sk path:nth-child(6) { transition-delay: 1.2s; }

.sl-phone {
  position: absolute;
  right: 28px; bottom: -40px;
  width: 21%;
  min-width: 210px;
  padding: 10px;
  border-radius: 34px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px rgb(0 0 0 / .6);
}
.js .sl-phone[data-rise] { transition-delay: .45s; }
.sl-phone-screen { display: grid; gap: 10px; padding: 22px 14px 18px; border-radius: 26px; background: var(--panel); }
.sl-ph-scene { color: var(--text-2); font-size: 12px; }
.sl-ph-shot { font: 800 52px/0.9 var(--mono); letter-spacing: -0.03em; }
.sl-ph-btn { display: grid; place-items: center; min-height: 42px; border-radius: 8px; background: var(--invert); color: var(--on-invert); font-weight: 700; font-size: 14px; }
.sl-takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-takes li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; }
.sl-takes b { font-family: var(--mono); }
.sl-takes span { flex: 1; font-family: var(--mono); color: var(--text-2); }
.sl-takes em { font-style: normal; font-weight: 700; }
.sl-takes em.ng { color: var(--text-2); }
.sl-takes li.good { border-color: var(--text); }
.sl-takes li.good span { color: var(--text); }

/* How it works: the stage, as panels instead of a photo */
.sl-stage-frame { background: var(--panel); }
.sl-st1, .sl-st2, .sl-st3, .sl-st4 { display: grid; align-content: center; padding: 7% 8%; }
[data-step="1"] .sl-st1, [data-step="2"] .sl-st2, [data-step="3"] .sl-st3, [data-step="4"] .sl-st4 { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.sl-mini-scene { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: clamp(12px, 1.3vw, 16px); }
.sl-mini-scene:first-child { margin-top: 0; }
.sl-mini-scene span, .sl-mini-row span { margin-left: auto; color: var(--text-2); font: 12px var(--mono); }
.sl-mini-row { display: flex; align-items: center; gap: 14px; padding: 7px 0 7px 44px; border-bottom: 1px solid var(--line); font-size: clamp(12px, 1.2vw, 15px); color: var(--text-2); }
.sl-mini-row b { color: var(--text); font-family: var(--mono); }
.js [data-step="1"] .sl-mini-row { animation: sl-in .5s cubic-bezier(.2, .7, .1, 1) both; }
.js [data-step="1"] .sl-mini-row:nth-of-type(3) { animation-delay: .1s; }
.js [data-step="1"] .sl-mini-row:nth-of-type(4) { animation-delay: .2s; }
@keyframes sl-in { from { opacity: 0; transform: translateX(-10px); } }
.sl-canvas { width: 78%; margin: 0 auto; }
.sl-canvas .sk { box-shadow: 0 0 0 1px var(--line); }
.sl-tools-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.sl-tools-row span { padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-size: 12px; }
.sl-day { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--raised); }
.sl-day-n { color: var(--text-2); font-size: 13px; font-weight: 600; }
.sl-day-where { font: 700 clamp(22px, 2.6vw, 32px)/1 var(--display); font-stretch: 85%; }
.sl-day-line { color: var(--text-2); font-size: 14px; }
.sl-day-est { font-size: 14px; font-weight: 600; }
.sl-day-btns { display: flex; gap: 6px; margin-top: 8px; }
.sl-day-btns i { padding: 5px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: 600 13px var(--font); }
.sl-day-btns i.on { background: var(--invert); color: var(--on-invert); border-color: var(--invert); }
.sl-log { display: grid; gap: 12px; }
.sl-log-shot { display: flex; align-items: baseline; gap: 14px; font: 800 clamp(48px, 7vw, 92px)/0.9 var(--mono); letter-spacing: -0.03em; }
.sl-log-shot small { font: 600 15px var(--font); color: var(--text-2); letter-spacing: 0; }
.sl-log-take { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--text); font: 600 15px var(--mono); }
.sl-log-take em { margin-left: auto; padding: 2px 10px; border-radius: 10px; background: var(--invert); color: var(--on-invert); font: 700 13px var(--font); font-style: normal; }
.sl-log-note { color: var(--text-2); font-size: 15px; }

/* Split sections: copy beside a picture of the product */
.sl-split {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.sl-split-rev .sl-split-copy { order: 2; }
.sl-split-copy p { margin: 24px 0 0; max-width: 52ch; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.sl-split-copy .aside { font-size: 15px; }
.sl-split-copy .more { display: inline-block; margin-top: 24px; }
.sl-kicker { color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.sl-sheet { display: grid; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: #fafafa; color: #0a0a0a; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.sl-sheet .sl-kicker { color: #555; }
.sl-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid #0a0a0a; }
.sl-sheet-head > div:first-child { display: grid; gap: 4px; }
.sl-sheet-title { font: 800 clamp(28px, 3.4vw, 42px)/1 var(--display); font-stretch: 80%; }
.sl-sheet-meta { color: #555; font-size: 14px; }
.sl-call { display: grid; justify-items: end; padding: 10px 14px; border-radius: var(--r-md); background: #0a0a0a; color: #fafafa; }
.sl-call span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sl-call b { font: 800 32px/1 var(--mono); }
.sl-facts { display: grid; gap: 1px; margin: 0; border-radius: var(--r-md); overflow: hidden; background: #d6d6d6; border: 1px solid #d6d6d6; }
.sl-facts div { padding: 10px 12px; background: #fff; }
.sl-facts dt { color: #555; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sl-facts dd { margin: 3px 0 0; font-weight: 560; font-size: 15px; }
.sl-people { width: 100%; border-collapse: collapse; font-size: 14px; }
.sl-people td { padding: 8px 6px; border-top: 1px solid #d6d6d6; }
.sl-people td:first-child { font: 700 14px var(--mono); }
.sl-people td:nth-child(2) { font-weight: 650; }
.sl-people td:last-child { color: #555; }

/* On set: full-bleed photo with the copy over it */
.sl-onset { position: relative; }
.sl-onset-img { position: relative; height: min(92vh, 920px); }
.sl-onset-img img { width: 100%; height: 100%; object-fit: cover; }
.sl-onset-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 10 10 / .93) 0%, rgb(10 10 10 / .82) 42%, rgb(10 10 10 / .1) 75%), linear-gradient(180deg, rgb(10 10 10 / 0) 50%, #0a0a0a 100%); }
.sl-onset-img .burnin-corner { top: 14px; bottom: auto; }
.sl-onset-copy { position: absolute; left: max(24px, calc((100vw - 1240px) / 2)); top: 50%; transform: translateY(-50%); max-width: 600px; z-index: 2; }
.js .sl-onset-copy[data-rise] { transform: translateY(calc(-50% + 22px)); }
.js .sl-onset-copy[data-rise].is-in { transform: translateY(-50%); }
.sl-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.sl-points li { max-width: 52ch; color: #d4d4d4; font-size: 17px; line-height: 1.55; }
.sl-points b { color: #fafafa; }

/* With Shutter: Shutter's notes column, with the take from set */
.sl-review { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.sl-review-file { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sl-review-file span { color: var(--text-2); font: 13px var(--mono); }
.sl-review-take { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--raised); }
.sl-review-main { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.sl-review-main em { padding: 0 8px; border-radius: 9px; background: var(--invert); color: var(--on-invert); font: 700 11px var(--font); font-style: normal; }
.sl-review-note { color: var(--text-2); font-size: 14px; }
.sl-review-note-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 4px 4px; }
.sl-review-note-row b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--invert); color: var(--on-invert); font: 700 12px var(--font); }
.sl-review-note-row span { color: var(--text-2); font: 12px var(--mono); }
.sl-review-note-row p { margin: 4px 0 0; }

@media (max-width: 960px) {
  .sl-strip { padding-right: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl-phone { position: relative; right: auto; bottom: auto; width: min(280px, 80%); margin: 24px auto -60px; }
  .sl-board { margin-bottom: 60px; }
  .sl-split { grid-template-columns: minmax(0, 1fr); padding: 100px 0; gap: 40px; }
  .sl-split-rev .sl-split-copy { order: 0; }
}
@media (max-width: 720px) {
  .sl-split { width: calc(100% - 32px); }
  .sl-board { margin-top: 44px; padding: 12px; }
  .sl-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sl-card { grid-template-columns: 120px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .sl-card .sk { grid-row: 1 / span 4; }
  .sl-card .sl-shot { margin-top: 0; }
  .sl-board-meta { display: none; }
  .sl-split-copy p { font-size: 16px; }
  .sl-sheet { padding: 18px; }
  .sl-people td:last-child { display: none; }
  .sl-onset-img { height: 52vh; }
  .sl-onset-img::after { background: linear-gradient(180deg, rgb(10 10 10 / 0) 45%, #0a0a0a 100%); }
  .sl-onset-copy { position: relative; left: auto; top: auto; z-index: 2; transform: none; padding: 0 16px; margin-top: 8px; }
  .js .sl-onset-copy[data-rise], .js .sl-onset-copy[data-rise].is-in { transform: none; }
  .sl-points li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sk path { stroke-dashoffset: 0; transition: none; }
  .js [data-step="1"] .sl-mini-row { animation: none; }
  .logo .clap .stick { transition: none; }
}
