/* Full original case stories, presented in the portfolio’s shared visual language. */
:root { --case-accent: #007aff; --fg: var(--ink); --fg-2: var(--secondary); --fg-3: var(--secondary); --bg: var(--paper); --bg-1: var(--panel); --line-hi: var(--line); }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { overflow-wrap: break-word; }
button { font: inherit; color: inherit; } img { max-width: 100%; display: block; } svg { max-width: 100%; }
.case-shell { width: min(1280px,calc(100% - 80px)); margin: 0 auto; }
.story-nav { position: sticky; top: 0; z-index: 20; padding-block: 14px; background: color-mix(in srgb,var(--paper) 88%,transparent); backdrop-filter: blur(20px); }
.story-nav__tools { display: flex; align-items: center; gap: 16px; }.story-nav__number { color: var(--secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.story-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(var(--reading,0)); transform-origin: left; background: var(--blue); z-index: 30; pointer-events: none; }
.cs-hero { padding: clamp(28px,5vw,64px); margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(ellipse at 95% 0,#d5e5ff55,transparent 60%),var(--panel); }
.cs-eyebrow { color: var(--secondary); font-size: 12px; max-width: 740px; margin: 0 0 22px; }
.cs-title { font-size: clamp(44px,6.5vw,84px); max-width: 1000px; line-height: 1.02; letter-spacing: -.06em; margin: 0 0 24px; }
.cs-lede { max-width: 800px; font-size: clamp(15px,1.5vw,18px); line-height: 1.65; color: var(--secondary); margin-bottom: 40px; }
.cs-cover { overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }.cs-cover img { width: 100%; height: auto; }
.cs-meta { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 56px; }.cs-meta__cell { min-width: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }.cs-meta__label { font-size: 11px; color: var(--secondary); margin-bottom: 8px; }.cs-meta__val { font-size: 13px; line-height: 1.45; font-weight: 550; }
.cs-body { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 32px; align-items: start; }.cs-toc { position: sticky; top: 96px; padding: 14px 0; }.cs-toc ol { list-style: none; margin: 0; padding: 0; }.cs-toc a { display: flex; align-items: baseline; gap: 10px; padding: 10px 8px; font-size: 12px; line-height: 1.4; text-decoration: none; color: var(--secondary); border-radius: 10px; }.cs-toc a span { font-size: 10px; opacity: .6; min-width: 18px; }.cs-toc a[aria-current] { color: var(--ink); background: var(--panel); box-shadow: 0 2px 8px #1d2c4a06; }
.cs-flow { min-width: 0; }.cs-section { margin-bottom: 24px; padding: clamp(24px,4vw,48px); border-radius: 28px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 90px; }.cs-section > :last-child { margin-bottom: 0; }
.cs-section-num { display: flex; gap: 12px; color: var(--secondary); font-size: 11px; margin-bottom: 24px; }.cs-section-num span { color: var(--blue); font-variant-numeric: tabular-nums; }
.cs-h2 { font-size: clamp(28px,3.6vw,46px); line-height: 1.08; letter-spacing: -.05em; margin: 0 0 28px; }.cs-p { font-size: 15px; line-height: 1.75; margin: 0 0 20px; color: var(--secondary); }.cs-p strong { color: var(--ink); font-weight: 550; }.cs-h3 { font-weight: 600; font-size: 19px; letter-spacing: -.025em; margin: 32px 0 16px; }.cs-list { font-size: 14px; line-height: 1.7; color: var(--secondary); padding-left: 20px; margin: 24px 0; }.cs-list li+li { margin-top: 12px; }
.cs-pull { margin: 28px 0; padding: 24px 28px; border: 0; border-radius: 18px; background: color-mix(in srgb,var(--blue) 6%,var(--panel)); font-size: clamp(17px,2vw,21px); line-height: 1.45; letter-spacing: -.025em; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 28px 0; }.stats--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }.stat { min-width: 0; padding: 22px; border-radius: 18px; background: var(--paper); }.stat__n { font-size: clamp(25px,3.1vw,40px); line-height: 1.2; letter-spacing: -.05em; margin-bottom: 12px; font-weight: 600; overflow-wrap: anywhere; }.stat__l { font-size: 12px; color: var(--secondary); line-height: 1.5; }
.gi { display: block; width: 100%; padding: 0; border: 0; text-align: left; background: transparent; cursor: zoom-in; min-width: 0; margin: 24px 0; }.gi__frame { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; }.gi__frame img { display: block; width: 100%; height: 100%; object-fit: contain; }.ar-land .gi__frame,.ar-slide .gi__frame { aspect-ratio: 16 / 10; }.ar-desk .gi__frame { aspect-ratio: 4 / 3; }.ar-phone .gi__frame { aspect-ratio: 9 / 18; }.ar-sq .gi__frame { aspect-ratio: 1; }.ar-auto .gi__frame { aspect-ratio: auto; }.gi--centered { max-width: 620px; margin-inline: auto; }.gi__cap { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--secondary); }.gi__zoom { position: absolute; bottom: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--panel); opacity: 0; transition: opacity 150ms; }.gi:hover .gi__zoom,.gi:focus-visible .gi__zoom { opacity: 1; }
.story-icon { display: inline-block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.carousel-wrap { position: relative; margin: 24px 0 32px; padding-bottom: 50px; }.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 2px 2px 12px; }.carousel-track > .gi { flex: 0 0 86%; scroll-snap-align: start; margin: 0; }.carousel-track > .ar-phone { flex-basis: 32%; }.carousel-btn { position: absolute; bottom: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }.carousel-btn--prev { right: 48px; }.carousel-btn--next { right: 0; }
.g2,.brand-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }.g2 .gi { margin: 0; }.gphone { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 24px 0; }.gphone .gi { margin: 0; }.brand-logo-wrap { display: grid; place-items: center; background: #fff; border-radius: 20px; padding: 40px; }.brand-logo-wrap img { max-height: 180px; }.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }.swatch:not(:has(.swatch-dot)) { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 1px solid #0001; }.swatch-dot { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: var(--sw); }
.polls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px 0; }.poll { padding: 24px; background: var(--paper); border-radius: 20px; }.poll__title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }.poll__lede { font-size: 12px; color: var(--secondary); margin-bottom: 20px; }.poll-row { display: flex; align-items: baseline; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }.poll-pct { font-size: 26px; font-weight: 600; letter-spacing: -.04em; min-width: 58px; }.poll-text { font-size: 12px; color: var(--secondary); }
.cs-fig { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin: 28px 0; }.cs-fig__label { font-size: 13px; font-weight: 600; margin: 0 0 24px; }.cs-fig__label--sub { margin-top: 24px; }.cs-fig__note { font-size: 11px; color: var(--secondary); margin-top: 20px; }
.cs-map { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; align-items: center; }.cs-node { position: relative; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; font-size: 12px; }.cs-node b,.cs-node>span { display: block; }.cs-node>span { font-size: 11px; color: var(--secondary); margin-top: 7px; }.cs-node+.cs-node::before { content: '→'; position: absolute; left: -18px; top: calc(50% - 12px); color: var(--secondary); }.cs-node--core { background: var(--ink); color: var(--paper); }.cs-node__parts { display: grid; gap: 12px; margin-top: 16px; font-size: 10px; }.cs-node__parts b { font-size: 11px; }.cs-map--two { grid-template-columns: 1fr 1.3fr 1fr; }
.cs-lane+.cs-lane { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }.cs-lane__name { font-size: 12px; color: var(--secondary); margin-bottom: 12px; }.cs-steps { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 0; }.cs-steps li { position: relative; padding: 10px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }.cs-lane--now .cs-steps li { border-color: color-mix(in srgb,var(--blue) 30%,var(--line)); }.cs-lane__out { margin: 14px 0 0; font-size: 12px; font-weight: 550; }.cs-meter { margin-top: 24px; }.cs-meter__bar { height: 8px; background: var(--line); overflow: hidden; border-radius: 8px; margin-bottom: 12px; }.cs-meter__bar span { display: block; width: var(--v); height: 100%; background: var(--blue); }.cs-meter p { font-size: 12px; color: var(--secondary); }
.cs-chart { width: 100%; height: auto; }.cs-chart .ax { stroke: var(--line); stroke-width: 1; }.cs-chart .plan { fill: none; stroke: var(--secondary); stroke-width: 2; stroke-dasharray: 6 6; }.cs-chart .act { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }.cs-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; font-size: 11px; color: var(--secondary); margin-top: 12px; }.cs-legend li::before { content: ''; display: inline-block; width: 20px; margin-right: 8px; border-top: 2px solid var(--blue); vertical-align: middle; }.cs-legend .is-plan::before { border-top: 2px dashed var(--secondary); }.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; font-size: 11px; }.cs-chips li { border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }
.ba { margin: 28px 0; }.ba__track { position: relative; aspect-ratio: 16/11; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: #fff; touch-action: pan-y; --ba-pct:50%; }.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }.ba__img--before { clip-path: inset(0 calc(100% - var(--ba-pct)) 0 0); }.ba__divider { position: absolute; inset: 0 auto 0 var(--ba-pct); width: 2px; background: #fff; box-shadow: 0 0 8px #0003; }.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--ba-pct); width: 44px; transform: translateX(-50%); display: grid; place-items: center; cursor: ew-resize; touch-action: none; }.ba__knob { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1d1d1f; box-shadow: 0 3px 12px #0003; }
.story-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 20px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: var(--panel); }.story-next span { color: var(--secondary); font-size: 12px; }.story-next strong { display: block; font-size: clamp(22px,3vw,34px); letter-spacing: -.04em; font-weight: 600; }.story-next>svg { width: 28px; height: 28px; }
.story-lightbox { width: min(1320px,calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 32px 100px #0003; }.story-lightbox::backdrop { background: #e5e8eeaa; backdrop-filter: blur(18px); }.story-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 12px; }.story-lightbox__bar button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }.story-lightbox__image { display: grid; place-items: center; height: min(70svh,850px); background: var(--panel); padding: 12px; overflow: auto; }.story-lightbox__image img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }.story-lightbox__caption { text-align: center; max-width: 75%; line-height: 1.4; margin: 0; }
@media(max-width:1000px) { .case-shell { width: calc(100% - 48px); }.cs-body { grid-template-columns: 1fr; }.cs-toc { position: static; padding: 0; overflow-x: auto; }.cs-toc ol { display: flex; gap: 6px; }.cs-toc li { flex: 0 0 auto; }.cs-toc a { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }.cs-meta { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 28px; }.cs-meta__cell { padding: 16px; } }
@media(max-width:600px) { html { scroll-padding-top: 76px; }.case-shell { width: calc(100% - 32px); }.story-nav { padding-block: 10px; }.story-nav__number { display: none; }.cs-hero { padding: 24px 20px 20px; border-radius: 24px; }.cs-title { font-size: clamp(36px,10vw,56px); }.cs-lede { font-size: 14px; margin-bottom: 24px; }.cs-eyebrow { font-size: 10px; }.cs-cover { border-radius: 12px; }.cs-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.cs-meta__cell { border-radius: 16px; padding: 14px; }.cs-meta__val { font-size: 11px; }.cs-section { padding: 24px 18px; border-radius: 22px; }.cs-p { font-size: 14px; }.cs-h2 { font-size: 30px; }.cs-pull { padding: 20px; font-size: 17px; }.stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.stat { padding: 16px; }.stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }.polls,.brand-split { grid-template-columns: 1fr; }.gphone { grid-template-columns: repeat(2,minmax(0,1fr)); }.g2 { grid-template-columns: 1fr; }.carousel-track > .gi { flex-basis: 94%; }.carousel-track > .ar-phone { flex-basis: 58%; }.cs-fig { padding: 20px 16px; }.cs-map,.cs-map--two { grid-template-columns: 1fr; gap: 20px; }.cs-node+.cs-node::before { content: '↓'; top: -24px; left: calc(50% - 5px); }.cs-node { padding: 16px; }.story-next { padding: 24px; }.story-lightbox { border-radius: 18px; }.story-lightbox__image { height: 62svh; }.story-lightbox__caption { font-size: 11px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }*,*::before,*::after { transition: none !important; } }

/* Preserve equal alignment in the original compact diagrams and TOC. */
.cs-toc li + li, .cs-steps li + li, .cs-chips li + li, .cs-legend li + li { margin-top: 0; }
.cs-node--core > span { color: inherit; opacity: .8; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-track.ar-phone > .gi { flex-basis: 32%; }
@media(max-width:600px) { .carousel-track.ar-phone > .gi { flex-basis: 58%; } }

/* Labelled brand colours need their own intrinsic size, unlike token-only dots. */
.swatch:has(.swatch-dot) { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; width: auto; height: auto; max-width: 100%; border: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1.5; color: var(--secondary); white-space: nowrap; }
.swatch .swatch-dot { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
.brand-split > div { min-width: 0; }
.brand-split .swatches { gap: 12px 18px; margin: 0 0 24px; }

/* Open product stories. Borders belong to diagrams, not to every paragraph. */
body[data-project] { --case-accent: #0066cc; --case-stage: #e9edf3; }
body[data-project="prepaid"] { --case-accent: #7863a9; --case-stage: #edeaf4; }
body[data-project="dovgan"] { --case-accent: #ad404c; --case-stage: #f2e8e5; }
body[data-project="osi"] { --case-accent: #1f6aa8; --case-stage: #e5edf1; }
body[data-project="enande"] { --case-accent: #87694c; --case-stage: #efebe3; }
[data-theme="dark"] body[data-project] { --case-stage: #252b34; --case-accent: #9bbfe6; }
.case-shell { width: min(1280px,calc(100% - 80px)); margin-inline: auto; }
.story-nav { position: sticky; top: 0; z-index: 30; height: 70px; padding: 0; background: color-mix(in srgb,var(--paper) 92%,transparent); backdrop-filter: blur(20px); }
.story-nav__tools { display: flex; align-items: center; }.story-nav__number { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.story-progress { background: var(--case-accent); z-index: 40; }
.cs-hero { padding: 72px 0 0; margin: 0; border: 0; border-radius: 0; background: none; text-align: center; }
.cs-eyebrow { max-width: 900px; margin: 0 auto 26px; color: var(--secondary); font-size: 13px; line-height: 1.5; font-weight: 500; }
.cs-title { max-width: 1080px; margin: 0 auto 32px; font-size: clamp(52px,7.4vw,104px); line-height: 1.02; letter-spacing: -.065em; font-weight: 600; text-wrap: balance; overflow-wrap: normal; }
.cs-lede { max-width: 760px; margin: 0 auto 64px; color: var(--secondary); font-size: clamp(17px,1.7vw,21px); line-height: 1.55; text-wrap: pretty; }
.cs-cover { padding: clamp(16px,4vw,54px); overflow: hidden; border: 0; border-radius: 28px; background: var(--case-stage); }
.cs-cover img { display: block; width: 100%; max-height: 720px; height: auto; margin-inline: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 22px 44px -24px #18243b44; }
.cs-meta { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 32px; margin: 0; padding: 36px 0 64px; }
.cs-meta__cell { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cs-meta__label { margin-bottom: 8px; color: var(--secondary); font-size: 11px; }.cs-meta__val { font-size: 13px; line-height: 1.5; font-weight: 500; }
.cs-body { display: block; }
.cs-toc { position: sticky; top: 70px; z-index: 20; padding: 0; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb,var(--paper) 94%,transparent); backdrop-filter: blur(20px); box-shadow: 0 1px var(--line); overscroll-behavior-x: contain; }
.cs-toc::-webkit-scrollbar { display: none; }.cs-toc ol { display: flex; width: max-content; min-width: 100%; justify-content: space-between; gap: 24px; list-style: none; padding: 0; margin: 0; }.cs-toc li { flex: 0 0 auto; margin: 0; }
.cs-toc a { position: relative; display: flex; align-items: center; gap: 7px; min-height: 54px; padding: 0 2px; color: var(--secondary); font-size: 12px; line-height: 1.3; text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; background: none; }
.cs-toc a span { font-size: 10px; opacity: .55; font-variant-numeric: tabular-nums; }.cs-toc a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform 180ms; }
.cs-toc a[aria-current] { color: var(--ink); background: none; box-shadow: none; }.cs-toc a[aria-current]::after { transform: scaleX(1); }
.cs-flow { min-width: 0; }
.cs-section { padding: 104px 0 0; margin: 0; border: 0; border-radius: 0; background: transparent; scroll-margin-top: 134px; }
.cs-section:last-child { padding-bottom: 56px; }.cs-section > :last-child { margin-bottom: 0; }
.cs-section > :is(.cs-section-num,.cs-h2,.cs-p,.cs-h3,.cs-list,.swatches) { max-width: 760px; margin-inline: auto; }
.cs-section-num { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font-size: 12px; color: var(--secondary); }.cs-section-num span { color: var(--case-accent); font-variant-numeric: tabular-nums; }
.cs-h2 { margin: 0 0 32px; font-size: clamp(36px,4.5vw,64px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.cs-p { margin: 0 0 24px; font-size: 18px; line-height: 1.7; color: var(--secondary); text-wrap: pretty; }.cs-p strong { color: var(--ink); font-weight: 550; }
.cs-h3 { margin: 48px 0 20px; font-size: 23px; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.cs-list { margin: 28px 0; padding-left: 22px; color: var(--secondary); font-size: 17px; line-height: 1.65; }.cs-list li+li { margin-top: 12px; }
.cs-pull { max-width: 920px; margin: 64px auto; padding: 8px 0 8px 30px; border: 0; border-left: 3px solid var(--case-accent); border-radius: 0; background: none; font-size: clamp(25px,3.1vw,40px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin: 56px 0; }.stats--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.stat { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }.stat__n { font-size: clamp(38px,4.5vw,64px); line-height: 1.1; letter-spacing: -.055em; margin: 0 0 18px; font-weight: 600; color: var(--case-accent); overflow-wrap: break-word; }.stat__l { max-width: 28em; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.gi { margin-block: 44px; }.gi__frame { border: 0; border-radius: 18px; background: var(--case-stage); }.gi__cap { max-width: 800px; margin: 16px auto 0; padding-inline: 8px; text-align: center; font-size: 12px; line-height: 1.5; }.gi__zoom { bottom: 16px; right: 16px; width: 40px; height: 40px; border: 0; box-shadow: 0 3px 12px #00000012; }
.cs-section > .gi .gi__frame { padding: clamp(8px,2vw,28px); }.cs-section > .gi.ar-phone { max-width: 420px; margin-inline: auto; }
.carousel-wrap { margin: 44px 0; padding-bottom: 58px; }.carousel-track { gap: 24px; padding: 0 0 12px; }.carousel-track > .gi { flex-basis: 88%; }.carousel-btn { border: 0; background: color-mix(in srgb,var(--ink) 7%,var(--paper)); }.carousel-btn:disabled { opacity: .3; }
.g2,.gphone,.brand-split { margin-block: 44px; gap: 24px; }.brand-split { align-items: center; }.brand-split .cs-p { font-size: 17px; }.brand-logo-wrap { background: transparent; border-radius: 0; }
.cs-fig { margin: 48px 0; padding: clamp(24px,4vw,48px); border: 0; border-radius: 24px; background: color-mix(in srgb,var(--panel) 80%,var(--case-stage)); }.cs-node { border: 0; background: transparent; padding: 20px; }.cs-node--core { background: var(--ink); color: var(--paper); }.cs-steps li { border: 0; background: none; border-radius: 0; padding: 8px 12px 8px 0; }.cs-steps li+li::before { content: '→'; margin-right: 12px; color: var(--secondary); }
.cs-chips li { border: 0; border-radius: 0; padding: 4px 14px 4px 0; }.cs-chips li+li::before { content: '·'; margin-right: 14px; }
.polls { margin-block: 48px; gap: 48px; }.poll { padding: 0; border-radius: 0; background: transparent; }.poll__title { font-size: 21px; letter-spacing: -.025em; }.poll-pct { color: var(--case-accent); font-size: 32px; }.poll-text { font-size: 14px; }
.ba { margin-block: 48px; }.ba__track { border: 0; border-radius: 20px; }
.story-next { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 48px; align-items: center; gap: 48px; padding: 56px 0 0; margin: 64px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; text-decoration: none; }
.story-next__image { display: block; width: 100%; aspect-ratio: 16/10; border-radius: 20px; background: var(--case-stage); object-fit: cover; }
.story-next span { display: block; margin-bottom: 12px; font-size: 12px; color: var(--secondary); }.story-next strong { display: block; font-size: clamp(28px,3.4vw,48px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; }.story-next > svg { width: 28px; height: 28px; transition: transform 220ms; }.story-next:hover > svg { transform: translateX(6px); }
@media(min-width:1001px) { .cs-section > :is(.cs-fig,.stats,.polls) { max-width: 1040px; margin-inline: auto; } }
@media(max-width:1100px) { .case-shell { width: calc(100% - 48px); }.cs-meta { gap: 20px; }.cs-hero { padding-top: 48px; }.cs-title { font-size: clamp(50px,8vw,88px); }.stats--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }.story-next { gap: 28px; } }
@media(max-width:700px) {
 .case-shell { width: calc(100% - 32px); }.story-nav { height: 60px; }.story-nav__number { display: inline; font-size: 11px; }
 .cs-hero { padding-top: 32px; text-align: left; }.cs-eyebrow { font-size: 11px; margin-bottom: 18px; }.cs-title { font-size: clamp(39px,9.5vw,64px); line-height: 1.04; margin-bottom: 24px; }.cs-lede { font-size: 16px; margin-bottom: 32px; }.cs-cover { padding: 12px; border-radius: 20px; }.cs-cover img { border-radius: 8px; }
 .cs-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; padding: 28px 0 36px; }.cs-meta__val { font-size: 12px; }
 .cs-toc { top: 60px; }.cs-toc ol { gap: 22px; justify-content: flex-start; }.cs-toc a { min-height: 48px; font-size: 11px; }.cs-toc a span { display: none; }
 .cs-section { padding-top: 64px; scroll-margin-top: 116px; }.cs-section:last-child { padding-bottom: 0; }.cs-section-num { margin-bottom: 16px; }.cs-h2 { font-size: clamp(32px,8vw,46px); margin-bottom: 24px; }.cs-p { font-size: 16px; line-height: 1.65; margin-bottom: 20px; }.cs-h3 { font-size: 21px; margin-top: 32px; }.cs-list { font-size: 15px; }.cs-pull { margin-block: 40px; padding-left: 20px; font-size: 25px; }
 .stats,.stats--4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; margin-block: 36px; }.stat__n { font-size: 38px; margin-bottom: 12px; }.stat__l { font-size: 12px; }
 .gi,.carousel-wrap,.cs-fig,.g2,.gphone,.brand-split,.polls,.ba { margin-block: 32px; }.gi__frame { border-radius: 14px; }.gi__cap { font-size: 11px; margin-top: 12px; }.gi__zoom { width: 34px; height: 34px; right: 10px; bottom: 10px; }
 .carousel-track { gap: 14px; }.carousel-track > .gi { flex-basis: 94%; }.carousel-track.ar-phone > .gi { flex-basis: 65%; }.g2,.brand-split,.polls { grid-template-columns: 1fr; }.gphone { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.cs-fig { padding: 24px 18px; border-radius: 18px; }.cs-map,.cs-map--two { grid-template-columns: 1fr; }.cs-node+.cs-node::before { content: '↓'; top: -24px; left: calc(50% - 5px); }
 .story-next { grid-template-columns: minmax(0,1fr) 36px; gap: 24px 12px; margin-top: 48px; padding-top: 32px; }.story-next__image { grid-column: 1/-1; border-radius: 16px; }.story-next strong { font-size: 30px; }.story-next span { margin-bottom: 8px; }
}
@media(prefers-reduced-motion:reduce) { .cs-toc a::after,.story-next > svg { transition: none; } }

/* Chapter spacing stays outside the anchor target, so TOC links land below the navigation. */
html { scroll-padding-top: 0; }
.cs-flow { display: flow-root; }
.cs-section { margin-top: 104px; padding-top: 0; scroll-margin-top: 148px; }
@media(max-width:700px) { .cs-section { margin-top: 64px; padding-top: 0; scroll-margin-top: 128px; } }

/* A small, explorable system model for the booking case. */
.cs-section > .system-map { padding: 30px 36px 26px; background: linear-gradient(145deg,#fff,#f7f9fc); }
.system-map__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.system-map__header figcaption { font-size: 13px; font-weight: 550; color: var(--ink); }
.system-map svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.system-map__switch { display: flex; padding: 4px; gap: 3px; border-radius: 13px; background: #e9edf3; }
.system-map__switch button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; gap: 7px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--secondary); font-size: 11px; cursor: pointer; transition: background 180ms,color 180ms,box-shadow 180ms; }
.system-map__switch svg { width: 16px; height: 16px; }
.system-map__switch button[aria-pressed="true"] { background: #fff; color: #185bac; box-shadow: 0 2px 5px #25365310; }
.system-map__scene { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(240px,1.5fr) 48px minmax(0,1fr); align-items: center; padding-block: 42px 32px; }
.system-party { text-align: center; min-width: 0; }
.system-party__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; color: #3c6da5; border-radius: 20px; background: linear-gradient(145deg,#fff,#e6edf7); box-shadow: inset 0 1px #fff,0 2px 2px #8195b029,0 9px 20px -10px #4e698b66; }
.system-party__icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.system-party__icon--operator { color: #537b73; background: linear-gradient(145deg,#fff,#e3efeb); }
.system-party strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.35; }
.system-party p { max-width: 160px; min-height: 38px; margin: 8px auto 0; font-size: 11px; line-height: 1.65; color: var(--secondary); text-wrap: balance; }
.system-portal { position: relative; padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 2px 4px #314a7110,0 18px 40px -20px #36527b55; }
.system-portal__title { display: flex; align-items: center; justify-content: center; gap: 11px; padding-bottom: 20px; }
.system-portal__title > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#419dff,#066be5); box-shadow: inset 0 1px #ffffff55,0 4px 8px #007aff22; }
.system-portal__title strong { font-size: 18px; font-weight: 550; letter-spacing: -.035em; }
.system-mode { min-height: 105px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; animation: system-panel-in 220ms ease both; }
.system-mode[hidden] { display: none; }
.system-mode > p { margin: 0 0 18px; color: var(--secondary); font-size: 11px; }
.system-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.system-steps > span { position: relative; flex: 1; font-size: 10px; color: var(--secondary); }
.system-steps i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 7px; border-radius: 50%; background: #edf4ff; color: #2570cf; font-size: 11px; font-style: normal; }
.system-steps > span:not(:last-child)::after { content: ''; position: absolute; height: 1px; top: 14px; left: calc(50% + 18px); width: calc(100% - 28px); background: #d0e0f6; }
.system-records { display: flex; flex-direction: column; gap: 7px; max-width: 160px; margin-inline: auto; }
.system-records > span { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--secondary); }
.system-records i { width: 6px; height: 6px; border-radius: 50%; background: #74a3e1; }
.system-records > span:nth-child(2) i { background: #8fbcb1; }.system-records > span:nth-child(3) i { background: #c9ad76; }
.system-wire { position: relative; height: 32px; margin-inline: 5px; color: #a0afc2; }
.system-wire > span { position: absolute; height: 1px; background: #c1ccdb; top: 15px; left: 0; right: 0; }
.system-wire > svg { position: absolute; width: 12px; height: 12px; right: -1px; top: 9.5px; }
.system-wire > i { position: absolute; top: 13px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #4694ed; opacity: 0; }
.system-wire--return { transform: rotate(180deg); }.system-wire--return > i { background: #78a99a; }
.is-flowing .system-wire > i { animation: system-signal 1700ms ease-in-out 2; }
.system-map__caption { max-width: 560px; margin: 0 auto !important; min-height: 36px; color: var(--secondary); font-size: 12px; line-height: 1.5; text-align: center; text-wrap: balance; }
@keyframes system-signal { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes system-panel-in { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
[data-theme="dark"] .cs-section > .system-map { background: linear-gradient(145deg,#242a34,#20252d); }
[data-theme="dark"] .system-map__switch { background: #171b22; }[data-theme="dark"] .system-map__switch button[aria-pressed="true"] { background: #354052; color: #b9d7ff; }
[data-theme="dark"] .system-portal { background: #303845; box-shadow: 0 18px 40px -20px #0008; }[data-theme="dark"] .system-steps i { background: #263d5a; color: #b9d7ff; }
@media(max-width:700px) {
 .cs-section > .system-map { padding: 24px 20px; }.system-map__header { justify-content: center; }.system-map__header figcaption { width: 100%; text-align: center; }
 .system-map__switch { width: 100%; max-width: 320px; }.system-map__switch button { flex: 1; min-height: 40px; padding-inline: 7px; }
 .system-map__scene { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 28px 22px; }
 .system-party { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 4px 16px; align-items: center; text-align: left; max-width: 300px; width: 100%; margin-inline: auto; }
 .system-party__icon { grid-row: 1 / 3; width: 54px; height: 54px; margin: 0; border-radius: 17px; }.system-party strong { align-self: end; }.system-party p { align-self: start; max-width: none; min-height: 0; margin: 0; text-wrap: pretty; }
 .system-portal { width: 100%; max-width: 320px; margin-inline: auto; }.system-wire { width: 40px; margin: 0 auto; transform: rotate(90deg); height: 24px; }.system-wire--return { transform: rotate(-90deg); }
 .system-map__caption { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .system-mode,.is-flowing .system-wire > i { animation: none; }.system-map__switch button { transition: none; } }

/* Phone studies stay at device scale, independent of the wide desktop galleries. */
.carousel-wrap:has(.carousel-track > .gi.ar-phone), .gphone { max-width: 1000px; margin-inline: auto; }
.carousel-track > .gi.ar-phone { flex: 0 0 232px; }
.gphone { grid-template-columns: repeat(4,minmax(0,232px)); justify-content: center; }
.cs-section > .gi.gi--mobile-full, .cs-section > .gi.ar-phone { width: min(100%,260px); margin-inline: auto; }
:is(.gphone .gi,.carousel-track > .gi.ar-phone,.gi--mobile-full,.cs-section > .gi.ar-phone) .gi__frame { aspect-ratio: 9 / 18; padding: 6px; border-radius: 24px; background: color-mix(in srgb,var(--ink) 5%,var(--paper)); box-shadow: 0 12px 28px -20px #17213645; }
:is(.gphone .gi,.carousel-track > .gi.ar-phone,.gi--mobile-full,.cs-section > .gi.ar-phone) .gi__frame img { width: 100%; height: 100%; object-fit: contain; object-position: top; border-radius: 18px; }
.gi--mobile-full .gi__frame img { object-fit: cover; }
/* Outcome typography follows the same left edge as the story. */
.cs-section > .stats--booking-outcome { max-width: 760px; margin: 48px auto; gap: 28px; }
.stats--booking-outcome .stat { padding: 24px 0 0; border-top: 2px solid var(--case-accent); }
.stats--booking-outcome .stat__n { display: flex; align-items: center; height: 66px; margin-bottom: 16px; font-size: clamp(40px,4vw,58px); overflow-wrap: normal; white-space: nowrap; }
.stats--booking-outcome .stat__n--status { font-size: clamp(22px,2.2vw,29px); letter-spacing: -.04em; }
.stats--booking-outcome .stat__l { font-size: 13px; }
/* Two rhythms: a review loop, then a direct path to a working prototype. */
.design-workflow { overflow: hidden; }
.design-workflow .cs-fig__label { font-size: 20px; letter-spacing: -.025em; margin-bottom: 32px; }
.design-workflow .cs-lane { position: relative; padding-bottom: 8px; }
.design-workflow .cs-lane__name { font-size: 12px; margin: 0 0 14px; }
.design-workflow .cs-lane__out { font-size: clamp(24px,3vw,36px); letter-spacing: -.04em; line-height: 1.15; margin-top: 26px; }
.design-workflow .cs-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; counter-reset: workflow-step; }
.design-workflow .cs-steps li { position: relative; counter-increment: workflow-step; padding: 46px 6px 0; font-size: 13px; line-height: 1.45; color: var(--secondary); text-align: center; }
.design-workflow .cs-steps li::before { content: counter(workflow-step); position: absolute; left: calc(50% - 16px); top: 0; width: 32px; height: 32px; display: grid; place-items: center; margin: 0; padding: 0; border-radius: 50%; background: color-mix(in srgb,var(--ink) 7%,transparent); font-family: -apple-system,BlinkMacSystemFont,"Inter",sans-serif; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.design-workflow .cs-steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(50% + 24px); width: calc(100% - 34px); top: 16px; border-top: 1px dashed var(--line); }
.design-workflow .cs-steps .is-loop::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e7480' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10a8 8 0 1 1 1 8M4 4v6h6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 18px; }
.design-workflow .cs-lane--now { margin-top: 30px; padding-top: 30px; }
.design-workflow .cs-lane--now .cs-lane__out { color: var(--case-accent); }
.design-workflow .cs-lane--now .cs-steps li { color: var(--ink); }
.design-workflow .cs-lane--now .cs-steps li::before { background: var(--case-accent); color: white; box-shadow: 0 3px 9px color-mix(in srgb,var(--case-accent) 20%,transparent); }
.design-workflow .cs-lane--now .cs-steps li::after { border-top-style: solid; border-color: color-mix(in srgb,var(--case-accent) 35%,transparent); }
.design-workflow .cs-meter { display: flex; align-items: center; gap: 22px; padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.design-workflow .cs-meter p { max-width: 470px; margin: 0; line-height: 1.65; }
.workflow-dial { position: relative; display: grid; place-items: center; flex: 0 0 80px; height: 80px; border-radius: 50%; background: conic-gradient(var(--case-accent) 90%,var(--line) 0); }
.workflow-dial::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: var(--panel); }
.workflow-dial span { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 2px; font-size: 26px; line-height: 1; letter-spacing: -.04em; color: var(--case-accent); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.workflow-dial small { font-size: 11px; line-height: 1; letter-spacing: 0; margin: 0; }
@media(max-width:700px) {
 .gphone { display: flex; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
 .gphone > .gi,.carousel-track > .gi.ar-phone { flex: 0 0 206px; scroll-snap-align: start; }
 .cs-section > .gi.gi--mobile-full,.cs-section > .gi.ar-phone { width: min(100%,230px); }
 .cs-section > .stats--booking-outcome { grid-template-columns: 1fr; gap: 0; }
 .stats--booking-outcome .stat { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
 .stats--booking-outcome .stat__n { height: auto; min-height: 44px; margin: 0; font-size: 38px; }
 .stats--booking-outcome .stat__n--status { font-size: clamp(19px,5.6vw,26px); }
 .design-workflow .cs-steps { grid-template-columns: 1fr; gap: 0; }
 .design-workflow .cs-steps li { min-height: 54px; padding: 6px 0 16px 46px; text-align: left; }
 .design-workflow .cs-steps li::before { left: 0; }
 .design-workflow .cs-steps li:not(:last-child)::after { top: 38px; bottom: 6px; left: 16px; right: auto; width: 0; border-top: 0; border-left: 1px dashed var(--line); }
 .design-workflow .cs-lane--now .cs-steps li::after { border-left-style: solid; border-color: color-mix(in srgb,var(--case-accent) 35%,transparent); }
 .design-workflow .cs-lane__out { margin-top: 8px; }
 .design-workflow .cs-meter { gap: 16px; }
 .workflow-dial { flex-basis: 66px; height: 66px; }
}

/* Prepaid: one dataset, two perspectives, a changing voyage. */
.cs-fig.voyage { background: linear-gradient(155deg,var(--panel),color-mix(in srgb,var(--case-accent) 4%,var(--panel))); }
.voyage__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.voyage__eyebrow { font-size: 11px; color: var(--secondary); margin: 0 0 12px; }
.voyage figcaption { max-width: 360px; font-size: clamp(26px,3vw,38px); font-weight: 550; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.voyage__roles { display: flex; flex-shrink: 0; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in srgb,var(--ink) 5%,transparent); }
.voyage__roles button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 0; border-radius: 12px; background: none; color: var(--secondary); font: inherit; font-size: 11px; cursor: pointer; transition: background 200ms,color 200ms,box-shadow 200ms; }
.voyage__roles svg { width: 24px; height: 24px; }
.voyage__roles button[aria-pressed="true"] { background: var(--paper); color: var(--case-accent); box-shadow: 0 2px 6px #15234010; }
.voyage__scope { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-top: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.voyage__scope p { font-size: 13px; font-weight: 550; margin: 0; }
.voyage__scope > span { color: var(--secondary); font-size: 11px; }
.voyage__plot { margin: 24px 0 28px; }
.voyage__legend { display: flex; justify-content: flex-end; gap: 20px; font-size: 11px; color: var(--secondary); }
.voyage__legend span { display: flex; align-items: center; gap: 8px; }
.voyage__legend span::before { content: ''; width: 18px; border-top: 2px dashed currentColor; opacity: .65; }
.voyage__legend span+span::before { border-top-style: solid; color: var(--case-accent); opacity: 1; }
.voyage__chart { display: block; width: 100%; height: auto; overflow: visible; color: var(--case-accent); }
.voyage__chart path { fill: none; }
.voyage__chart .voyage__area { fill: url(#voyage-fill); }
.voyage__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.voyage__forecast { stroke: var(--secondary); opacity: .5; stroke-width: 2; stroke-dasharray: 6 7; }
.voyage__line { stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }
.voyage__cursor path { stroke: currentColor; stroke-opacity: .35; stroke-dasharray: 3 5; }
.voyage__halo { fill: currentColor; opacity: .1; }
.voyage__point { fill: currentColor; stroke: var(--panel); stroke-width: 3; }
.voyage__axis { display: flex; justify-content: space-between; padding-inline: 3%; color: var(--secondary); font-size: 10px; }
.voyage__events { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.voyage__events button { display: flex; gap: 10px; align-items: baseline; padding: 15px 0; border: 0; border-top: 2px solid var(--line); background: transparent; color: var(--secondary); text-align: left; font: inherit; font-size: 13px; cursor: pointer; transition: color 180ms,border-color 180ms; }
.voyage__events button span { font-size: 10px; opacity: .6; font-variant-numeric: tabular-nums; }
.voyage__events button[aria-pressed="true"] { color: var(--case-accent); border-color: currentColor; }
.voyage__detail { max-width: 570px; min-height: 3.2em; margin-top: 4px; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.voyage__detail p { margin: 0; }
.voyage > .cs-fig__note { margin-top: 26px; font-size: 10px; }
.voyage button:focus-visible { outline: 2px solid var(--case-accent); outline-offset: 4px; }
.voyage.is-revealed .voyage__line { animation: voyage-draw 1200ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes voyage-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media(max-width:700px) {
 .voyage__header { flex-direction: column; gap: 24px; }
 .voyage__roles { width: 100%; }
 .voyage__roles button { flex: 1; flex-direction: row; justify-content: center; padding: 12px 8px; }
 .voyage__scope { margin-top: 24px; }
 .voyage__plot { margin-block: 20px; }
 .voyage__chart { margin-block: 12px; }
 .voyage__events { gap: 10px; }
 .voyage__events button { flex-direction: column; gap: 6px; font-size: 12px; }
 .voyage__detail { min-height: 4.8em; font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { .voyage.is-revealed .voyage__line { animation: none; } }

/* Case navigation: a compact, floating segmented surface. */
.cs-toc {
 position: sticky; top: 78px; z-index: 21;
 width: max-content; max-width: 100%; margin-inline: auto; padding: 6px;
 border: 0; border-radius: 24px;
 background: color-mix(in srgb,var(--paper) 78%,transparent);
 -webkit-backdrop-filter: blur(24px) saturate(150%);
 backdrop-filter: blur(24px) saturate(150%);
 box-shadow: 0 8px 28px -16px #18213840, inset 0 1px 0 #ffffff80;
 overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 6px;
 font-family: -apple-system,BlinkMacSystemFont,'Inter','Segoe UI',sans-serif;
 font-variant-numeric: normal;
}
.cs-toc ol {
 display: flex; justify-content: flex-start; align-items: center;
 width: max-content; min-width: 0; gap: 2px; padding: 0; margin: 0;
}
.cs-toc li { flex: 0 0 auto; margin: 0; }
.cs-toc a {
 display: flex; align-items: center; justify-content: center;
 min-height: 42px; padding: 0 16px; gap: 0;
 border: 0; border-radius: 18px; background: transparent;
 font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.25;
 letter-spacing: -.015em; color: var(--secondary); white-space: nowrap;
 transition: color 180ms ease,background 180ms ease,box-shadow 180ms ease;
}
.cs-toc a::after { content: none; }
.cs-toc a:hover { color: var(--ink); background: color-mix(in srgb,var(--ink) 4%,transparent); }
.cs-toc a[aria-current] {
 color: var(--ink); background: var(--panel);
 box-shadow: 0 2px 6px #17213b12,0 1px 2px #17213b08;
}
.cs-toc a:focus-visible { outline: 2px solid var(--case-accent); outline-offset: -3px; }
[data-theme="dark"] .cs-toc { background: color-mix(in srgb,var(--paper) 84%,transparent); box-shadow: 0 8px 28px -16px #0008,inset 0 1px 0 #ffffff0d; }
[data-theme="dark"] .cs-toc a[aria-current] { background: color-mix(in srgb,var(--ink) 12%,var(--paper)); box-shadow: 0 2px 6px #0003,inset 0 1px 0 #ffffff0a; }
@media(max-width:700px) {
 .cs-toc { top: 66px; padding: 5px; border-radius: 22px; }
 .cs-toc ol { gap: 2px; }
 .cs-toc a { min-height: 44px; padding-inline: 14px; font-size: 13px; border-radius: 17px; }
}

/* Booking architecture, grounded in the two actual product views. */
.booking-system { margin: 56px 0; padding: 0; }
.booking-system > figcaption { max-width: 760px; margin: 0 auto 36px; font-size: clamp(26px,3.2vw,40px); font-weight: 550; line-height: 1.15; letter-spacing: -.04em; color: var(--ink); }
.booking-system__connection { display: grid; grid-template-columns: 1fr minmax(140px,1fr) 1fr; align-items: center; gap: 24px; max-width: 960px; margin: 0 auto 40px; padding: 28px 0; }
.booking-system__party { text-align: center; min-width: 0; }
.booking-system__party strong { display: block; font-size: 18px; line-height: 1.3; font-weight: 550; letter-spacing: -.02em; }
.booking-system__party > span { display: block; margin-top: 8px; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.booking-system__bridge { display: flex; align-items: center; gap: 14px; color: var(--case-accent); }
.booking-system__bridge b { flex-shrink: 0; font-size: 14px; font-weight: 550; }
.booking-system__bridge > span { flex: 1; position: relative; height: 1px; background: color-mix(in srgb,var(--case-accent) 35%,transparent); }
.booking-system__bridge > span::after { content: ''; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid var(--case-accent); border-right: 1px solid var(--case-accent); transform: rotate(45deg); }
.booking-system__bridge > span:first-child::after { right: auto; left: 0; transform: rotate(-135deg); }
.booking-system__areas { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,4vw,56px); }
.booking-system__area { min-width: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.booking-system__area h3 { font-size: clamp(23px,2.4vw,32px); font-weight: 550; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 12px; }
.booking-system__area > p { margin: 0; max-width: 340px; min-height: 3.2em; font-size: 14px; line-height: 1.6; color: var(--secondary); }
.booking-system__screen.gi { position: relative; margin: 24px 0 0; padding: clamp(12px,2vw,24px); border-radius: 18px; background: linear-gradient(145deg,color-mix(in srgb,var(--case-accent) 9%,var(--paper)),color-mix(in srgb,var(--case-accent) 3%,var(--paper))); }
.booking-system__screen .gi__frame { border: 0; border-radius: 6px; background: var(--panel); box-shadow: 0 8px 18px -10px #192e6155; transition: transform 350ms cubic-bezier(.2,.7,.2,1); }
.booking-system__screen .gi__frame img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.booking-system__zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--ink); box-shadow: 0 2px 10px #00000010; }
.booking-system__zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media(hover:hover) { .booking-system__screen:hover .gi__frame { transform: translateY(-3px); } }
.booking-system__screen:focus-visible { outline: 2px solid var(--case-accent); outline-offset: 4px; }
@media(max-width:700px) {
 .booking-system { margin-block: 36px; }
 .booking-system > figcaption { margin-bottom: 24px; }
 .booking-system__connection { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; padding: 0; }
 .booking-system__bridge { flex-direction: column; gap: 10px; }
 .booking-system__bridge > span { flex: none; width: 1px; height: 20px; }
 .booking-system__bridge > span::after { top: auto; bottom: 0; right: -3px; transform: rotate(135deg); }
 .booking-system__bridge > span:first-child::after { top: 0; bottom: auto; left: -3px; transform: rotate(-45deg); }
 .booking-system__party strong { font-size: 17px; }
 .booking-system__party > span { margin-top: 4px; }
 .booking-system__areas { grid-template-columns: 1fr; gap: 32px; }
 .booking-system__area > p { min-height: 0; max-width: none; }
 .booking-system__screen.gi { margin-top: 18px; }
}

/* A scroll viewport needs room around the slide for its shadow. */
.carousel-track { padding: 20px 18px 32px; scroll-padding-inline: 18px; }
@media(max-width:700px) {
 .gphone { padding: 18px 16px 30px; scroll-padding-inline: 16px; }
}

/* Role views: a single voyage for crew, multiple voyages for shoreside managers. */
.voyage__plot[hidden], .voyage__fleet[hidden] { display: none; }
.voyage__fleet { margin: 24px 0 28px; min-height: clamp(220px, 25vw, 338px); }
.voyage__fleet-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.voyage__fleet-heading h3 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: -.025em; }
.voyage__fleet-heading p { margin: 0; color: var(--secondary); font-size: 12px; }
.voyage__fleet-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 240px) minmax(80px, .5fr); align-items: center; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--secondary); }
.voyage__fleet-row--current { border-radius: 16px; border-bottom-color: transparent; background: color-mix(in srgb,var(--case-accent) 7%,transparent); color: var(--case-accent); }
.voyage__fleet-label { display: block; font-size: 14px; font-weight: 550; color: var(--ink); }
.voyage__fleet-status { display: block; margin-top: 6px; font-size: 12px; }
.voyage__fleet-row svg { display: block; width: 100%; max-height: 64px; overflow: visible; }
.voyage__fleet-trend { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.voyage__fleet-row:last-child .voyage__fleet-trend { display: none; }
.voyage__fleet-row circle { fill: currentColor; stroke: var(--panel); stroke-width: 2; }
.voyage__fleet-access { text-align: right; font-size: 11px; color: var(--secondary); }
@media(max-width:600px) {
 .voyage__fleet-heading { display: block; }
 .voyage__fleet-heading p { margin-top: 6px; line-height: 1.5; }
 .voyage__fleet-row { grid-template-columns: minmax(0,1fr) minmax(80px,.8fr); gap: 8px 16px; padding: 14px 12px; }
 .voyage__fleet-access { grid-column: 1 / -1; text-align: left; }
 .voyage__fleet-label { font-size: 13px; }
}

/* Prepaid UI artboards include their own layout and spacing. */
.cs-cover.cs-cover--render { padding: 0; background: #ebe7f2; }
.cs-cover--render img { max-height: none; border-radius: 0; box-shadow: none; }
.cs-section > .gi.gi--render .gi__frame, .gi--render .gi__frame { padding: 0; aspect-ratio: 3 / 2; background: #ebe7f2; }
.gi--render .gi__frame img { width: 100%; height: 100%; object-fit: contain; }
