.work6 {
  --paper: #f3eeff;
  --ink: #332c65;
  --accent: #4e46aa;
  --wash: #e3dbf8;
  --ctext: white;
  --entry: translateY(64px);
  --shift: translateY(16px);
}
.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);
  }
}

.work6 .hero {
  grid-template-columns: 1fr 1fr;
}
.work6 .art {
  background: linear-gradient(150deg, #fff9fd, #e1d8f3);
  clip-path: polygon(
    0 22%,
    30% 22%,
    30% 12%,
    65% 12%,
    65% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}
.work6 .story {
  border-left: 12px solid #aa99da;
}
.work6 .scope {
  border-left: 24px solid #dba2b7;
}
.work6 .result li {
  margin: 8px 0;
  padding: 12px;
  border-left: 4px solid #665aaf;
  background: #f8f6ff;
}
.work6 .result li:nth-child(2) {
  margin-left: 3%;
}
.work6 .result li:nth-child(3) {
  margin-left: 6%;
}
@media (min-width: 701px) {
  .work6 .hero {
  }
}
@media (max-width: 700px) {
  .work.work6 .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
  );
}
.work6 .story .sequence {
  align-items: flex-end;
}
.work6 .story .sequence span:nth-child(2) {
  margin-bottom: 10px;
}
.work6 .story .sequence span:nth-child(3) {
  margin-bottom: 20px;
}
.work6 .scope:nth-last-child(2) {
  background: #e2daf4;
}
.work6 .scope:last-child {
  background: #efdde5;
}
@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;
  }
}
@media (max-width: 700px) {
  .work.work6 .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "station" "headline" "figure" "lead" "action";
    gap: 14px;
  }
  .work.work6 .hero .herocopy {
    display: contents;
  }
  .work.work6 .hero h1 {
    grid-area: station;
    margin: 0;
  }
  .work.work6 .hero .display {
    grid-area: headline;
    margin: 0;
  }
  .work.work6 .hero .lead {
    grid-area: lead;
  }
  .work.work6 .hero .cta {
    grid-area: action;
    margin: 0;
    justify-self: start;
  }
  .work.work6 .hero .art {
    grid-area: figure;
    max-width: 100%;
    width: 100%;
  }
}

.work6 .result li {
  animation: road-rise 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.work6 .result li:nth-child(2) {
  animation-delay: 0.08s;
}
.work6 .result li:nth-child(3) {
  animation-delay: 0.16s;
}
@keyframes road-rise {
  from {
    transform: translate(-18px, 24px) skewX(-5deg);
    opacity: 0.25;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.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%;
  }
}

.pilotlog {
  background: #423789;
  color: #fff9f5;
}
.pilotlog .ai-frame {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: clamp(20px, 4vw, 65px);
}
.pilot-title h2 {
  font-weight: 880;
}
.pilot-stairs details {
  position: relative;
  background: #f1ecff;
  color: #2f2853;
  margin: 0 13% 0 0;
  padding: 0.4rem 1.15rem 0;
  box-shadow: 0 8px 0 #b5a3ce;
  border: 0;
}
.pilot-stairs details:nth-child(2) {
  background: #f2c4d2;
  margin: 1.2rem 6% 0 6%;
}
.pilot-stairs details:nth-child(3) {
  background: #e8ecfa;
  margin: 1.2rem 0 0 13%;
}
.pilot-stairs summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  min-height: 66px;
  font-size: clamp(1.14rem, 2.15vw, 1.85rem);
  font-weight: 780;
}
.pilot-stairs summary::-webkit-details-marker {
  display: none;
}
.pilot-stairs summary:after {
  content: "＋";
  margin-left: auto;
}
.pilot-stairs details[open] summary:after {
  content: "－";
}
.pilot-stairs summary small {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  border-right: 1px solid;
  padding-right: 0.5rem;
  letter-spacing: 0.1em;
}
.pilot-stairs details p {
  border-top: 1px solid #8c80a7;
  padding: 1rem 0 1.25rem;
  margin: 0;
}
.work6 .ai-notes {
  background: #f5ddde;
}
.work6 .ai-notes .ai-notes-grid {
  grid-template-columns: 1.22fr 0.78fr;
}
.work6 .ai-notes article {
  padding-left: 1.2rem;
  border-left: 4px solid #8d6792;
}
.work6 .art {
  border-radius: 14% 0 14% 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .pilotlog[data-seen="true"] details {
    animation: pilot-rise 0.65s both;
  }
  html[data-motion="normal"] .pilotlog[data-seen="true"] details:nth-child(2) {
    animation-delay: 0.12s;
  }
  html[data-motion="normal"] .pilotlog[data-seen="true"] details:nth-child(3) {
    animation-delay: 0.24s;
  }
  @keyframes pilot-rise {
    from {
      transform: translate(18px, 33px) rotate(2deg);
    }
  }
  html[data-motion="normal"] .pilot-stairs [open] p {
    animation: pilot-unfold 0.36s;
  }
  @keyframes pilot-unfold {
    from {
      transform-origin: top;
      transform: perspective(400px) rotateX(-24deg);
    }
  }
}
@media (max-width: 740px) {
  .pilotlog .ai-frame,
  .work6 .ai-notes .ai-notes-grid {
    grid-template-columns: 1fr;
  }
  .pilot-stairs summary {
    min-height: 58px;
  }
}
.pilotlog {
  background: #e6dff4;
  color: #38305e;
  border-bottom: 8px solid #433887;
}
.pilotlog .ai-frame {
  display: block;
}
.pilot-title {
  max-width: 1030px;
}
.pilot-title h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  letter-spacing: -0.075em;
}
.pilot-title h2 br {
  display: none;
}
.pilot-stairs {
  margin-top: clamp(28px, 4vw, 60px);
}
.pilot-stairs details {
  box-shadow: 0 7px 0 #a59aba;
  border: 1px solid #9186a8;
}
.pilot-stairs details:nth-child(3) {
  background: #fff9ea;
}
.pilot-stairs summary small {
  font: 700 0.82rem/1.4 sans-serif;
}
.pilot-stairs details[open] {
  background: #fcfaff;
}
@media (min-width: 820px) {
  .pilot-title {
    display: grid;
    grid-template-columns: 1fr 0.73fr;
    align-items: end;
    gap: 5px 8%;
  }
  .pilot-title .ai-caption {
    grid-column: 1/-1;
  }
  .pilot-title h2 {
    margin: 0;
  }
  .pilot-title p:last-child {
    margin: 0;
  }
  .pilot-stairs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 0;
  }
  .pilot-stairs details {
    margin: 0;
    padding: clamp(12px, 2vw, 26px);
    min-height: 124px;
  }
  .pilot-stairs details:nth-child(2) {
    margin: 32px 0 0;
  }
  .pilot-stairs details:nth-child(3) {
    margin: 64px 0 0;
  }
  .pilot-stairs summary {
    writing-mode: horizontal-tb;
    align-items: center;
  }
  .pilot-stairs details:not([open]) {
    padding-bottom: clamp(18px, 2.6vw, 33px);
  }
}

.work6 .pilot-steps { background: #f5f1fc; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .pilot-book { animation: pass-field-notes 8s ease-in-out infinite; }
  html[data-motion="normal"] .step-lift { animation: lift-pilot-step 8s ease-in-out infinite; }
  html[data-motion="normal"] .step-lift-1 { animation-delay: 2s; }
  html[data-motion="normal"] .step-lift-2 { animation-delay: 4s; }
}
@keyframes pass-field-notes {
  0%, 100% { transform: translate(0, 0); }
  18% { transform: translate(83px, -72px); }
  31%, 41% { transform: translate(169px, -72px); }
  54% { transform: translate(248px, -146px); }
  67%, 79% { transform: translate(338px, -144px); }
  90% { transform: translate(174px, -172px); }
}
@keyframes lift-pilot-step { 0%, 48%, 100% { transform: translateY(0); } 23% { transform: translateY(-7px); } }
.work6 .pilot-logbook { margin: 1.8rem 0 0; max-width: 55rem; }
.work6 .pilot-logbook figcaption { border-bottom: 1px solid #9386b4; background: transparent; padding: 0 0 .6rem; }
.pilot-spreads {
  list-style: none; margin: 0; padding: 2.5rem .3rem 1.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; align-items: start;
}
.pilot-spreads li {
  --rise: -19px; --turn: -2deg; padding: .9rem .85rem 1.3rem; min-width: 0;
  background: #fffdfb; color: #363052; border: 1px solid #c7bcd5; border-top: 5px solid #c87996;
  box-shadow: 0 4px 0 #d2c9e7;
  transform: translateY(calc(var(--cg-progress, .55) * var(--rise))) rotate(calc(var(--cg-progress, .55) * var(--turn)));
}
.pilot-spreads li:nth-child(2) { --rise: -35px; --turn: 1deg; border-top-color: #9d89ce; }
.pilot-spreads li:nth-child(3) { --rise: -52px; --turn: 3deg; border-top-color: #6756ad; }
.pilot-spreads small { display: block; color: #635770; font-weight: 700; }
.pilot-spreads strong { display: block; margin-top: .6rem; font-size: clamp(1.05rem, 2vw, 1.45rem); }
.work6 .pilot-spreads p { margin: .3rem 0 0; font-size: .91rem; line-height: 1.7; }
@media (max-width: 560px) {
  .pilot-spreads { grid-template-columns: 1fr; gap: 10px; padding: 1rem .7rem .5rem 0; }
  .pilot-spreads li { --rise: 3%; transform: translateX(calc(var(--cg-progress, .55) * var(--rise))); padding: .55rem .75rem; }
  .pilot-spreads li:nth-child(2) { --rise: 5%; }
  .pilot-spreads li:nth-child(3) { --rise: 7%; }
  .pilot-spreads strong { margin-top: .1rem; }
  .work6 .pilot-spreads p { margin: .15rem 0 0; }
}
