/* Progressive enhancement: the complete explanation is the default view. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.story-features { padding-bottom: 68px; }
.story-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 32px; }
.story-section-label .section-number { margin: 0; }
.story-section-label p { color: var(--muted); font-size: .9375rem; }
.scroll-story { --time: 1; --gap: 1; --expand: 1; --detail: 1; --title-0: 0; --title-1: 0; --title-2: 1; --story-ink: #f6f8fc; --story-muted: #aab9ce; --story-track: #233249; --story-blue: #73aaff; --story-aqua: #68dace; position: relative; color: var(--story-ink); background: #101b2c; }
.scroll-story.is-enhanced { height: 245vh; height: 245svh; }
.work-story.is-enhanced { height: 220vh; height: 220svh; }
.story-sticky { padding: 44px 0; }
.is-enhanced .story-sticky { position: sticky; top: var(--header); height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); padding-block: 24px; display: flex; align-items: center; }
.story-inner { width: min(calc(100% - 96px), 940px); margin-inline: auto; }
.story-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: .8125rem; color: var(--story-muted); margin-bottom: 26px; }
.story-topline > span { letter-spacing: .08em; }
.story-topline a { padding-block: 7px; color: var(--story-ink); }
.story-topline a:hover { color: var(--story-aqua); }
.story-topline a span { margin-left: 8px; }
.story-topline a:focus-visible { outline-color: var(--story-aqua); }
.story-headlines { position: relative; min-height: 144px; margin-bottom: 20px; }
.story-title { position: absolute; inset: 0; font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.2; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.story-title[data-step="0"] { opacity: var(--title-0); }
.story-title[data-step="1"] { opacity: var(--title-1); }
.story-title[data-step="2"] { opacity: var(--title-2); }
.pace-diagram { position: relative; height: 342px; width: min(100%, 760px); margin-inline: auto; font-variant-numeric: tabular-nums; }
.pace-quota { position: absolute; inset: 0 0 auto; }
.pace-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; height: 100px; padding-top: 28px; }
.pace-metric > span { font-size: 1rem; color: var(--story-muted); }
.pace-metric strong { font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.pace-metric small, .pace-result small { margin-left: 5px; font-size: .38em; font-weight: 500; letter-spacing: 0; }
.pace-quota strong { transform: scale(calc(1.65 - .65 * var(--time))); transform-origin: right bottom; }
.story-track { height: 10px; background: var(--story-track); border-radius: 7px; }
.story-track i { display: block; height: 100%; background: var(--story-blue); border-radius: inherit; }
.pace-time { position: absolute; inset: 135px 0 auto; opacity: var(--time); transform: translateY(calc((1 - var(--time)) * 12px)); }
.pace-time .pace-metric { height: 49px; padding-top: 0; }
.pace-time strong { font-size: 36px; }
.pace-time .story-track i { background: #aab9ce; }
.pace-comparison { position: absolute; inset: 0; opacity: var(--gap); }
.pace-guide { position: absolute; width: 1px; background: var(--story-aqua); opacity: .65; }
.quota-guide { top: 110px; left: 26.5%; height: 114px; }
.time-guide { top: 194px; left: 14.3%; height: 30px; }
.pace-distance { position: absolute; top: 220px; left: 14.3%; width: 12.2%; height: 7px; border-radius: 4px; background: var(--story-aqua); transform: scaleX(var(--gap)); transform-origin: right; }
.pace-axis { position: absolute; top: 197px; inset-inline: 0; display: flex; justify-content: space-between; color: var(--story-muted); font-size: .75rem; opacity: var(--time); }
.pace-result { position: absolute; inset: 245px 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; opacity: var(--gap); transform: translateY(calc((1 - var(--gap)) * 10px)); }
.pace-gap-value > span { display: block; font-size: .75rem; color: var(--story-muted); margin-bottom: 6px; }
.pace-result strong { font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -.055em; color: var(--story-aqua); white-space: nowrap; }
.pace-result p { font-size: 1rem; line-height: 1.7; color: #d0e9e7; }
.story-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; font-size: .75rem; color: var(--story-muted); }
.story-scroll-cue { display: none; }
.is-enhanced .story-scroll-cue { display: inline; }
.story-scroll-cue b { margin-left: 12px; color: var(--story-ink); font-weight: 400; }
.story-dots { display: flex; gap: 6px; }
.story-dots i { height: 3px; width: 24px; border-radius: 2px; background: var(--story-ink); opacity: .25; }
.story-dots i:nth-child(1) { opacity: calc(.25 + .75 * var(--title-0)); }
.story-dots i:nth-child(2) { opacity: calc(.25 + .75 * var(--title-1)); }
.story-dots i:nth-child(3) { opacity: calc(.25 + .75 * var(--title-2)); }
.story-landing { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 88px; padding-block: 80px; }
.story-landing-copy { max-width: 510px; }
.story-landing h3 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.45; letter-spacing: -.04em; margin-bottom: 20px; }
.story-landing-copy > p { color: var(--muted); }
.story-next { display: inline-flex; align-items: center; gap: 20px; color: var(--blue); font-size: .9375rem; font-weight: 550; margin-top: 28px; min-height: 44px; }
.story-next:hover { text-decoration: underline; text-underline-offset: 5px; }
.story-app-shot { width: 280px; max-width: 100%; margin-inline: auto; }
.story-app-shot img { width: 100%; border-radius: 13px; box-shadow: var(--shadow); }
.story-app-shot figcaption { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: 16px; }
.work-story { --story-ink: #192a41; --story-muted: #56677d; --story-track: #dce5f2; --story-blue: #2363c3; --story-aqua: #1466ce; background: #eaf0f9; }
.work-diagram { position: relative; height: 342px; width: min(100%, 760px); margin-inline: auto; font-variant-numeric: tabular-nums; }
.work-dossier { position: absolute; inset: 0 0 auto; height: calc(64px + 278px * var(--expand)); background: #fff; border: 1px solid #cfdbec; border-radius: 15px; box-shadow: 0 16px 42px -28px #2548704d; }
.work-selected { position: absolute; inset: 0 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding-inline: 24px; }
.work-hour { width: calc(122px + 36px * var(--expand)); flex-shrink: 0; white-space: nowrap; font-weight: 600; font-size: calc(17px + 5px * var(--expand)); letter-spacing: -.025em; }
.work-bar { height: 6px; border-radius: 4px; flex: 1; background: var(--story-track); }
.work-bar i { display: block; height: 100%; background: var(--story-blue); border-radius: inherit; }
.work-amount { width: 46px; font-size: .9375rem; white-space: nowrap; }
.work-selected .work-bar, .work-amount { opacity: calc(1 - var(--expand)); }
.work-select-cue { display: none; }
.work-others { position: absolute; inset: 76px 24px auto; opacity: calc(1 - var(--expand)); transform: translateY(calc(var(--expand) * 20px)); }
.work-period { display: flex; align-items: center; gap: 24px; height: 65px; border-bottom: 1px solid #ced9e8; font-size: .9375rem; }
.work-period > span:first-child { width: 122px; }
.work-period > span:last-child { width: 46px; white-space: nowrap; }
.work-tasks { position: absolute; inset: 68px 24px auto; opacity: var(--detail); transform: translateY(calc((1 - var(--detail)) * 12px)); }
.work-context { border-top: 1px solid #dce4ef; padding-top: 17px; font-size: .8125rem; color: var(--story-muted); }
.work-task { display: flex; align-items: baseline; gap: 16px; padding-block: 13px; }
.work-task > span { font-size: .75rem; color: var(--story-blue); }
.work-task h3 { font-size: 1.25rem; line-height: 1.5; letter-spacing: -.025em; }
.work-task p { font-size: .875rem; color: var(--story-muted); margin-top: 2px; }
.work-tasks-cue { font-size: .8125rem; color: var(--story-muted); margin-top: 9px; }
.work-landing { grid-template-columns: .95fr 1.25fr; gap: 56px; padding-bottom: 20px; }
.story-app-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.story-app-pair .story-app-shot { width: 100%; max-width: 280px; }
.story-features .boundary-note { max-width: none; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
html[lang="en"] .story-title { letter-spacing: -.045em; }
html[lang="en"] .story-landing h3 { line-height: 1.25; }
@media (max-width: 900px) {
  .story-inner { width: calc(100% - 64px); }
  .story-landing { gap: 48px; }
  .work-landing { grid-template-columns: 1fr; }
  .work-landing .story-landing-copy { max-width: 680px; }
  .story-app-pair { max-width: 580px; width: 100%; margin-inline: auto; gap: 32px; }
}
@media (max-width: 700px) {
  .story-section-label { display: block; padding-block: 28px; }
  .story-section-label p { margin-top: 8px; }
  .story-inner { width: calc(100% - 40px); }
  .story-topline { margin-bottom: 25px; font-size: .75rem; gap: 10px; }
  .story-topline > span { letter-spacing: .035em; }
  .story-topline a span { margin-left: 3px; }
  .story-headlines { min-height: 128px; margin-bottom: 18px; }
  .story-title { font-size: clamp(1.9rem, 7.8vw, 3rem); line-height: 1.35; }
  .pace-quota strong { transform: scale(calc(1.4 - .4 * var(--time))); }
  .pace-metric strong { font-size: 52px; }
  .pace-metric > span { font-size: .875rem; }
  .pace-time strong { font-size: 32px; }
  .pace-result strong { font-size: 44px; }
  .pace-result p { font-size: .875rem; }
  .story-bottom { gap: 10px; margin-top: 22px; flex-wrap: wrap; }
  .story-scroll-cue { display: none !important; }
  .story-landing { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .story-app-shot { width: 264px; }
  .story-app-pair { grid-template-columns: 1fr; gap: 32px; }
  .story-app-pair .story-app-shot { width: 264px; max-width: 100%; }
  .story-app-shot figcaption { font-size: .75rem; line-height: 1.7; }
  .story-landing h3 { font-size: 1.9rem; }
  .work-selected { gap: 12px; padding-inline: 18px; }
  .work-hour { width: calc(99px + 30px * var(--expand)); font-size: calc(14px + 4px * var(--expand)); }
  .work-select-cue { display: none; }
  .work-amount, .work-period { font-size: .8125rem; }
  .work-others { inset-inline: 18px; }
  .work-period { gap: 12px; }
  .work-period > span:first-child { width: 99px; }
  .work-tasks { inset-inline: 18px; }
  .work-task h3 { font-size: 1.0625rem; }
  .work-task p { font-size: .8125rem; }
  .story-features { padding-bottom: 48px; }
}
@media (max-width: 359px) {
  .story-inner { width: calc(100% - 32px); }
  .story-title { font-size: 1.8rem; }
  .pace-result { gap: 12px; }
  .pace-result strong { font-size: 39px; }
  .pace-result p { font-size: .8125rem; }
  .story-app-pair { grid-template-columns: 1fr; gap: 30px; }
}
/* Short windows, zoomed layouts, reduced motion, and print keep the complete view. */
@media (min-width: 768px) and (max-height: 700px), (max-width: 767px) and (max-height: 599px), (prefers-reduced-motion: reduce), print {
  .scroll-story.is-enhanced { height: auto; }
  .is-enhanced .story-sticky { position: static; height: auto; padding-block: 40px; }
  .scroll-story { --time: 1 !important; --gap: 1 !important; --expand: 1 !important; --detail: 1 !important; --title-0: 0 !important; --title-1: 0 !important; --title-2: 1 !important; }
  .story-scroll-cue { display: none !important; }
}
