.work12 {
  --paper: #f8f3f8;
  --ink: #4a284c;
  --accent: #803e66;
  --wash: #eee0eb;
  --ctext: white;
  --entry: translateX(-60px) rotate(-4deg);
  --shift: translateX(-60px) rotate(-4deg);
}
.work,
.work * {
  box-sizing: border-box;
}
.work {
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1rem/1.8 system-ui,
    "Yu Gothic",
    sans-serif;
}
.work h1,
.work h2,
.work p,
.work figure {
  margin: 0;
}
.work h1 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--accent);
  margin-bottom: 21px;
}
.work .hero {
  display: grid;
  align-items: center;
  gap: clamp(20px, 4vw, 66px);
  position: relative;
  padding: clamp(36px, 6vw, 110px) max(5vw, calc((100vw - 1380px) / 2));
  min-height: min(680px, 77vh);
}
.work .herocopy,
.work .art {
  min-width: 0;
}
.work .display {
  font-size: clamp(2.25rem, 4.1vw, 5rem);
  font-weight: 800;
  line-height: 1.21;
  letter-spacing: -0.065em;
  text-wrap: balance;
  line-break: strict;
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.work .lead {
  max-width: 39em;
  line-height: 1.9;
}
.work .cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--accent);
  color: var(--ctext);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 21px;
  margin-block: 22px 0;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.18s;
}
.work .cta:hover {
  transform: translateY(-2px);
}
.work .cta:after {
  content: "↗";
}
.work .diagram {
  display: block;
  width: 100%;
  height: auto;
}
.work .art {
  position: relative;
}
.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  background: var(--wash);
  color: var(--ink);
}
.work .story,
.work .scope,
.work .demosect,
.work .local {
  margin: auto;
  width: min(1180px, 90%);
  padding: clamp(32px, 5vw, 76px) clamp(5px, 2.8vw, 50px);
}
.work .story p,
.work .scope p,
.work .local > p {
  max-width: 50em;
  margin-top: 16px;
}
.work h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.9rem);
  font-weight: 780;
  line-height: 1.4;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.work .demosect > p {
  margin: 14px 0 22px;
  max-width: 48em;
}
.work .lab {
  padding: clamp(16px, 3vw, 44px);
  background: var(--wash);
}
.work .console {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.work .console > * {
  min-width: 0;
}
.work .console > label {
  display: grid;
  gap: 3px;
  font-weight: 650;
}
.work .console .tick,
.work .sortrow label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}
.work button,
.work select,
.work input,
.work textarea {
  font: inherit;
  color: inherit;
}
.work button,
.work select,
.work input:not([type="checkbox"]),
.work textarea {
  max-width: 100%;
  border: 1px solid currentColor;
  background: var(--paper);
  border-radius: 3px;
  padding: 8px 12px;
  min-height: 44px;
}
.work button,
.work select {
  cursor: pointer;
}
.work button:disabled {
  opacity: 0.52;
  cursor: default;
}
.work .reset {
  margin-top: 16px;
  background: transparent;
}
.work .result {
  width: 100%;
  margin: 8px 0 0;
  background: var(--paper);
  padding: clamp(17px, 2.4vw, 35px);
  border-inline-start: 3px solid var(--accent);
  overflow-wrap: anywhere;
  transition:
    max-width 0.4s,
    background-color 0.4s,
    border-radius 0.4s;
}
.work .result small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.work .result strong {
  display: block;
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  line-height: 1.5;
}
.work .result[data-mobile="true"] {
  max-width: 320px;
  min-height: 240px;
}
.work .result[data-theme] .sample-visual {
  height: 60px;
  margin-block: 12px;
  background: linear-gradient(
    125deg,
    transparent 30%,
    currentColor 30% 39%,
    transparent 39% 49%,
    currentColor 49% 65%,
    transparent 65%
  );
  opacity: 0.45;
}
.work #sortlist,
.work #editor,
.work .sheet,
.work #memo {
  width: 100%;
}
.work .sortrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
}
.work .sortrow > strong,
.work .sortrow > label {
  flex: 1;
}
.work input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.work .console [hidden] {
  display: none !important;
}
.work .local details {
  border-bottom: 1px solid currentColor;
}
.work .local summary {
  cursor: pointer;
  line-height: 1.65;
  padding: 17px 0;
  font-weight: 700;
}
.work .local details p {
  padding: 0 0 19px;
  max-width: 48em;
}
.work .local h2 {
  margin-bottom: 16px;
}
.work :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.work [aria-invalid="true"] {
  outline: 2px dashed #9b3e30;
}
.work .sheetrow input {
  width: 100%;
}
.work .sheetrow label {
  display: grid;
  padding: 6px;
}
.work .scope {
  position: relative;
}
.work .scope + .scope {
  padding-top: 10px;
}
.work .orbit-total {
  width: 100%;
}
.work .piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: assemble 0.85s both;
}
.work .p2 {
  animation-delay: 0.09s;
}
.work .p3 {
  animation-delay: 0.16s;
}
.work .changed {
  animation: reform 0.48s ease-out;
}
@keyframes assemble {
  from {
    transform: var(--entry);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes reform {
  from {
    transform: var(--shift);
    clip-path: inset(0 12% 0 0);
  }
  to {
    transform: none;
    clip-path: inset(0);
  }
}

.work12 .hero {
  display: block;
}
.work12 .hero .herocopy {
  max-width: 850px;
}
.work12 .hero .art {
  width: min(100%, 650px);
  margin: -2.4rem 0 0 auto;
  background: linear-gradient(120deg, #e7dcea, #f8e1e8);
  border-block: 7px solid #51334e;
}
.work12 .display,
.work12 .demosect h2 {
  font-family: "Yu Mincho", Georgia, serif !important;
}
.work12 .story {
  border-left: 9px solid #a36e91;
}
.work12 .result {
  border-inline: 7px solid #4a284c;
}
.work12 .scope {
  background: #eadfea;
}
.work12 .result small {
  font-family: monospace;
}
@media (min-width: 701px) {
  .work12 .hero {
    display: block;
  }
}
@media (max-width: 700px) {
  .work.work12 .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 30px 5vw;
    gap: 20px;
  }
  .work .hero .herocopy,
  .work .hero .art {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }
  .work .display {
    font-size: clamp(2rem, 8.6vw, 3.4rem);
    max-width: 18em;
  }
  .work .hero .art {
    width: min(100%, 460px);
    align-self: center;
  }
  .work .story {
    display: block;
  }
  .work .console {
    align-items: stretch;
  }
  .work .console > label:not(.tick) {
    width: 100%;
  }
  .work .local,
  .work .story,
  .work .demosect,
  .work .scope {
    width: 93%;
  }
  .work .sheetrow > div {
    display: block;
  }
  .work .sheetrow summary {
    min-height: 44px;
  }
  .work .diagram {
    max-height: 310px;
  }
  .work .result[data-theme="2"] {
    display: block;
  }
}
html[data-motion="reduced"] .work *,
html[data-motion="reduced"] .work *::before {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .work *,
  .work *::before {
    animation: none !important;
    transition: none !important;
  }
}
.work .sequence {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.work .sequence span {
  display: inline-block;
  padding: 5px 12px;
  border-bottom: 1px solid currentColor;
  font-weight: 670;
}
.work .sheetrow:not([open]) > div {
  display: none;
}
.work .result button {
  color: inherit;
}
.work .herocopy,
.work .art {
  position: relative;
}
.work .result[data-theme="2"] .sample-visual {
  background: repeating-linear-gradient(
    120deg,
    transparent 0 10px,
    currentColor 11px 13px
  );
}
.work12 .story .sequence span {
  flex: 1;
  border: 5px solid #53384e;
  background: #e9cbd7;
}
.work12 .story .sequence span:nth-child(2) {
  background: #d4e4ed;
}
.work12 .scope:nth-last-child(2) {
  border-left: 7px solid #956988;
}
@media (min-width: 920px) {
  .work12 .editorial {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    width: min(1280px, 94%);
    margin: auto;
  }
  .work12 .editorial > .story,
  .work12 .editorial > .demosect {
    grid-column: 1/-1;
  }
  .work12 .scope {
    width: 100%;
    padding: 40px 6%;
  }
  .work12 .scope + .scope {
    border-left: 1px solid currentColor;
  }
}
@media (min-width: 920px) {
  .work12 .demosect {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    align-content: start;
    gap: 14px 5%;
    width: 100%;
  }
  .work12 .demosect h2,
  .work12 .demosect > p,
  .work12 .demosect > .cta {
    grid-column: 1;
    justify-self: start;
  }
  .work12 .demosect .lab {
    grid-column: 2;
    grid-row: 1/5;
    width: 100%;
  }
}
@media (min-width: 920px) {
  .work12 .hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }
  .work12 .hero .art {
    margin: 50px 0 0;
  }
  .work12 .hero:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
      90deg,
      #4a284c 0 16px,
      transparent 16px 24px
    );
  }
}
@media (max-width: 700px) {
  .work .editorial .story {
    display: block;
  }
  .work .sequence {
    gap: 6px;
  }
  .work .editorial .demosect .cta {
    width: auto;
  }
  .work .sequence span {
    font-size: 0.94rem;
  }
  .work .scope:nth-last-child(2),
  .work .scope:last-child {
    padding-block: 26px;
  }
}

@supports (animation-timeline: view()) {
  .work12 .story .sequence span {
    animation: scene-enter both ease-out;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
  .work12 .story .sequence span:nth-child(2) {
    animation-range: entry 5% entry 100%;
  }
  .work12 .story .sequence span:nth-child(3) {
    animation-range: entry 12% entry 100%;
  }
}
@keyframes scene-enter {
  from {
    clip-path: inset(0 90% 0 0);
    transform: translateX(-24px);
  }
  to {
    clip-path: inset(0);
    transform: none;
  }
}
@media (max-width: 700px) {
  .work12 .story .sequence {
    display: grid;
  }
  .work12 .story .sequence span {
    min-height: 55px;
  }
}
@media (max-width: 700px) {
  .work.work12 .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "station" "headline" "figure" "lead" "action";
    gap: 14px;
  }
  .work.work12 .hero .herocopy {
    display: contents;
  }
  .work.work12 .hero h1 {
    grid-area: station;
    margin: 0;
  }
  .work.work12 .hero .display {
    grid-area: headline;
    margin: 0;
  }
  .work.work12 .hero .lead {
    grid-area: lead;
  }
  .work.work12 .hero .cta {
    grid-area: action;
    margin: 0;
    justify-self: start;
  }
  .work.work12 .hero .art {
    grid-area: figure;
    max-width: 100%;
    width: 100%;
  }
}

.work12 .result[data-revised="true"] {
  position: relative;
  background: #fffafd;
}
.work12 .result[data-revised="true"] > strong {
  position: relative;
  z-index: 1;
  background: #fff7fc;
  border-left: 4px solid #9d5b84;
  padding: 12px 14px;
  animation: scene-revision 0.65s both;
}
.work12 .previous-draft {
  color: #684b63;
  padding: 10px 14px;
  background: #f0e2eb;
}
.work12 .editing-note {
  font-weight: 650;
  margin-top: 8px;
}
.work12 .previous-draft s {
  text-decoration-color: #b05c79;
}
@keyframes scene-revision {
  from {
    transform: translate(5%, 25%) rotate(-3deg);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 760px) {
  .work12 .result[data-revised="true"] {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 5px 12px;
  }
  .work12 .result[data-revised="true"] > small {
    grid-area: 1/2;
  }
  .work12 .result[data-revised="true"] > strong {
    grid-area: 2/2;
  }
  .work12 .previous-draft {
    grid-area: 1/1/3/2;
  }
  .work12 .editing-note {
    grid-column: 1/-1;
  }
}
@media (max-width: 759px) {
  .work12 .previous-draft {
    display: none;
  }
}

.hero .display { overflow-wrap: normal; line-break: strict; text-wrap: balance; }
.hero .display > [data-wrap-group] { display: inline-block; white-space: nowrap; }


.ai-feature,
.ai-notes {
  padding: clamp(48px, 7vw, 104px) 0;
}
.ai-frame {
  width: min(1150px, 90%);
  margin: 0 auto;
  min-width: 0;
}
.ai-frame > * {
  min-width: 0;
}
.ai-feature h2,
.ai-notes h2 {
  margin: 0 0 0.38em;
  font-size: clamp(1.85rem, 3.9vw, 3.9rem);
  line-height: 1.25;
  letter-spacing: -0.052em;
  color: inherit;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-feature header > p:last-child,
.ai-feature .ai-frame > div:first-child > p:last-child {
  max-width: 35em;
}
.ai-caption {
  margin: 0 0 1rem;
  font-weight: 730;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.ai-feature p:not(.ai-caption),
.ai-notes p {
  line-height: 1.85;
}
.ai-notes h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.8rem);
}
.ai-notes .ai-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4.5vw, 66px);
  margin-top: 1.65rem;
}
.ai-notes h3 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.65vw, 1.48rem);
  line-height: 1.55;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-notes p {
  margin: 0;
}
.ai-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0.24rem 0.6rem 0.24rem 0;
  min-height: 44px;
  padding: 0.35em 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
  text-underline-offset: 0.32em;
}
.ai-jump:after {
  content: "↓";
}
@media (max-width: 740px) {
  .ai-notes .ai-notes-grid {
    grid-template-columns: 1fr;
  }
  .ai-frame {
    width: 89%;
  }
}

.cutting {
  color: #fceef5;
  background: #39253d;
}
.cutting .ai-frame {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(22px, 5vw, 82px);
}
.cut-title h2 {
  font-family: "Yu Mincho", serif;
}
.cut-player {
  color: #35243a;
  background: #e6bed1;
  border: 3px solid #211a29;
  box-shadow: 8px 8px 0 #1d1520;
  transform: rotate(-1deg);
}
.cut-slate {
  display: flex;
  justify-content: space-between;
  padding: 24px 1.1rem 0.8rem;
  position: relative;
  color: #fff4f9;
  background: #2c2832;
  font-size: 0.87rem;
  font-weight: 650;
}
.cut-slate:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 13px;
  background: repeating-linear-gradient(
    125deg,
    #ebe7df 0 22px,
    #28252a 23px 44px
  );
  transform-origin: left bottom;
}
.cut-player fieldset {
  border: 0;
  border-top: 1px solid #594052;
  padding: 1.1rem clamp(16px, 3vw, 40px) 1.5rem;
  margin: 1rem 0 0;
  min-width: 0;
}
.cut-player legend {
  padding: 0 1em;
  font-size: 0.8rem;
  font-weight: 700;
}
.cut-player label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  margin-right: 0.7em;
  cursor: pointer;
  font-weight: 700;
}
.cut-player input {
  width: 1rem;
  height: 1rem;
  accent-color: #6c3459;
}
.cut-shot {
  background: #fffbf6;
  padding: clamp(18px, 3vw, 38px);
  margin-top: 0.7rem;
  border-radius: 2px;
}
.cut-shot blockquote {
  font:
    600 clamp(1.32rem, 2.6vw, 2.35rem) / 1.65 "Yu Mincho",
    serif;
  margin: 0.55em 0;
  color: #442749;
}
.cut-shot p {
  font-size: 0.93rem;
}
.cut-player:has(input[value="1"]:checked) .cut-shot:not(.shot1),
.cut-player:has(input[value="2"]:checked) .cut-shot:not(.shot2),
.cut-player:has(input[value="3"]:checked) .cut-shot:not(.shot3) {
  display: none;
}
.work12 .ai-notes {
  background: #dde9ef;
}
.work12 .ai-notes article {
  border-bottom: 3px double #593853;
}
.work12 .art {
  border: 4px solid #4a284c;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .cutting[data-seen="true"] .cut-slate:before {
    animation: cut-clap 0.65s ease-out;
  }
  html[data-motion="normal"] .cutting[data-seen="true"] .cut-shot {
    animation: cut-wipe 0.42s ease-out both;
  }
  @keyframes cut-clap {
    0% {
      transform: rotate(-7deg);
    }
    55% {
      transform: rotate(1deg);
    }
  }
  @keyframes cut-wipe {
    from {
      clip-path: inset(0 0 88% 0);
      transform: translateY(9px);
    }
    to {
      clip-path: inset(0);
    }
  }
}
@media (max-width: 740px) {
  .cutting .ai-frame {
    grid-template-columns: 1fr;
  }
}
.cutting {
  background: #38283e;
  border-block: 12px solid #251d29;
}
.cutting .ai-frame {
  display: block;
}
.cut-player {
  margin: clamp(26px, 4vw, 58px) auto 0;
  max-width: 1040px;
  transform: rotate(-0.45deg);
}
.cut-title h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}
.cut-slate {
  background: #241f2a;
}
.cut-shot {
  border-inline: 5px solid #3c3042;
  background: #fff6ef;
}
.cut-shot blockquote {
  font-size: clamp(1.5rem, 3.1vw, 3rem);
}
@media (min-width: 780px) {
  .cut-title {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    align-items: end;
    gap: 0.1rem clamp(30px, 7vw, 110px);
  }
  .cut-title .ai-caption {
    grid-column: 1/-1;
  }
  .cut-title h2 {
    margin: 0;
  }
  .cut-title p:last-child {
    margin: 0;
  }
  .cut-player fieldset {
    display: grid;
    grid-template-columns: 125px 1fr;
    column-gap: clamp(18px, 5vw, 72px);
    padding: 16px clamp(24px, 4vw, 55px) 32px;
  }
  .cut-player legend {
    padding-inline: 2em;
  }
  .cut-player label {
    grid-column: 1;
    min-height: 50px;
    border-bottom: 1px solid #9e788a;
  }
  .cut-shot {
    grid-row: 1/4;
    grid-column: 2;
    margin: 0;
    padding-block: 1.2rem;
  }
  .cut-shot blockquote {
    margin: 0.4em 0;
  }
  .cut-shot small {
    letter-spacing: 0.08em;
  }
  .cut-shot p {
    max-width: 44em;
  }
  .cut-slate {
    padding-inline: clamp(22px, 4vw, 55px);
  }
}

.work12 .rushes-screen { background: #322536; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .rushes-strip { animation: wind-rushes 8.8s ease-in-out infinite; }
  html[data-motion="normal"] .rushes-gate { animation: find-scene 8.8s cubic-bezier(.55,.04,.35,1) infinite; }
}
@keyframes wind-rushes { 0%, 100% { transform: translateX(1px); } 32% { transform: translateX(-9px); } 66% { transform: translateX(-18px); } }
@keyframes find-scene { 0%, 100% { transform: translateX(0); } 30%, 43% { transform: translateX(187px); } 63%, 75% { transform: translateX(373px); } }
.work12 .dialogue-timeline { margin-top: 1.7rem; max-width: 52rem; padding: .75rem; color: #f6edf3; background: #342b3a; }
.work12 .dialogue-timeline figcaption { color: #f6edf3; background: transparent; padding: .45rem .3rem .65rem; }
.dialogue-reel { position: relative; overflow: hidden; border: 1px solid #977b93; }
.dialogue-ticks { height: 14px; background: repeating-linear-gradient(90deg,#958291 0 1px, transparent 1px 6.25%); }
.dialogue-track { display: grid; grid-template-columns: 3.6rem 1fr; align-items: center; min-height: 3.8rem; padding: .55rem .75rem; color: #312635; }
.dialogue-track.spoken { background: #c9dee1; }
.dialogue-track.edited { background: #e8c4d2; margin-top: 4px; }
.dialogue-track small { font-weight: 750; }
.work12 .dialogue-track p { margin: 0; font-size: clamp(.99rem, 2vw, 1.35rem); line-height: 1.5; }
.dialogue-track s { color: #6b3e4f; }
.dialogue-playhead { position: absolute; top: 0; bottom: 0; left: calc(10% + var(--cg-progress, .62) * 81%); width: 2px; background: #775000; transform: translateX(calc(var(--cg-progress, .62) * 4px)); pointer-events: none; }
.dialogue-playhead::before { content: ""; display: block; width: 12px; height: 13px; margin-left: -5px; background: #ffdb7b; clip-path: polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
.work12 .dialogue-end { margin: .7rem .3rem .15rem; font-size: .92rem; }
