/* Filmstrip — lukameng.com
   One sideways strip of full-height frames. Each featured project owns one colour field. */

:root {
  --ground: #E8E6E1;
  --frame: #FFFFFF;
  --ink: #121212;
  --ink-2: #4A4A47;
  --ink-3: #5E5D59;
  --hair: #D6D3CC;
  --c-portal: #2340E8;
  --c-fleet: #C8351F;
  --c-voice: #E9D23A;
  --c-pipe: #B9B4A8;
  --c-rev: #F0A93B;
  --c-ink-on-portal: #FFFFFF;
  --f-sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--frame); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Bar ─────────────────────────────── */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 3vw, 40px); background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); }
.bar .me { font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
.bar nav { justify-self: end; display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* tick scrubber */
.ticks { display: flex; align-items: center; gap: 7px; height: 22px; }
.ticks a { display: block; width: 2px; height: 18px; background: #9C9890; transition: width .45s var(--ease), background .3s; position: relative; }
.ticks a.is-on { width: 34px; background: transparent; border: 1.5px solid var(--ink); height: 18px; }
.ticks a:hover { background: var(--ink); }
.ticks a.is-on:hover { background: transparent; }
.ticks .tip { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ticks a:hover .tip, .ticks a:focus-visible .tip { opacity: 1; }

/* ── Strip ───────────────────────────── */
.strip {
  height: 100svh; padding: calc(var(--bar) + 26px) 0 28px;
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 7vw;
  padding-left: 7vw; padding-right: 7vw;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(86vw, 1320px); height: 100%; scroll-snap-align: center; display: flex; flex-direction: column; }
.slide-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 0 2px 9px; }
.slide-label .n { font-family: var(--f-mono); font-size: 12.5px; }
.slide-frame { position: relative; flex: 1; min-height: 0; background: var(--frame); overflow: hidden; display: grid; }

/* intro */
.intro .slide-frame { grid-template-columns: 1.25fr 1fr; }
.intro-words { padding: clamp(28px, 4.5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.intro h1 { font-weight: 500; font-size: clamp(40px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.intro h1 .indent { display: block; padding-left: 0.9em; }
.intro h1 .dim { color: var(--ink-3); }
.intro .lede { max-width: 32em; color: var(--ink-2); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 18px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--frame); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 18px; transition: background .2s; }
.btn:hover { background: var(--c-portal); }
.intro-map { position: relative; background: var(--ink); color: var(--frame); padding: clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.intro-map h2 { font-size: 13.5px; font-weight: 500; color: #A9A69F; }
.lane { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; text-decoration: none; }
.lane i { width: 14px; height: 14px; margin-top: 8px; }
.lane b { display: block; font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -0.02em; }
.lane span { display: block; color: #B8B5AE; font-size: 14.5px; margin-top: 4px; }
.lane:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.hint { position: absolute; right: 22px; bottom: 18px; font-family: var(--f-mono); font-size: 12px; color: #A9A69F; display: flex; gap: 8px; align-items: center; }
.hint svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* project slides */
.proj .slide-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.proj-words { padding: clamp(26px, 3.6vw, 60px); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.big { font-weight: 500; font-size: clamp(64px, 9vw, 150px); line-height: 0.88; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.big-k { font-size: 15px; color: var(--ink-2); margin-top: 12px; max-width: 22em; }
.proj h2 { font-weight: 600; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin-top: auto; padding-top: 28px; }
.proj .ctx { font-size: 14px; color: var(--ink-3); margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj .problem { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.4; margin-top: 16px; max-width: 30em; text-wrap: pretty; }
.facts { list-style: none; margin-top: 18px; border-top: 1px solid var(--hair); }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.4; }
.facts li b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 5.2em; }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; align-self: flex-start; }
.more svg { transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.dot.live { background: #1F9D55; } .dot.pilot { background: #D08A00; } .dot.retired { background: #A8A397; }

.field { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(22px, 3vw, 48px); min-height: 0; }
.field.portal { background: var(--c-portal); }
.field.fleet { background: var(--c-fleet); }
.field.voice { background: var(--c-voice); }
.field.pipe { background: var(--c-pipe); }
.field.rev { background: var(--c-rev); }
.field .screen { width: 100%; max-width: 560px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); border: 0; border-radius: 10px; }
.field .flag { position: absolute; left: 16px; top: 16px; font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--frame); padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }


/* revenue slide: four entries */
.rev .slide-frame { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.rev-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0; flex-wrap: wrap; }
.rev-head h2 { font-weight: 600; font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -0.03em; line-height: 1.05; }
.rev-head p { color: var(--ink-2); max-width: 36em; font-size: 15px; }
.rev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--hair); min-height: 0; }
.rev-item { padding: 20px clamp(16px, 1.8vw, 28px) 22px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.rev-item:last-child { border-right: 0; }
.rev-item .thumb { aspect-ratio: 16 / 10; background: var(--ground); overflow: hidden; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.rev-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.rev-item .thumb svg { width: 86%; height: auto; }
.rev-item .r { font-weight: 500; font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rev-item .rk { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.rev-item h3 { font-weight: 600; font-size: 17px; line-height: 1.25; margin-top: 16px; letter-spacing: -0.01em; }
.rev-item p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.rev-item .ctx { font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; }

/* contact */
.contact .slide-frame { background: var(--ink); color: var(--frame); grid-template-columns: 1fr; align-content: center; padding: clamp(28px, 5vw, 80px); }
.contact h2 { font-weight: 500; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.04em; max-width: 12em; }
.contact p { color: #B8B5AE; margin-top: 20px; max-width: 32em; }
.contact .intro-actions a:not(.btn) { color: #DAD7D0; }
.contact .btn { background: var(--frame); color: var(--ink); }
.contact .btn:hover { background: var(--c-voice); }
.contact .sign { margin-top: 48px; font-family: var(--f-mono); font-size: 12px; color: #8E8B84; }

/* ── Case study pages ───────────────── */
.cs body, body.cs { overflow-x: hidden; }
.cs-head { padding: calc(var(--bar) + clamp(28px, 5vw, 64px)) clamp(18px, 7vw, 120px) 0; max-width: 1500px; }
.back { font-size: 14px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.back:hover { color: var(--ink); }
.cs-head h1 { font-weight: 500; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.96; letter-spacing: -0.045em; margin-top: 22px; max-width: 12em; }
.cs-head .sub { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; max-width: 34em; margin-top: 22px; color: var(--ink); text-wrap: pretty; }
.cs-head .ctx { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.cs-strip-wrap { position: relative; margin-top: clamp(30px, 4vw, 52px); }
.cs-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 clamp(18px, 7vw, 120px) 8px; scroll-padding: 0 clamp(18px, 7vw, 120px); scrollbar-width: thin; scrollbar-color: #9C9890 transparent; }
.cs-frame { flex: none; width: min(88vw, 980px); scroll-snap-align: start; display: flex; flex-direction: column; }
.cs-frame .slide-label { padding-bottom: 8px; }
.cs-frame .box { background: var(--frame); padding: clamp(20px, 2.6vw, 38px); flex: 1; }
.cs-frame .box h2 { font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.cs-frame .box .why { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.strip-hint { display: flex; justify-content: space-between; gap: 14px; padding: 10px clamp(18px, 7vw, 120px) 0; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.strip-hint button { font: inherit; color: var(--ink); background: none; border: 1px solid var(--ink); padding: 4px 10px; cursor: pointer; }
.strip-hint button:hover { background: var(--ink); color: var(--frame); }

/* step diagram */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin-top: 30px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--ink); }
.steps li { position: relative; padding-right: 14px; counter-increment: s; }
.steps li::before { content: counter(s); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--frame); border: 2px solid var(--ink); font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.steps li.gate::before { background: var(--accent, var(--ink)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--ink)); }
.steps li b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.2; margin-top: 14px; letter-spacing: -0.01em; }
.steps li span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.steps li.gate em { display: inline-block; font-style: normal; font-family: var(--f-mono); font-size: 11px; margin-top: 8px; padding: 1px 6px; background: var(--accent, var(--ink)); color: var(--accent-ink, #fff); }
.readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--hair); }
.reading { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--hair); }
.reading .v { font-weight: 500; font-size: clamp(32px, 3.4vw, 52px); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.reading .k { font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 18em; }

.prose { max-width: 70ch; padding: clamp(48px, 7vw, 96px) clamp(18px, 7vw, 120px) clamp(48px, 6vw, 80px); box-sizing: content-box; }
.prose section + section { margin-top: clamp(44px, 6vw, 72px); }
.prose h2 { font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.prose h3 { font-weight: 600; font-size: 20px; margin: 26px 0 6px; letter-spacing: -0.01em; }
.prose p { margin-bottom: 14px; text-wrap: pretty; }
.prose .muted { color: var(--ink-2); }
.prose ul.points { list-style: none; border-top: 1px solid var(--hair); margin-top: 8px; }
.prose ul.points > li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--frame); padding: 1px 5px; }
.prose .stack { color: var(--ink-2); }
.prose .footnote { font-size: 15px; color: var(--ink-2); }
.printout { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; background: var(--frame); padding: 18px 20px; margin: 14px 0 18px; white-space: pre-wrap; overflow-x: auto; }
.printout .cap { display: block; font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; white-space: normal; }
.printout.is-incident { border: 1.5px solid var(--c-fleet); }
.log-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.log-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 14px 8px 0; border-bottom: 1.5px solid var(--ink); }
.log-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.log-table td:first-child { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.log-table td:nth-child(2) { font-weight: 600; width: 32%; }
.agent-card { background: var(--frame); padding: 18px 20px; margin: 12px 0; }
.agent-card h3 { margin: 0 0 2px; }
.agent-card .meta { font-size: 13.5px; color: var(--ink-3); margin-bottom: 8px; }
.agent-card p:last-child { margin-bottom: 0; }
.cs-foot { background: var(--ink); color: var(--frame); padding: clamp(48px, 7vw, 96px) clamp(18px, 7vw, 120px); }
.cs-foot h2 { font-weight: 500; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -0.04em; line-height: 1; max-width: 13em; }
.cs-foot .intro-actions a:not(.btn) { color: #DAD7D0; }
.cs-foot .btn { background: var(--frame); color: var(--ink); }
.cs-foot .next { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3A3A38; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: #B8B5AE; }
.cs-foot .next a { color: var(--frame); }

/* ── Responsive ─────────────────────── */
@media (max-width: 900px) {
  .strip { padding-left: 5vw; padding-right: 5vw; scroll-padding: 0 5vw; padding-top: calc(var(--bar) + 18px); }
  .slide { width: 90vw; }
  .slide-frame { overflow-y: auto; }
  .intro .slide-frame, .proj .slide-frame { grid-template-columns: 1fr; grid-auto-rows: auto; align-content: start; }
  .proj-words { overflow: visible; }
  .proj h2 { margin-top: 22px; padding-top: 0; }
  .field { padding: 18px; }
  .rev .slide-frame { grid-template-rows: auto auto; }
  .rev-grid { grid-template-columns: 1fr; }
  .rev-item { border-right: 0; border-bottom: 1px solid var(--hair); overflow: visible; }
  .bar { grid-template-columns: auto 1fr; }
  .bar .ticks { display: none; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { left: 15px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding-right: 0; }
  .steps li::before { grid-row: 1 / span 3; }
  .steps li b { margin-top: 5px; }
  .readings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bar nav .hide-sm { display: none; }
  .big { font-size: 64px; }
  .readings { grid-template-columns: 1fr; }
}
/* Phone hero: headline flows without the indents.
   Every button + links group (intro, contact, case-study footers): email full width, the text links side by side below it. */
@media (max-width: 600px) {
  .intro h1 { text-wrap: balance; }
  .intro h1 .indent { display: inline; padding-left: 0; }
  .intro-actions .btn { flex: 1 0 100%; justify-content: center; }
}
/* Press spring-back. Uses the individual `scale`/`translate` transform properties so the
   press scale and the intro button's magnetic offset (--mag, set by film.js) compose. */
.btn { translate: var(--mag, none); }
.btn, .backbtn { transition: background .2s, scale .22s cubic-bezier(.34, 1.4, .64, 1); }
.strip-hint button { transition: background .2s, color .2s, scale .22s cubic-bezier(.34, 1.4, .64, 1); }
.btn:active, .backbtn:active, .strip-hint button:active { scale: .97; transition-duration: .2s, .1s; transition-timing-function: ease, ease-out; }
.strip-hint button:active { transition-duration: .2s, .2s, .1s; transition-timing-function: ease, ease, ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .strip { scroll-behavior: auto; }
  .btn:active, .backbtn:active, .strip-hint button:active { scale: none; transform: none; }
  .btn { translate: none; }
}

/* ── Mock screens (illustrative, fake data) ──── */
.screen {
  background: #FFFFFF; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(28,33,36,.55), 0 2px 0 rgba(28,33,36,.08);
  font-family: -apple-system, 'Segoe UI', 'Public Sans', sans-serif; font-size: 13px; line-height: 1.4; color: #1F2933;
}
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #F3F4F6; border-bottom: 1px solid #E2E5E9; }
.screen-bar .dots { display: flex; gap: 5px; }
.screen-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #CBD0D6; display: block; }
.screen-bar .url { flex: 1; background: #fff; border: 1px solid #E2E5E9; border-radius: 6px; padding: 3px 10px; color: #6B7280; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-body { padding: 14px; }
.s-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.s-h b { font-size: 14px; font-weight: 650; }
.s-muted { color: #6B7280; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: #E3F4EA; color: #1E6B40; }
.chip.warn { background: #FDF1D6; color: #8A5A00; }
.chip.bad { background: #FBE4E0; color: #9E2A1B; }
.chip.off { background: #EEF0F2; color: #4B5563; }
.chip.info { background: #E6EEF8; color: #234E80; }
.s-tabs { display: flex; gap: 2px; border-bottom: 1px solid #E5E7EB; margin-bottom: 12px; overflow: hidden; }
.s-tabs span { padding: 7px 10px; font-size: 12px; color: #6B7280; border-bottom: 2px solid transparent; white-space: nowrap; }
.s-tabs span.on { color: #111827; border-color: #111827; font-weight: 600; }
.s-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.s-table th { text-align: left; font-weight: 600; font-size: 11.5px; color: #6B7280; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid #E5E7EB; }
.s-table td { padding: 7px 8px; border-bottom: 1px solid #F0F1F3; vertical-align: middle; }
.s-table tr:last-child td { border-bottom: 0; }
.s-note { margin-top: 12px; padding: 9px 11px; border-radius: 8px; font-size: 12px; display: flex; gap: 8px; align-items: flex-start; }
.s-note.ok { background: #EEF8F2; color: #1E5C3A; }
.s-note.bad { background: #FCEDEA; color: #8C2618; }
.s-note.info { background: #F1F5FA; color: #2A4365; }
.s-note svg { flex: none; margin-top: 1px; }
.pc { display: flex; flex-wrap: wrap; gap: 4px; }
.pc span { font-variant-numeric: tabular-nums; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 4px; padding: 1px 6px; font-size: 11.5px; }
.s-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-card { border: 1px solid #E5E7EB; border-radius: 8px; padding: 10px; }
.s-card .lbl { font-size: 11.5px; color: #6B7280; text-transform: uppercase; letter-spacing: .04em; }
.s-card .val { font-size: 18px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.kanban .col { background: #F6F7F9; border-radius: 8px; padding: 8px; min-height: 150px; }
.kanban .col b { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 6px; }
.kanban .item { background: #fff; border: 1px solid #E5E7EB; border-radius: 6px; padding: 5px 6px; font-size: 12px; margin-bottom: 5px; line-height: 1.3; }
.kanban .item i { display: block; font-style: normal; color: #6B7280; font-size: 11.5px; }
.logline { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; background: #111827; color: #D1D5DB; border-radius: 8px; padding: 10px 12px; margin-top: 10px; line-height: 1.6; white-space: pre-wrap; }
.logline .g { color: #6EE7A0; } .logline .y { color: #FCD34D; } .logline .r { color: #FCA5A5; }


/* Phones: stack each frame's parts as plain blocks and scroll inside the frame. */
@media (max-width: 900px) {
  .slide-frame { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .intro-map, .field { min-height: 0; }
  .intro-map .hint { position: static; align-self: flex-end; }
  .field { display: block; }
  .field .flag { position: static; display: block; margin-bottom: 10px; }
  .rev-grid { display: block; }
  .rev-item { display: block; }
  .rev-item .thumb { max-height: 200px; }
  .contact .slide-frame { display: flex; flex-direction: column; justify-content: center; }
}

/* ── Case-study section: same frame language as home, obvious way back ── */
.cs-bar { background: var(--ink); color: var(--frame); backdrop-filter: none; }
.backbtn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--frame); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 9px 14px; transition: background .2s; }
.backbtn:hover { background: var(--c-voice); }
.backbtn svg { transition: transform .3s var(--ease); }
.backbtn:hover svg { transform: translateX(-3px); }
.cs-tabs { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.cs-tabs-label { font-family: var(--f-mono); font-size: 12px; color: #9C9890; margin-right: 10px; }
.cs-bar .cs-tabs a { color: #CFCBC3; text-decoration: none; padding: 7px 12px; border: 1px solid transparent; }
.cs-bar .cs-tabs a:hover { color: var(--frame); border-color: #5A5955; }
.cs-bar .cs-tabs a[aria-current="page"] { color: var(--ink); background: var(--frame); }
.cs-bar nav[aria-label="Main"] a { color: #CFCBC3; }
.cs-bar nav[aria-label="Main"] a:hover { color: var(--frame); }
.cs-head { max-width: none; padding-left: 7vw; padding-right: 7vw; padding-top: calc(var(--bar) + 26px); }
.cs-hero-frame { height: min(78svh, 760px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.cs-hero-frame h1 { font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.04; letter-spacing: -0.035em; margin-top: auto; padding-top: 28px; }
.cs-hero-frame .ctx { font-size: 14px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-strip, .strip-hint { padding-left: 7vw; padding-right: 7vw; scroll-padding: 0 7vw; }
.prose { padding-left: 7vw; padding-right: 7vw; }
@media (max-width: 900px) {
  .cs-bar { grid-template-columns: auto 1fr; }
  .cs-bar .cs-tabs { display: none; }
  .cs-head { padding-left: 5vw; padding-right: 5vw; }
  .cs-hero-frame { height: auto; display: block; }
  .cs-hero-frame h1 { margin-top: 22px; padding-top: 0; }
}
