@font-face {
  font-family: "Lumen Han";
  src: url("../assets/fonts/han-heavy.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "Lumen Han";
  src: url("../assets/fonts/han-bold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --paper: #F6F1EA;
  --pink: #F9C5D1;
  --aqua: #A8DADC;
  --steel: #457B9D;
  --sun: #FFD166;
  --ink: #2B2D42;
  --card: #FDFBF7;
  --lav: #A9A8D9;
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --sans: "Avenir Next", Avenir, Futura, "Century Gothic", "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Avenir Next", Avenir, Futura, "Century Gothic", "Trebuchet MS", "Lumen Han", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 22px; }
.lab { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(43, 45, 66, .72); }

/* push buttons */
.pb { border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 16px 10px 12px; font-weight: 800; font-size: 15px; text-align: left; display: inline-flex; gap: 10px; align-items: center; box-shadow: 0 5px 0 var(--ink); transition: transform .16s var(--out), box-shadow .16s var(--out), background .3s; line-height: 1.2; text-decoration: none; background: var(--card); white-space: nowrap; }
.pb small { display: block; font-size: 11px; font-weight: 700; opacity: .78; margin-top: 2px; }
.pb svg { width: 30px; height: 30px; flex: none; }
.pb:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.pb:active, .pb[aria-pressed=true] { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.pb-sun { background: var(--sun); }
.pb-pink { background: var(--pink); }
.pb-white { background: var(--card); }
.pb-pink[aria-pressed=true] { background: var(--steel); color: #fff; }
.pb-sun[aria-pressed=true] { background: var(--aqua); }
.pb-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.pb-sm:hover { box-shadow: 0 5px 0 var(--ink); }

/* sticky bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; background: rgba(246, 241, 234, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); transform: translateY(-110%); transition: transform .4s var(--out); }
.bar.on { transform: none; }
.bar-in { display: flex; align-items: center; gap: 24px; height: 58px; }
.mini { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.mini svg { width: 30px; height: 30px; }
.mini b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.links { display: flex; gap: 22px; }
.links a { font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .06em; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.links a:hover { border-color: var(--sun); }

/* header */
.top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 22px 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; }
.brand svg { width: 54px; height: 54px; flex: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.brand .wm { display: block; font-family: var(--display); font-size: 42px; line-height: .9; font-weight: 800; letter-spacing: -.02em; }
.brand .lab { display: block; margin-top: 7px; }
.quick { display: flex; gap: 26px; }
.quick b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.quick b small { font-size: 12px; font-weight: 700; margin-left: 3px; opacity: .7; }
.clockbox { text-align: right; border-left: 1.5px solid var(--ink); padding-left: 24px; }
.clockbox b { display: block; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: .95; letter-spacing: -.01em; }

/* masthead */
.mast { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 26px 0 34px; border-top: 1.5px solid var(--ink); }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(255, 209, 102, .45); } }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7.6vw, 112px); line-height: 1; letter-spacing: -.02em; }
.glow { position: relative; display: inline-block; z-index: 0; }
.glow::after { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .36em; background: var(--sun); border-radius: .08em; z-index: -1; transform-origin: left; animation: mark 1s .5s var(--out) backwards; }
@keyframes mark { from { transform: scaleX(0); } }
.lead { font-size: 18px; line-height: 1.75; max-width: 600px; }
.lead b { font-weight: 700; background: linear-gradient(transparent 62%, rgba(168, 218, 220, .8) 62%); }
.ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

/* panels */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 16px; position: relative; min-width: 0; }
.panel > .lab { display: block; margin-bottom: 6px; }
.sh-p { box-shadow: 5px 5px 0 var(--pink); }
.sh-a { box-shadow: 5px 5px 0 var(--aqua); }
.sh-y { box-shadow: 5px 5px 0 var(--sun); }
.sh-s { box-shadow: 5px 5px 0 var(--steel); }
.full { grid-column: 1 / -1; }
.side { display: grid; gap: 18px; align-content: start; }
.hint { font-size: 13px; margin-top: 18px; color: rgba(43, 45, 66, .75); }

/* board */
.board { padding: 0; overflow: hidden; background: var(--paper); box-shadow: 5px 5px 0 var(--steel); }
#town { display: block; width: 100%; height: auto; isolation: isolate; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.f { stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; }
.gnd * { vector-effect: non-scaling-stroke; }
.itx { font-family: var(--display); font-weight: 800; fill: var(--ink); letter-spacing: .14em; }
.b { cursor: pointer; outline: none; transition: opacity .5s var(--out), filter .5s; }
.b, .deco { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--spring), opacity .5s var(--out); }
.b.sel { transform: translateY(-6px); }
.b:hover .f { stroke-width: 1.25; }
.b.dim { filter: grayscale(.85); opacity: .7; }
.b.out { opacity: .28; filter: grayscale(.6); }
.fp { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linejoin: round; opacity: 0; transition: opacity .25s; }
.b.sel .fp, .b:focus-visible .fp { opacity: 1; }
.b:focus-visible .f, .b.sel .f { stroke-width: 1.5; }
.intro .b, .intro .deco { animation: pop .66s var(--spring) backwards; animation-delay: var(--d); }
@keyframes pop { from { transform: translateY(10px) scale(.55, 0); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
.w { fill: #DDF0F1; stroke: var(--ink); stroke-width: .6; }
.lg { opacity: 0; transition: opacity .7s var(--out); pointer-events: none; }
.lg.on { opacity: 1; }
.wl { fill: var(--sun); stroke: var(--sun); stroke-opacity: .38; stroke-width: 2.6; stroke-linejoin: round; }
.lamp, .star { opacity: 0; transition: opacity 1.2s; }
.dark .lamp { opacity: 1; }
.dark .star { opacity: .9; }
.tint { mix-blend-mode: multiply; pointer-events: none; opacity: calc(var(--fc, 0) * .75); transition: opacity .6s; }
.beam { fill: var(--sun); opacity: var(--beam, .3); transition: opacity .6s; mix-blend-mode: multiply; }
.blink { animation: blink 1.6s steps(2, jump-none) infinite; }
.blink.off { animation: none; fill: #fff; }
@keyframes blink { 50% { fill: #fff; } }
.wire { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; transition: stroke .4s, opacity .4s; }
.wire.trunk { stroke-width: 1.6; }
.wire.under { stroke-dasharray: 2.5 2.5; stroke-width: 1.1; }
.wire.off { stroke-dasharray: 3 4; opacity: .5; }
.intro .wire { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: string 1s var(--out) forwards; animation-delay: var(--d); }
@keyframes string { to { stroke-dashoffset: 0; } }
.pole { stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.stub { fill: none; stroke: var(--ink); stroke-width: .7; stroke-dasharray: 1.6 1.8; opacity: .55; transition: opacity .3s; }
.stub.hl { stroke-width: 1.6; opacity: 1; stroke-dasharray: none; }
.intro .fl, .intro .stub { opacity: 0; }
.fl { fill: none; transition: opacity .8s; }
.fl .fn { stroke: var(--ink); stroke-dasharray: 7 29; stroke-dashoffset: .5; animation: flow-n 1.8s linear infinite; }
.fl .fy { stroke: var(--sun); stroke-dasharray: 6 30; animation: flow-y 1.8s linear infinite; }
.fl.out .fy { stroke: #fff; }
.fl.out .fn, .fl.out .fy { animation-duration: 2.6s; }
.fl.off { opacity: 0; }
@keyframes flow-n { to { stroke-dashoffset: -35.5; } }
@keyframes flow-y { to { stroke-dashoffset: -36; } }
.halo { stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: .3 .35; animation: rip 5s linear infinite; }
.halo.h2 { stroke: var(--ink); stroke-width: 1; stroke-dasharray: .12 .35; opacity: .5; animation-direction: reverse; }
.ripple { stroke: #fff; stroke-width: 1; stroke-dasharray: .5 .9; fill: none; animation: rip 3.2s linear infinite; }
@keyframes rip { to { stroke-dashoffset: -1.4; } }
.mark { opacity: 0; transition: opacity .3s; }
.mark.on { opacity: 1; }
.mark .bob { animation: bob 1s ease-in-out infinite; }
.mark text { font-size: 9.5px; letter-spacing: .04em; }
@keyframes bob { 50% { transform: translateY(-2.5px); } }

/* card, tape, corner */
.cardbox { position: absolute; left: 14px; top: 14px; width: 252px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 14px 13px; box-shadow: 4px 4px 0 var(--sun); }
.cardbox h3 { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; margin: 4px 22px 4px 0; }
.cardbox .big { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.cardbox .big small { font-size: 14px; margin-left: 4px; }
.cardbox .e { font-size: 12.5px; margin-top: 2px; }
.cardbox .who { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.cardbox .who b { display: block; font-size: 13px; }
.cardbox .note { font-size: 13px; line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1.5px dashed rgba(43, 45, 66, .4); }
.cardbox .x { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--pink); padding: 0; line-height: 0; display: grid; place-items: center; }
.cardbox .x svg { width: 10px; height: 10px; }
.cardbox.swap { animation: cardin .4s var(--spring); }
@keyframes cardin { from { transform: translateY(8px) scale(.96); opacity: 0; } }
.ava { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; flex: none; background: var(--aqua); }
.ava.bot { display: grid; place-items: center; background: var(--lav); }
.ava.bot svg, .botface svg { width: 18px; height: 18px; fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.st { padding: 1px 7px; border-radius: 999px; border: 1.2px solid var(--ink); color: var(--ink); letter-spacing: .08em; }
.st-ok { background: var(--aqua); }
.st-done, .st-acting { background: var(--sun); }
.st-risk, .st-blocked, .st-conflict { background: var(--pink); }
.st-nodata { background: #fff; }
.tape { position: absolute; right: 14px; bottom: 12px; max-width: min(470px, calc(100% - 210px)); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 7px 15px 7px 12px; font-size: 13px; display: flex; gap: 9px; align-items: center; white-space: nowrap; overflow: hidden; }
.tape i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.tape span { overflow: hidden; text-overflow: ellipsis; }
.tape.swap span { animation: tapein .5s var(--out); }
@keyframes tapein { from { transform: translateY(12px); opacity: 0; } }
.corner { position: absolute; left: 14px; bottom: 12px; font-size: 12px; }
.corner b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; margin-top: 2px; }

/* side panels */
.dialrow { display: flex; gap: 14px; align-items: center; }
#dial { width: 158px; height: 158px; flex: none; touch-action: none; cursor: grab; border-radius: 50%; }
#dial:active { cursor: grabbing; }
.dialrow .r { flex: 1; min-width: 0; }
.dialrow .r b { font-family: var(--display); font-size: 30px; font-weight: 800; display: block; line-height: 1; }
.dialrow .r .lab { display: block; margin-top: 6px; }
.dialrow .r p { font-size: 12.5px; line-height: 1.45; margin: 5px 0 10px; min-height: 3.6em; }
.ax { font-family: var(--display); font-size: 10px; font-weight: 700; fill: var(--ink); letter-spacing: .08em; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.seg button { border: 0; background: none; padding: 6px 11px; font-weight: 800; font-size: 13px; border-right: 1.5px solid var(--ink); transition: background .25s var(--out); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button[aria-checked=true] { background: var(--sun); }
.seg button:hover { background: var(--pink); }
.seg button[aria-checked=true]:hover { background: var(--sun); }
.seg.jump { display: flex; margin-top: 12px; }
.seg.jump button { flex: 1; }
.seg-lg button { padding: 8px 14px; font-size: 14px; }
.seg-sm button { padding: 4px 10px; font-size: 12px; }
.fig { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; white-space: nowrap; }
.fig small { font-size: 14px; margin-left: 4px; font-weight: 700; }
.sub { font-size: 12.5px; line-height: 1.45; margin-top: 4px; }
.freqrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.freqrow .sub { text-align: right; }
#gauge { display: block; width: 100%; max-width: 250px; margin: 0 auto -6px; }
#batt { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
.bseg { transition: fill .5s var(--out); }

/* switchboard */
.sb { background: var(--aqua); box-shadow: 5px 5px 0 var(--ink); display: grid; grid-template-columns: auto 1fr auto; gap: 16px 30px; align-items: stretch; padding: 16px 22px; }
.screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3.2px; height: 1.5px; background: var(--ink); transform: rotate(35deg); }
.sb .grp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb .grp > .lab { color: var(--ink); }
.knives { display: flex; gap: 10px; }
.knife { background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 8px 8px; width: 88px; text-align: center; transition: transform .2s var(--out); }
.knife:active { transform: translateY(2px); }
.knife svg { width: 52px; height: 74px; display: block; margin: 0 auto; }
.knife .blade { transform-origin: 26px 60px; transition: transform .42s var(--spring); }
.knife[aria-checked=false] .blade { transform: rotate(52deg); }
.knife[aria-checked=false] .lampk { fill: var(--paper); }
.knife .lampk { fill: var(--sun); transition: fill .3s; }
.knife .nm { font-size: 11px; font-weight: 800; letter-spacing: .06em; display: block; white-space: nowrap; }
.knife .kw { font-family: var(--display); font-size: 15px; font-weight: 800; display: block; white-space: nowrap; }
.scope { font-size: 13px; line-height: 1.5; margin-top: 4px; }
.scope b { display: block; font-size: 15px; }
.push { display: flex; flex-direction: column; gap: 16px; }
.push .pb { min-width: 200px; font-size: 14px; }

/* chart + ring */
#chart { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.legend .ln i { height: 0; border-width: 0 0 2.5px; border-radius: 0; vertical-align: 4px; width: 18px; }
.ringrow { display: flex; gap: 14px; align-items: center; }
#ring { width: 140px; height: 140px; flex: none; }
#ring circle { transition: stroke-dasharray .6s var(--out), stroke-dashoffset .6s var(--out); }
.ringrow ul { font-size: 12.5px; line-height: 1.85; flex: 1; min-width: 0; }
.ringrow li { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; transition: opacity .3s; }
.ringrow li.off { opacity: .45; text-decoration: line-through; }
.ringrow li i { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; margin-right: 6px; }
.cap { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.2; margin-top: 14px; }
.cap span { font-size: 44px; line-height: 1; display: inline-block; margin-right: 2px; }
.cap + .sub { margin-top: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1.2fr 2fr; gap: 18px; }
.gap { display: flex; align-items: center; gap: 16px; }
.gapbar { flex: 1; display: grid; gap: 6px; font-size: 11px; font-weight: 700; }
.gapbar div { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 6px; }
.gapbar i { display: block; height: 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--sun); }
.gapbar i.ev { width: var(--ev, 0%); background: var(--aqua); transition: width .8s var(--spring); min-width: 0; }
.gapbar b { text-align: right; }
#log { height: 128px; overflow-y: auto; font-size: 13.5px; line-height: 1.45; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
#log li { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(43, 45, 66, .3); }
#log li b { flex: none; width: 44px; font-family: var(--display); }
#log li:first-child { animation: tapein .5s var(--out); }

/* sections */
.sec { padding-top: 110px; }
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 8px 40px; align-items: end; margin-bottom: 30px; }
.sec-h .lab { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.sec-h .lab::before { content: ""; width: 26px; height: 1.5px; background: var(--ink); }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -.01em; }
.sec-h p { font-size: 16px; line-height: 1.75; max-width: 520px; }
.panel h3 { font-family: var(--display); font-weight: 700; }
.num { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 13px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; background: var(--paper); }

/* film */
.film { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.screen { padding: 10px; background: var(--ink); box-shadow: 6px 6px 0 var(--steel); overflow: hidden; }
.screen video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: #fff; }
.playbig { position: absolute; inset: 10px; border: 0; background: rgba(43, 45, 66, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 6px; transition: opacity .4s, background .3s; }
.playbig:hover { background: rgba(43, 45, 66, .2); }
.playbig.gone { opacity: 0; pointer-events: none; }
.playbig .disc { width: 96px; height: 96px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; place-items: center; transition: transform .2s var(--spring); }
.playbig:hover .disc { transform: scale(1.06); }
.playbig .disc svg { width: 40px; height: 40px; margin-left: 6px; }
.playbig .pl { background: var(--ink); color: var(--paper); font-weight: 800; font-size: 13px; letter-spacing: .12em; padding: 6px 14px; border-radius: 999px; }
.chapters ol { counter-reset: c; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; border: 0; border-bottom: 1px dashed rgba(43, 45, 66, .3); background: none; text-align: left; padding: 9px 4px; font-size: 14px; font-weight: 600; transition: background .2s, padding .2s var(--out); border-radius: 6px; }
.chapters button b { font-family: var(--display); font-size: 12px; width: 42px; flex: none; opacity: .7; }
.chapters button:hover { background: var(--paper); padding-left: 10px; }
.chapters button[aria-current] { background: var(--sun); padding-left: 10px; }

/* problem */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 14px; margin-bottom: 26px; }
.m { aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 9px; font-size: 12px; }
.m b { font-family: var(--display); font-weight: 800; font-size: 14px; }
.m.solid { background: var(--aqua); }
.m.solid span { font-weight: 700; }
.m.pinkish { background: var(--pink); }
.m.fog { border-style: dashed; opacity: .55; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(43, 45, 66, .06) 6px 7px); }
.m.q { opacity: 1; justify-content: space-between; }
.m.q span { font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; align-self: center; margin-bottom: 18%; animation: bob 1.4s ease-in-out infinite; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards3 .panel, .prins .panel { padding: 20px 22px 22px; }
.cards3 h3 { font-size: 22px; margin: 16px 0 8px; }
.cards3 p { font-size: 15px; line-height: 1.75; }

/* loop */
.chain { padding: 30px 26px; }
.chain ol { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.chain ol::before { content: ""; position: absolute; left: 7%; right: 7%; top: 27px; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); background-size: 14px 3px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 14px 0; } }
.chain li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.chain i { font-style: normal; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 var(--ink); margin-bottom: 8px; transition: transform .4s var(--spring); }
.chain li:hover i { transform: translateY(-4px); }
.chain li.hot i { background: var(--sun); }
.chain b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.chain span { font-size: 13px; line-height: 1.4; color: rgba(43, 45, 66, .8); }
.fromto { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.tape-x { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; }
.tape-x .lab { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 9px; letter-spacing: .1em; }
.tape-x.from { background: var(--card); }
.tape-x.from s { text-decoration-thickness: 2px; text-decoration-color: #D9546E; opacity: .7; }
.tape-x.to { background: var(--sun); box-shadow: 0 4px 0 var(--ink); }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.feat { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.feat > .lab { margin: 0; }
.feat h3 { font-size: 20px; line-height: 1.35; }
.tree { display: grid; gap: 10px; position: relative; padding-left: 14px; }
.tree::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 30px; width: 3px; background: #E8879C; border-radius: 2px; }
.node { position: relative; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); padding: 7px 10px; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; font-size: 12px; }
.node::before { content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1.5px; background: var(--ink); }
.node em { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .08em; padding: 1px 6px; border-radius: 999px; border: 1.2px solid var(--ink); background: var(--paper); grid-row: span 2; align-self: center; }
.node b { font-size: 13.5px; }
.node span { grid-column: 2; opacity: .75; }
.node.risk { background: #FDE5EB; }
.node.risk em { background: var(--pink); }
.node.agent { margin-left: 18px; }
.node.agent em { background: var(--lav); }
.todo { display: grid; gap: 8px; }
.todo li { border: 1.5px solid var(--ink); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; font-size: 12px; background: var(--card); transition: transform .3s var(--spring); }
.todo li:hover { transform: translateX(4px); }
.todo em, .meta em { font-style: normal; justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 1px 7px; border-radius: 999px; border: 1.2px solid var(--ink); }
.todo b { font-size: 14px; }
.todo span { opacity: .75; }
.t-risk, .t-conf { background: var(--pink); }
.t-wait { background: var(--sun); }
.t-ok { background: var(--aqua); }
.verdict { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--ink); background: #EEEDF9; }
.verdict b { font-size: 14px; }
.conf { flex: none; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--lav); border: 1.2px solid var(--ink); }
.why { counter-reset: w; display: grid; gap: 6px; font-size: 13px; }
.why li { display: flex; gap: 8px; align-items: baseline; counter-increment: w; }
.why li::before { content: counter(w); flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.chips span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--aqua); }
.bars2 { display: grid; gap: 10px; }
.bars2 div { display: grid; grid-template-columns: 58px 1fr 38px; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; }
.bars2 i { display: flex; height: 22px; width: var(--w); border: 1.5px solid var(--ink); border-radius: 7px; background: var(--sun); overflow: hidden; }
.bars2 .seg3 { background: none; }
.bars2 u { text-decoration: none; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--aqua); border-right: 1.5px solid var(--ink); white-space: nowrap; overflow: hidden; }
.bars2 u:nth-child(2) { background: #C9E8E9; }
.bars2 u:last-child { border-right: 0; background: #E1F2F2; }
.bars2 b { text-align: right; font-family: var(--display); font-size: 14px; }
.aside { font-size: 13px; line-height: 1.6; padding-top: 10px; border-top: 1.5px dashed rgba(43, 45, 66, .4); margin-top: auto; }
.aside em { font-style: normal; font-weight: 800; background: var(--pink); border: 1.2px solid var(--ink); border-radius: 999px; padding: 1px 8px; margin-right: 6px; font-size: 12px; }
.form { display: grid; gap: 10px; }
.field { border: 1.5px solid var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; background: #fff; position: relative; }
.field::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--ink); margin-left: 3px; vertical-align: -2px; animation: caret 1s steps(2, jump-none) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.meta img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); }
.meta em { margin-left: auto; }
.review { display: flex; gap: 16px; align-items: center; }
.grade { position: relative; width: 92px; flex: none; text-align: center; }
.grade svg { width: 92px; height: 92px; display: block; }
.grade b { position: absolute; left: 0; right: 0; top: 24px; font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1; }
.grade span { display: block; font-size: 11px; font-weight: 700; margin-top: 4px; }
.pm { display: grid; gap: 6px; font-size: 13px; flex: 1; }
.pm li { display: flex; gap: 8px; align-items: center; }
.pm li::before { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; line-height: 1; }
.pm .pos::before { content: "+"; background: var(--aqua); }
.pm .neg::before { content: "−"; background: var(--pink); }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1.5px dashed rgba(43, 45, 66, .4); }
.rate .lab { margin: 0; }

/* people */
.people { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; }
.worker { background: var(--lav); box-shadow: 5px 5px 0 var(--ink); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.worker .lab { color: var(--ink); }
.worker p { font-size: 15px; line-height: 1.7; }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 14px; background: var(--card); }
.types .ai { background: var(--sun); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 0 12px; align-items: center; text-align: left; padding: 14px 16px; transition: transform .3s var(--spring); }
.role:hover { transform: translateY(-3px); }
.role img, .botface { grid-row: span 3; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; background: var(--aqua); }
.botface { display: grid; place-items: center; background: var(--lav); }
.botface svg { width: 26px; height: 26px; }
.role b { font-family: var(--display); font-size: 17px; font-weight: 700; }
.role span { font-size: 12.5px; opacity: .8; }
.role em { font-style: normal; justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 1px 8px; margin-top: 4px; border-radius: 999px; border: 1.2px solid var(--ink); background: var(--paper); }

/* principles */
.prins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.prins h3 { font-size: 19px; margin: 16px 0 8px; line-height: 1.35; }
.prins p { font-size: 14px; line-height: 1.7; }

/* cta */
.cta { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px 48px; padding: 44px 48px 30px; align-items: center; }
.cta h2 { font-size: clamp(40px, 5.4vw, 76px); margin: 14px 0 16px; }
.cta p { font-size: 16px; line-height: 1.75; max-width: 560px; }
.cta .ctas { margin-top: 26px; }
.cta .lab { color: var(--ink); }
.journey { display: grid; gap: 8px; counter-reset: j; }
.journey li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; transition: transform .3s var(--spring); }
.journey li:hover { transform: translateX(-4px); }
.journey b { font-family: var(--display); font-weight: 800; font-size: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; }
.fine { grid-column: 1 / -1; font-size: 12.5px !important; opacity: .8; max-width: none !important; padding-top: 14px; border-top: 1.5px solid var(--ink); }

.foot { margin-top: 56px; display: flex; gap: 10px 30px; flex-wrap: wrap; justify-content: space-between; font-size: 12.5px; border-top: 1.5px solid var(--ink); padding-top: 14px; padding-bottom: 40px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out) var(--rd, 0ms), transform .8s var(--spring) var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .quick { display: none; }
  .links { gap: 14px; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sb { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .logp { grid-column: 1 / -1; }
  .dialrow { flex-direction: column; align-items: flex-start; }
  .mast, .sec-h { grid-template-columns: 1fr; }
  .film { grid-template-columns: 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
  .prins { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 32px 28px 24px; }
  .links { display: none; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .top { gap: 12px 18px; }
  .brand .wm { font-size: 34px; }
  .brand svg { width: 44px; height: 44px; }
  .clockbox { border: 0; padding: 0; text-align: left; }
  .clockbox b { font-size: 30px; }
  .top .go { width: 100%; justify-content: center; }
  .lead { font-size: 16px; }
  .side, .row3 { grid-template-columns: 1fr; }
  .dialrow { flex-direction: row; align-items: center; }
  .cardbox { position: relative; left: auto; top: auto; width: auto; margin: 10px; box-shadow: 3px 3px 0 var(--sun); }
  .tape { position: relative; right: auto; bottom: auto; margin: 0 10px 10px; max-width: none; }
  .corner { position: relative; left: auto; bottom: auto; margin: 0 12px 10px; display: flex; gap: 10px; align-items: baseline; }
  .knives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .knife { width: auto; padding: 5px 2px 7px; }
  .seg-lg button { padding: 7px 10px; font-size: 13px; }
  .push { flex-direction: row; flex-wrap: wrap; }
  .push .pb { flex: 1; min-width: 150px; }
  .sb { padding: 16px 14px; }
  .sec { padding-top: 76px; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .m { padding: 6px; font-size: 10.5px; }
  .m b { font-size: 12px; }
  .cards3, .feats, .roles, .prins { grid-template-columns: 1fr; }
  .chain ol { grid-template-columns: 1fr; gap: 14px; }
  .chain ol::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 14px); }
  .chain li { flex-direction: row; text-align: left; gap: 14px; }
  .chain i { margin: 0; }
  .chain span { margin-left: auto; text-align: right; }
  .cta { padding: 28px 18px 20px; }
  .pb { white-space: normal; }
}

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