.work8 {
  --paper: #ffffff;
  --ink: #243444;
  --accent: #22598d;
  --wash: #e6f0f7;
  --ctext: white;
  --entry: translateX(90px);
  --shift: translateX(22px);
}
.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);
  }
}

.work8 .hero {
  grid-template-columns: 0.85fr 1.15fr;
  border-top: 6px solid #295775;
}
.work8 .art {
  background: #e2edf4;
}
.work8 .lab {
  border: 1px solid #7795ac;
}
.work8 .sheet {
  grid-column: 1/-1;
}
.work8 .sheetrow > div {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr;
  gap: 6px;
}
.work8 .sheetrow summary {
  padding: 10px;
  background: #d6e6f1;
  color: #1c3f59;
  cursor: pointer;
}
.work8 .sheetrow {
  border: 1px solid #a8bccb;
  margin-block: 3px;
}
.work8 .result button {
  display: block;
  text-align: left;
  margin-block: 6px;
}
.work8 .story {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 31px,
    #afc3d339 32px
  );
}
@media (min-width: 701px) {
  .work8 .hero {
  }
}
@media (max-width: 700px) {
  .work.work8 .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
  );
}
.work8 .sequence span {
  flex: 1;
  background: #d9e8f4;
  border: 1px solid #9bb0c2;
}
.work8 .scope:nth-last-child(2) {
  border-top: 4px solid #39607b;
}
.work8 .lab .result {
  border: 1px solid #95adbf;
}
@media (min-width: 920px) {
  .work8 .editorial {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    width: min(1280px, 94%);
    margin: auto;
  }
  .work8 .editorial > .story,
  .work8 .editorial > .demosect {
    grid-column: 1/-1;
  }
  .work8 .scope {
    width: 100%;
    padding: 40px 6%;
  }
  .work8 .scope + .scope {
    border-left: 1px solid currentColor;
  }
}
@media (min-width: 920px) {
  .work8 .demosect {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    align-content: start;
    gap: 14px 5%;
    width: 100%;
  }
  .work8 .demosect h2,
  .work8 .demosect > p,
  .work8 .demosect > .cta {
    grid-column: 1;
    justify-self: start;
  }
  .work8 .demosect .lab {
    grid-column: 2;
    grid-row: 1/5;
    width: 100%;
  }
}
@media (min-width: 701px) {
  .work8 .sheetrow:not([open]) > div {
    display: grid;
  }
  .work8 .sheetrow {
    display: block;
  }
  .work8 .sheetrow::details-content {
    content-visibility: visible;
  }
  .work8 .sheetrow > summary {
    font-size: 0.8rem;
  }
}
@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.work8 .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "station" "headline" "lead" "figure" "action";
    gap: 14px;
  }
  .work.work8 .hero .herocopy {
    display: contents;
  }
  .work.work8 .hero h1 {
    grid-area: station;
    margin: 0;
  }
  .work.work8 .hero .display {
    grid-area: headline;
    margin: 0;
  }
  .work.work8 .hero .lead {
    grid-area: lead;
  }
  .work.work8 .hero .cta {
    grid-area: action;
    margin: 0;
    justify-self: start;
  }
  .work.work8 .hero .art {
    grid-area: figure;
    max-width: 100%;
    width: 100%;
  }
}

.hero .display { overflow-wrap: normal; line-break: strict; text-wrap: balance; }
.hero .display > [data-wrap-group] { display: inline-block; white-space: nowrap; }

.it-feature,
.it-notes {
  --line:color-mix(in srgb,var(--ink) 32%,transparent);
  width: min(1180px, 90%);
  margin-inline: auto;
  padding-block: clamp(44px, 7vw, 104px);
}
.it-feature {
  border-block-start: 2px solid var(--accent);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: clamp(22px, 5vw, 90px);
  align-items: center;
}
.it-feature h2,
.it-notes h2 {
  font-size: clamp(1.65rem, 3vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: -.045em;
  text-wrap: balance;
  word-break: auto-phrase;
}
.it-feature h2 + p,
.it-feature p + p,
.it-notes h2 + p {
  margin-top: .9rem;
}
.it-deck {
  line-height: 1.85;
  max-width: 44em;
}
.it-sample-label {
  display: block;
  margin-block-end: .9rem;
  color: var(--accent);
  letter-spacing: .08em;
  font-weight: 750;
  font-size: .8rem;
}
.it-lab {
  background: var(--lab-bg);
  color: var(--lab-ink);
  border: 1px solid var(--lab-line);
  padding: clamp(16px, 2.6vw, 42px);
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.it-lab .it-title {
  display: block;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.48;
  font-weight: 750;
}
.it-lab .it-meter {
  display: block;
  font: 600 .75rem/1.6 ui-monospace, monospace;
  letter-spacing: .07em;
  overflow-wrap: anywhere;
}
.it-lab .it-instrument {
  margin-block: 1.3rem;
}
.it-lab .it-controls {
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}
.it-lab .it-controls button,
.it-lab .it-controls input,
.it-lab .it-controls select {
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--lab-line);
  background: var(--lab-bg);
  color: var(--lab-ink);
  padding: .5em .85em;
  border-radius: 3px;
  font: inherit;
}
.it-lab .it-controls button {
  font-weight: 680;
  cursor: pointer;
}
.it-lab .it-controls button:is(:hover, [aria-pressed=true]) {
  background: var(--lab-ink);
  color: var(--lab-bg);
}
.it-lab .it-controls label {
  display: grid;
  gap: .25rem;
  min-width: 0;
  max-width: 100%;
  font-size: .9rem;
  font-weight: 650;
}
.it-lab .it-status {
  display: block;
  min-height: 2.6em;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--lab-line);
  line-height: 1.65;
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.it-note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.8vw, 60px);
  margin: 2rem 0 0;
}
.it-note-list article {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-block: 1.15rem;
}
.it-note-list h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  color: var(--accent);
  line-height: 1.45;
  margin: 0 0 .7rem;
}
.it-notes p,
.it-feature p {
  max-width: 48em;
  line-height: 1.9;
}
.it-next {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  text-underline-offset: 4px;
  margin-top: 10px;
}
@media (max-width: 760px) {
  .it-feature,
  .it-note-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .it-notes,
  .it-feature {
    width: 90%;
  }
  .it-note-list {
    gap: 0;
  }
  .it-lab .it-controls label {
    flex: 1 1 8rem;
  }
}
html[data-motion=reduced] .it-lab *,
html[data-page-paused] .it-lab * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .it-lab * {
    animation: none !important;
    transition: none !important;
  }
}
.it-feature {
  --lab-bg:#f5f1e5;
  --lab-ink:#253c48;
  --lab-line:#6c7d7e;
}
.it-lab {
  background-image: linear-gradient(#688ba317 1px, transparent 1px);
  background-size: 100% 24px;
  border-top: 5px double #426478;
}
.proof-paper {
  position: relative;
  background: #fffef6;
  color: #253c48;
  border: 1px solid #7c8a89;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  padding: 20px 15px;
  align-items: center;
  gap: 12px;
  transform: rotate(-1deg);
  box-shadow: 3px 4px 0 #7a91883d;
}
.proof-paper div:not(:last-child) {
  min-width: 0;
}
.proof-paper small,
.proof-paper b {
  display: block;
  overflow-wrap: anywhere;
}
.proof-paper b {
  font: 700 clamp(1.4rem, 3.3vw, 2.8rem)/1.25 ui-monospace, monospace;
}
.proof-stamp {
  font-weight: 750;
  font-size: .85rem;
  border: 3px double #366d56;
  color: #23513c;
  padding: .45em;
  transform: rotate(-8deg);
}
.it-lab[data-mode=check] .proof-stamp {
  color: #973b2d;
  border-color: #973b2d;
}
.it-lab .it-controls input {
  width: 9em;
  background: #fffdf5;
}
.it-note-list article:nth-child(2) {
  border-top-style: dashed;
}
.it-notes {
  border-bottom: 1px dashed var(--accent);
}
[data-seen=true] .proof-stamp {
  animation: markLedger .75s cubic-bezier(.25, .86, .32, 1);
}
@keyframes markLedger {
  0% {
    scale: 1.24;
    rotate: 5deg;
  }
  65% {
    scale: .88;
  }
}
@media (max-width: 440px) {
  .proof-paper {
    gap: 8px;
    padding: 16px 18px 16px 8px;
  }
  .it-lab .it-controls input {
    width: 100%;
  }
}

.work8 .editorial > .it-feature {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .it-feature {
    width: min(1060px, 92%);
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .it-feature .it-deck {
    display: grid;
    grid-template-columns: minmax(10em, .85fr) 1.1fr;
    gap: .6rem 3rem;
    align-items: start;
    max-width: none;
  }
  .it-feature .it-sample-label, .it-feature h2 { grid-column: 1; }
  .it-feature h2 { grid-row: 2 / 4; }
  .it-feature .it-deck p { grid-column: 2; margin: 0; }
  .it-feature .it-deck p:first-of-type { grid-row: 1 / 3; }
  .it-lab { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .it-lab .it-title, .it-lab .it-meter { grid-column: 1 / -1; }
  .it-lab .it-instrument { grid-column: 1; }
  .it-lab .it-controls { grid-column: 2; align-self: center; }
  .it-lab .it-status { grid-column: 1 / -1; }
}

.work8 .sheet-readhead { transform: translateY(0); animation: ledger-reading 6.6s ease-in-out -.9s infinite; }
.work8 .sheet-output { animation: ledger-first 6.6s steps(1,end) -.9s infinite; }
.work8 .output-second, .work8 .output-third { opacity: 0; }
.work8 .output-second { animation-name: ledger-second; } .work8 .output-third { animation-name: ledger-third; }
@keyframes ledger-reading {
  0%, 13%, 100% { transform: translateY(0); } 30%, 40%, 84% { transform: translateY(53px); } 58%, 69% { transform: translateY(106px); }
}
@keyframes ledger-first { 0%, 93%, 100% { opacity: 1; } 22% { opacity: 0; } }
@keyframes ledger-second { 0%, 49%, 93%, 100% { opacity: 0; } 22%, 77% { opacity: 1; } }
@keyframes ledger-third { 0%, 77%, 100% { opacity: 0; } 49% { opacity: 1; } }
.work8 .story.ledger-brief { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); align-items: start; column-gap: clamp(22px, 5vw, 68px); }
.work8 .ledger-brief > h2, .work8 .ledger-brief > p { grid-column: 1; }
.work8 .ledger-proof { grid-column: 2; grid-row: 1 / 3; min-width: 0; margin: 0; }
.ledger-proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 5px 0; border-bottom: 2px solid #264b65; color: #35586c; font: 650 .82rem/1.6 ui-monospace, monospace; }
.ledger-compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-block: 14px; background: repeating-linear-gradient(0deg, transparent 0 22px,#e2edf0 22px 23px); }
.ledger-compare > div:not(.proof-corners) { display: grid; gap: 5px; padding: 11px 9%; line-height: 1.4; }
.ledger-compare > div:nth-child(2) { border-left: 1px dashed #86a8b6; }
.ledger-compare small, .ledger-compare span { color: #365269; font-size: .8rem; }
.ledger-compare i { font-style: normal; color: #708998; }
.ledger-compare b { font: 650 clamp(1.65rem, 3.4vw, 3.3rem)/1.1 ui-monospace, monospace; letter-spacing: -.075em; color: #15394f; }
.proof-corners { position: absolute; top: 12%; left: 3%; width: 44%; height: 76%; pointer-events: none; border: 1.5px solid #29759b; border-radius: 4px; background: #457e9e0d; transform: translateX(calc(var(--cg-progress,.62) * 113%)); }
.proof-corners::before, .proof-corners::after { position: absolute; content: ""; width: 6px; height: 6px; background: #286b91; }
.proof-corners::before { left: -3px; top: -3px; } .proof-corners::after { right: -3px; bottom: -3px; }
.work8 .ledger-proof figcaption { display: block; padding: 10px 0 0; border-top: 1px solid #abc3cd; color: #354f60; font: inherit; font-size: .92rem; line-height: 1.7; }
@media (max-width: 780px) {
  .work8 .story.ledger-brief { display: block; }
  .work8 .ledger-proof { margin-top: 24px; }
}

[data-scroll-scene] h2 .it-phrase, .hero figcaption i { display: inline-block; white-space: nowrap; }
.hero figcaption i { font-style: normal; }
