.story-17{--bg:#f4f4f0;--ink:#282d32;--accent:#974514;--panel:#e2e4db}

.story{background:var(--bg);color:var(--ink);overflow:clip;font-family:"Yu Gothic UI",Meiryo,sans-serif;line-height:1.85}.story *{box-sizing:border-box}.story .wrap{width:min(1280px,90%);margin-inline:auto}.story h2,.story h3,.story p,.story figure{margin:0}.story .hero{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(24px,4vw,72px);min-height:min(780px,86svh);padding-block:clamp(46px,7vw,108px)}.story .pitch{position:relative;z-index:1}.story h1{font-size:clamp(.9rem,1.22vw,1.1rem);font-weight:650;line-height:1.7;margin:.9rem 0 1.5rem}.story .display{font-size:clamp(2.35rem,4.1vw,4.6rem);font-weight:730;line-height:1.33;letter-spacing:-.055em;line-break:strict;word-break:auto-phrase}.story .lead{margin:1.35rem 0;max-width:36em}.story .word{font:italic 400 clamp(1.25rem,2.2vw,2.3rem)/1.15 Georgia,serif;color:var(--accent)}.story .visual{min-width:0}.story .visual svg{display:block;width:100%;height:auto}.story figcaption{display:flex;justify-content:space-between;gap:10px;border-top:1px solid currentColor;padding-top:.55rem;margin-top:.7rem;color:var(--accent);font:500 .76rem/1.5 monospace}.story .cta{display:inline-flex;align-items:center;justify-content:space-between;gap:1.5em;background:var(--ink);color:var(--bg);font-weight:700;padding:.65em 1.25em;text-decoration:none;min-height:46px}.story .cta::after{content:'↗';font-family:Arial}.story .cta:hover{box-shadow:inset 0 -3px var(--accent)}.story .intro,.story .demo,.story .service,.story .closing{padding-block:clamp(52px,7vw,110px)}.story .intro{border-top:1px solid color-mix(in srgb,var(--ink) 32%,transparent)}.story .kicker{font:600 .79rem/1.4 monospace;letter-spacing:.1em;color:var(--accent);margin-bottom:1rem}.story h2{font-size:clamp(1.75rem,3.3vw,3.4rem);line-height:1.4;letter-spacing:-.04em;word-break:auto-phrase}.story h3{font-size:clamp(1.18rem,1.85vw,1.6rem);line-height:1.5}.story .intro .inner,.story .service .inner,.story .closing .inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(25px,5vw,80px);align-items:start}.story .demo{background:var(--panel)}.story .demo .note{margin:1rem 0 1.75rem;max-width:58em}.story .instrument{display:grid;grid-template-columns:minmax(225px,.72fr) minmax(0,1.28fr);gap:clamp(14px,3vw,44px);border-top:2px solid var(--accent);padding-top:1.5rem}.story .keys{display:flex;align-content:flex-start;align-items:flex-start;gap:9px;flex-wrap:wrap}.story .keys label{display:flex;align-items:center;gap:.4em;flex-wrap:wrap;font-weight:650}.story select,.story button{color:var(--ink);background:var(--bg);border:1px solid currentColor;padding:.55em .85em;min-height:44px;border-radius:3px;font-size:1rem;max-width:100%}.story option{background:var(--bg);color:var(--ink)}.story button:active{transform:translateY(1px)}.story button:hover,.story button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.story .keys select{width:100%}.story .keys input{width:20px;height:20px}.story [data-reset]{background:transparent;text-decoration:underline}.story .output{padding:clamp(20px,3vw,46px);background:var(--bg);min-height:12rem;overflow-wrap:anywhere;border-left:3px solid var(--accent)}.story .output h3,.story .output h4{margin:.4em 0}.story .output article,.story .output aside{padding:.8em 0;border-top:1px solid color-mix(in srgb,var(--ink) 30%,transparent)}.story .output article p{margin:.25em 0}.story .output small{font-weight:650;color:var(--accent)}.story .demo .cta{margin-top:1.7rem}.story .service article+article{border-top:1px solid var(--accent);margin-top:1.4em;padding-top:1.4em}.story .service h3,.story .closing h3{margin-bottom:.6rem}.story .closing{background:var(--panel)}.story details{border-block-start:1px solid currentColor;padding:.6em 0}.story summary{font-weight:700;padding:.65em 0;min-height:44px}.story details p{padding:.5em 0}.story .closing .cta{margin-top:1.2em}
@media(min-width:801px){.story .hero{position:relative}}
@media(max-width:800px){.story .hero,.story .instrument,.story .intro .inner,.story .service .inner,.story .closing .inner{grid-template-columns:1fr}.story .hero{min-height:0;gap:26px;padding-block:36px}.story .display{font-size:clamp(2.05rem,6vw,3.2rem)}.story .visual{width:min(100%,560px);margin:auto}.story .kicker{margin-bottom:.6rem}.story .intro,.story .demo,.story .service,.story .closing{padding-block:46px}.story .keys{align-items:center}.story .keys label{min-height:44px}.story h1{margin:.5rem 0 .9rem}.story .lead{margin:1em 0}}

.story-17 .hero{grid-template-columns:1fr;gap:12px}.story-17 .pitch{max-width:1000px}.story-17 .visual{width:100%;background:#e8e8e0}.story-17 .visual svg{height:clamp(200px,26vw,310px)}.story-17 .visual path{animation:inspectGate .8s ease-out}.story-17 .intro{border-top:12px solid transparent;border-image:repeating-linear-gradient(120deg,#3c4242 0 16px,#e6874c 16px 32px) 12}.story-17 .keys label{width:100%}.story-17 .output{border:2px solid currentColor;border-top:10px solid #494f4f}.story-17 .output.changed{animation:inspectGate .44s ease-out}
@keyframes inspectGate{from{transform:translateX(-18px)}}
@media(max-width:800px){.story .hero,.story .instrument,.story .pitch{display:block}.story .visual{margin:20px auto 0;transform:none}.story .visual svg{height:auto;max-height:285px}.story .output{margin-top:1.2rem}.story .hero{padding-block:30px}.story .intro .inner,.story .service .inner,.story .closing .inner{grid-template-columns:minmax(0,1fr)}.story .keys select{width:100%}.story .keys label{flex:1 1 10rem}.story .visual figcaption{font-size:.73rem}}

.story-17 .stage-visual{grid-column:1/-1;display:block;min-width:0;overflow:hidden;margin-bottom:.5rem}
.story-17 .stage-visual svg{display:block;width:100%;height:auto;max-height:300px}
.story-17 .stage-visual svg g,.story-17 .stage-visual svg rect{transition:transform .6s cubic-bezier(.22,.72,.24,1),translate .6s,opacity .35s,scale .45s}
.story-17 .order-block{transform:translate(60px,89px)}.story-17 [data-pos=issue] .order-block{transform:translate(509px,136px) rotate(7deg)}.story-17 [data-pos=pass] .order-block{transform:translate(553px,43px)}.story-17 [data-pos=inspect] .order-block{transform:translate(187px,84px) rotate(-6deg)}.story-17 [data-pos=fixed] .order-block{transform:translate(93px,88px)}.story-17 .inspection-arm[data-enabled=false]{transform:translateY(-26px);opacity:.35}
html[data-motion=reduced] .story-17 .stage-visual *,html[data-page-paused] .story-17 .stage-visual *{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){.story-17 .stage-visual *{transition:none!important;animation:none!important}}

.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:#e9e6d8;
  --lab-ink:#282d31;
  --lab-line:#6a655e;
}
.it-lab {
  border: 2px solid #343938;
  border-top: 9px solid #dc893b;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0 12px,
      #53666f0c 12px 24px);
}
.quantity-vane {
  position: relative;
  padding: 54px 0 0;
  isolation: isolate;
}
.inspection-ruler {
  position: absolute;
  inset: 16px 0 auto;
  height: 20px;
  border-block-end: 2px solid #4d4c48;
  background:
    repeating-linear-gradient(
      90deg,
      #55554e 0 1px,
      transparent 1px 10%);
}
.inspection-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f4e5;
  border: 2px solid #55554c;
}
.inspection-gate span {
  padding: 9px 0;
  text-align: center;
  font-weight: 700;
}
.inspection-gate span + span {
  border-left: 2px solid #55554c;
}
.inspection-arm2 {
  position: absolute;
  top: 0;
  left: 23%;
  width: 9px;
  height: 45px;
  background: #aa4b20;
  transform-origin: top;
  transition: left .5s cubic-bezier(.2, .8, .26, 1);
}
.inspection-arm2:after {
  content: "";
  position: absolute;
  inset: auto -6px -5px;
  border: 10px solid transparent;
  border-top-color: #aa4b20;
  border-bottom: 0;
}
.it-lab[data-mode=review] .inspection-arm2 {
  left: 73%;
}
.it-lab[data-mode=invalid] .inspection-arm2 {
  left: 1%;
}
.inspection-value {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-top: 7px;
}
.it-lab .it-controls input {
  width: 8rem;
  background: #fffdf5;
}
.it-notes .it-note-list {
  gap: 0;
  border-bottom: 4px solid var(--ink);
}
.it-note-list article {
  padding: 18px;
  border-top: 4px solid var(--ink);
}
.it-note-list article:nth-child(2) {
  background: #e5e5db;
}
[data-seen=true] .inspection-arm2 {
  animation: calibrateNeedle .9s ease-out;
}
@keyframes calibrateNeedle {
  0% {
    rotate: -55deg;
  }
  55% {
    rotate: 12deg;
  }
  100% {
    rotate: 0deg;
  }
}

.inspection-arm2 {
  width: 21px;
  height: 50px;
  clip-path: polygon(30% 0, 70% 0, 70% 80%, 100% 80%, 50% 100%, 0 80%, 30% 80%);
}
.inspection-arm2::after {
  content: none;
}

@media (min-width: 900px) {
  .it-feature {
    width: min(1120px, 90%);
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    padding: clamp(36px, 5vw, 70px);
    background: #e4e3d9;
    border-block: 5px solid #333d3d;
  }
  .it-feature .it-sample-label { display: inline-block; padding-bottom: .4rem; border-bottom: 3px solid #af6427; }
}

.story-17 .visual .gate-hero { display: block; width: 100%; height: auto; max-height: 342px; background: #e9ecdf; }
.story-17 .gate-hero path { animation: none; }
.gate-clear { transform: translate(437px,137px); animation: gate-accept 7.5s linear -4s infinite; }
.gate-review { transform: translate(243px,151px); animation: gate-divert 7.5s linear -1.3s infinite; }
@keyframes gate-accept {
  0% { transform: translate(26px,144px); opacity: 0; }
  13% { transform: translate(112px,144px); opacity: 1; }
  59% { transform: translate(395px,144px); }
  78% { transform: translate(477px,74px); opacity: 1; }
  100% { transform: translate(628px,74px); opacity: 0; }
}
@keyframes gate-divert {
  0% { transform: translate(26px,151px); opacity: 0; }
  12% { transform: translate(105px,151px); opacity: 1; }
  59% { transform: translate(388px,151px); }
  75% { transform: translate(466px,195px); opacity: 1; }
  100% { transform: translate(628px,195px); opacity: 0; }
}
.story-17 .intro.gate-brief .inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px clamp(24px,6vw,100px); align-items: start; }
.gate-brief h2, .gate-brief p { grid-column: 1; }
.story-17 .gate-calibration { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.rule-face { display: flex; justify-content: space-between; align-items: end; gap: 12px; min-height: 132px; padding: 16px 7% 0; color: #3e4539; background: #e7e8da; border: 1.5px solid #566152; border-bottom: 0; }
.rule-face > div:first-child { align-self: center; display: grid; }
.rule-face small { font-size: .74rem; font-weight: 650; } .rule-face b { font: 650 clamp(2.1rem,4.9vw,4.2rem)/1.15 ui-monospace,monospace; }
.rule-face b span { font-size: .87rem; }
.rule-dial { position: relative; width: 54%; max-width: 185px; aspect-ratio: 2 / 1; overflow: hidden; }
.rule-sector { position: absolute; inset: 0; overflow: hidden; border-radius: 100% 100% 0 0 / 200% 200% 0 0; background: repeating-conic-gradient(from 270deg at 50% 100%, #526954 0deg 1deg,transparent 1deg 11.25deg),conic-gradient(from 270deg at 50% 100%,#bdc9ad 0 90deg,#e4ae77 90deg 180deg,transparent 180deg); }
.rule-sector::after { position: absolute; content: ""; inset: 20% 10% 0; border-radius: inherit; background: #e7e8da; }
.rule-pointer { position: absolute; left: 49%; bottom: 0; width: 2%; height: 87%; transform-origin: center bottom; transform: rotate(calc(-62deg + var(--cg-progress,.62) * 124deg)); background: #534a37; clip-path: polygon(50% 0,100% 100%,0 100%); }
.rule-dial i { position: absolute; left: 45%; bottom: -9%; width: 10%; height: 18%; border-radius: 50%; background: #5b5846; }
.rule-outputs { display: flex; border: 1.5px solid #566152; background: #f5f4e9; }
.rule-outputs span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 3px; padding: 6px 3%; color: #40503d; font-size: .72rem; }
.rule-outputs span + span { border-left: 1px solid #9a967b; color: #77482c; }
.rule-outputs b { font-size: .85rem; }
.story-17 .gate-calibration figcaption { display: block; margin: 9px 0 0; padding: 0; border: 0; color: #485044; font: inherit; font-size: .92rem; line-height: 1.7; }
@media (max-width: 800px) {
  .story-17 .intro.gate-brief .inner { display: block; } .gate-brief h2 + p { margin: 10px 0 22px; }
  .story-17 .visual .gate-hero { max-height: none; }
}

[data-scroll-scene] h2 .it-phrase, .hero figcaption i { display: inline-block; white-space: nowrap; }
.hero figcaption i { font-style: normal; }
