/* High-contrast manga: black and white, red only for local emphasis. */
:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --red: #E3121B;
  --tone: #E9E9E9;
  --sans: "MymSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "MymSerif", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --gutter: 64px;
  --ease-pop: cubic-bezier(.2, .9, .25, 1.25);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--tone); background-image: radial-gradient(rgba(10,10,10,.13) 1px, rgba(10,10,10,0) 1.4px); background-size: 6px 6px; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 96px; display: flex; flex-direction: column; gap: 110px; }

/* ---------- primitives ---------- */
.chip { display: inline-block; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 900; padding: 5px 12px; letter-spacing: 1px; }
.chip-w { background: var(--paper); color: var(--ink); }
.chip-red { background: var(--red); color: var(--paper); }
.label { font-size: 13px; font-weight: 900; letter-spacing: 3px; }
.narr { display: inline-block; background: var(--paper); border: 3px solid var(--ink); padding: 10px 16px; font-size: 15px; font-weight: 500; line-height: 1.7; box-shadow: 6px 6px 0 var(--ink); transform: rotate(var(--r, -1.5deg)); }
.bubble { display: inline-block; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; padding: 14px 22px; font-family: var(--serif); font-weight: 700; font-size: 15px; white-space: nowrap; }
.stamp { display: inline-block; background: var(--red); color: var(--paper); border: 3px solid var(--ink); font-weight: 900; font-size: 18px; letter-spacing: 2px; padding: 4px 12px; transform: rotate(var(--r, 9deg)); }
.stamp-plain { background: var(--paper); color: var(--ink); }
.btn { display: inline-block; text-align: center; text-decoration: none; font-weight: 900; font-size: 15px; padding: 13px 22px; border: 3px solid var(--ink); }
.btn-red { background: var(--red); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-skew { display: inline-block; align-self: flex-start; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 900; padding: 8px 18px; transform: skewX(-12deg); text-decoration: none; }
.btn-skew-red { background: var(--red); box-shadow: 4px 4px 0 var(--ink); }
.btn-skew > span { display: inline-block; transform: skewX(12deg); }
.speed { background-image: repeating-conic-gradient(from 0deg at 80% 105%, rgba(255,255,255,.12) 0deg 1.4deg, rgba(255,255,255,0) 1.4deg 6deg); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
.kv dt { font-weight: 900; }

/* Ransom-note headings: one box per character. */
.ransom { display: inline-flex; align-items: flex-end; gap: 3px; font-size: 48px; font-weight: 900; line-height: 1; margin: 0; }
.rs { display: inline-block; transform: rotate(var(--r)); }
.rs-b { background: var(--ink); color: var(--paper); padding: .12em .2em; }
.rs-r { background: var(--red); color: var(--paper); padding: .16em .24em; font-size: 1.2em; box-shadow: 5px 5px 0 var(--ink); }
.rs-w { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); padding: .04em .16em; }
.rs-d { background: var(--ink); color: var(--paper); padding: .08em .18em; font-size: .92em; transform: rotate(6deg); }

/* Slanted panels: the box is skewed, its content is skewed back and widened to cover the corners. */
.sk { --sk: -3deg; --m: 32px; display: block; position: relative; color: inherit; text-decoration: none; background: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; transform: skewX(var(--sk)); }
.sk > .sk-in { display: flex; flex-direction: column; height: 100%; margin: 0 calc(var(--m) * -1); transform: skewX(calc(var(--sk) * -1)); }
.sk.flip { --sk: 3deg; }
a.sk { transition: transform .18s, box-shadow .18s; }
a.sk:hover { box-shadow: 12px 12px 0 var(--ink); transform: skewX(var(--sk)) translate(-3px, -3px); }

/* ---------- top bar ---------- */
.topbar { max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter) 0; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-name { font-size: 24px; gap: 2px; }
.brand-name .rs-r { box-shadow: 3px 3px 0 var(--ink); }
.brand-name .rs-w { border-width: 3px; }
.brand-role, .crumb { font-size: 15px; font-weight: 700; }
.nav { margin-left: auto; display: flex; gap: 10px; }
.nav-link { display: inline-block; background: var(--paper); text-decoration: none; font-size: 15px; font-weight: 700; padding: 7px 16px; border: 3px solid var(--ink); transform: skewX(-12deg); }
.nav-link > span { display: inline-block; transform: skewX(12deg); }
.nav-link.is-main { background: var(--ink); color: var(--paper); }
.nav-link:hover { background: var(--ink); color: var(--paper); }
.nav-m { display: none; }

/* ---------- hero ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter) 0; }
.stage { position: relative; height: clamp(600px, calc(100vh - 140px), 790px); }
.pn { position: absolute; overflow: hidden; }
.p1 { left: 0; top: 0; width: 58.67%; height: 100%; clip-path: polygon(0 0, 100% 0, 92.61% 100%, 0 100%); }
.p2 { left: 57.30%; top: 0; width: 42.70%; height: 57.88%; clip-path: polygon(5.92% 0, 100% 0, 100% 87.5%, 0 100%); background-color: var(--ink); color: var(--paper); }
.p3 { left: 55.49%; top: 55.68%; width: 29.91%; height: 44.32%; clip-path: polygon(5.80% 9.62%, 90.34% 0, 100% 100%, 0 100%); text-decoration: none; }
.p4 { left: 83.67%; top: 52.71%; width: 16.33%; height: 47.29%; clip-path: polygon(0 5.74%, 100% 0, 100% 100%, 17.70% 100%); background-color: var(--paper); background-image: radial-gradient(var(--ink) 1.2px, rgba(255,255,255,0) 1.6px); background-size: 7px 7px; }
.p1-zoom, .p1-img { width: 100%; height: 100%; }
.p1-img { object-fit: cover; object-position: 66% 50%; filter: grayscale(1) contrast(1.9) brightness(1.08); transform: translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -9px)) scale(1.05); transition: transform .4s ease-out; }
.p2::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 82% 88%, rgba(255,255,255,.11) 0deg 1.2deg, rgba(255,255,255,0) 1.2deg 5deg); transform-origin: 82% 88%; animation: sway 9s ease-in-out infinite alternate; }
.p2-in { position: relative; height: 100%; padding: 40px 40px 0 14%; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 15%; }
.kicker { --r: -2deg; align-self: flex-start; transform: rotate(var(--r)); letter-spacing: 4px; }
.slogan { font-size: clamp(36px, 3.5vw, 52px); font-weight: 900; line-height: 1.32; letter-spacing: 1px; }
.mark { display: inline-block; background: var(--red); padding: 0 .2em; margin: 0 .06em; transform: rotate(var(--r)); box-shadow: 6px 6px 0 var(--paper); }
.p3 img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; filter: grayscale(1) contrast(1.8) brightness(1.05); transition: transform .3s; }
.p3:hover img { transform: scale(1.06); }
.p3 .cap { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--paper); padding: 14px 20px 16px 30px; display: flex; flex-direction: column; gap: 2px; }
.p3 .cap b { font-size: 19px; font-weight: 900; }
.p3 .cap span { font-size: 13px; }
.p4-card { position: absolute; left: 22%; right: 8%; top: 12%; bottom: 6%; display: flex; flex-direction: column; gap: 10px; }
.p4-card .label, .p4-card .kv { background: var(--paper); }
.p4-card .kv { border: 3px solid var(--ink); padding: 10px 12px; font-size: 14px; font-weight: 500; line-height: 1.75; }
.p4-card .btn { margin-top: auto; font-size: 14px; padding: 12px 6px; }
.frames { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: miter; }
.frames polygon { vector-effect: non-scaling-stroke; }
.frames-m { display: none; }
.stage .narr { position: absolute; }
.n1 { left: -10px; top: -16px; width: min(300px, 24%); font-size: 16px; }
.n2 { left: 30px; top: 84.2%; width: min(290px, 24%); font-size: 16px; --r: 1deg; }
.n-m { display: none; }
.tdot { position: absolute; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.td1 { left: 47.8%; top: 56.8%; width: 13px; height: 13px; }
.td2 { left: 49.1%; top: 59.4%; width: 19px; height: 19px; }
.cat-bubble { position: absolute; left: 50.6%; top: 62.3%; animation: pop .45s var(--ease-pop) .95s both, float 3.2s ease-in-out 1.6s infinite; }
.hero-stamp { position: absolute; left: 79.2%; top: 60.5%; }
.hero-foot { display: flex; justify-content: space-between; padding: 18px 0 70px; font-size: 14px; font-weight: 700; }
.hero-foot a { color: var(--red); text-decoration: none; }

/* hero entrance: panels cut in, letters drop, red blocks stamp down */
.p1 { animation: in-left .6s var(--ease-pop) both; }
.p2 { animation: in-top .6s var(--ease-pop) .12s both; }
.p3 { animation: in-bottom .6s var(--ease-pop) .24s both; }
.p4 { animation: in-right .6s var(--ease-pop) .36s both; }
.p1-zoom { animation: settle 1.4s ease-out both; }
.frames { animation: fade .4s ease-out .45s both; }
.n1 { animation: pop .45s var(--ease-pop) .55s both; }
.n2 { animation: pop .45s var(--ease-pop) .7s both; }
.n-m { animation: pop .45s var(--ease-pop) .55s both; }
.td1 { animation: pop .3s var(--ease-pop) .85s both; }
.td2 { animation: pop .3s var(--ease-pop) .9s both; }
.kicker { animation: pop .4s var(--ease-pop) .5s both; }
.slogan .mark:nth-of-type(1) { animation: stamp .42s var(--ease-pop) .75s both; }
.slogan .mark:nth-of-type(2) { animation: stamp .42s var(--ease-pop) .9s both; }
.hero-stamp { animation: stamp .42s var(--ease-pop) 1.15s both; }
.drop { animation: drop .5s var(--ease-pop) calc(.08s * var(--i)) both; }

@keyframes in-left { from { opacity: 0; transform: translate(-7%, 2%); } to { opacity: 1; transform: none; } }
@keyframes in-top { from { opacity: 0; transform: translate(4%, -10%); } to { opacity: 1; transform: none; } }
@keyframes in-bottom { from { opacity: 0; transform: translateY(14%); } to { opacity: 1; transform: none; } }
@keyframes in-right { from { opacity: 0; transform: translateX(14%); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.7); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--r)) scale(1.9); } 70% { opacity: 1; transform: rotate(var(--r)) scale(.92); } 100% { opacity: 1; transform: rotate(var(--r)) scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) * 4)); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* ---------- section heads ---------- */
.sec { display: flex; flex-direction: column; gap: 32px; }
.sec-head { display: flex; align-items: flex-end; gap: 22px; border-bottom: 4px solid var(--ink); padding-bottom: 16px; }
.sec-sub { font-size: 24px; font-weight: 900; }
.sec-aside { margin-left: auto; }

/* ---------- mainline ---------- */
.main-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 28px; }
.main-card { grid-column: span 5; min-height: 540px; }
.main-card.wide { grid-column: span 7; }
.mv { position: relative; height: 270px; border-bottom: 4px solid var(--ink); overflow: hidden; flex-shrink: 0; }
.mv-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.8) brightness(1.05); }
.mv-dots { height: 100%; display: flex; align-items: center; justify-content: center; background-image: radial-gradient(var(--ink) 1.2px, rgba(255,255,255,0) 1.6px); background-size: 8px 8px; }
.mv-device { height: 82%; width: auto; filter: grayscale(1) contrast(1.6) brightness(1.05); }
.mv-number { height: 100%; background-color: var(--ink); color: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; background-image: repeating-conic-gradient(from 0deg at 50% 55%, rgba(255,255,255,.13) 0deg 1.4deg, rgba(255,255,255,0) 1.4deg 6deg); }
.mv-label { font-size: 16px; font-weight: 700; letter-spacing: 4px; }
.mv-value { font-size: clamp(64px, 6.6vw, 96px); font-weight: 900; line-height: 1.1; text-shadow: 6px 6px 0 var(--red); }
.mv-pipe { gap: 10px; padding: 0 calc(var(--m) + 32px); flex-wrap: wrap; align-content: center; }
.pipe-step { background: var(--paper); border: 3px solid var(--ink); padding: 10px 14px; font-size: 17px; font-weight: 900; transform: skewX(-8deg); }
.pipe-step.is-last { background: var(--ink); color: var(--paper); }
.pipe-arrow { background: var(--paper); font-weight: 900; }
.mv-no { position: absolute; left: calc(var(--m) + 36px); top: 22px; }
.mv-stamp { position: absolute; right: calc(var(--m) + 40px); top: 22px; }
.mv-bubble { position: absolute; right: calc(var(--m) + 50px); bottom: 24px; }
.mv-device ~ .mv-bubble, .mv-dots + .mv-no ~ .mv-bubble { left: calc(var(--m) + 36px); right: auto; }
.main-info { padding: 22px calc(var(--m) + 40px) 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.main-info h3 { font-size: 34px; font-weight: 900; line-height: 1.2; }
.hook { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.kv-main { font-size: 15px; margin-top: 6px; }
.main-info .btn-skew { margin-top: auto; }

/* ---------- skills ---------- */
.tags { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tags-label { font-size: 14px; font-weight: 700; }
.tags ul { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--paper); border: 3px solid var(--ink); padding: 5px 12px; font-size: 15px; font-weight: 900; transform: skewX(-8deg); }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.skill { --sk: -4deg; --m: 30px; min-height: 370px; }
.skill .sk-in { padding: 28px calc(var(--m) + 34px) 26px; gap: 12px; }
.skill.is-dark { background: var(--ink); color: var(--paper); }
.skill-no { font-size: 13px; font-weight: 900; letter-spacing: 3px; }
.skill h3 { font-size: 26px; font-weight: 900; line-height: 1.35; }
.skill p { line-height: 1.75; }
.skill-ev { margin-top: auto; font-size: 14px; font-weight: 900; }

/* ---------- side quests ---------- */
.group-label { font-size: 18px; font-weight: 900; }
.side-grid { display: grid; gap: 28px 24px; }
.side-grid-work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side-grid-self { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side-card { --sk: -4deg; --m: 24px; }
.side-work { min-height: 300px; }
.side-self { min-height: 210px; }
.thumb { height: 160px; border-bottom: 4px solid var(--ink); overflow: hidden; flex-shrink: 0; }
.side-self .thumb { height: 118px; }
.thumb { background: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.7); }
.thumb img.is-invert { filter: grayscale(1) invert(1) contrast(1.35) brightness(1.15); }
.thumb-flow { height: 100%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 900; }
.thumb-flow .hl { background: var(--red); padding: 2px 8px; }
.side-text { padding: 12px calc(var(--m) + 16px) 16px; }
.side-text h4 { font-size: 18px; font-weight: 900; }
.side-self h4 { font-size: 15px; }
.side-text p { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.side-self p { font-size: 13px; }
.side-note { align-self: flex-end; --r: 1deg; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.profile-main { --sk: -2deg; --m: 24px; grid-column: span 8; }
.profile-main .sk-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; padding: 34px calc(var(--m) + 46px); }
.timeline { border-left: 4px solid var(--ink); padding-left: 22px; display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.timeline li { display: flex; flex-direction: column; gap: 4px; }
.exp-time { font-size: 14px; font-weight: 900; }
.exp-co { font-size: 19px; font-weight: 900; }
.exp-text { font-size: 15px; line-height: 1.65; }
.profile-side { display: flex; flex-direction: column; gap: 14px; }
.edu { font-size: 17px; font-weight: 900; }
.edu span { font-size: 14px; font-weight: 500; }
.edu-joke { align-self: flex-start; font-size: 14px; }
.tools { font-size: 15px; line-height: 1.8; }
.profile-side .btn { margin-top: auto; }
.profile-cat { --sk: -2deg; --m: 24px; grid-column: span 4; min-height: 580px; }
.profile-cat .sk-in { position: relative; justify-content: flex-end; align-items: center; background-image: radial-gradient(var(--ink) 1.2px, rgba(255,255,255,0) 1.6px); background-size: 8px 8px; }
.profile-cat img { height: 440px; width: auto; filter: grayscale(1) contrast(1.5) brightness(1.08); }
.cat-name { position: absolute; left: calc(var(--m) + 36px); top: 40px; font-size: 17px; }
.cat-note { position: absolute; left: calc(var(--m) + 26px); right: calc(var(--m) + 26px); bottom: 26px; font-size: 14px; box-shadow: none; --r: 0deg; }

/* ---------- next ---------- */
.next-panel { --sk: -2deg; --m: 24px; background: var(--ink); color: var(--paper); min-height: 460px; box-shadow: none; }
.next-panel .sk-in { position: relative; padding: 48px calc(var(--m) + 76px); gap: 14px; background-image: repeating-conic-gradient(from 0deg at 72% 50%, rgba(255,255,255,.12) 0deg 1.4deg, rgba(255,255,255,0) 1.4deg 6deg); }
.next-chip { align-self: flex-start; transform: rotate(-3deg); font-size: 16px; letter-spacing: 3px; }
.next-title { font-size: clamp(76px, 10vw, 140px); font-weight: 900; line-height: 1.05; }
.next-sub { font-size: 22px; font-weight: 700; }
.next-actions { display: flex; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.next-vertical { position: absolute; right: calc(var(--m) + 86px); top: 48px; writing-mode: vertical-rl; font-size: 30px; font-weight: 900; letter-spacing: 10px; }

/* ---------- case page ---------- */
.page-case .wrap { padding-top: 22px; gap: 96px; }
.case-cover .cover { --sk: -2deg; --m: 20px; height: 440px; }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.8) brightness(1.05); }
.cover-no { position: absolute; left: calc(var(--m) + 40px); top: 26px; font-size: 16px; }
.cover-stamp { position: absolute; right: calc(var(--m) + 50px); top: 26px; font-size: 22px; letter-spacing: 3px; padding: 6px 16px; animation: stamp .42s var(--ease-pop) .6s both; }
.case-title { position: relative; margin: -64px 0 0 40px; font-size: 76px; gap: 4px; }
.case-title .rs-r { box-shadow: 6px 6px 0 var(--ink); }
.case-title .rs-w { border-width: 5px; }
.cover-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.cover-left { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.case-hook { font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.5; }
.box-card { background: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.kv-brief { font-size: 16px; line-height: 1.65; row-gap: 8px; }
.cover-facts { grid-column: span 5; }
.kv-facts { font-size: 15px; row-gap: 8px; }
.cover-facts .btn-skew { margin-top: auto; font-size: 16px; padding: 12px 22px; }
.bg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.bg-text { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.85; }
.bg-text .strong { font-weight: 900; }
.vs { --sk: -4deg; --m: 20px; grid-column: span 3; height: 260px; }
.vs .sk-in { padding: 24px calc(var(--m) + 24px); gap: 10px; }
.vs-before .sk-in { background-image: radial-gradient(var(--ink) 1.1px, rgba(255,255,255,0) 1.5px); background-size: 8px 8px; }
.vs-before .sk-in > * { background: var(--paper); }
.vs-after { background: var(--ink); color: var(--paper); }
.vs-tag { align-self: flex-start; border: 3px solid currentColor; padding: 2px 10px; font-size: 14px; font-weight: 900; }
.vs-after .vs-tag { background: var(--red) !important; border-color: var(--red); }
.vs-big { font-size: 34px; font-weight: 900; line-height: 1.2; }
.vs-small { margin-top: auto; font-size: 15px; }
.dec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.decision { --sk: -2deg; --m: 20px; }
.decision .sk-in { padding: 26px calc(var(--m) + 36px); gap: 14px; }
.decision.is-wide { grid-column: span 2; }
.decision.is-wide .sk-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.dec-head { display: flex; flex-direction: column; gap: 14px; }
.dec-no { display: flex; align-items: center; gap: 12px; }
.dec-kicker { font-size: 14px; font-weight: 900; }
.decision h3 { font-size: 26px; font-weight: 900; line-height: 1.35; }
.decision.is-wide h3 { font-size: 30px; }
.kv-dec { font-size: 15px; line-height: 1.7; row-gap: 10px; }
.is-wide .kv-dec { font-size: 16px; }
.dv-swap, .dv-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 900; }
.dv-from { border: 3px solid var(--ink); padding: 10px 14px; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.dv-to { background: var(--ink); color: var(--paper); padding: 13px 16px; }
.dv-chain .solid { background: var(--ink); color: var(--paper); padding: 9px 11px; font-size: 14px; }
.dv-chain .dash { border: 3px dashed var(--ink); padding: 7px 13px; }
.dv-split { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); font-size: 14px; }
.dv-split > div { border: 3px solid var(--ink); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.dv-split b { font-weight: 900; }
.dv-split .wall { background: var(--ink); padding: 0; }
.dv-split .dark { background: var(--ink); color: var(--paper); }
.dv-bars { display: grid; grid-template-columns: 56px minmax(0, 1fr) 76px; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.bar-track { height: 16px; }
.bar { display: block; height: 100%; width: var(--w); background: var(--ink); }
.bar.is-red { background: var(--red); }
.dv-budget { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px 10px; font-size: 13px; font-weight: 900; }
.dv-budget .ticks { height: 18px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 9px, rgba(255,255,255,0) 9px 12px); }
.dv-budget .one { width: 9px; height: 18px; background: var(--ink); }
.dv-budget .imgs { display: flex; gap: 4px; }
.dv-budget .imgs span { width: 26px; height: 18px; border: 3px solid var(--ink); }
.dv-budget .imgs .fill { background: var(--ink); }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tile { --sk: -4deg; --m: 16px; height: 200px; }
.tile .sk-in { justify-content: center; gap: 6px; padding: 24px calc(var(--m) + 24px); }
.tile.is-dark { background: var(--ink); color: var(--paper); }
.tile-big { font-size: clamp(32px, 3vw, 46px); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.tile-small { font-size: 15px; }
.fine { font-size: 14px; margin-top: -12px; }
.retro { --sk: -2deg; --m: 20px; background: var(--ink); color: var(--paper); box-shadow: none; }
.retro .sk-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; padding: 40px calc(var(--m) + 70px); }
.retro-text { display: flex; flex-direction: column; gap: 18px; font-size: 20px; line-height: 1.8; }
.retro-title { align-self: flex-start; background: var(--paper); color: var(--ink); font-size: 30px; font-weight: 900; padding: 6px 16px; transform: rotate(-2deg); }
.retro-joke { align-self: flex-start; background: var(--paper); color: var(--ink); padding: 8px 14px; font-size: 14px; }
.retro-metrics ul { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; font-size: 18px; font-weight: 700; }
.retro-metrics li { display: flex; align-items: center; gap: 14px; }
.retro-metrics .box { width: 20px; height: 20px; border: 3px solid var(--paper); flex-shrink: 0; }
.retro-metrics .box.is-red { border-color: var(--red); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; }
.pager .sk { --sk: -6deg; --m: 0px; height: 140px; }
.pager .sk-in { justify-content: center; padding: 0 40px; gap: 4px; }
.pager small { font-size: 14px; font-weight: 700; }
.pager b { font-size: 28px; font-weight: 900; }
.pager-next { background: var(--ink); color: var(--paper); }
.pager-next .sk-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 56px; }
.pager-next .sk-in > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.pager-next b { font-size: 32px; }
.pager-arrow { font-size: 40px; font-weight: 900; color: var(--red); }

/* ---------- case extras ---------- */
.cover-device { height: 100%; display: flex; align-items: center; justify-content: center; background-color: var(--paper); background-image: radial-gradient(var(--ink) 1.3px, rgba(255,255,255,0) 1.7px); background-size: 9px 9px; }
.cover-device img { height: 82%; width: auto; filter: grayscale(1) contrast(1.6) brightness(1.05); }
.cover-bubble { position: absolute; right: calc(var(--m) + 190px); top: 120px; font-size: 17px; padding: 16px 26px; }
.dv-redlines { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 900; }
.dv-redlines span { border: 3px solid var(--red); color: var(--red); background: var(--paper); padding: 8px 12px; }
.dv-schedule { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr 1fr; font-size: 14px; font-weight: 900; text-align: center; }
.dv-schedule span { border: 3px solid var(--ink); border-left-width: 0; padding: 7px 0; background: var(--paper); }
.dv-schedule span.night { background: var(--ink); color: var(--paper); }
.main-card.is-soon .btn-skew { background: var(--paper); color: var(--ink); border: 3px dashed var(--ink); }
a.side-card:hover { box-shadow: 12px 12px 0 var(--ink); transform: skewX(var(--sk)) translate(-3px, -3px); }
a.side-card { transition: transform .18s, box-shadow .18s; }

/* ---------- case covers, side quests on the case template ---------- */
.thumb-device { height: 100%; display: flex; align-items: center; justify-content: center; background-color: var(--paper); background-image: radial-gradient(var(--ink) 1.1px, rgba(255,255,255,0) 1.5px); background-size: 7px 7px; }
.thumb .thumb-device img { height: 86%; width: auto; filter: grayscale(1) contrast(1.6) brightness(1.05); }
.cover img.is-invert { filter: grayscale(1) invert(1) contrast(1.35) brightness(1.15); }
.cover-flow { height: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 calc(var(--m) + 70px); background-color: var(--paper); background-image: radial-gradient(var(--ink) 1.3px, rgba(255,255,255,0) 1.7px); background-size: 9px 9px; }
.cover-flow .pipe-step { border-width: 4px; padding: 20px 26px; font-size: 32px; }
.cover-flow .pipe-step.is-last { box-shadow: 6px 6px 0 var(--red); }
.cover-flow .pipe-arrow { font-size: 32px; }
.cover-bubble.is-low { top: auto; right: auto; left: 50%; bottom: 60px; transform: translateX(-50%); white-space: nowrap; }
.cover-stat { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cover-num { background-color: var(--ink); color: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-right: 4px solid var(--ink); }
.cover-num .mv-label { font-size: 22px; font-weight: 900; }
.cover-num .mv-value { font-size: 120px; font-weight: 900; line-height: 1; color: var(--red); }
.cover-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 70px calc(var(--m) + 56px) 40px 48px; background-color: var(--paper); background-image: radial-gradient(var(--ink) 1.1px, rgba(255,255,255,0) 1.5px); background-size: 8px 8px; }
.cover-side .label { align-self: flex-start; background: var(--paper); padding: 2px 6px; }
.cover-week { display: flex; gap: 8px; font-size: 18px; font-weight: 900; }
.cover-week span { flex: 1; text-align: center; background: var(--paper); border: 3px solid var(--ink); padding: 14px 0; }
.cover-week .is-last { flex: 2.4; background: var(--red); border-color: var(--red); color: var(--paper); }
.cover-caption { align-self: flex-start; background: var(--paper); font-size: 16px; padding: 4px 8px; }
.cover-board { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; align-items: center; font-size: 16px; font-weight: 900; }
.cover-board dt { background: var(--paper); }
.cover-board dd { display: flex; gap: 8px; }
.cover-board dd span { flex: 1; text-align: center; background: var(--paper); border: 3px solid var(--ink); padding: 7px 0; }
.cover-board dd .on { background: var(--ink); color: var(--paper); }
.case-tag { align-self: flex-end; margin: 0 0 6px 18px; background: var(--paper); border: 3px solid var(--ink); padding: 8px 14px; font-size: 24px; transform: rotate(-1deg); white-space: nowrap; }
.cover-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.cover-links .btn-skew { font-size: 16px; padding: 12px 22px; }
.why-list { display: flex; flex-direction: column; gap: 12px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list b { font-weight: 900; }
.why-no { flex-shrink: 0; background: var(--ink); color: var(--paper); font-weight: 900; font-size: 14px; padding: 2px 9px; margin-top: 4px; }
.decision.is-dark { background: var(--ink); color: var(--paper); }
.dec-text { font-size: 16px; line-height: 1.8; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 900; }
.dv-chips span { border: 3px solid currentColor; padding: 6px 12px; }
.dv-step { border: 3px solid var(--ink); padding: 10px 14px; background: var(--paper); }
.dv-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-cols-3 span:first-child { border-left-width: 3px; }
.tile-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.retro.is-solo .sk-in { grid-template-columns: minmax(0, 1fr); }
.retro.is-solo .retro-text { max-width: 820px; }
.retro-label { align-self: flex-start; background: var(--red); font-size: 14px; font-weight: 900; padding: 4px 10px; line-height: 1.5; }
.retro-links { display: flex; flex-direction: column; gap: 14px; }
.retro-links a { display: flex; align-items: center; justify-content: space-between; background: var(--paper); color: var(--ink); padding: 14px 18px; font-size: 18px; font-weight: 900; transition: transform .15s; }
.retro-links a:hover { transform: translateX(4px); }
.retro-links .arrow { color: var(--red); }
.retro-links p { font-size: 16px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .wrap { gap: 70px; padding-bottom: 60px; }
  .topbar { padding: 12px var(--gutter) 0; min-height: 56px; }
  .brand-name { font-size: 19px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-role { font-size: 12px; white-space: nowrap; }
  .crumb, .nav { display: none; }
  .nav-m { display: block; margin-left: auto; position: relative; flex-shrink: 0; }
  .nav-m summary { white-space: nowrap; list-style: none; cursor: pointer; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 900; padding: 11px 16px; transform: skewX(-12deg); }
  .nav-m summary::-webkit-details-marker { display: none; }
  .nav-m nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; padding: 8px; gap: 6px; min-width: 150px; }
  .nav-m .nav-link { transform: none; border: 0; }
  .nav-m .nav-link > span { transform: none; }

  .hero { padding: 16px var(--gutter) 0; }
  .stage { height: 732px; }
  .p1 { width: 100%; height: 40.98%; clip-path: polygon(0 0, 100% 0, 100% 90.67%, 0 100%); }
  .p2 { left: 0; top: 38.80%; width: 100%; height: 32.24%; clip-path: polygon(0 11.86%, 100% 0, 100% 91.53%, 0 100%); }
  .p2-in { padding: 48px 20px 0; justify-content: flex-start; gap: 12px; }
  .slogan { font-size: 30px; }
  .mark { box-shadow: 4px 4px 0 var(--paper); }
  .p3 { left: 0; top: 71.17%; width: 52.49%; height: 28.83%; clip-path: polygon(0 5.21%, 100% 0, 86.32% 100%, 0 100%); }
  .p3 .cap { padding: 8px 12px 10px; }
  .p3 .cap b { font-size: 14px; }
  .p3 .cap span { display: none; }
  .p4 { left: 45.30%; top: 69.95%; width: 54.70%; height: 30.05%; clip-path: polygon(20.20% 4.09%, 100% 0, 100% 100%, 7.07% 100%); }
  .p4-card { left: 22%; right: 6%; top: 11%; bottom: 6%; gap: 8px; }
  .p4-card .kv { font-size: 13px; padding: 8px 10px; line-height: 1.6; }
  .p4-card .kv dt:nth-of-type(3), .p4-card .kv dd:nth-of-type(3) { display: none; }
  .p4-card .btn { font-size: 13px; padding: 11px 4px; }
  .frames { stroke-width: 6; }
  .frames-d { display: none; }
  .frames-m { display: block; }
  .n1, .n2, .tdot { display: none; }
  .n-m { display: inline-block; left: -6px; top: -10px; width: 190px; font-size: 13px; padding: 8px 10px; box-shadow: 4px 4px 0 var(--ink); }
  .cat-bubble { left: 48.6%; top: 34.7%; font-size: 12px; padding: 10px 14px; }
  .hero-stamp { left: 36.5%; top: 71.9%; font-size: 13px; padding: 2px 8px; }
  .hero-foot { padding: 14px 0 50px; font-size: 13px; }
  .hero-foot span { visibility: hidden; }

  .ransom { font-size: 30px; gap: 2px; }
  .rs-r { box-shadow: 3px 3px 0 var(--ink); }
  .rs-w { border-width: 3px; }
  .sec { gap: 18px; }
  .sec-head { gap: 12px; padding-bottom: 10px; flex-wrap: wrap; }
  .sec-sub { font-size: 16px; }
  .sec-aside { display: none; }
  .sk { box-shadow: 6px 6px 0 var(--ink); }

  .main-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .main-card, .main-card.wide { grid-column: auto; min-height: 0; }
  .main-card { --sk: -2deg; --m: 24px; }
  .main-card.flip { --sk: 2deg; }
  .mv { height: 180px; }
  .mv-no { left: calc(var(--m) + 20px); top: 14px; font-size: 13px; }
  .mv-stamp { right: calc(var(--m) + 20px); top: 14px; font-size: 14px; padding: 2px 8px; }
  .mv-bubble { display: none; }
  .mv-value { font-size: 64px; }
  .mv-pipe { gap: 6px; padding: 40px calc(var(--m) + 20px) 10px; }
  .pipe-step { font-size: 14px; padding: 6px 10px; }
  .main-info { padding: 16px calc(var(--m) + 22px) 18px; gap: 8px; }
  .main-info h3 { font-size: 26px; }
  .hook { font-size: 16px; line-height: 1.5; }
  .kv-main { font-size: 14px; }

  .tags-label { display: none; }
  .tags li { font-size: 12px; padding: 3px 8px; border-width: 2px; transform: none; }
  .skill-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .skill { --sk: -3deg; --m: 16px; min-height: 0; }
  .skill .sk-in { padding: 16px calc(var(--m) + 20px) 18px; gap: 6px; }
  .skill h3 { font-size: 19px; }
  .skill p { font-size: 13px; line-height: 1.7; }
  .skill-ev { font-size: 13px; }

  .group-label { font-size: 15px; }
  .side-grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .side-work { --sk: -3deg; --m: 14px; min-height: 220px; }
  .side-work .thumb { height: 110px; }
  .side-work .side-text { padding: 10px calc(var(--m) + 10px) 12px; }
  .side-work h4 { font-size: 15px; }
  .side-work p { font-size: 12px; }
  .side-grid-self { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .side-self { --sk: -6deg; --m: 8px; min-height: 0; height: 64px; border-width: 3px; box-shadow: none; }
  .side-self .sk-in { flex-direction: row; align-items: center; gap: 14px; }
  .side-self .thumb { width: 84px; height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); }
  .side-self .side-text { padding: 0; display: flex; align-items: baseline; gap: 10px; }
  .side-self p { margin: 0; }
  .side-note { font-size: 13px; }

  .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-main, .profile-cat { grid-column: auto; }
  .profile-main .sk-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px calc(var(--m) + 20px); }
  .exp-co { font-size: 17px; }
  .exp-text { font-size: 13px; }
  .profile-cat { min-height: 340px; }
  .profile-cat .sk-in { align-items: flex-end; padding-right: calc(var(--m) + 26px); }
  .profile-cat img { height: 300px; }
  .cat-name { left: calc(var(--m) + 16px); top: 28px; font-size: 14px; padding: 10px 16px; }
  .cat-note { left: calc(var(--m) + 16px); right: auto; width: 130px; bottom: 22px; font-size: 12px; padding: 8px 10px; }

  .next-panel { min-height: 400px; }
  .next-panel .sk-in { padding: 30px calc(var(--m) + 20px) 28px; gap: 10px; }
  .next-chip { font-size: 13px; }
  .next-sub { font-size: 17px; }
  .next-actions { flex-direction: column; }
  .next-actions .btn { font-size: 14px; }
  .next-vertical { right: calc(var(--m) + 22px); top: 30px; font-size: 20px; letter-spacing: 6px; }

  .page-case .wrap { gap: 60px; padding-top: 12px; }
  .case-cover .cover { height: 220px; }
  .cover-no { left: calc(var(--m) + 16px); top: 14px; font-size: 13px; }
  .cover-stamp { right: calc(var(--m) + 20px); top: 14px; font-size: 15px; padding: 3px 10px; }
  .case-title { font-size: 40px; margin: -30px 0 0 12px; gap: 2px; }
  .case-title .rs-r { box-shadow: 4px 4px 0 var(--ink); }
  .case-title .rs-w { border-width: 4px; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; }
  .cover-left, .cover-facts { grid-column: auto; }
  .case-hook { font-size: 21px; }
  .box-card { padding: 16px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .kv-brief, .kv-facts { font-size: 14px; }
  .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bg-text { grid-column: span 2; font-size: 15px; }
  .vs { grid-column: auto; height: 130px; --m: 10px; }
  .vs .sk-in { padding: 12px calc(var(--m) + 12px); gap: 6px; }
  .vs-big { font-size: 24px; }
  .vs-tag { font-size: 12px; padding: 1px 6px; }
  .vs-small { font-size: 12px; }
  .dec-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .decision, .decision.is-wide { grid-column: auto; min-height: 0; --sk: 0deg; --m: 0px; }
  .decision .sk-in, .decision.is-wide .sk-in { display: flex; padding: 18px; gap: 12px; }
  .decision h3, .decision.is-wide h3 { font-size: 21px; }
  .kv-dec, .is-wide .kv-dec { font-size: 14px; }
  .dv-swap, .dv-chain { font-size: 12px; gap: 6px; }
  .dv-bars { grid-template-columns: 40px minmax(0, 1fr) 64px; font-size: 12px; }
  .dv-budget .imgs span { width: 20px; height: 14px; border-width: 2px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { --sk: 0deg; --m: 0px; height: 120px; }
  .tile .sk-in { padding: 14px; }
  .tile-big { font-size: 28px; }
  .tile-small { font-size: 12px; }
  .retro .sk-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px calc(var(--m) + 20px) 24px; }
  .retro-text { font-size: 15px; gap: 12px; }
  .retro-title { font-size: 22px; }
  .retro-metrics ul { font-size: 15px; gap: 10px; }
  .pager { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pager .sk { --sk: -4deg; height: auto; }
  .pager .sk-in, .pager-next .sk-in { padding: 16px 22px; }
  .pager b, .pager-next b { font-size: 20px; }
  .pager-back { order: 2; }
}

@media (max-width: 760px) {
  .cover-bubble { display: none; }
  .dv-redlines { font-size: 12px; gap: 6px; }
  .dv-redlines span { padding: 5px 8px; border-width: 2px; }
  .dv-schedule { font-size: 12px; }
  .cover-flow { gap: 4px; padding: 40px calc(var(--m) + 12px) 16px; flex-wrap: wrap; align-content: center; }
  .cover-flow .pipe-step { border-width: 3px; padding: 5px 7px; font-size: 13px; }
  .cover-flow .pipe-step.is-last { box-shadow: 4px 4px 0 var(--red); }
  .cover-flow .pipe-arrow { font-size: 13px; }
  .cover-stat { grid-template-columns: minmax(0, 1fr); }
  .cover-side { display: none; }
  .cover-num { border-right: 0; }
  .cover-num .mv-label { font-size: 15px; }
  .cover-num .mv-value { font-size: 64px; }
  .case-tag { font-size: 14px; padding: 4px 9px; margin: 0 0 4px 10px; border-width: 2px; }
  .cover-links { flex-direction: column; }
  .cover-links .btn-skew { align-self: stretch; text-align: center; font-size: 14px; }
  .why-no { font-size: 12px; }
  .dec-text { font-size: 14px; }
  .dv-chips { font-size: 12px; gap: 6px; }
  .dv-chips span { border-width: 2px; padding: 4px 8px; }
  .dv-step { padding: 6px 8px; border-width: 2px; }
  .tile-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tile-grid-3 .tile, .tile-grid-5 .tile { height: auto; min-height: 96px; }
  .tile-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retro-links a { font-size: 15px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- entry: battle-command front page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-entry { overflow: hidden; }
.entry { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
.est { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: translate(-50%, -50%) scale(var(--s, 1)); }
.est-m { display: none; }
@media (max-width: 760px) { .est-d { display: none; } .est-m { display: block; } }
.est > * { position: absolute; margin: 0; }
.st-burst { background: var(--paper); background-image: repeating-conic-gradient(from 0deg at 52% 46%, rgba(10,10,10,.09) 0deg 1.6deg, rgba(10,10,10,0) 1.6deg 7deg); }
.est-d .st-burst { left: 330px; top: -80px; width: 820px; height: 1060px; clip-path: polygon(30% 0, 100% 6%, 84% 48%, 100% 100%, 12% 96%, 0 52%); }
.est-m .st-burst { left: 20px; top: 110px; width: 350px; height: 560px; clip-path: polygon(20% 0, 100% 4%, 92% 50%, 100% 100%, 6% 94%, 0 46%); }
.st-ring { border: 6px dashed var(--red); border-radius: 50%; opacity: .45; animation: cm-spin 18s linear infinite; }
.est-d .st-ring { left: 660px; top: 10px; width: 300px; height: 300px; }
.est-m .st-ring { left: 150px; top: 120px; width: 110px; height: 110px; border-width: 3px; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
.st-player { z-index: 2; animation: pl-in .5s var(--ease-pop) both; }
.est-d .st-player { filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(12px 9px 0 rgba(10,10,10,.22)); }
.est-m .st-player { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(8px 6px 0 rgba(10,10,10,.22)); }
@keyframes pl-in { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.st-lines { left: 0; top: 0; z-index: 3; overflow: visible; }
.st-lines line { stroke-linecap: round; }
.cl-case { stroke: var(--paper); }
.cl { stroke: var(--ink); transition: stroke .12s; }
.cl.is-on { stroke: var(--red); }
.st-brand { z-index: 6; }
.est-d .st-brand { left: 64px; top: 22px; font-size: 24px; }
.est-m .st-brand { left: 20px; top: 14px; font-size: 19px; }
.st-encounter { left: 64px; top: 84px; z-index: 6; background: var(--ink); color: var(--paper); padding: 10px 20px 10px 16px; transform: skewX(-14deg); box-shadow: 6px 6px 0 var(--red); }
.st-encounter span { display: inline-flex; align-items: center; gap: 8px; transform: skewX(14deg); font-size: 20px; font-weight: 900; }
.st-encounter i { width: 14px; height: 14px; background: var(--red); transform: rotate(45deg); }
.st-encounter b { background: var(--paper); color: var(--ink); padding: 0 5px; font-weight: 900; }
.st-encounter em { font-style: normal; background: var(--red); padding: 0 5px; }
.st-keys { right: 64px; top: 34px; z-index: 6; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.st-keys kbd { font: inherit; font-weight: 900; background: var(--paper); border: 2px solid var(--ink); padding: 2px 8px; }
.st-keys kbd + kbd, .st-keys kbd:last-of-type { margin-left: 6px; }
.st-keys kbd:first-child { margin-left: 0; }
.st-cat { left: 64px; bottom: 30px; height: 170px; z-index: 3; filter: grayscale(1) contrast(1.45) drop-shadow(5px 5px 0 var(--ink)); }
.st-cat-tag { left: 64px; bottom: 204px; z-index: 3; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 900; padding: 4px 10px; transform: rotate(-4deg); }

.cmd { z-index: 5; display: flex; align-items: flex-start; transform: rotate(var(--rot)); transition: transform .16s var(--ease-pop); cursor: pointer; animation: cmd-in .36s var(--ease-pop) both; }
.cmd:nth-of-type(2) { animation-delay: .08s; } .cmd:nth-of-type(3) { animation-delay: .14s; } .cmd:nth-of-type(4) { animation-delay: .2s; }
@keyframes cmd-in { from { opacity: 0; } to { opacity: 1; } }
.cmd-L { flex-direction: row-reverse; }
.cmd.is-on { transform: rotate(var(--rot)) scale(1.12); }
.cmd:focus-visible { outline: none; }
.cmd:focus-visible .cmd-key { outline: 3px solid var(--red); outline-offset: 4px; }
.cmd-burst { position: absolute; background: var(--red); opacity: 0; transition: opacity .12s; clip-path: polygon(0% 22%, 14% 0%, 30% 16%, 52% 2%, 66% 18%, 88% 4%, 100% 34%, 90% 58%, 100% 86%, 74% 82%, 58% 100%, 40% 84%, 18% 100%, 10% 74%, 0% 60%, 7% 42%); }
.cmd.is-on .cmd-burst { opacity: 1; }
.cmd-key { position: relative; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--paper); border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; transition: background .12s; }
.cmd.is-on .cmd-key { background: var(--red); }
.cmd-body { position: relative; display: flex; flex-direction: column; }
.cmd-L .cmd-body { align-items: flex-end; }
.cmd-R .cmd-body { align-items: flex-start; }
.cmd-label { display: flex; align-items: flex-end; gap: 3px; }
.lb { display: inline-block; font-weight: 900; line-height: 1; transform: rotate(var(--r)); }
.lb-w { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); padding: 4px 8px; }
.lb-b { background: var(--ink); color: var(--paper); border: 3px solid var(--paper); padding: 6px 9px; }
.cmd-cap { background: var(--ink); color: var(--paper); font-weight: 700; padding: 3px 9px; transform: skewX(-10deg); white-space: nowrap; }
.cmd-stamp { position: absolute; transform: rotate(12deg); background: var(--paper); color: var(--red); border: 3px solid var(--red); font-weight: 900; letter-spacing: 2px; white-space: nowrap; }
.cmd-R .cmd-stamp { right: -22px; } .cmd-L .cmd-stamp { left: -22px; }
.cmd.is-shake .cmd-stamp { animation: stamp-shake .4s; }
@keyframes stamp-shake { 0%, 100% { transform: rotate(12deg); } 25% { transform: rotate(4deg) scale(1.25); } 60% { transform: rotate(18deg) scale(1.1); } }
.est-d .cmd { gap: 12px; }
.est-d .cmd-key { width: 46px; height: 46px; font-size: 23px; }
.est-d .cmd-body { gap: 6px; margin-top: -10px; }
.est-d .cmd-label { filter: drop-shadow(6px 6px 0 var(--ink)); }
.est-d .lb { font-size: 56px; } .est-d .lb-first { font-size: 66px; }
.est-d .cmd-burst { left: -44px; top: -36px; right: -38px; bottom: -30px; }
.est-d .cmd-cap { font-size: 14px; }
.est-d .cmd-stamp { top: -22px; font-size: 15px; padding: 1px 8px; }
.est-m .cmd { gap: 8px; }
.est-m .cmd-key { width: 28px; height: 28px; font-size: 14px; border-width: 3px; }
.est-m .cmd-body { gap: 4px; margin-top: -6px; }
.est-m .cmd-label { filter: drop-shadow(4px 4px 0 var(--ink)); }
.est-m .lb { font-size: 20px; } .est-m .lb-first { font-size: 24px; }
.est-m .lb-w { border-width: 3px; } .est-m .lb-b { border-width: 2px; }
.est-m .cmd-burst { left: -26px; top: -22px; right: -22px; bottom: -18px; }
.est-m .cmd-cap { font-size: 11px; }
.est-m .cmd-stamp { top: -14px; font-size: 11px; padding: 1px 6px; border-width: 2px; }
.est-m .cmd-R .cmd-stamp { right: -14px; } .est-m .cmd-L .cmd-stamp { left: -14px; }
.st-say { z-index: 4; background: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.est-d .st-say { right: 64px; bottom: 36px; width: 420px; padding: 18px 24px; transform: rotate(-1.5deg); }
.est-m .st-say { left: 20px; right: 20px; bottom: 26px; padding: 12px 16px; border-width: 3px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1deg); }
.say { font-family: var(--serif); font-weight: 900; line-height: 1.3; }
.est-d .say { font-size: 28px; } .est-m .say { font-size: 20px; }
.say-sub { margin-top: 6px; line-height: 1.7; }
.est-d .say-sub { font-size: 15px; } .est-m .say-sub { font-size: 12px; margin-top: 4px; }
.st-brand .brand-name { font-size: inherit; }
.est-m .cmd-stamp { top: -24px; }

/* ---------- card: NFC contact page (phone first) ---------- */
.card-wrap { max-width: 440px; margin: 0 auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.card-left, .card-right { display: contents; }
.cd-get { order: 1; } .cd-card { order: 2; } .cd-save { order: 3; } .cd-contacts { order: 4; } .cd-qr { order: 5; } .cd-links { order: 6; } .cd-foot { order: 7; }
.cd-get { align-self: flex-start; background: var(--ink); color: var(--paper); padding: 8px 14px; transform: skewX(-12deg); box-shadow: 4px 4px 0 var(--red); animation: cd-get .5s ease-out both; }
.cd-get span { display: inline-flex; align-items: center; gap: 8px; transform: skewX(12deg); font-size: 14px; font-weight: 900; }
.cd-get i { width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.cd-get b { background: var(--paper); color: var(--ink); padding: 0 5px; }
@keyframes cd-get { 0% { transform: skewX(-12deg) translateY(-14px); opacity: 0; } 60% { transform: skewX(-12deg) translateY(3px); opacity: 1; } 100% { transform: skewX(-12deg); opacity: 1; } }
.cd-card { background: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); transform: rotate(-2deg); overflow: hidden; animation: cd-card .55s var(--ease-pop) .15s both; }
@keyframes cd-card { from { transform: rotate(-8deg) translateY(30px); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.cd-main { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 200px; }
.cd-face { position: relative; overflow: hidden; border-right: 4px solid var(--ink); background-image: repeating-conic-gradient(from 0deg at 50% 70%, rgba(10,10,10,.12) 0deg 1.6deg, rgba(10,10,10,0) 1.6deg 7deg); }
.cd-face img { position: absolute; left: -127%; top: 4px; width: 345%; max-width: none; }
.cd-lv { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 900; padding: 2px 7px; }
.cd-info { padding: 16px 16px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.cd-name { font-size: 32px; gap: 2px; }
.cd-name .rs-r { box-shadow: 3px 3px 0 var(--ink); }
.cd-role { margin-top: 4px; font-size: 17px; font-weight: 900; }
.cd-lines { font-size: 13px; line-height: 1.6; }
.cd-stats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 900; }
.cd-stats span { border: 2px solid var(--ink); padding: 1px 5px; white-space: nowrap; }
.cd-stats .is-red { background: var(--red); border-color: var(--red); color: var(--paper); }
.cd-slogan { border-top: 4px solid var(--ink); background: var(--ink); color: var(--paper); padding: 8px 16px; font-family: var(--serif); font-size: 14px; font-weight: 900; }
.cd-slogan mark { background: var(--red); color: var(--paper); padding: 0 3px; }
.cd-save { display: flex; align-items: center; justify-content: space-between; background: var(--red); color: var(--paper); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 18px; transform: skewX(-4deg); transition: transform .15s, box-shadow .15s; }
.cd-save > span { transform: skewX(4deg); }
.cd-save > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.cd-save b { font-size: 20px; font-weight: 900; }
.cd-save small { font-size: 12px; font-weight: 700; }
.cd-save .plus { font-size: 26px; font-weight: 900; }
.cd-save:active { transform: skewX(-4deg) translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.cd-contacts { background: var(--paper); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 10px 12px; display: flex; flex-direction: column; }
.cd-contacts .label { margin: 0 0 4px 4px; font-size: 11px; }
.cc-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; }
.cc-row + .cc-row { border-top: 2px dashed var(--ink); }
.cc-no { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.cc-val { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-val small { font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.cc-val b { font-size: 16px; font-weight: 900; letter-spacing: .5px; overflow-wrap: anywhere; }
.cc-btn { font: inherit; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 900; padding: 7px 13px; transform: skewX(-8deg); white-space: nowrap; }
.cc-btn.is-done { background: var(--red); }
.cd-qr { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.cd-qr img { width: 132px; height: 132px; box-sizing: border-box; background: var(--paper); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 4px; }
.cd-qr p { font-size: 13px; line-height: 1.7; }
.cd-qr .qr-title { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.cd-links { display: flex; flex-direction: column; gap: 10px; }
.cd-links-head { display: flex; align-items: flex-end; gap: 10px; }
.cd-links-head span { background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 900; padding: 4px 10px; transform: rotate(-2deg); }
.cd-links-head small { font-size: 12px; font-weight: 700; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-item { position: relative; background: var(--paper); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transform: skewX(-4deg); }
.cl-item > * { transform: skewX(4deg); }
.cl-item b { font-size: 19px; font-weight: 900; }
.cl-item small { font-size: 11px; }
.cl-item.is-primary { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--red); }
.cl-item.is-closed { border: 3px dashed var(--ink); box-shadow: none; color: #6A6A6A; }
.cl-stamp { position: absolute; right: -8px; top: -12px; transform: rotate(12deg) !important; background: var(--paper); color: var(--red); border: 2px solid var(--red); font-size: 11px; font-weight: 900; letter-spacing: 1px; padding: 0 6px; }
.cd-foot { margin-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cd-foot p { background: var(--paper); border: 3px solid var(--ink); padding: 8px 12px; font-size: 13px; font-weight: 700; transform: rotate(-1.5deg); }
.cd-foot img { height: 96px; width: auto; filter: grayscale(1) contrast(1.45) drop-shadow(3px 3px 0 var(--ink)); }
.cd-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); border: 3px solid var(--paper); box-shadow: 4px 4px 0 var(--red); padding: 8px 16px; font-size: 14px; font-weight: 900; transition: opacity .2s, transform .2s; z-index: 20; }
.cd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) {
  /* Desktop: one fixed 1440×900 spread, scaled to the window by site.js (same approach as the entry page). */
  html:has(.page-card), .page-card { overflow: hidden; height: 100vh; }
  .card-wrap { position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px; max-width: none; box-sizing: border-box; padding: 0 120px; display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 96px; align-items: center; transform: translate(-50%, -50%) scale(var(--s, 1)); }
  .card-wrap::before { content: ""; position: absolute; left: -1000px; top: -600px; width: 1760px; height: 2100px; background: var(--paper); clip-path: polygon(0 0, 93.9% 0, 100% 49%, 91.7% 100%, 0 100%); background-image: repeating-conic-gradient(from 0deg at 40% 45%, rgba(10,10,10,.08) 0deg 1.6deg, rgba(10,10,10,0) 1.6deg 7deg); z-index: -1; }
  .card-left { gap: 30px; }
  .cd-get span { font-size: 17px; }
  .cd-card { box-shadow: 12px 12px 0 var(--red); }
  .cd-main { grid-template-columns: 230px minmax(0, 1fr); min-height: 320px; }
  .cd-face img { left: -126%; top: 10px; width: 339%; }
  .cd-lv { font-size: 15px; padding: 3px 10px; }
  .cd-info { padding: 30px 30px 26px 32px; gap: 10px; }
  .cd-name { font-size: 52px; }
  .cd-role { margin-top: 8px; font-size: 26px; }
  .cd-lines { font-size: 17px; line-height: 1.7; }
  .cd-stats { font-size: 15px; gap: 8px; }
  .cd-slogan { padding: 12px 24px; font-size: 19px; }
  .cd-save { display: none; }
  .card-left, .card-right { display: flex; flex-direction: column; }
  .cd-qr > div { max-width: 270px; }
  .card-right { gap: 26px; }
  .cd-contacts { padding: 16px 22px 10px; box-shadow: 8px 8px 0 var(--ink); }
  .cd-contacts .label { font-size: 13px; }
  .cc-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 16px; padding: 11px 4px; }
  .cc-no { width: 34px; height: 34px; font-size: 16px; }
  .cc-val small { font-size: 13px; }
  .cc-val b { font-size: 20px; }
  .cc-row:last-child .cc-val b { font-size: 18px; }
  .cc-btn { font-size: 14px; padding: 8px 16px; }
  .cd-qr { grid-template-columns: 148px minmax(0, 1fr); gap: 22px; }
  .cd-qr img { width: 148px; height: 148px; box-shadow: 8px 8px 0 var(--ink); padding: 6px; }
  .cd-qr p { font-size: 14px; }
  .cd-qr .qr-title { font-size: 20px; margin-bottom: 6px; }
  .cd-links-head span { font-size: 22px; padding: 5px 12px; }
  .cd-links-head small { font-size: 14px; }
  .cl-grid { gap: 18px; }
  .cl-item { padding: 16px 20px; }
  .cl-item b { font-size: 21px; }
  .cl-item small { font-size: 13px; }
  .cl-stamp { font-size: 13px; padding: 1px 8px; }
  .cd-foot { margin-top: 4px; gap: 18px; }
  .cd-foot p { font-size: 14px; }
  .cd-foot img { height: 104px; }
}

.page-card a { text-decoration: none; }
@media (max-width: 899px) { .cc-row:last-child .cc-val b { font-size: 14px; letter-spacing: 0; } }
