.story-studio {
  --paper: #fffaf0;
  --ink: #161725;
  --yellow: #ffc82d;
  --line: #e9dfcc;
  --muted: #615b55;
  --stage: #252587;
  --stage-deep: #181744;
  overflow-x: clip;
}

.story-studio .header { background: color-mix(in srgb, var(--paper) 94%, transparent); }
.story-studio .nav-wrap { height: 76px; }
.story-studio .brand > span { letter-spacing: -.075em; }
.story-studio .navigation > a { font-size: .875rem; }
.story-studio .button { border-radius: 12px; min-height: 48px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.story-studio .button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 0 #16172524; }
.story-studio .button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.story-studio .button:focus-visible { outline-color: #2543b6; }

.studio-intro { position: relative; text-align: center; padding-block: clamp(40px, 5vw, 76px) clamp(34px, 4vw, 62px); }
.studio-intro h1 {
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.073em;
  margin: 0 auto 23px;
}
.studio-highlight { position: relative; isolation: isolate; white-space: nowrap; padding-inline: .055em; }
.studio-highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 54% -.035em .055em;
  transform: rotate(-2deg);
  background: var(--yellow);
  transform-origin: left center;
  animation: marker-in .75s .18s cubic-bezier(.22,1,.36,1) both;
}
.studio-intro p { margin: 0 0 23px; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.45; }
.studio-start { padding-inline: 24px; min-width: 204px; }
.studio-arrow { display: inline-block; transition: transform .25s ease; }
.studio-start:hover .studio-arrow { transform: translate(3px,-3px); }
.studio-intro h1, .studio-intro p, .studio-start { animation: studio-in .65s cubic-bezier(.2,.75,.2,1) both; }
.studio-intro p { animation-delay: .1s; }
.studio-start { animation-delay: .18s; }

.studio-screening {
  --gallery-line: #e3dbcd;
  --gallery-muted: #625a50;
  padding-block: clamp(24px, 3.5vw, 49px) clamp(28px, 4vw, 56px);
  border-block: 1px solid var(--gallery-line);
}
.screening-wrap {
  display: grid;
  grid-template-columns: minmax(192px, 1.12fr) minmax(0, 3.88fr);
  column-gap: clamp(22px, 3.5vw, 50px);
  row-gap: 16px;
}
.screening-guide, .screening-examples {
  display: grid;
  grid-row: span 2;
  grid-template-rows: auto 1fr;
  grid-template-rows: subgrid;
  align-items: start;
  min-width: 0;
}
.screening-guide h2, .screening-examples > h2 {
  margin: 0;
  font: 700 clamp(20px, 2.2vw, 32px)/1.1 var(--display);
  letter-spacing: -.045em;
}
.screening-guide h2 { font-size: clamp(19px, 1.85vw, 26px); }
.screening-guide-copy p {
  margin: 6px 0 0;
  color: var(--gallery-muted);
  font-size: .84rem;
  line-height: 1.35;
}
.guide-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 11px;
  border: 0;
  background: transparent;
}
.guide-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--yellow);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 12px #110d144d;
  transition: background-color .2s, transform .2s;
}
.guide-play svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.guide-play:hover span { background: #ffda62; transform: translateY(-2px); }
.guide-play:focus-visible { outline: 0; }
.guide-play:focus-visible span { outline: 2px solid #fff; outline-offset: 3px; }
.studio-reels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 26px);
}
.reel-tile {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--gallery-line);
  animation: studio-in .72s .15s cubic-bezier(.2,.75,.2,1) both;
}
.reel-tile:nth-child(2) { animation-delay: .24s; }
.reel-tile:nth-child(3) { animation-delay: .33s; }
.reel-tile:nth-child(4) { animation-delay: .42s; }
.story-studio .reel-frame {
  max-height: none;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1b1727;
  border-radius: 10px;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.reel-tile:hover .reel-frame:not(.is-playing) { transform: translateY(-3px); }
.story-studio .reel-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reel-play {
  position: absolute;
  z-index: 2;
  inset-block-end: 9px;
  inset-inline-end: 9px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #fff7e8;
  border-radius: 50%;
  color: var(--ink);
  background: #fff4e2;
  box-shadow: 0 4px 15px #1c132970;
  transition: background-color .2s, transform .2s;
}
.reel-play svg { width: 19px; height: 19px; fill: currentColor; }
.reel-play:hover { transform: scale(1.06); background: #ffd079; }
.reel-play:focus-visible { outline: 2px solid #fff6e4; outline-offset: 2px; }
.reel-meta {
  display: grid;
  align-content: space-between;
  gap: 9px;
  padding: 12px 1px 0;
}
.reel-meta h3 { margin: 0; font: 700 clamp(16px, 1.5vw, 21px)/1.2 var(--display); letter-spacing: -.035em; }
.reel-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 8px;
  color: var(--gallery-muted);
  font-size: .76rem;
}
.reel-details a { text-underline-offset: 3px; }
.reel-details a:hover { color: var(--ink); }
.reel-pagination { display: none; }

.studio-includes { border-bottom: 1px solid var(--line); }
.studio-includes ul {
  margin-block: 0;
  padding: 19px 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3.7vw, 68px);
  font: 700 clamp(15px, 2vw, 23px)/1.15 var(--display);
  letter-spacing: -.02em;
}
.studio-includes li + li::before { content: "·"; color: #b27513; margin-right: clamp(12px, 3.7vw, 68px); }
.studio-process { padding-block: clamp(52px, 8vw, 108px); }
.studio-process .section-heading { margin-bottom: 32px; }
.studio-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}
.studio-steps li { padding: 24px; border: 1px solid #e6dcc8; border-radius: 17px; background: #fffdf8; transition: transform .22s, border-color .22s; }
.studio-steps li:hover { transform: translateY(-4px); border-color: #cf9c2c; }
.studio-steps h3 { margin: 12px 0 8px; }
.studio-steps p { margin: 0; color: var(--muted); }
.studio-steps .step-number { display: grid; place-items: center; height: 36px; width: 36px; min-width: 0; border: 0; background: #fce5a1; color: var(--ink); border-radius: 50%; font-size: 15px; }
.studio-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  align-items: center;
  gap: 36px;
  padding: clamp(27px, 5vw, 72px);
  background: #ffe098;
  border: 1px solid #f3d37e;
  border-radius: 25px;
  overflow: hidden;
}
.studio-offer h2 { margin: 0 0 20px; }
.studio-offer .eyebrow { margin-bottom: 10px; }
.studio-facts { list-style: none; margin: 0 0 13px; padding: 0; }
.studio-facts li::before { content: "✓"; display: inline-block; color: #5c4612; margin-right: 8px; }
.studio-terms { font-size: .82rem; color: #684e28; }
.studio-extra-example { position: relative; height: clamp(220px, 24vw, 332px); min-width: 0; overflow: hidden; border-radius: 16px; border: 2px solid #ffdd86; isolation: isolate; box-shadow: 0 18px 32px #66461035; }
.studio-extra-example img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; transition: transform .4s ease; }
.studio-extra-example:hover img { transform: scale(1.07); }
.studio-extra-example span { position: absolute; inset: auto 0 0; padding: 38px 15px 14px; background: linear-gradient(transparent, #191727ee); color: #fffaf0; font: 700 clamp(16px, 2vw, 24px)/1.1 var(--display); }
.studio-extra-example small { display: block; margin-top: 6px; font: 400 .78rem/1.3 var(--body); color: #ffe8ac; }
.story-studio .last-cta { background: #fbd156; }
.story-studio .faq-list details[open] > p { animation: studio-in .23s ease both; }
.story-studio [data-reveal].revealing { animation: studio-in .55s cubic-bezier(.2,.75,.2,1) both; }

.story-studio .order-dialog {
  width: min(790px,calc(100% - 32px));
  padding: 0;
  border-radius: 21px;
  overflow: hidden;
  max-height: min(850px, calc(100dvh - 38px));
  background: var(--paper);
}
.story-studio .order-dialog[open] { display: flex; flex-direction: column; animation: order-in .28s cubic-bezier(.18,.8,.29,1) both; }
.order-top { position: relative; padding: 20px clamp(16px, 4vw, 32px) 13px; flex: none; border-bottom: 1px solid var(--line); }
.story-studio .order-top > .dialog-close { top: 12px; right: 15px; margin: 0; min-width: 40px; min-height: 40px; }
.story-studio .order-top h2 { font-size: clamp(27px, 4.6vw, 46px); margin: 9px 0 0; letter-spacing: -.052em; }
.order-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px clamp(16px, 4vw, 32px) 20px; }
.order-footer { flex: none; padding: 12px clamp(16px, 4vw, 32px) max(12px,env(safe-area-inset-bottom)); background: #fffaf0; border-top: 1px solid var(--line); box-shadow: 0 -7px 22px #34240d0a; }
.order-footer .button { min-height: 51px; text-align: center; justify-content: center; gap: 10px; }
.order-pay-bar { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: clamp(12px,3vw,24px); }
.order-total { display: flex; flex-direction: column; line-height: 1.1; }
.order-total > span { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.order-total > strong { font: 700 clamp(24px,5vw,32px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.order-total small { font: 700 .66rem/1 var(--body); letter-spacing: 0; }
.order-pay-bar .button { min-width: 0; }
.order-footer .dialog-footnote { margin: 7px 0 0; text-align: center; }
.brief-types { min-width: 0; border: 0; padding: 0; margin: 0 0 15px; }
.brief-types legend { margin-bottom: 8px; font-size: .89rem; font-weight: 700; }
.brief-types legend span, .brief-detail summary small { font-size: .73rem; font-weight: 400; color: var(--muted); margin-left: 5px; }
.brief-type-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.brief-type-grid label { display: block; position: relative; min-width: 0; cursor: pointer; }
.brief-type-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.brief-type-grid label > span { display: grid; place-items: center; min-height: 44px; padding: 5px; font-size: .8rem; line-height: 1.15; text-align: center; border: 1px solid #e1d5bf; border-radius: 8px; background: #fffdfa; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.brief-type-grid input:checked + span { background: #ffe89e; border-color: #b1780d; box-shadow: inset 0 0 0 1px #b1780d; font-weight: 700; }
.brief-type-grid input:focus-visible + span { outline: 3px solid #2456c9; outline-offset: 2px; }
.story-studio .brief-label { font-size: .88rem; margin-bottom: 6px; font-weight: 700; }
.story-studio #video-brief-form textarea { min-height: 69px; margin-bottom: 12px; padding: 10px 11px; border-color: #e1d5bf; }
.brief-detail { border-top: 1px solid var(--line); }
.brief-detail > summary { display: flex; align-items: center; padding: 10px 0; font-weight: 700; font-size: .9rem; cursor: pointer; list-style: none; min-height: 43px; }
.brief-detail > summary::-webkit-details-marker { display: none; }
.brief-detail > summary::after { content: "+"; margin-left: auto; font-size: 1.18rem; line-height: 1; }
.brief-detail[open] > summary::after { content: "−"; }
.brief-detail[open] .material-controls { animation: studio-in .22s ease both; }
.material-hint { color: var(--muted); font-size: .78rem; margin: 0 0 8px; }
.material-controls { display: grid; gap: 6px; }
.material-pick { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf6; }
.material-pick svg { width: 21px; height: 21px; }
.material-pick strong { display: block; font-size: .83rem; line-height: 1.2; }
.material-pick small { display: block; font-size: .71rem; color: var(--muted); line-height: 1.3; margin-top: 3px; }
.material-link { margin: 10px 0 13px; }
.material-link input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #e1d5bf;
  border-radius: 9px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 16px;
}
.material-link input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.material-pick button, .material-list button { padding: 5px 8px; min-height: 38px; border-radius: 7px; border: 1px solid #e4d9c8; background: #fffaf0; font-size: .76rem; font-weight: 700; }
.material-list { display: grid; gap: 5px; list-style: none; margin: 8px 0 0; padding: 0; }
.material-list li { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; animation: studio-in .22s ease both; }
.material-list img { width: 35px; height: 35px; object-fit: contain; border-radius: 4px; background: #ede5d7; }
.material-list span { font-size: .79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-list button { min-height: 34px; color: #772b20; }
.material-status { font-size: .79rem; margin: 5px 0 0; color: #873e2d; }
.material-status:empty { display: none; }
.story-studio .brief-review { display: flex; justify-content: space-between; align-items: start; gap: 12px; border: 1px solid #e9dcc5; background: #fffdf7; padding: 9px 10px; border-radius: 9px; margin: 0; }
.brief-review > div { min-width: 0; }
.brief-review > div > span { font-size: .64rem; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.brief-review > div > p { margin: 1px 0 0; line-height: 1.4; font-size: .84rem; overflow-wrap: anywhere; }
.brief-review [data-summary-materials] { color: var(--muted); font-size: .74rem; margin-top: 3px; }
.story-studio .brief-review > button { flex: none; min-height: 36px; font-size: .79rem; }
.story-studio .package-options { margin: 12px 0 8px; }
.story-studio .package-choice-text { gap: 3px; }
.story-studio .brief-includes { font-size: .8rem; margin-bottom: 10px; line-height: 1.5; }
.story-studio .revision-option { margin: 9px 0; }
.story-studio .checkout-description { margin-bottom: 1px; font-size: .78rem; }
@keyframes marker-in { from { transform: scaleX(.03) rotate(-2deg); opacity: .45; } to { transform: scaleX(1) rotate(-2deg); opacity: 1; } }
@keyframes studio-in { from { opacity: .3; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes order-in { from { opacity: .6; transform: translateY(15px) scale(.986); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 800px) {
  .story-studio .nav-wrap { height: 62px; }
  .story-studio .brand > span { font-size: 31px; }
  .story-studio .brand img { width: 33px; height: 33px; }
  .story-studio .mobile-order { padding: 9px max(16px,env(safe-area-inset-left)) max(9px,env(safe-area-inset-bottom)); }
  .story-studio .mobile-order .button { font-size: .83rem; gap: 9px; min-width: 0; }
  .studio-intro { padding-block: 31px 24px; }
  .studio-intro h1 { font-size: clamp(39px, 10vw, 69px); line-height: .94; margin-bottom: 16px; }
  .studio-intro p { max-width: 36ch; margin: 0 auto; }
  .studio-start { display: none; }
  .studio-screening { padding: 16px 0 14px; }
  .screening-wrap { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .screening-guide {
    width: min(calc(100% - 32px), 510px);
    margin-inline: auto;
    grid-row: auto;
    grid-template-rows: auto;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 47%);
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid var(--gallery-line);
    border-radius: 13px;
    background: #fcf8ef;
  }
  .screening-guide-copy { padding-inline-start: 2px; }
  .screening-guide h2 { font-size: clamp(22px, 6.5vw, 33px); }
  .guide-play { padding: 7px; }
  .guide-play span { padding-inline: 8px; font-size: .77rem; gap: 4px; }
  .guide-play svg { width: 15px; height: 15px; }
  .screening-examples { display: block; grid-row: auto; }
  .screening-examples > h2 { margin: 0 16px 12px; font-size: clamp(23px, 5.9vw, 30px); }
  .studio-reels {
    --reel-width: clamp(148px, min(52vw, calc((100svh - 337px) * .5625)), 255px);
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: var(--reel-width);
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding-block: 3px 5px;
    padding-inline: 16px calc(100% - var(--reel-width) - 16px);
  }
  .studio-reels::-webkit-scrollbar { display: none; }
  .reel-tile { scroll-snap-align: start; }
  .reel-tile:hover .reel-frame:not(.is-playing) { transform: none; }
  .reel-meta { padding-top: 9px; }
  .reel-pagination { display: flex; justify-content: center; gap: 4px; }
  .reel-pagination button { display: grid; place-items: center; border: 0; padding: 0; width: 40px; height: 40px; background: transparent; }
  .reel-pagination button::before { content: ""; width: 7px; height: 7px; border-radius: 10px; background: #ab9a82; transition: width .25s, background-color .25s; }
  .reel-pagination button[aria-current="true"]::before { background: var(--ink); width: 21px; }
  .studio-includes ul { flex-wrap: wrap; gap: 5px 12px; margin: 0 auto; }
  .studio-includes li + li::before { margin-right: 12px; }
  .studio-steps { grid-template-columns: 1fr; gap: 8px; }
  .studio-steps li { padding: 16px; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 3px 10px; }
  .studio-steps .step-number { grid-row: 1 / 3; }
  .studio-steps h3 { font-size: 20px; margin: 0; }
  .studio-steps p { font-size: .88rem; }
  .studio-offer { grid-template-columns: 1fr; gap: 23px; padding: 25px 19px; }
  .studio-extra-example { height: clamp(190px, 51vw, 310px); }
  .story-studio .order-dialog {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 0;
  }
  .story-studio .order-top { padding-top: max(16px,env(safe-area-inset-top)); }
  .story-studio .order-top .dialog-close { top: max(10px,env(safe-area-inset-top)); }
  .brief-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-studio .package-choice-content > .package-art { aspect-ratio: 2 / 1; }
  .story-studio .package-choice-text { padding: 7px 6px; }
  .story-studio .revision-option { padding: 9px; }
  .story-studio .revision-option select { min-height: 42px; font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .story-studio *, .story-studio *::before, .story-studio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
