/* FX Intranet case · page-specific blocks (prefix .in-)
   Light product mocks use the intranet tokens; everything else follows case.css. */
.in-ui { --n9: #0a1f40; --n: #0f2c52; --n6: #1a4a94; --b: #2f6bff; --b05: #eef4ff; --o: #f2672a; --o05: #fff1ea;
  --t1: #0e1a2b; --t2: #4a5568; --t3: #7a8699; --pg: #f6f8fb; --cd: #ffffff; --sk: #eef2f7; --ln: #e3e8f0; --ln2: #cbd3df;
  --it: #2f6bff; --it-bg: #e8f0ff; --pr: #7a5af8; --pr-bg: #f1edff; --cs: #0e9f8e; --cs-bg: #e2f6f3; --mk: #e8590c; --mk-bg: #fff0e6; --rg: #b7791f; --rg-bg: #fff6e0;
  font-family: "Geist", system-ui, sans-serif; color: var(--t1); }
.in-mono { font-family: "Geist Mono", "Kode Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* 01 · flow strip */
.in-flow { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.in-flow li { position: relative; padding: 18px 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.in-flow li + li::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); font: 500 14px/1 var(--font-mono); color: var(--dim); }
.in-flow b { display: block; margin-top: 10px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.in-flow p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.in-flow li.is-here { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
@media (max-width: 900px) { .in-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .in-flow li + li::before { display: none; } }
@media (max-width: 520px) { .in-flow { grid-template-columns: minmax(0, 1fr); } }

/* research methods */
.in-methods { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.in-methods > div { padding: 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.in-methods .ri { width: 22px; height: 22px; color: var(--accent); }
.in-methods b { display: block; margin-top: 14px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.in-methods p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.in-methods small { display: block; margin-top: 12px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
@media (max-width: 900px) { .in-methods { grid-template-columns: minmax(0, 1fr); } }

/* information flow, as-is vs proposed */
.in-flowmap { margin-top: 32px; padding: clamp(18px, 3.5vw, 40px); border-radius: 16px; background: #f3f5f9 radial-gradient(rgba(0,0,0,.07) 1px, transparent 1.4px) 0 0 / 22px 22px; color: #1e1e1e; overflow-x: auto; }
.in-flowmap h4 { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #6f6f6f; }
.in-flowmap h4 + .in-row { margin-top: 14px; }
.in-row { display: flex; align-items: center; min-width: 860px; }
.in-row + h4 { margin-top: 34px; }
.in-node { flex: 1 1 0; padding: 14px 12px; border: 1.5px solid #b3b3b3; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.4; font-weight: 500; text-align: center; }
.in-node.is-bad { border-color: #ff7556; background: #ffcdc2; }
.in-node.is-src { border-color: #0f2c52; background: #0f2c52; color: #fff; }
.in-node.is-good { border-color: #3dadff; background: #c2e5ff; }
.in-arrow { position: relative; flex: 0 0 64px; height: 2px; background: #9a9a9a; }
.in-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid #9a9a9a; border-right: 0; }
.in-arrow.is-blue { background: #3dadff; } .in-arrow.is-blue::after { border-left-color: #3dadff; }
.in-arrow em { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); white-space: nowrap; font: 500 10.5px/1.3 var(--font-mono); font-style: normal; letter-spacing: .03em; color: #b86114; }
.in-flowmap .in-foot { margin-top: 26px; font-size: 14px; line-height: 1.5; color: #333; }

/* reader roles */
.in-roles { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.in-roles > div { padding: 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.in-roles h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.in-roles dl { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.in-roles dt { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.in-roles dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.in-roles dd.is-risk { color: #ffb08a; }
@media (max-width: 960px) { .in-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .in-roles { grid-template-columns: minmax(0, 1fr); } }

/* content x role matrix */
.in-matrix { margin-top: 28px; width: 100%; border-collapse: collapse; font-size: 14px; }
.in-matrix th, .in-matrix td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.in-matrix thead th { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.in-matrix tbody th { font-weight: 500; color: var(--text); }
.in-matrix td { color: var(--muted); white-space: nowrap; }
.in-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.in-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.in-dots[data-v="3"] i { background: var(--accent); }
.in-dots[data-v="2"] i:nth-child(-n+2) { background: #c98a63; }
.in-dots[data-v="1"] i:first-child { background: var(--muted); }
.in-matrix-wrap { overflow-x: auto; }
.in-key { margin-top: 12px; font: 400 11.5px/1.5 var(--font-mono); color: var(--dim); }

/* priority rules */
.in-rules { margin-top: 28px; display: grid; gap: 10px; }
.in-rules > div { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.in-rules b { font-size: 16px; font-weight: 600; }
.in-rules span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.in-rules small { display: block; margin-bottom: 4px; font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.in-rules > div:first-child { border-color: var(--accent-line); }
@media (max-width: 720px) { .in-rules > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* shared light-UI pieces */
.in-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 11px/1.2 "Geist Mono", var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: var(--bgc); }
.in-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.in-tag[data-d="it"] { --c: #2f6bff; --bgc: #e8f0ff; } .in-tag[data-d="product"] { --c: #7a5af8; --bgc: #f1edff; }
.in-tag[data-d="cs"] { --c: #0e9f8e; --bgc: #e2f6f3; } .in-tag[data-d="marketing"] { --c: #e8590c; --bgc: #fff0e6; } .in-tag[data-d="region"] { --c: #b7791f; --bgc: #fff6e0; }
.in-type { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1.2 "Geist Mono", var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #7a8699; }
.in-type::before { content: ""; width: 12px; height: 2px; background: #f2672a; }

/* template demo */
.in-demo { margin-top: 32px; border-radius: clamp(14px, 1.6vw, 20px); background: radial-gradient(120% 100% at 18% 0%, var(--ground-1) 0%, var(--ground-2) 58%, var(--ground-3) 100%); padding: clamp(14px, 4vw, 48px); }
.in-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(16px, 2.4vw, 28px); }
.in-tabs button { appearance: none; border: 1px solid rgba(255,255,255,.22); background: rgba(6,6,6,.25); color: #fff; padding: 9px 14px; border-radius: 999px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.in-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.in-tabs button:focus-visible { outline: none; box-shadow: var(--focus); }
.in-tpl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.in-article { border-radius: 14px; background: #f6f8fb; overflow: hidden; box-shadow: 0 2px 6px #0000004d, 0 32px 64px -24px #000000a6; }
.in-article-top { padding: 22px 24px 20px; background: #fff; border-bottom: 1px solid #e3e8f0; }
.in-article-top .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.in-article-top h4 { margin-top: 12px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: #0e1a2b; }
.in-article-top p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #4a5568; }
.in-glance { margin: 18px 20px 20px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; padding: 6px 18px; }
.in-glance-h { display: flex; justify-content: space-between; padding: 10px 0 8px; font: 500 10.5px/1.2 "Geist Mono", var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.in-glance-h span:first-child { color: #f2672a; } .in-glance-h span:last-child { color: #7a8699; }
.in-glance dl { margin: 0; }
.in-glance dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid #e3e8f0; position: relative; }
.in-glance dt { font-size: 13px; color: #7a8699; }
.in-glance dd { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 500; color: #0e1a2b; }
.in-glance dl > div::before { content: attr(data-n); position: absolute; left: -32px; top: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--font-mono); }
.in-extra { margin: 0 20px 20px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: var(--xbg, #eef4ff); color: #0f2c52; font-weight: 500; }
.in-extra small { display: block; margin-bottom: 4px; font: 500 10.5px/1.2 "Geist Mono", var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--xc, #2f6bff); font-weight: 500; }
.in-tpl-note { color: #fff; }
.in-tpl-note .ch-label { color: rgba(255,255,255,.62); }
.in-tpl-note h4 { margin-top: 8px; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.in-tpl-note p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.78); }
.in-tpl-note ol { margin-top: 16px; display: grid; gap: 8px; counter-reset: n; }
.in-tpl-note li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); counter-increment: n; }
.in-tpl-note li::before { content: counter(n); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--font-mono); }
.in-tpl-note dl { margin: 18px 0 0; display: grid; gap: 10px; }
.in-tpl-note dt { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.in-tpl-note dd { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.9); }
.in-fade { animation: inFade .35s ease both; }
@keyframes inFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .in-fade { animation: none; } }
@media (max-width: 900px) { .in-tpl { grid-template-columns: minmax(0, 1fr); } .in-glance dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (max-width: 560px) { .in-glance dl > div::before { display: none; } }

/* screenshots grid */
.in-shots { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.in-shots figure { margin: 0; }
.in-shots .media { margin: 0; padding: clamp(10px, 2.4vw, 28px); }
.in-shots figcaption { margin-top: 10px; font: 400 11.5px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--dim); }
@media (max-width: 720px) { .in-shots { grid-template-columns: minmax(0, 1fr); } }

/* email demo */
.in-mail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.in-mail-note { color: #fff; }
.in-mail-note h4 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.in-mail-note p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.78); }
.in-mail-note dl { margin: 18px 0 0; display: grid; gap: 10px; }
.in-mail-note dt { font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.in-mail-note dd { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.9); }
.in-email { max-width: 520px; width: 100%; justify-self: center; border-radius: 14px; overflow: hidden; background: #fff; color: #0e1a2b; box-shadow: 0 2px 6px #0000004d, 0 32px 64px -24px #000000a6; font-family: "Geist", system-ui, sans-serif; }
.in-email-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; }
.in-email-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f2c52; }
.in-email-logo i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #f2672a; color: #fff; font: 700 12px/1 "Geist", sans-serif; font-style: normal; }
.in-email-logo span { font: 500 10px/1 "Geist Mono", var(--font-mono); letter-spacing: .06em; color: #7a8699; }
.in-email-top > span { font: 500 11px/1 "Geist Mono", var(--font-mono); color: #7a8699; }
.in-banner { position: relative; aspect-ratio: 600 / 260; overflow: hidden; background: #dfe8f8; }
.in-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.in-banner .in-tag { position: absolute; left: 14px; top: 14px; background: #fff; }
.in-email-body { padding: 20px 24px 24px; }
.in-email-body .in-mono { font-size: 10.5px; color: #f2672a; }
.in-email-body h5 { margin-top: 8px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.in-email-body p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #4a5568; }
.in-email-body dl { margin: 14px 0 0; padding: 4px 14px; border-radius: 10px; background: #f6f8fb; }
.in-email-body dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; font-size: 13px; }
.in-email-body dl > div + div { border-top: 1px solid #e3e8f0; }
.in-email-body dt { color: #7a8699; } .in-email-body dd { margin: 0; font-weight: 500; }
.in-email-body .in-cta { display: inline-flex; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 10px; background: #f2672a; color: #fff; font-size: 13.5px; font-weight: 500; }
.in-email-foot { padding: 14px 24px; background: #0a1f40; color: rgba(255,255,255,.7); font-size: 11.5px; }
@media (max-width: 900px) { .in-mail { grid-template-columns: minmax(0, 1fr); } }

/* X series grid */
.in-xgrid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.in-xgrid figure { margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); }
.in-xgrid figure:first-child { grid-column: span 2; grid-row: span 2; }
.in-xgrid figure:nth-child(n+6) { grid-column: span 2; }
.in-xgrid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.in-xgrid figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.in-xgrid figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.in-xgrid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
@media (max-width: 900px) { .in-xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .in-xgrid figure:first-child { grid-row: auto; } .in-xgrid figure:nth-child(n+6) { grid-column: auto; } }
@media (max-width: 520px) { .in-xgrid { grid-template-columns: minmax(0, 1fr); } .in-xgrid figure:first-child, .in-xgrid figure:nth-child(n+6) { grid-column: auto; grid-row: auto; } }
.in-xsteps { margin-top: 28px; }

/* review / test findings */
.in-fix { margin-top: 28px; display: grid; gap: 10px; }
.in-fix > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.in-fix small { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.in-fix p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.in-fix p:last-child { color: var(--text); }
.in-fix i { font-style: normal; color: var(--accent); font-family: var(--font-mono); }
@media (max-width: 720px) { .in-fix > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .in-fix i { display: none; } }

/* responsive demo */
/* responsive demo: one live Home, three devices */
.in-rwd-stage { position: relative; height: 640px; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.in-rwd-device { position: absolute; left: 50%; top: 0; transform-origin: top center; transition: width .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); background: #0b0f17; box-shadow: 0 2px 6px #0000004d, 0 40px 80px -30px #000000b3; }
.in-rwd-device[data-dev="desktop"] { border-radius: 12px; padding: 30px 0 0; }
.in-rwd-device[data-dev="desktop"]::before { content: ""; position: absolute; left: 14px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 14px 0 #febc2e, 28px 0 #28c840; }
.in-rwd-device[data-dev="tablet"] { border-radius: 30px; padding: 18px; }
.in-rwd-device[data-dev="phone"] { border-radius: 44px; padding: 12px; }
.in-rwd-frame { container-type: inline-size; height: 100%; overflow: hidden auto; background: #f6f8fb; scrollbar-width: none; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.in-rwd-device[data-dev="desktop"] .in-rwd-frame { border-radius: 0 0 12px 12px; }
.in-rwd-device[data-dev="tablet"] .in-rwd-frame { border-radius: 14px; }
.in-rwd-device[data-dev="phone"] .in-rwd-frame { border-radius: 34px; }
.in-rwd-frame::-webkit-scrollbar { display: none; }
.in-rwd-meta { margin-top: 14px; text-align: center; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.7); }
@media (prefers-reduced-motion: reduce) { .in-rwd-stage, .in-rwd-device, .in-rwd-frame { transition: none; } }

/* mini Home (phone first) */
.mh { font-family: "Geist", system-ui, sans-serif; color: #0e1a2b; font-size: 13px; }
.mh-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 52px; padding: 0 18px; background: #fff; border-bottom: 1px solid #e3e8f0; }
.mh-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #0f2c52; }
.mh-logo i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #f2672a; color: #fff; font-size: 11px; font-style: normal; }
.mh-nav { display: none; gap: 20px; color: #4a5568; font-weight: 500; }
.mh-nav b { color: #0e1a2b; font-weight: 500; box-shadow: inset 0 -2px #f2672a; padding-bottom: 4px; }
.mh-clock { display: none; gap: 10px; font: 500 11px/1 "Geist Mono", monospace; color: #7a8699; }
.mh-clock b { color: #0e1a2b; font-weight: 500; }
.mh-icons { display: flex; gap: 14px; color: #0e1a2b; }
.mh-icons svg { width: 20px; height: 20px; }
.mh-hero { display: grid; gap: 12px; padding: 18px; background: #0a1f40; color: #fff; }
.mh-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.mh-hero h5 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.mh-hero p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.72); display: none; }
.mh-btn { justify-self: start; padding: 10px 14px; border-radius: 8px; background: #f2672a; color: #fff; font-weight: 500; font-size: 13px; }
.mh-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 18px 0; }
.mh-quick span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; font-size: 11px; color: #4a5568; text-align: center; }
.mh-quick b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #eef3fb; color: #2f6bff; font: 600 10px/1 "Geist Mono", monospace; }
.mh-quick span:nth-child(n+5) { display: none; }
.mh-sec { padding: 20px 18px 4px; }
.mh-sec h6 { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.mh-sec h6 small { font-size: 12px; font-weight: 500; color: #2f6bff; }
.mh-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mh-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; }
.mh-card img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; }
.mh-card b { display: block; margin-top: 5px; font-size: 13px; line-height: 1.3; font-weight: 600; }
.mh-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 18px 20px; }
.mh-box { border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; padding: 12px 14px; }
.mh-box > span { font: 500 10px/1 "Geist Mono", monospace; letter-spacing: .06em; color: #7a8699; }
.mh-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #e3e8f0; font-size: 12.5px; }
.mh-row:first-of-type { border-top: 0; }
.mh-row em { font-style: normal; font: 500 10.5px/1.4 "Geist Mono", monospace; color: #7a8699; white-space: nowrap; }
.mh-foot { padding: 18px; background: #0a1f40; color: rgba(255,255,255,.7); font-size: 11px; }
@container (min-width: 600px) {
  .mh-head { height: 56px; padding: 0 24px; }
  .mh-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 28px 24px; }
  .mh-hero img { order: 2; aspect-ratio: 4 / 3; }
  .mh-hero p { display: block; }
  .mh-quick { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 18px 24px 0; }
  .mh-quick span:nth-child(n+5) { display: flex; }
  .mh-sec, .mh-two { padding-left: 24px; padding-right: 24px; }
  .mh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mh-card { display: block; padding: 0; overflow: hidden; }
  .mh-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .mh-card > div { padding: 10px 12px 12px; }
  .mh-card:nth-child(3) { display: none; }
  .mh-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container (min-width: 960px) {
  .mh-head { height: 60px; padding: 0 40px; }
  .mh-nav, .mh-clock { display: flex; }
  .mh-icons svg:last-child { display: none; }
  .mh-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding: 36px 40px; }
  .mh-hero img { aspect-ratio: 16 / 9; }
  .mh-hero h5 { font-size: 30px; }
  .mh-quick, .mh-sec, .mh-two { padding-left: 40px; padding-right: 40px; }
  .mh-quick span { flex-direction: row; justify-content: flex-start; padding: 10px 12px; font-size: 12px; }
  .mh-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mh-card:nth-child(3) { display: block; }
  .mh-two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* visual system */
.in-sw { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.in-sw div { font-size: 13px; color: var(--muted); }
.in-sw i { display: block; height: 64px; margin-bottom: 8px; border-radius: 10px; background: var(--c); border: 1px solid var(--line); }
.in-sw b { display: block; color: var(--text); font-weight: 500; }
.in-sw code { font: 400 11px/1.4 var(--font-mono); color: var(--dim); }
.in-typo { margin-top: 28px; border-radius: 16px; background: #fff; color: #0e1a2b; padding: clamp(16px, 3vw, 32px); font-family: "Geist", system-ui, sans-serif; }
.in-typo > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #e3e8f0; }
.in-typo > div:last-child { border-bottom: 0; }
.in-typo small { font: 500 11px/1.3 "Geist Mono", var(--font-mono); letter-spacing: .04em; color: #7a8699; }
.in-typo .in-tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .in-typo > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* phone screens: one phone-height window each, full page in the lightbox */
.in-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.in-phones figure { margin: 0; }
.in-phones .zoomable { border-radius: 16px; overflow: hidden; background: #f4f6fa; }
.in-phones img { aspect-ratio: 375 / 812; height: auto; object-fit: cover; object-position: top center; }
.in-phones figcaption { margin-top: 10px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffffffb3; text-align: center; }
@media (max-width: 700px) { .in-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* five-entry sitemap */
.fmap-grid.in-fmap5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .fmap-grid.in-fmap5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fmap-grid.in-fmap5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the before/after flow scrolls sideways on small screens */
@media (max-width: 900px) { .in-flowmap::after { content: "← scroll →"; display: block; margin-top: 14px; font: 400 10.5px/1 var(--font-mono); letter-spacing: .08em; color: #8a8f99; position: sticky; left: 0; } }
@media (max-width: 900px) { html[lang^="zh"] .in-flowmap::after { content: "← 左右滑动 →"; } }
/* the large X card fills both rows */
@media (min-width: 901px) {
  .in-xgrid figure:first-child { display: flex; flex-direction: column; }
  .in-xgrid figure:first-child .zoomable { flex: 1; min-height: 0; }
  .in-xgrid figure:first-child img { height: 100%; aspect-ratio: auto; }
}
