/* The film lives entirely inside the existing Studio window. */
.studio-interface { display: contents; }
.reel-card, .reel-heading { display: none; }
.product.is-reel {
  display: block;
  min-height: 580px;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  background: #070809;
}
.is-reel .studio-interface {
  position: absolute;
  inset: 174px 4% 27px;
  display: grid;
  grid-template-columns: 128px 280px minmax(0, 1fr);
  grid-template-rows: 46px minmax(0, 1fr);
  border: 1px solid #353c46;
  border-radius: 10px;
  background: #08090b;
  box-shadow: 0 20px 65px #0009, 0 0 70px #ef1b2407;
  overflow: hidden;
  transform-origin: 50% 30%;
}
.is-reel .mock-top { padding-inline: 13px; }
.is-reel .mock-nav { padding-top: 16px; }
.is-reel .mock-link { font-size: 9px; min-height: 30px; }
.is-reel .mock-tool { padding: 20px 18px; }
.is-reel .mock-tool h3 { font-size: 21px; margin-block: 8px; }
.is-reel .mock-tool > p { font-size: 10px; }
.is-reel .mock-msg { font-size: 11px; margin-bottom: 15px; }
.is-reel .mock-ai { margin-top: 17px; padding-top: 16px; }
.is-reel .mock-proposal { padding: 10px; }
.is-reel .discord { grid-template-columns: 143px minmax(0, 1fr); }
.is-reel .chat { padding-inline: 15px; }
.is-reel .channel-intro { margin-top: 23px; }
.is-reel .channel-intro p { font-size: 10px; }
.is-reel .preview-notice { margin-top: 17px; font-size: 9px; }
.is-reel .cat { margin-top: 16px; }
.is-reel .ch { min-height: 27px; font-size: 9px; }
.is-reel .theme-grid { margin-top: 10px; gap: 7px; }
.is-reel .theme-card { padding: 9px; }
.is-reel .theme-card b { font-size: 9px; margin-block: 7px 5px; }
.is-reel .theme-card p { font-size: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-reel .theme-card > span { font-size: 7px; margin-top: 6px; }
.is-reel .theme-mode { margin-top: 12px; padding-bottom: 10px; }
.is-reel .review-group { margin-top: 15px; }
.is-reel .review-note { padding: 10px; margin-top: 12px; }
.is-reel .mock-confirm { margin-top: 13px; }
.is-reel[data-scene="review"] .mock-tool > p { font-size: 9px; }
.is-reel[data-scene="review"] .review-group { margin-top: 12px; }
.is-reel[data-scene="review"] .review-group h4 { margin-bottom: 6px; }
.is-reel[data-scene="review"] .review-item { padding-block: 8px; line-height: 1.5; }
.is-reel[data-scene="review"] .review-note { font-size: 9px; line-height: 1.5; padding: 9px; margin-top: 8px; }
.is-reel[data-scene="review"] .mock-confirm { font-size: 8px; margin: 10px 0; }
.is-reel[data-scene="review"] .mock-apply { padding: 9px; }
.is-reel .reel-heading {
  display: block;
  position: absolute;
  top: 35px;
  left: 20px;
  right: 20px;
  text-align: center;
}
.reel-heading-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: #aab2be; }
.reel-heading-logo img { border-radius: 7px; }
.reel-heading h3 { overflow: hidden; font-size: clamp(30px, 3.7vw, 48px); line-height: 1.2; letter-spacing: -.045em; margin: 14px 0 0; font-weight: 750; padding-bottom: 5px; }
.reel-heading h3 > span { display: block; }
.is-reel[data-scene="intro"] .studio-interface,
.is-reel[data-scene="outro"] .studio-interface,
.is-reel[data-scene="intro"] .reel-heading,
.is-reel[data-scene="outro"] .reel-heading { display: none; }
.is-reel[data-scene="intro"] .reel-intro,
.is-reel[data-scene="outro"] .reel-outro { display: flex; }
.reel-card {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 24px 70px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 42%, #ef1b2406, transparent 58%);
}
.reel-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 23px; margin-bottom: 26px; }
.reel-card h3 { font-size: clamp(46px, 5.6vw, 73px); line-height: 1.06; letter-spacing: -.055em; font-weight: 750; margin: 0; }
.reel-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.06em; }
.reel-line > span { display: block; }
.reel-intro .reel-line:last-child { color: #727985; }
.reel-outro h3 { font-size: clamp(39px, 4.5vw, 58px); }
.reel-outro .reel-line:last-child { color: #ef1b24; }
.reel-url { position: absolute; bottom: 42px; left: 20px; right: 20px; overflow: hidden; padding: 5px; color: #b2bac6; font-size: 15px; font-weight: 550; letter-spacing: .21em; }
.reel-url > span { display: block; }
/* The JS player seeks these paused animations with the same clock as the film. */
.is-reel.reel-enter .reel-logo { animation: reel-logo-in 1000ms cubic-bezier(.16,1,.3,1) 100ms both; }
.is-reel.reel-enter .reel-line > span { animation: reel-type-up 900ms cubic-bezier(.16,1,.3,1) 350ms both; }
.is-reel.reel-enter .reel-line:nth-child(2) > span { animation-delay: 580ms; }
.is-reel.reel-enter .reel-line:nth-child(3) > span { animation-delay: 810ms; }
.is-reel.reel-enter .reel-card { animation: reel-shot-fade var(--shot-duration, 6.5s) linear both; }
.is-reel.reel-enter .reel-url > span { animation: reel-type-up 1000ms cubic-bezier(.16,1,.3,1) 3200ms both; }
.is-reel.reel-enter .reel-heading { animation: reel-shot-fade var(--shot-duration, 6.5s) linear both; }
.is-reel.reel-enter .reel-heading h3 > span { animation: reel-type-up 900ms cubic-bezier(.16,1,.3,1) 80ms both; }
.is-reel.reel-enter .reel-heading-logo { animation: reel-logo-in 800ms cubic-bezier(.16,1,.3,1) both; }
.is-reel.reel-enter .studio-interface { animation: reel-window var(--shot-duration, 6.5s) cubic-bezier(.2,.75,.25,1) both; }
.is-reel.reel-enter[data-scene="ai"] .mock-msg { animation: reel-detail-in 650ms var(--ease) 1100ms both; }
.is-reel.reel-enter[data-scene="ai"] .mock-msg:nth-child(2) { animation-delay: 1800ms; }
.is-reel.reel-enter[data-scene="ai"] .mock-proposal { animation: reel-detail-in 700ms var(--ease) 2700ms both; }
.is-reel.reel-enter[data-scene="themes"] .theme-card { animation: reel-detail-in 700ms var(--ease) 1050ms both; }
.is-reel.reel-enter[data-scene="themes"] .theme-card:nth-child(2) { animation-delay: 1250ms; }
.is-reel.reel-enter[data-scene="themes"] .theme-card:nth-child(3) { animation-delay: 1450ms; }
.is-reel.reel-enter[data-scene="themes"] .theme-card:nth-child(4) { animation-delay: 1650ms; }
.is-reel.reel-enter[data-scene="review"] .review-group { animation: reel-detail-in 700ms var(--ease) 1100ms both; }
.is-reel.reel-enter[data-scene="review"] .review-group:nth-of-type(3) { animation-delay: 1700ms; }
.is-reel.reel-enter[data-scene="review"] .mock-confirm,
.is-reel.reel-enter[data-scene="review"] .mock-apply { animation: reel-detail-in 700ms var(--ease) 2400ms both; }
.is-reel *, .is-reel *:before, .is-reel *:after { animation-play-state: paused !important; }
@keyframes reel-logo-in { from { opacity: 0; transform: translateY(22px) scale(.85); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes reel-type-up { from { opacity: 0; transform: translateY(115%); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes reel-detail-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@keyframes reel-shot-fade { 0%, 91% { opacity: 1; } 100% { opacity: 0; } }
@keyframes reel-window {
  0% { opacity: 0; transform: perspective(1400px) translateY(65px) rotateX(5deg) scale(.96); }
  16% { opacity: 1; transform: perspective(1400px) translateY(0) rotateX(0deg) scale(1); }
  91% { opacity: 1; transform: perspective(1400px) translateY(-3px) rotateX(0deg) scale(1.014); }
  100% { opacity: 0; transform: perspective(1400px) translateY(-16px) rotateX(0deg) scale(1.022); }
}
@media (max-width: 1100px) {
  .product.is-reel { min-height: 565px; }
  .is-reel .theme-card p { -webkit-line-clamp: 1; }
  .is-reel .studio-interface { inset: 155px 3% 24px; grid-template-columns: 110px 255px minmax(0, 1fr); }
  .is-reel .mock-link { font-size: 8px; }
  .is-reel .mock-tool { padding-inline: 15px; }
  .is-reel .discord { grid-template-columns: 130px minmax(0, 1fr); }
  .is-reel .reel-heading { top: 30px; }
}
@media (max-width: 850px) {
  .product.is-reel { min-height: 550px; }
  .is-reel .studio-interface { grid-template-columns: 260px minmax(0, 1fr); inset: 145px 3% 22px; }
  .is-reel .mock-nav { display: none; }
  .is-reel .reel-heading h3 { font-size: 34px; }
}
@media (max-width: 640px) {
  .product.is-reel { min-height: 550px; aspect-ratio: auto; }
  .is-reel .studio-interface { top: 142px; bottom: 23px; left: 5%; right: auto; width: 480px; grid-template-columns: 255px 225px; grid-template-rows: 42px minmax(0, 1fr); }
  .is-reel .mock-top { gap: 20px; }
  .is-reel .mock-server-pill { margin-left: 0; }
  .is-reel .mock-tool { min-height: 0; border-bottom: 0; border-right: 1px solid #252a31; padding: 19px 16px; }
  .is-reel .mock-preview { min-height: 0; grid-template-rows: 34px minmax(0, 1fr); }
  .is-reel .mock-preview-top { font-size: 7px; }
  .is-reel .mock-preview-top > span { display: none; }
  .is-reel .discord { grid-template-columns: 1fr; }
  .is-reel .chat { display: none; }
  .is-reel .channels { padding-right: 50px; }
  .is-reel .theme-card p { display: none; }
  .is-reel .theme-card b { font-size: 9px; }
  .is-reel .theme-card { padding: 9px; }
  .is-reel .mock-msg { font-size: 11px; }
  .is-reel .reel-heading { top: 30px; left: 15px; right: 15px; }
  .is-reel .reel-heading h3 { font-size: 29px; margin-top: 13px; }
  .reel-heading-logo { font-size: 9px; gap: 7px; }
  .reel-heading-logo img { width: 21px; height: 21px; border-radius: 6px; }
  .reel-logo { width: 64px; height: 64px; border-radius: 19px; margin-bottom: 25px; }
  .reel-card { padding-inline: 18px; }
  .reel-card h3 { font-size: 48px; }
  .reel-outro h3 { font-size: 38px; }
  .reel-url { font-size: 12px; bottom: 39px; letter-spacing: .18em; }
}
@media (max-width: 360px) {
  .product.is-reel { min-height: 530px; }
  .is-reel .studio-interface { left: 4%; top: 132px; width: 460px; grid-template-columns: 242px 218px; }
  .is-reel .reel-heading h3 { font-size: 25px; }
  .is-reel .mock-tool { padding-inline: 13px; }
  .reel-card h3 { font-size: 43px; }
  .reel-outro h3 { font-size: 34px; }
}
.reel-static *, .reel-static *:before, .reel-static *:after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .is-reel *, .is-reel *:before, .is-reel *:after { animation: none !important; }
}
