/* Case study: one reading column, one prototype shown wide. */
:root { --paper: #EFEDE7; --card: #F7F5F0; --ink: #141414; --mute: #6A6862; --hair: #CFCCC4; --blue: #2247C9; --red: #D9412C; --yellow: #F2C12E; --green: #1F8A70; --lane: #2247C9; --col: 640px; --wide: 1120px; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body.case { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.case.lane-products { --lane: #D9412C; }
body.case ::selection { background: var(--ink); color: var(--paper); }
body.case a { color: var(--ink); }
body.case button { font: inherit; color: inherit; cursor: pointer; }
body.case :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cs-head { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs-name { display: flex; align-items: center; min-height: 44px; }
.cs-name svg { display: block; height: 15px; width: auto; }
.cs-run { display: flex; align-items: center; height: 44px; }
.cs-run a { width: 20px; height: 44px; display: flex; align-items: center; justify-content: center; }
.cs-run a span { display: block; width: 10px; height: 10px; transition: transform .15s; }
.cs-run a.d span { background: var(--blue); }
.cs-run a.p span { background: var(--red); }
.cs-run a.x span { box-shadow: inset 0 0 0 1.5px var(--red); }
.cs-run a[aria-current] span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.cs-run a:hover span { transform: scale(1.3); }
.cs-next { font-size: 14px; text-decoration: none; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.cs-next:hover { opacity: .6; }

.cs-col { max-width: var(--col); margin: 0 auto; }
.cs-hero { padding: 148px 20px 0; }
.cs-tag { margin: 0 0 16px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.cs-tag::before { content: ""; width: 10px; height: 10px; background: var(--lane); flex: 0 0 auto; }
.cs-hero h1 { margin: 0 0 20px; font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.cs-sub { margin: 0 0 40px; font-size: 20px; line-height: 1.45; color: #3A3936; text-wrap: pretty; }
.cs-meta { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cs-meta div { padding: 12px 16px 0 0; }
.cs-meta dt { font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--mute); margin: 0 0 4px; }
.cs-meta dd { margin: 0; font-size: 14px; line-height: 1.4; }

.cs-proto { max-width: var(--wide); margin: 72px auto 0; padding: 0 20px; box-sizing: content-box; }
.cs-proto.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proto-fig { margin: 0; min-width: 0; }
.proto { position: relative; background: var(--card); border: 1px solid var(--ink); overflow: hidden; height: 520px; user-select: none; -webkit-user-select: none; touch-action: pan-y; font-size: 14px; line-height: 1.4; }
.proto svg { display: block; }
.proto-fig figcaption { display: flex; align-items: center; gap: 10px; padding-top: 12px; font-size: 12px; font-weight: 500; color: var(--mute); }
.proto-fig figcaption::before { content: ""; width: 10px; height: 10px; background: var(--lane); }
.proto button { border: 1px solid var(--ink); background: var(--card); min-height: 44px; padding: 0 16px; border-radius: 0; font-size: 14px; }
.proto button:hover { background: var(--ink); color: var(--card); }
.proto button[aria-pressed="true"] { background: var(--ink); color: var(--card); }

.cs-sec { padding: 96px 20px 0; }
.cs-eye { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--mute); }
.cs-sec h2 { margin: 0 0 20px; font-weight: 600; font-size: 32px; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.cs-sec p { margin: 0 0 20px; color: #3A3936; text-wrap: pretty; }
.cs-list { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: n; }
.cs-list li { counter-increment: n; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--hair); }
.cs-list li::before { content: counter(n, decimal-leading-zero); grid-row: span 2; font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--lane); }
.cs-list h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.cs-list p { margin: 0; font-size: 15px; line-height: 1.6; color: #4A4945; }
.cs-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.cs-link:hover { background: var(--ink); color: var(--paper) !important; }
.cs-cover { max-width: var(--wide); margin: 96px auto 0; padding: 0 20px; box-sizing: content-box; }
.cs-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: #fff; }

.cs-end { max-width: var(--wide); margin: 160px auto 0; padding: 0 20px 160px; box-sizing: content-box; }
.cs-end-row { border-top: 1px solid var(--ink); padding-top: 12px; display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.cs-big { display: flex; align-items: baseline; gap: 20px; margin-top: 8px; text-decoration: none; font-weight: 600; font-size: clamp(48px, 9vw, 128px); line-height: 1; letter-spacing: -0.04em; }
.cs-big i { display: inline-block; width: .32em; height: .32em; background: var(--next-lane); transform: translateY(-.1em); flex: 0 0 auto; }
.cs-big:hover { color: var(--next-lane) !important; }
.cs-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; font-size: 14px; }
.cs-chat-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 20px 20px; display: flex; justify-content: center; pointer-events: none; }

@media (max-width: 760px) {
  .cs-hero { padding-top: 112px; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .cs-sec h2 { font-size: 26px; }
  .cs-run { display: none; }
  .cs-proto.two { grid-template-columns: 1fr; }
  .proto { height: 460px; }
}
/* v3 */
.cs-proto + .cs-proto { margin-top: 20px; }
.proto.h-s { height: 420px; }
.proto.h-l { height: 600px; }
.proto input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; display: block; }
.proto input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.proto input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
.proto input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--ink); border: 0; border-radius: 0; }
.proto input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ink); border: 0; border-radius: 0; }
.proto .num { font-variant-numeric: tabular-nums; }
.cs-shots { max-width: var(--wide); margin: 72px auto 0; padding: 0 20px; box-sizing: content-box; display: grid; gap: 20px; }
.cs-shots.c2 { grid-template-columns: 1fr 1fr; }
.cs-shots.c3 { grid-template-columns: 1fr 1fr 1fr; }
.cs-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: var(--card); }
.cs-shots img.px { image-rendering: pixelated; }
.cs-sec.tight { padding-top: 56px; }
@media (max-width: 760px) { .cs-shots.c2, .cs-shots.c3 { grid-template-columns: 1fr; } .proto.h-l { height: 560px; } }
