/* ============================================================
   Two identities, two languages of form.
   .work : business and professional, in the Silk Road Chemical palette.
           Engineering shows up only as a faint hexagon field and a thin process line.
   .life : flat neo-brutalism, deconstructed. Ink green, bone paper and a little brass; type that crops and overlaps.
   ============================================================ */

@font-face { font-family: "Sofia Sans"; font-weight: 1 1000; font-display: swap; src: url(fonts/sofia-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; font-weight: 1 1000; font-display: swap; src: url(fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(fonts/martian-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-weight: 100 800; font-display: swap; src: url(fonts/martian-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 1 1000; font-display: swap; src: url(fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 1 1000; font-display: swap; src: url(fonts/sofia-sans-extra-condensed-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Noto Sans SC Black, cut down to the glyphs in the personal page's Chinese headings. A new character falls back to the system font. */
@font-face { font-family: "KW CJK"; font-weight: 900; font-display: swap; src: url(fonts/noto-sans-sc-black-subset.woff2) format("woff2"); }

@view-transition { navigation: auto; }

:root {
  --cjk: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --sans: "Sofia Sans", var(--cjk);
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, var(--cjk);
  --m: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
h2, .w-head, .w-title, .tagline { text-wrap: balance; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
i, em { font-style: normal; }
[hidden] { display: none !important; }
section[id], .w-foot { scroll-margin-top: 60px; }
.ico { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- shared chrome ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 4px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--m); padding-top: max(10px, env(safe-area-inset-top)); }
.mark { width: 30px; height: 30px; display: grid; place-items: center; flex: none; text-decoration: none; }
.langs { display: flex; margin-left: auto; }
.tail { width: 30px; height: 30px; margin-left: -6px; display: grid; place-items: center; opacity: .4; transition: opacity .2s; }
.tail:hover, .tail:focus-visible { opacity: 1; }
.tail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.langs a { text-decoration: none; }

.dock-i { color: inherit; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in, html[data-edit] .reveal { opacity: 1; transform: none; }
[data-live]:not(.live) * { animation-play-state: paused !important; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.dock.on { transform: none; }
.dock-save { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; font-size: 14px; font-weight: 700; text-decoration: none; }
.dock-i { width: 54px; display: grid; place-items: center; }
@media (min-width: 760px) { .dock { display: none; } }

/* ============================================================
   WORK
   ============================================================ */
body.work {
  --paper: #FFFFFF; --band: #F5F6F3; --ink: #10222B; --ink2: #5A666D; --hair: rgba(16,34,43,.14);
  --amber: #E8930C; --amber-t: #A86200;
  background: var(--paper); color: var(--ink);
}
.work .progress { height: 2px; }
.work .progress i { background: var(--amber); }
.work .bar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.work .mark { background: var(--ink); color: #fff; font: 700 10.5px/1 var(--sans); letter-spacing: .02em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.work .langs a { font: 600 11px/1 var(--sans); padding: 6px 4px; color: var(--ink2); }
.work .langs a[aria-current] { color: var(--ink); }
.work .toast { background: var(--ink); color: #fff; border-radius: 4px; }
.work .dock { background: var(--ink); color: #fff; }
.work .dock-save { font-weight: 600; }
.work .dock-i { border-left: 1px solid rgba(255,255,255,.18); }

.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--hair); background: #fff; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.wbtn:hover { border-color: var(--ink); }
.wbtn-k { background: var(--ink); border-color: var(--ink); color: #fff; }
.wbtn-k:hover { background: #1C3845; }
.wbtn-a { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.wbtn-a:hover { background: #F4A62A; border-color: #F4A62A; }
.wbtn-o { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.wbtn-o:hover { border-color: #fff; }

/* hero */
.w-hero { position: relative; overflow: hidden; padding: 26px var(--m) 24px; }
.w-hero-in { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.hexf { position: absolute; top: -6px; right: -34px; width: 74%; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%); mask-image: linear-gradient(to left, #000 30%, transparent 96%); }
.hx { fill: none; stroke: rgba(16,34,43,.11); stroke-width: 1; }
.hx-t { fill: rgba(232,147,12,.14); }
.hx-r { fill: none; stroke: rgba(16,34,43,.2); stroke-width: 1; }
.hx-sig { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 7 93; animation: sig 11s linear infinite; }
@keyframes sig { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.brand { width: 136px; height: auto; }
.w-name { margin-top: 30px; font-size: clamp(42px, 12vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.lang-zh .w-name { letter-spacing: .02em; }
.w-alt { margin-top: 5px; font-size: 16px; font-weight: 500; color: var(--ink2); }
.w-title { margin-top: 14px; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.w-org { margin-top: 2px; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.w-head { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: clamp(23px, 6.2vw, 34px); line-height: 1.26; font-weight: 600; letter-spacing: -.015em; max-width: 24em; }
.lang-zh .w-head { letter-spacing: .01em; }
.w-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.w-act .wbtn { flex: 1 1 auto; padding: 11px 10px; font-size: 13.5px; }

/* first question: what brought you here */
.guide { padding: 0 var(--m) 32px; }
.guide-in { max-width: 1120px; margin: 0 auto; padding: 15px 15px 16px; background: var(--band); border-radius: 6px; }
.g-step + .g-step { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.g-q { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.g-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.g-opt { padding: 8px 12px; background: #fff; border: 1px solid var(--hair); border-radius: 4px; font-size: 13.5px; font-weight: 500; line-height: 1.35; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.g-opt:hover { border-color: var(--ink); }
.g-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-skip { margin-top: 9px; font-size: 12.5px; color: var(--ink2); text-decoration: underline; }

/* the group: the page turns from the person to the company here */
.w-group { background: var(--ink); color: #fff; padding: 44px var(--m) 46px; }
.w-group-in { max-width: 1120px; margin: 0 auto; }
.w-group .sec-k { color: var(--amber); }
.g-name { margin-top: 12px; font-size: clamp(46px, 13.6vw, 76px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; }
.lang-zh .g-name { letter-spacing: .03em; }
.g-sub { margin-top: 5px; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--amber); }
.g-intro { margin-top: 16px; font-size: 15px; line-height: 1.72; color: rgba(255,255,255,.8); max-width: 42em; }
.g-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.org { position: relative; display: grid; gap: 26px; margin-top: 30px; padding-left: 20px; }
.org::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--amber); }
.org-b { position: relative; }
.org-b::before { content: ""; position: absolute; left: -16px; top: 9px; width: 10px; height: 1px; background: var(--amber); }
.org-b:last-child::after { content: ""; position: absolute; left: -17px; top: 10px; bottom: 0; width: 3px; background: var(--ink); }
.org-b h3 { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--amber); margin-bottom: 10px; }
.org-b ul { display: grid; gap: 8px; }
.org-i { padding: 11px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
.org-i strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.38; }
.org-i span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.72); }
.org-i.core { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px; background: #fff; border-color: #fff; color: var(--ink); }
.org-i.core span { color: var(--ink2); }
.org-y { font-size: 27px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--amber-t); font-variant-numeric: tabular-nums; }

/* the group's figures */
.st-g { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.st { display: grid; gap: 5px; align-content: start; padding-top: 11px; border-top: 2px solid var(--amber); }
.st b { font-size: clamp(30px, 8.8vw, 46px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st span { font-size: 13px; line-height: 1.45; color: var(--ink2); }
.w-note { margin-top: 18px; font-size: 11.5px; line-height: 1.5; color: var(--ink2); }

/* sections */
.sec { padding: 52px var(--m); }
.sec.alt { background: var(--band); }
.sec-in { max-width: 1120px; margin: 0 auto; }
.sec-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--amber-t); }
.sec-k i { font-variant-numeric: tabular-nums; }
.sec-k i::after { content: ""; display: inline-block; width: 16px; height: 1px; margin-left: 8px; background: var(--amber); vertical-align: middle; }
.sec h2 { font-size: clamp(25px, 6.8vw, 34px); line-height: 1.24; font-weight: 600; letter-spacing: -.015em; margin-top: 9px; }
.lang-zh .sec h2 { letter-spacing: .01em; }
.sec-b { margin-top: 20px; }
.sec h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }

.prose { display: grid; gap: 12px; font-size: 15px; line-height: 1.75; color: #2C3C44; }
.sheet { margin-top: 24px; border-top: 1px solid var(--ink); }
.sheet > div { display: grid; gap: 1px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.sheet dt { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.sheet dd { font-size: 14.5px; line-height: 1.55; }

.inlets { display: grid; gap: 10px; margin-top: 22px; }
.inlet { padding: 14px 15px; background: #fff; border: 1px solid var(--hair); border-radius: 4px; }
.inlet p { font-size: 13.5px; color: var(--ink2); line-height: 1.6; margin-top: 3px; }

.svc { border-top: 1px solid var(--ink); }
.svc-i { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.svc-k { width: 34px; height: 38px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .2s, color .2s; }
.svc-i:hover .svc-k { background: var(--amber); color: var(--ink); }
.svc-i p { font-size: 13.5px; color: var(--ink2); line-height: 1.6; margin-top: 2px; }

.intro { font-size: 15px; color: #2C3C44; line-height: 1.72; }
.route { display: block; width: 100%; height: auto; margin: 18px 0 16px; overflow: visible; }
.r-base { stroke: rgba(16,34,43,.3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.r-flow { stroke: var(--amber); stroke-width: 1.8; stroke-dasharray: 10 22; vector-effect: non-scaling-stroke; animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: 32; } }
.n circle { fill: var(--band); stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.n.hot circle, .n.home circle { fill: var(--amber); stroke: var(--amber); }
.n text { fill: var(--ink2); font-size: 12.5px; font-weight: 500; font-family: var(--sans); }
.n.hot text, .n.home text { fill: var(--ink); font-weight: 700; }
.mkt { border-top: 1px solid var(--ink); }
.mkt li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.mkt b { font-size: 15px; font-weight: 600; }
.mkt span { color: var(--ink2); font-size: 13.5px; line-height: 1.55; }

.plist { border-top: 1px solid var(--ink); }
.plist li { display: grid; gap: 3px; padding: 14px 0 13px; border-bottom: 1px solid var(--hair); }
.p-tag { font-size: 12.5px; font-weight: 600; color: var(--amber-t); }
.plist h3 { font-size: 15.5px; line-height: 1.38; }
.plist p { font-size: 13.5px; color: var(--ink2); line-height: 1.5; margin-top: 2px; }
.p-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--ink2); font-variant-numeric: tabular-nums; }
.p-meta b { font-weight: 600; color: var(--ink); }

.steps { display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--amber); }
.st-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { padding-top: 3px; }
.steps p { font-size: 13.5px; color: var(--ink2); line-height: 1.55; margin-top: 2px; }

.w-contact { background: var(--ink); color: #fff; padding: 48px var(--m) 42px; border-top: 3px solid var(--amber); }
.w-contact-in { display: grid; gap: 32px; max-width: 1120px; margin: 0 auto; }
.w-contact h2 { font-size: clamp(25px, 6.8vw, 36px); line-height: 1.24; font-weight: 600; letter-spacing: -.015em; }
.lang-zh .w-contact h2 { letter-spacing: .01em; }
.c-body { margin: 10px 0 20px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.76); }
.c-name { display: grid; padding-bottom: 12px; }
.c-name b { font-size: 19px; font-weight: 600; line-height: 1.3; }
.c-name span { font-size: 13px; color: rgba(255,255,255,.66); }
.c-list { border-top: 1px solid rgba(255,255,255,.34); }
.c-row { display: grid; grid-template-columns: auto 1fr 14px; gap: 10px; align-items: center; width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: color .2s; }
.c-row:hover { color: var(--amber); }
.c-l { font-size: 14px; font-weight: 600; white-space: nowrap; }
.c-v { font-size: 13.5px; text-align: right; color: rgba(255,255,255,.76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-row .ico { width: 14px; height: 14px; opacity: .6; }

.w-foot { display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; align-items: center; max-width: calc(1120px + var(--m) * 2); margin: 0 auto; padding: 16px var(--m) calc(22px + env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--ink2); }
.w-door { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 12px; color: var(--ink2); text-decoration: none; transition: color .2s; }
.w-door:hover { color: var(--ink); }
.door-hex { width: 30px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .2s, color .2s; }
.door-hex svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.w-door:hover .door-hex { background: var(--amber); color: var(--ink); }
.w-foot:target .door-hex { animation: door 1.1s ease-in-out .5s 2; }
@keyframes door { 50% { background: var(--amber); color: var(--ink); transform: scale(1.18); } }
.rev { cursor: default; -webkit-user-select: none; user-select: none; }

@media (min-width: 760px) {
  .w-hero { padding-top: 48px; padding-bottom: 64px; }
  .hexf { width: min(52vw, 640px); top: -10px; right: 0; }
  .brand { width: 160px; }
  .w-name { margin-top: 40px; }
  .w-head { max-width: 620px; }
  .w-act .wbtn { flex: 0 0 auto; padding: 11px 16px; font-size: 14px; }
  .w-group { padding-top: 76px; padding-bottom: 80px; }
  .w-group-in { display: grid; grid-template-columns: minmax(260px, 4fr) 7fr; column-gap: 64px; align-items: start; }
  .g-h { position: sticky; top: 84px; }
  .org { margin-top: 6px; }
  .st-g { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
  .sec { padding-top: 84px; padding-bottom: 84px; }
  .sec-in { display: grid; grid-template-columns: minmax(220px, 3fr) 8fr; column-gap: 56px; align-items: start; }
  .sec-h { position: sticky; top: 84px; }
  .sec-b { margin-top: 2px; }
  .sheet > div { grid-template-columns: 170px 1fr; align-items: baseline; padding: 12px 0; }
  .inlets { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .route { max-width: 720px; margin: 28px 0; }
  .n text { font-size: 8.6px; }
  .mkt li { grid-template-columns: 200px 1fr; align-items: baseline; }
  .plist li { grid-template-columns: 110px 1fr 130px; column-gap: 20px; align-items: baseline; }
  .p-meta { display: grid; justify-items: end; gap: 1px; margin-top: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; }
  .steps li:not(:last-child)::before { left: 28px; right: -20px; top: 13.5px; bottom: auto; width: auto; height: 1px; }
  .w-contact { padding-top: 68px; padding-bottom: 64px; }
  .w-contact-in { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* a door to the full lists */
.more { display: inline-block; margin-top: 18px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--amber-t); text-decoration: none; border-bottom: 1px solid currentColor; }
.more:hover { color: var(--ink); }

/* leaving contact details */
.lead { position: relative; display: grid; gap: 11px; }
.w-contact .lead { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.lead h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lead-sub { margin-top: -6px; font-size: 13.5px; line-height: 1.55; opacity: .78; }
.lead label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; }
.lead input, .lead textarea { width: 100%; padding: 10px 11px; background: #fff; color: #10222B; border: 1px solid rgba(16,34,43,.22); border-radius: 4px; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.45; }
.lead input:focus, .lead textarea:focus { outline: 2px solid #E8930C; outline-offset: -1px; }
.lead input.bad { outline: 2px solid #C81E1E; outline-offset: -1px; }
.lead textarea { resize: vertical; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead button[type=submit] { justify-self: start; min-width: 120px; }
.lead button[disabled] { opacity: .55; }
.lead-note { font-size: 11.5px; line-height: 1.5; opacity: .66; }
.lead-ok { font-size: 15px; font-weight: 600; }
.lead-err { font-size: 13px; font-weight: 600; color: #C81E1E; }
.w-contact .lead-err { color: #FFB39E; }
.lead.done label, .lead.done button[type=submit], .lead.done .lead-note, .lead.done .lead-sub { display: none; }
.c-save { margin-top: 18px; }

.lead-dlg { width: min(460px, calc(100vw - 24px)); max-height: 90dvh; padding: 20px 18px; border: 0; border-radius: 8px; color: #10222B; background: #fff; overflow: auto; }
.lead-dlg::backdrop { background: rgba(16,34,43,.45); }
.dlg-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; z-index: 1; color: inherit; }
.lead-dlg .lead h3 { padding-right: 30px; }

.nudge { position: fixed; left: 12px; right: 12px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 26; display: grid; grid-template-columns: 1fr 26px; gap: 8px 6px; padding: 12px 10px 12px 14px; background: #fff; color: #10222B; border: 1px solid rgba(16,34,43,.16); border-radius: 6px; box-shadow: 0 8px 26px rgba(16,34,43,.18); animation: nudge .35s cubic-bezier(.2,.7,.2,1); }
@keyframes nudge { from { transform: translateY(14px); opacity: 0; } }
.nudge p { font-size: 13.5px; line-height: 1.45; }
.nudge-x { grid-column: 2; grid-row: 1; font-size: 20px; line-height: 1; align-self: start; justify-self: center; color: #5A666D; }
.nudge-go { grid-column: 1; justify-self: start; padding: 8px 12px; background: #10222B; color: #fff; border-radius: 4px; font-size: 13.5px; font-weight: 600; }
.privacy { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; opacity: .8; }

/* list pages */
.sub-in { max-width: 1120px; margin: 0 auto; }
.sub-h { padding: 22px var(--m) 26px; background: var(--band); border-bottom: 1px solid var(--hair); }
.back { display: inline-block; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.back:hover { color: var(--ink); }
.sub-h .sec-k { margin-top: 16px; }
.sub-h h1 { margin-top: 8px; font-size: clamp(28px, 7.8vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; max-width: 22em; text-wrap: balance; }
.lang-zh .sub-h h1 { letter-spacing: .01em; }
.sub-intro { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink2); max-width: 44em; }
.sub-body { padding: 20px var(--m) 52px; }
.f-stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.f-bar { position: sticky; top: 50px; z-index: 5; display: grid; gap: 8px; padding: 8px 0 10px; margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--hair); }
.f-q { width: 100%; padding: 10px 12px; border: 1px solid rgba(16,34,43,.22); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.f-q:focus { outline: 2px solid var(--amber); outline-offset: -1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1); padding: 0 var(--m); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 10px; background: #fff; border: 1px solid var(--hair); border-radius: 4px; font-size: 13px; font-weight: 500; line-height: 1.35; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip i { font-variant-numeric: tabular-nums; opacity: .55; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-stages .chip { white-space: normal; text-align: left; flex: 0 1 auto; }
.f-count { margin-top: 12px; font-size: 12.5px; color: var(--ink2); }
.f-empty { padding: 24px 0; font-size: 14.5px; color: var(--ink2); }
.t-list { margin-top: 6px; border-top: 1px solid var(--ink); }
.t-i { border-bottom: 1px solid var(--hair); }
.t-i summary { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; }
.t-i summary::-webkit-details-marker { display: none; }
.t-i summary:hover b { color: var(--amber-t); }
.t-no { padding-top: 2px; font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.t-m b { display: block; font-size: 15px; font-weight: 600; line-height: 1.38; transition: color .15s; }
.t-m small { display: block; margin-top: 1px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.t-st { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.s-E { background: var(--ink); color: #fff; }
.s-D { background: var(--amber); color: var(--ink); }
.s-P { background: #fff; border: 1px solid var(--ink); }
.t-d { padding: 0 0 15px 42px; font-size: 14px; line-height: 1.68; color: #2C3C44; }
.t-f { margin-top: 6px; font-size: 12px; color: var(--ink2); }
.t-ask { margin-top: 9px; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--amber-t); }
.pg { margin-top: 26px; }
.pg h2 { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.pg h2 i { font-size: 13px; font-weight: 500; color: var(--ink2); margin-left: 4px; }
.pg .w-note { margin: -4px 0 10px; }
.plist.full .p-tag { color: var(--ink2); font-weight: 500; font-variant-numeric: tabular-nums; }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.doc-bar.end { margin-top: 18px; }
.doc-meta { font-size: 12.5px; color: var(--ink2); }
.doc-pages { display: grid; gap: 12px; margin-top: 16px; max-width: 780px; }
.doc-pages img { width: 100%; height: auto; border: 1px solid var(--hair); background: var(--band); }

@media (min-width: 760px) {
  .guide { padding-bottom: 44px; }
  .guide-in { padding: 20px 22px 22px; }
  .sub-h { padding-top: 30px; padding-bottom: 38px; }
  .sub-body { padding-top: 26px; padding-bottom: 72px; }
  .f-bar { grid-template-columns: minmax(280px, 380px) 1fr; align-items: center; margin: 0; padding-left: 0; padding-right: 0; }
  .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .plist.full li { grid-template-columns: 48px 1fr 190px; }
  .plist.full .p-meta { justify-items: end; text-align: right; }
  .nudge { left: auto; right: 22px; bottom: 22px; width: 340px; }
}

/* official website, one tap away */
.site-shot { display: block; margin-top: 22px; background: #fff; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.site-shot:hover { border-color: var(--ink); box-shadow: 0 6px 22px rgba(16,34,43,.12); }
.shot-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--hair); }
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); }
.shot-bar b { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink2); }
.site-shot img { width: 100%; height: auto; }
.shot-go { display: block; padding: 10px 12px; border-top: 1px solid var(--hair); font-size: 14px; font-weight: 600; color: var(--amber-t); }

/* ============================================================
   LIFE: flat neo-brutalism, deconstructed.
   Three colours only: ink green, bone paper, a little brass. No shadows, no rounded corners, no gradients.
   Green and paper are figure and ground. Brass marks a point on green, or is a large shape; never text on paper (1.9:1).
   One motion language: rules draw, blocks wipe, type rises, tape runs.
   ============================================================ */
body.life {
  --k: #113A2E; --p: #F0ECE0; --a: #C8A96B;
  --d: "Sofia Sans Extra Condensed", "KW CJK", var(--cjk);
  --rule: 2px solid var(--k);
  --snap: cubic-bezier(.7,0,.2,1);
  --glide: cubic-bezier(.2,.8,.2,1);
  background: var(--p); color: var(--k);
}
.life .progress { height: 3px; }
.life .progress i { background: var(--k); }
.life .bar { background: var(--p); border-bottom: var(--rule); }
.life .mark { position: relative; padding-top: 5px; background: var(--k); color: var(--p); font: 900 18px/1 var(--sans); }
.life .mark small { position: absolute; left: 3px; top: 3px; font: 800 7.5px/1 var(--sans); }
.bar-now { min-width: 0; font: 700 10px/1 var(--mono); white-space: nowrap; overflow: hidden; }
.bar-now.swap { animation: barnow .35s var(--glide); }
@keyframes barnow { from { transform: translateY(12px); opacity: 0; } }
.life .langs a { font: 700 9.5px/1 var(--mono); padding: 6px 3px; opacity: .45; }
.life .langs a[aria-current] { opacity: 1; }
.life .toast { background: var(--k); color: var(--p); }
.life .dock { background: var(--p); border-top: var(--rule); }
.life .dock-save { background: var(--k); color: var(--p); }
.life .dock-i + .dock-i { border-left: var(--rule); }

.nbtn { position: relative; z-index: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 15px; background: transparent; color: var(--k); border: var(--rule);
  font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .22s; }
.nbtn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--k); transform: translateX(-101%); transition: transform .28s var(--snap); }
.nbtn:hover, .nbtn:active { color: var(--p); }
.nbtn:hover::before, .nbtn:active::before { transform: none; }
.nbtn-k { background: var(--k); color: var(--p); }
.nbtn-k::before { background: var(--p); }
.nbtn-k:hover, .nbtn-k:active { color: var(--k); }

/* display type */
.life h2, .marquee, .l-name, .scene .kick b, .bio-k i, .hud b, .im b, .at-stats b, .at-r > b, .l-back, .win-b b, .tl b {
  font-family: var(--d); font-weight: 900; }
.life h2 { font-size: clamp(50px, 14.5vw, 104px); line-height: .92; text-transform: uppercase; }
.lang-zh.life h2 { font-size: clamp(38px, 11vw, 72px); line-height: 1.14; letter-spacing: -.01em; text-transform: none; }
.lang-ru.life h2 { font-size: clamp(40px, 12.2vw, 92px); overflow-wrap: break-word; }

/* shared motion: a heading rises out of a mask, a rule draws itself */
.pop h2, h2.rv { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path .7s var(--glide) .08s, transform .7s var(--glide) .08s; }
.pop.in h2, h2.rv.in { clip-path: inset(-30% -5% -30% -5%); transform: none; }
html[data-edit] .pop h2, html[data-edit] h2.rv { clip-path: none; transform: none; }
.dl { position: relative; }
.dl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--snap) .1s; }
.in .dl::before, .dl.in::before, html[data-edit] .dl::before { transform: none; }

/* hero: a poster that assembles itself. The mountain rises in front of the disc, the star comes up, then the skier sets off. */
.l-hero { position: relative; overflow: hidden; background: var(--p); border-bottom: var(--rule); }
.l-peak { position: absolute; top: 0; right: 0; display: block; width: 100%; height: auto; overflow: hidden; will-change: transform; }
.pk-sky { transform-origin: 290px 150px; animation: disc 1s var(--glide) backwards; }
@keyframes disc { from { scale: .4; opacity: 0; } }
.pk-land { animation: pk-land 1.15s var(--glide) .15s backwards; }
@keyframes pk-land { from { transform: translateY(120px); } }
.pk-sun { animation: pk-sun 1.3s var(--glide) .5s backwards; }
@keyframes pk-sun { from { transform: translateY(58px); } }
.pk-flake { fill: var(--p); }
.pk-run { opacity: 0; }
.pk-leg { fill: none; stroke: var(--k); stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.l-hero-in { position: relative; display: flow-root; max-width: 1120px; margin: 0 auto; padding: 0 var(--m) 26px; }
.l-top { position: absolute; top: 10px; left: var(--m); display: grid; gap: 6px; animation: fade .6s .9s backwards; }
.clocks { display: grid; gap: 2px; }
.clock { display: flex; align-items: baseline; gap: 7px; }
.clock span { font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.clock b { font: 700 10.5px/1.3 var(--mono); }
.l-alt { --u: 1.3px; display: grid; justify-items: start; gap: 5px; font: 700 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.l-alt .kr { width: auto; }
.l-alt .kr-c { background: var(--p); }
@keyframes fade { from { opacity: 0; } }
.l-hello { margin-top: calc(54vw - 22px); font: 700 11px/1.3 var(--mono); animation: fade .6s .2s backwards; }
.l-name { position: relative; margin-top: 8px; font-size: clamp(120px, 42vw, 440px); line-height: .8; text-transform: uppercase; }
.lang-ru .l-name { font-size: clamp(104px, 37vw, 400px); }
.l-name span { position: relative; display: block; white-space: nowrap; animation: rise .85s var(--glide) calc(.15s + var(--i) * .11s) backwards; }
.l-name span + span { text-align: right; }
.lang-zh .l-hello { margin-top: max(calc(28vw - 22px), 86px); }
.lang-zh .l-name { margin-top: 6px; font-size: clamp(104px, 35vw, 300px); line-height: .96; letter-spacing: -.02em; }
.lang-zh .l-name span { margin-left: calc(var(--i) * 30%); text-align: left; }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(32%); } to { clip-path: inset(-20% -5% -20% -5%); transform: none; } }
.g-hatch { position: absolute; left: calc(var(--m) * -1); bottom: 5%; width: 56%; height: 30%; background: repeating-linear-gradient(135deg, var(--k) 0 2px, transparent 2px 8px); animation: wipe-r .8s var(--snap) .55s backwards; }
@keyframes wipe-r { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-l { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.l-lede { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: end; margin-top: 22px; }
.tagline { margin-right: calc(var(--m) * -1); padding: 13px var(--m) 14px 14px; background: var(--k); color: var(--p); font-size: 15.5px; line-height: 1.5; font-weight: 700; animation: wipe-l .75s var(--snap) .5s backwards; }
.seal { width: 52px; height: 52px; display: grid; place-items: center; background: var(--a); color: var(--k); font-family: "Kaiti SC", "STKaiti", "Songti SC", "Noto Serif SC", serif; font-size: 31px; font-weight: 700; line-height: 1; animation: stamp .35s cubic-bezier(.5,0,.2,1) 1.05s backwards; }
@keyframes stamp { from { transform: scale(1.9) rotate(-9deg); opacity: 0; } }
.avatar { width: 52px; height: 52px; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* two strips of tape laid across the grid, running opposite ways */
.tapes { position: relative; z-index: 3; height: calc(44px + 19vw); margin-top: -10px; pointer-events: none; }
.marquee { position: absolute; left: -6vw; width: 112vw; overflow: hidden; text-transform: uppercase; }
.m1 { top: 6vw; background: var(--k); color: var(--p); transform: rotate(-4deg); animation: tape-a .9s var(--glide) .55s backwards; }
.m2 { top: 11vw; background: var(--p); color: var(--k); border-block: var(--rule); transform: rotate(3.4deg); animation: tape-b .9s var(--glide) .7s backwards; }
@keyframes tape-a { from { translate: -105% 0; } }
@keyframes tape-b { from { translate: 105% 0; } }
.mq-in { display: inline-flex; gap: 14px; padding: 7px 0 8px; white-space: nowrap; font-size: 27px; line-height: 1; animation: mq 34s linear infinite; }
.m2 .mq-in { animation-direction: reverse; animation-duration: 42s; }
.m1 .mq-in i { color: var(--a); }
@keyframes mq { to { transform: translateX(-50%); } }

.life main { max-width: 1120px; margin: 0 auto; padding: 0 var(--m); }
.pop { opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .6s var(--glide); }
.pop.in, html[data-edit] .pop { opacity: 1; transform: none; }

/* now */
.win { margin-top: 46px; }
.win-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 7px; font: 700 10px/1.3 var(--mono); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; background: var(--k); animation: blink 1.1s steps(2) infinite; }
.win-b p { display: grid; grid-template-columns: 3.4em 1fr; gap: 10px; align-items: baseline; padding: 11px 0 10px; }
.lang-en .win-b p, .lang-ru .win-b p { grid-template-columns: 6.4em 1fr; }
.win-b span { font: 700 10px/1.4 var(--mono); }
.win-b b { font-size: 25px; line-height: 1.12; text-transform: uppercase; }
.lang-zh .win-b b { font-size: 21px; line-height: 1.3; }
.caret i { width: 10px; height: 18px; background: var(--k); display: block; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the introduction: heading laid over a cropped ME */
.bio { position: relative; margin-top: 58px; }
.bio-k { position: relative; display: block; min-height: calc(62.3vw + 22px); font: 700 10px/1.3 var(--mono); }
.bio-k i { position: absolute; top: -8px; right: calc(var(--m) * -1 - .05em); font-size: clamp(180px, 58vw, 470px); line-height: .78; color: transparent; -webkit-text-stroke: 2px var(--k); pointer-events: none; will-change: transform; }
.bio-k span { position: relative; display: block; max-width: 30vw; }
/* the portrait stands in front of the outlined ME, on a rule, and rises from behind it */
.bio-ph { position: absolute; top: 0; right: calc(var(--m) * -1); width: 68vw; aspect-ratio: 650 / 595; clip-path: inset(-200px -200px 0 -200px); border-bottom: 6px solid var(--k); box-sizing: content-box; }
.bio-ph b { position: absolute; left: 8%; top: -22%; width: 88%; aspect-ratio: 1; background: var(--a); clip-path: polygon(50% 0, 61.2% 34.5%, 97.6% 34.5%, 68.2% 55.9%, 79.4% 90.5%, 50% 69.1%, 20.6% 90.5%, 31.8% 55.9%, 2.4% 34.5%, 38.8% 34.5%); transform: scale(0) rotate(-50deg); transition: transform .8s var(--glide); }
.bio-ph img { position: relative; display: block; width: 100%; height: 100%; transform: translateY(100%); transition: transform .9s var(--glide) .12s; }
.bio-ph.in b { transform: rotate(-8deg); }
.bio-ph.in img { transform: none; }
.bio h2 { position: relative; }
.bio-tag { position: relative; display: block; width: fit-content; margin: 18px 0 0 calc(var(--m) * -1); padding: 8px 12px 9px var(--m); background: var(--k); color: var(--p); font-size: 13px; line-height: 1.45; font-weight: 700; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--snap) .3s; }
.bio.in .bio-tag, html[data-edit] .bio-tag { clip-path: inset(0); }
.about-b { display: grid; gap: 12px; font-size: 15.5px; line-height: 1.7; }
.bio .about-b, .about .about-b { margin-left: 15%; }
.bio .about-b { margin-top: 20px; }
.bio-more { margin-top: 22px; border-top: var(--rule); border-bottom: var(--rule); }
.bio-more summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: "+"; font: 700 19px/1 var(--mono); color: var(--k); transition: transform .25s var(--snap); }
.bio-more[open] summary::after { transform: rotate(45deg); }
.bio-more dl > div { display: grid; gap: 1px; padding: 9px 0; border-top: 1px solid var(--k); }
.bio-more dt { font: 700 10px/1.5 var(--mono); }
.bio-more dd { font-size: 14px; line-height: 1.6; }

/* scenes: flat posters that wipe in as they arrive */
.scenes { margin-top: 62px; }
.scene { background: var(--p); }
.scene.pop { opacity: 1; transform: none; }
.scene + .scene { margin-top: 62px; }
.scene-art { margin-inline: calc(var(--m) * -1); background: var(--p); border-block: var(--rule); clip-path: inset(0 100% 0 0); transition: clip-path .95s var(--snap); }
.scene:nth-child(even) .scene-art { clip-path: inset(0 0 0 100%); }
.scene.in .scene-art, html[data-edit] .scene .scene-art { clip-path: inset(0); }
/* the skier's head breaks through the top of the panel */
.scene-ski .scene-art { clip-path: inset(-40px 100% 0 0); }
.scene-ski.in .scene-art, html[data-edit] .scene-ski .scene-art { clip-path: inset(-40px 0 0 0); }
.scene-ski { margin-top: 30px; }
.scene-ski .art { overflow: visible; }
.scene-outdoor .scene-art { clip-path: inset(-70px 100% 0 0); }
.scene-outdoor.in .scene-art, html[data-edit] .scene-outdoor .scene-art { clip-path: inset(-70px 0 0 0); }
.scene-outdoor .art { overflow: visible; }
.scene-outdoor { margin-top: 84px !important; }
.scene-fish .scene-art { background: var(--a); }
.scene-ai .scene-art, .scene-home .scene-art, .scene-golf .scene-art { background: var(--k); }
.art { display: block; width: 100%; height: auto; overflow: hidden; }
.art-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: -6px; }
.kick { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.scene .kick b { position: relative; display: block; font-size: min(38vw, calc(86vw / (var(--n) * .45))); line-height: .78; white-space: nowrap; --over: .3em; margin-top: calc(var(--over) * -1); will-change: transform; }
/* where a headline crosses the panel's edge it turns paper, so it reads on both sides of the line */
.scene .kick b::after { content: attr(data-t); position: absolute; left: 0; top: 0; color: var(--p); clip-path: inset(-.3em -8% calc(.78em - var(--over)) -8%); }
/* golf's contour lines sit along the bottom of the panel, so its headline crosses less of them */
.scene-golf .kick b, .scene-fish .kick b { --over: .14em; }
.kick i { padding-bottom: 2px; font: 700 10px/1.2 var(--mono); }
.scene-t h2 { margin-top: 14px; }
.scene-l { margin-top: 10px; font-size: 15px; line-height: 1.65; }
.scene:nth-child(even) .kick { flex-direction: row-reverse; }
.scene:nth-child(even) .scene-t h2, .scene:nth-child(even) .scene-l, .scene:nth-child(even) .hud, .scene:nth-child(even) .tap-hint { margin-left: 18%; }
.tap-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 700 10.5px/1.4 var(--mono); }
.tap-hint i { width: 9px; height: 9px; flex: none; background: var(--k); animation: blink 1.1s steps(2) infinite; }
.hud { display: flex; margin-top: 16px; }
.hud li { flex: 1; display: grid; gap: 2px; align-content: start; padding: 10px 10px 0 0; min-width: 0; }
.hud b { font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.lang-zh .hud b { font-size: 34px; line-height: 1.1; }
.hud span { font-size: 11.5px; font-weight: 600; line-height: 1.35; }

/* drawing vocabulary */
.fk { fill: var(--k); } .fp { fill: var(--p); } .fa { fill: var(--a); }
.lk, .lp, .la { fill: none; stroke-width: 2; }
.lk { stroke: var(--k); } .lp { stroke: var(--p); } .la { stroke: var(--a); }
.fp.lk { fill: var(--p); }
.thin { stroke-width: 1.25; }
.ghost { fill: none; stroke: none; }
.ghost.dash { stroke: var(--k); stroke-width: 2.4; stroke-dasharray: 1 8; stroke-linecap: round; }
.art-b { font: 800 12.5px/1 var(--sans); fill: var(--k); }
.art-m { font: 700 9.5px/1 var(--mono); fill: var(--k); }
.art-k { font: 900 21px/1 var(--d); fill: var(--k); }
.art .tp { fill: var(--p); }

/* ski */
.flake { fill: var(--k); opacity: 0; animation: snow 5s linear var(--d) infinite; }
@keyframes snow { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(-20px, 236px); opacity: 0; } }
.sun-bars { animation: sunbars 3.2s linear infinite; }
.sk-speed { fill: none; stroke: var(--p); stroke-width: 1.25; stroke-dasharray: 26 14 6 30; animation: skspeed 1.5s linear infinite; }
@keyframes skspeed { to { stroke-dashoffset: 76; } }
.sk-throw rect { opacity: 0; animation: thrown 1.25s ease-out var(--d) infinite; }
@keyframes thrown { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }
@keyframes sunbars { to { transform: translateY(12px); } }
.skier path, .pk-skier path { fill: none; stroke: var(--k); stroke-linecap: square; stroke-linejoin: miter; }
.sk-w { stroke-width: 4; }
.sk-b { stroke-width: 6.5; }
.sk-a { stroke-width: 4.5; }
.sk-p { stroke-width: 2; }
.spray rect { opacity: 0; }
.spray.on rect { animation: splash .6s ease-out forwards; }

/* more from the snow */
.scene-more { margin: 28px calc(var(--m) * -1) 0; }
.scene-ski .scene-more .art { overflow: hidden; }
.sm-w { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s var(--glide); }
.sm-d { transform-origin: center; transform: scale(0); }
.sm-rise { opacity: 0; transform: translateY(34px); transition: opacity .25s .2s, transform .9s var(--glide) .2s; }
.sm-r2 { transition-delay: .4s; }
.scene-more.in .sm-w, .scene-more.in .sm-rise { opacity: 1; transform: none; }

/* ai */
.cell { fill: var(--k); animation: cell 2.6s steps(1) var(--d) infinite; }
@keyframes cell { 0%, 70%, 100% { fill: var(--k); } 71%, 88% { fill: var(--a); } }
.flow { fill: none; stroke: var(--a); stroke-width: 3; stroke-dasharray: 7 90; animation: flow 4.2s linear var(--d) infinite; }
@keyframes flow { from { stroke-dashoffset: 97; } 40% { stroke-dashoffset: 0; } to { stroke-dashoffset: 0; } }
.in-box rect { fill: transparent; stroke: var(--p); stroke-width: 1.5; animation: inbox-r 4.2s steps(1) var(--d) infinite; }
.in-box text { font: 800 12.5px/1 var(--sans); fill: var(--p); animation: inbox-t 4.2s steps(1) var(--d) infinite; }
@keyframes inbox-r { 0%, 16% { fill: var(--p); } 17%, 100% { fill: transparent; } }
@keyframes inbox-t { 0%, 16% { fill: var(--k); } 17%, 100% { fill: var(--p); } }
.chip-out { animation: out 4.2s var(--glide) 1.4s infinite; }
@keyframes out { 0%, 18% { transform: translateX(-26px); opacity: 0; } 34%, 88% { transform: none; opacity: 1; } 100% { transform: translateX(10px); opacity: 0; } }

/* outdoors + water */
.wave { animation: wave 3.2s linear infinite; }
.w2 { animation-duration: 5s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(40px); } }
.diver { animation: diver 7s ease-in-out infinite alternate; }
@keyframes diver { from { transform: translate(-46px, -6px); } to { transform: translate(46px, 14px); } }
.gauge { animation: gauge 7s ease-in-out infinite alternate; }
@keyframes gauge { from { transform: translateY(6px); } to { transform: translateY(36px); } }
.kick-f { animation: fin .7s ease-in-out infinite alternate; transform-origin: 6px 0; }
@keyframes fin { to { transform: scaleY(.45); } }
.dive-b { opacity: 0; animation: dive 2.8s ease-out var(--d) infinite; }
@keyframes dive { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-4px, -26px); opacity: 0; } }

/* fishing */
.fs-boat { transform-origin: 200px 272px; animation: rock 4.4s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-1.1deg) translateY(1px); } to { transform: rotate(1.1deg) translateY(-1.5px); } }
.rod { stroke-width: 4; transform-origin: 96px 244px; transition: transform .25s var(--snap); }
.fline { fill: none; stroke: var(--k); stroke-width: 1.25; }
.shim { transform-box: fill-box; transform-origin: center; animation: shim 2.4s ease-in-out var(--d) infinite alternate; }
@keyframes shim { to { transform: scaleX(.55); } }
.ripple { fill: none; stroke: var(--p); stroke-width: 1.25; transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out infinite; }
.r2nd { animation-delay: 1.5s; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.bob { animation: bob 2.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.s1 { animation: swim1 10s linear infinite; }
.s2 { animation: swim2 14s linear -4s infinite; }
.s3 { animation: swim3 8s linear -2s infinite; }
@keyframes swim1 { from { transform: translate(-50px, 306px); } to { transform: translate(410px, 302px); } }
@keyframes swim2 { from { transform: translate(410px, 318px) scaleX(-1); } to { transform: translate(-50px, 314px) scaleX(-1); } }
@keyframes swim3 { from { transform: translate(-40px, 316px); } to { transform: translate(400px, 304px); } }
.fs-a, .fs-b { transition: transform .5s var(--glide); }
.fs-a { transition-delay: .2s; }
.fs-b { transform: translateY(280px); }
.fs-alt .fs-a { transform: translateY(280px); transition-delay: 0s; }
.fs-alt .fs-b { transform: none; transition-delay: .2s; }
.catch { opacity: 0; }
.caught .catch { animation: leap 1.1s cubic-bezier(.3,.1,.5,1) forwards; }
@keyframes leap { 0% { opacity: 1; transform: translate(10px, 284px) rotate(-70deg); } 50% { opacity: 1; transform: translate(52px, 150px) rotate(0deg); } 100% { opacity: 1; transform: translate(104px, 292px) rotate(80deg); } }
.caught .bob, .bite .bob { animation: yank .5s ease-out; }
.caught .rod, .bite .rod { transform: rotate(-5deg); }
@keyframes yank { 25% { transform: translateY(14px); } 70% { transform: translateY(-14px); } }
.splash rect { opacity: 0; }
.caught .splash rect { animation: splash .7s ease-out forwards; }
@keyframes splash { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }

/* golf */
.flag-t { transform-origin: 300px 116px; animation: flag 1.3s ease-in-out infinite; }
@keyframes flag { 50% { transform: scaleX(.84) skewY(6deg); } }
.hole { fill: var(--p); }
.aim { fill: none; stroke: var(--p); stroke-width: 1.25; stroke-dasharray: 3 3; }
.wind { animation: wind 2.4s ease-in-out infinite alternate; }
@keyframes wind { from { transform: translateX(-8px); } to { transform: translateX(10px); } }
.traj { fill: none; stroke: var(--p); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fore { opacity: 0; transition: opacity .12s; }
.fore.on { opacity: 1; }
.golfer { transform-origin: 46px 208px; }
.swing .golfer { animation: gswing .9s cubic-bezier(.3,0,.2,1) forwards; }
@keyframes gswing { 0% { transform: rotate(-3.5deg) translateX(-2px); } 30% { transform: rotate(1.6deg); } 100% { transform: none; } }

/* two hemispheres, on real outlines */
.dots-l { fill: none; stroke: var(--p); stroke-width: 2; stroke-dasharray: 2 3; }
.eq { fill: none; stroke: var(--p); stroke-width: 1; stroke-dasharray: 2 5; }
.star { animation: twinkle 2.2s ease-in-out var(--d) infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.ghost.dash-p { stroke: var(--p); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
.arc { fill: none; stroke: var(--a); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
html[data-edit] .arc { stroke-dashoffset: 0; }
.ping { fill: none; stroke: var(--a); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.p2 { animation-delay: 1.3s; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* the rest of life */
.about { margin-top: 62px; }
.ky { transform-origin: 66px 84px; animation: rock 3.6s ease-in-out infinite alternate; }
.tl { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 8px; padding-top: 14px; margin-bottom: 26px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--k); }
.tl::after { content: ""; position: absolute; top: -5px; left: calc(var(--p, 0) * (100% - 12px)); width: 12px; height: 12px; background: var(--k); }
.tl b { display: block; font-size: 38px; line-height: 1; }
.tl span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0 15%; }
.tags span { position: relative; z-index: 0; overflow: hidden; margin: 0 -2px -2px 0; padding: 6px 10px; border: var(--rule); font-size: 13px; font-weight: 700; transition: color .2s; }
.tags span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--k); transform: translateY(101%); transition: transform .22s var(--snap); }
.tags span:hover { color: var(--p); }
.tags span:hover::before { transform: none; }

/* the figures open on Davos: a word, and two rings of stars that count the hubs and universities below. They turn opposite ways. */
.b-dark { overflow: hidden; }
.dv-head { position: relative; min-height: 96vw; margin-bottom: 8px; }
.dv-k { font-family: var(--d); font-weight: 900; font-size: 38vw; line-height: .8; white-space: nowrap; text-transform: uppercase; margin-bottom: 18px; clip-path: inset(0 0 100% 0); transform: translateY(.25em); transition: clip-path .8s var(--glide), transform .8s var(--glide); }
.dv-head.in .dv-k, html[data-edit] .dv-k { clip-path: inset(-10% -5%); transform: none; }
.dv-burst { position: absolute; top: calc(38vw * .8 + 6px); right: calc(-22vw - var(--m)); width: 64vw; aspect-ratio: 1; }
.dv-burst svg { display: block; width: 100%; height: 100%; overflow: visible; animation: spin 90s linear infinite; will-change: transform; }
.dv-burst b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--mono); }
.st { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s var(--glide) calc(var(--i) * 16ms); }
.dv-head.in .st, html[data-edit] .st { transform: none; }
.st-in { transform-origin: 150px 150px; animation: spin 60s linear infinite reverse; will-change: transform; }
.dv-head h2 { max-width: 52vw; margin-bottom: 0; }
.lang-en .dv-head h2, .lang-ru .dv-head h2 { font-size: clamp(38px, 11.6vw, 72px); line-height: .96; }
.dv-lead { max-width: 50vw; margin-top: 12px; font-size: 14.5px; line-height: 1.6; font-weight: 600; text-wrap: pretty; }
.dv-head ~ .im-g .im:first-child .iso i { background: var(--p); }

/* group shots: the darkest tone is the section's own green, so they melt into it */
.ph-band { position: relative; margin: 0 calc(50% - 50vw); }
.ph-fr { position: relative; }
.ph-in { overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--snap); }
.ph-band.in .ph-in { clip-path: inset(0); }
.ph-in img { display: block; width: 100%; height: auto; transform: scale(1.08); }
.ph-fr::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--a); opacity: 0; pointer-events: none; }
.ph-band.in .ph-fr::after { animation: phbar 1s var(--snap); }
html[data-edit] .ph-band .ph-fr::after { animation: none; }
@keyframes phbar { 0% { left: 0; opacity: 1; } 96% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ph-cap { margin: 9px 0 16px; font: 700 10.5px/1.5 var(--mono); }
.lang-zh .ph-cap { word-break: keep-all; }
.ph-duo { display: grid; grid-template-columns: 34% 1fr; column-gap: 12px; margin: 16px 0 20px; }
.ph-duo .ph-a { grid-column: 1 / -1; }
.ph-duo .ph-b { grid-column: 2; grid-row: 2; z-index: 1; margin: -9vw calc(var(--m) * -1) 0 0; }
.ph-duo .ph-b .ph-fr { border: solid var(--k); border-width: 5px 0 0 5px; }
.ph-duo .ph-cap { grid-column: 1; grid-row: 2; }

.block { margin-top: 62px; }
.block h2 { margin-bottom: 18px; }
.b-dark { margin-inline: calc(50% - 50vw); padding: 44px calc(50vw - 50%) 30px; background: var(--k); color: var(--p); }
.im { display: grid; gap: 7px; padding: 14px 0 18px; }
.im-e { text-align: right; justify-items: end; }
.im b { display: block; font-size: clamp(76px, 25vw, 150px); line-height: .86; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.im i { font-style: normal; }
.im small { display: inline-block; margin-left: .1em; font-size: .36em; color: var(--a); white-space: nowrap; }
.im span { font-size: 13.5px; line-height: 1.45; font-weight: 500; }
.iso { display: grid; grid-template-columns: repeat(20, 7px); gap: 2px; }
.iso:empty { display: none; }
.iso i { width: 7px; height: 7px; background: var(--a); animation: fade .01s steps(1) calc(.25s + var(--j) * 11ms) backwards; }

/* KIrOS: one set of letters, two readings. Boxed, four elements. Joined up, the rules and numbers go and the letters close into a name. */
.kr { --t: max(1.5px, calc(var(--u) * .55)); display: flex; justify-content: center; width: calc(var(--u) * 100); height: calc(var(--u) * 25); padding: 0; background: none; border: 0; color: inherit; cursor: pointer; font-family: var(--sans); letter-spacing: 0; text-transform: none; -webkit-tap-highlight-color: transparent; }
.kr-c { position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box; width: calc(var(--u) * 25 + var(--t)); height: 100%; margin-left: calc(var(--t) * -1); border: var(--t) solid var(--k); transition: width .7s var(--glide), border-color .3s; }
.kr-c:first-child { margin-left: 0; }
.kr-c b { font: 900 calc(var(--u) * 20)/1 var(--sans); transform: translateY(5%); transition: font-size .7s var(--glide); }
.kr-c small { position: absolute; left: calc(var(--u) * 1.5); top: calc(var(--u) * 1.1); font: 800 max(7.5px, calc(var(--u) * 4.2))/1 var(--sans); transition: opacity .25s .35s; }
.kr-j .kr-c { width: calc(var(--u) * var(--wj)); border-color: transparent; }
.kr-j .kr-c b { font-size: calc(var(--u) * 30); }
.kr-j .kr-c small { opacity: 0; transition-delay: 0s; }
.kr:focus-visible { outline: 2px solid var(--k); outline-offset: 3px; }
.kr-end { --u: calc((min(100vw, 1120px) - 2 * var(--m)) / 100); padding: 44px 0 30px; }
.kr-lead { max-width: 34em; margin-bottom: 18px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.kr-end .tap-hint { margin-top: 12px; }
.kr-els { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 18px; }
.kr-els b { font: 700 10.5px/1.4 var(--mono); }
.kr-els span { font-size: 14px; font-weight: 800; }
.kr-els p { margin-top: 3px; font-size: 13px; line-height: 1.5; }

/* places: the world as a matrix of dots, lit around every city */
.atlas h2 { word-break: keep-all; }
.at-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; margin: 2px 0 16px; }
.at-stats li { display: grid; gap: 3px; align-content: start; padding: 8px 0 4px; border-top: 2px solid var(--p); }
.at-stats b { font-size: clamp(36px, 11.5vw, 60px); line-height: .95; font-variant-numeric: tabular-nums; }
.at-stats i { font-style: normal; }
.at-stats span { font-size: 11px; font-weight: 600; line-height: 1.3; }
.at-fig { position: relative; margin: 0 calc(50% - 50vw); }
.at-svg { display: block; width: 100%; height: auto; }
.at-map { transform-origin: 0 0; transition: transform .9s var(--glide); }
.at-d { fill: none; stroke: var(--p); stroke-width: 2.6; stroke-dasharray: 2.6 1.4; opacity: .24; }
.lit { fill: none; stroke-width: 2.6; stroke-dasharray: 2.6 1.4; opacity: 0; transition: opacity .3s calc(.25s + var(--i) * 70ms); }
.atlas.in .at-map .lit { opacity: 1; }
.lit-lived { stroke: var(--a); }
.lit-been { stroke: var(--p); }
.lit-next { stroke: var(--a); }
.atlas.in .at-map .lit-next, .ov.on .lit-next { animation: atblink 1.8s steps(2) infinite; }
@keyframes atblink { 50% { opacity: .35; } }
.ov .at-d, .ov .lit { stroke-width: 6; stroke-dasharray: 6 3; }
.ov { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.ov.on { opacity: 1; visibility: visible; transition: opacity .35s .55s, visibility 0s .55s; }
.ov-world.on { transition-delay: .25s; }
.ov .lit { opacity: 0; transition: opacity .25s; }
.ov.on .lit { opacity: 1; transition: opacity .25s calc(.6s + var(--i) * 90ms); }
.at-p { stroke: var(--k); stroke-width: 2; }
.at-nx { fill: var(--k); stroke: var(--a); stroke-width: 2.4; animation: atblink 1.8s steps(2) infinite; }
.at-wk { fill: var(--k); stroke: var(--p); stroke-width: 2; }
.at-arc { fill: none; stroke: var(--a); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--glide) .9s; }
.atlas.in .at-arc { stroke-dashoffset: 0; }
.at-arc-n { fill: none; stroke: var(--a); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; animation: atdash 1.2s linear infinite; }
@keyframes atdash { to { stroke-dashoffset: -8; } }
.at-t { font: 800 21px/1 var(--sans); fill: var(--p); paint-order: stroke; stroke: var(--k); stroke-width: 6px; stroke-linejoin: round; }
.at-l { font: 800 22px/1 var(--sans); fill: var(--p); }
.at-lx { font: 700 13px/1 var(--mono); fill: var(--a); }
.at-rn { font: 900 27px/1 var(--d); fill: var(--p); }
.at-ln { fill: none; stroke: var(--p); stroke-width: 1; }
.at-back { position: absolute; left: var(--m); top: 10px; padding: 6px 10px; background: var(--p); color: var(--k); border: 0; font: 700 11px/1 var(--mono); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.atlas.zoomed .at-back { opacity: 1; pointer-events: auto; }
html[data-edit] .at-back { display: none; }
.at-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 10px; font: 700 10.5px/1.4 var(--mono); }
.at-legend li, .at-cs li { display: inline-flex; align-items: center; gap: 6px; }
.at-legend i, .at-cs i { flex: none; width: 9px; height: 9px; }
.k-lived i { background: var(--a); }
.k-been i { background: var(--p); }
.k-next i { box-shadow: inset 0 0 0 2px var(--a); }
.k-work i { box-shadow: inset 0 0 0 2px var(--p); transform: rotate(45deg) scale(.82); }
.at-r { display: grid; gap: 5px; padding: 10px 0 11px; border-top: 2px solid var(--p); cursor: pointer; transition: background .2s, color .2s; }
.at-r:focus-visible { outline: 2px solid var(--a); outline-offset: -2px; }
.at-r.at-w { cursor: default; }
.at-r > b { font-size: clamp(25px, 7.4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.at-r.on { margin-inline: calc(var(--m) * -1); padding-inline: var(--m); background: var(--p); color: var(--k); border-top-color: var(--p); }
.at-r.on + .at-r { border-top-color: transparent; }
.at-r.on .k-been i { background: var(--k); }
.at-r.on .k-next i { box-shadow: inset 0 0 0 2px var(--k); }
.at-cs { display: flex; flex-wrap: wrap; gap: 3px 13px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.at-cs small { font: 700 10px/1 var(--mono); color: var(--a); }
.at-r.on .at-cs small { color: var(--k); }
.at-also { opacity: .72; }

.roles li { display: grid; grid-template-columns: 2em 1fr; align-items: baseline; padding: 13px 0; transition: padding .22s var(--snap), background .22s, color .22s; }
.roles li:last-child { border-bottom: var(--rule); }
.roles li:hover { background: var(--k); color: var(--p); padding-left: 10px; }
.roles i { font: 700 10px/1.2 var(--mono); }
.roles b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.35; }
.roles span { display: block; font-size: 14px; line-height: 1.45; }
.roles em { display: block; margin-top: 2px; font: 600 10px/1.5 var(--mono); }


/* the loud ending */
.l-cta { position: relative; overflow: hidden; margin-top: 62px; margin-inline: calc(50% - 50vw); padding: 66px calc(50vw - 50%) 30px; --rule: 2px solid var(--p); background: var(--k); color: var(--p); }
.l-cta > *:not(.l-star) { position: relative; }
.l-star { position: absolute; top: -50px; right: -50px; width: 110px; height: 110px; fill: var(--a); animation: spin 22s linear infinite; }
.l-cta-b { margin-top: 12px; font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.l-cta .nbtn { color: var(--p); }
.l-cta .nbtn::before { background: var(--p); }
.l-cta .nbtn:hover, .l-cta .nbtn:active { color: var(--k); }
.l-cta .nbtn-k { background: var(--p); color: var(--k); }
.l-cta .nbtn-k::before { background: var(--a); }
.l-cta .lead { margin-top: 24px; padding-top: 16px; border-top: var(--rule); }
.life .lead h3 { font-size: 17px; font-weight: 800; }
.life .lead-sub { opacity: 1; }
.life .lead label { font-size: 12px; }
.life .lead input, .life .lead textarea { background: var(--p); color: var(--k); border: var(--rule); border-radius: 0; transition: box-shadow 0s; }
.life .lead input:focus, .life .lead textarea:focus { outline: 2px solid var(--k); outline-offset: 2px; }
.life .lead input.bad { outline: 3px solid var(--k); outline-offset: 2px; }
.life .lead-note { opacity: .82; }
.life .lead-err { padding: 7px 9px; background: var(--k); color: var(--p); }
.l-cta .lead input:focus, .l-cta .lead textarea:focus, .l-cta .lead input.bad { outline-color: var(--a); }
.life .l-cta .lead-err { background: var(--p); color: var(--k); }
.life .lead-dlg { width: min(460px, calc(100vw - 24px)); background: var(--p); color: var(--k); border: var(--rule); border-radius: 0; }
.life .lead-dlg::backdrop { background: rgba(17,58,46,.62); }
.life .nudge { background: var(--k); color: var(--p); border: 2px solid var(--p); border-radius: 0; box-shadow: none; }
.life .nudge-go { background: var(--p); color: var(--k); border-radius: 0; font-weight: 800; }
.life .nudge-x { color: var(--p); }
.qr { width: 164px; margin-top: 16px; padding: 8px; background: var(--p); border: var(--rule); }
.l-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.l-back { position: relative; z-index: 0; overflow: hidden; display: block; margin-inline: calc(50% - 50vw); padding: 15px calc(50vw - 50%) 16px; border-bottom: var(--rule); background: var(--p); color: var(--k); text-decoration: none; font-size: 30px; line-height: 1.05; text-transform: uppercase; transition: color .25s; }
.l-back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--k); transform: translateX(101%); transition: transform .35s var(--snap); }
.l-back:hover { color: var(--p); }
.l-back:hover::before { transform: none; }
.l-foot { padding: 14px 0 calc(22px + env(safe-area-inset-bottom)); border-top: var(--rule); font: 500 10px/1.5 var(--mono); }
.l-foot .privacy { margin-top: 6px; opacity: 1; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  :root { --m: clamp(28px, 5.5vw, 84px); }
  .bar { padding-top: 12px; padding-bottom: 12px; }

  /* personal page on a wide screen: an asymmetric twelve-column poster */
  .l-peak { top: -8px; right: -4vw; width: min(58vw, 860px); }
  .l-hero-in { padding-bottom: 44px; }
  .l-top { top: 16px; }
  .clock span, .clock b { font-size: 12px; }
  .l-alt { --u: 1.8px; font-size: 11px; }
  .l-hello { font-size: 12px; margin-top: 140px; }
  .lang-zh .l-hello { margin-top: 122px; }
  .l-name { font-size: clamp(200px, 27vw, 380px); }
  .lang-ru .l-name { font-size: clamp(190px, 25vw, 360px); }
  .l-name span + span { margin-top: -.02em; }
  .lang-zh .l-name { margin-top: .2em; font-size: clamp(170px, 20vw, 260px); line-height: .74; }
  .lang-zh .l-name span { margin-left: calc(var(--i) * 26%); }
  .g-hatch { left: 0; width: 44%; height: 24%; bottom: 2%; }
  .l-lede { grid-template-columns: 76px minmax(0, 470px); justify-content: start; }
  /* the seal and tagline sit beside the last character, so the hero has to stay tall enough to hold that character */
  .lang-zh .l-hero-in { padding-bottom: calc(clamp(170px, 20vw, 260px) * .75 - 60px); }
  .lang-zh .l-lede { width: 48%; margin-top: calc(clamp(170px, 20vw, 260px) * -.62); grid-template-columns: 76px 1fr; }
  .tagline { margin-right: 0; padding: 16px 18px 17px; font-size: 18px; }
  .seal, .avatar { width: 76px; height: 76px; font-size: 46px; }
  .tapes { margin-top: -18px; height: calc(62px + 10vw); }
  .m1 { top: 3vw; transform: rotate(-2.2deg); }
  .m2 { top: 6.5vw; transform: rotate(1.9deg); }
  .mq-in { font-size: 42px; gap: 20px; }

  .win { display: grid; grid-template-columns: 3fr 9fr; gap: 20px; margin-top: 90px; }
  .win-h { display: block; padding-top: 11px; }
  .live-dot { display: flex; margin-top: 8px; }
  .win-b b { font-size: 38px; }
  .lang-zh .win-b b { font-size: 30px; }
  .win-b p { grid-template-columns: 7em 1fr; }

  .bio { margin-top: 110px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
  .bio-k { grid-column: 1 / -1; min-height: 190px; }
  .bio-k i { top: -40px; right: 0; }
  .bio h2 { grid-column: 1 / 9; }
  .bio-ph { top: -30px; right: 0; width: min(36%, 380px); }
  .bio-tag { grid-column: 1 / 9; margin-left: 0; padding-left: 12px; }
  .bio .about-b { grid-column: 4 / 13; display: block; columns: 2; column-gap: 28px; margin: 26px 0 0; }
  .bio .about-b p { break-inside: avoid; }
  .bio .about-b p + p { margin-top: 12px; }
  .bio-more { grid-column: 4 / 13; }
  .bio-more dl > div { grid-template-columns: 130px 1fr; align-items: baseline; }

  .scenes { margin-top: 110px; }
  .scene { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: end; }
  .scene + .scene { margin-top: 110px; }
  .scene-art { grid-column: 1 / 9; grid-row: 1; margin: 0; border: var(--rule); }
  .scene-t { grid-column: 9 / 13; grid-row: 1; min-width: 0; }
  .scene:nth-child(even) .scene-art { grid-column: 5 / 13; }
  .scene:nth-child(even) .scene-t { grid-column: 1 / 5; }
  .scene .kick b { font-size: min(150px, calc(min(23vw, 300px) / (var(--n) * .45))); margin: 0; }
  .scene .kick b::after { content: none; }
  .scene:nth-child(even) .kick { flex-direction: row; }
  .scene:nth-child(even) .kick b { margin: 0 0 0 auto; order: 2; }
  .scene:nth-child(even) .scene-t h2, .scene:nth-child(even) .scene-l, .scene:nth-child(even) .hud, .scene:nth-child(even) .tap-hint { margin-left: 0; }
  .life .scene h2 { font-size: clamp(44px, 4.6vw, 62px); }
  .lang-zh.life .scene h2 { font-size: clamp(34px, 3.4vw, 46px); }
  .scene-ski { margin-top: 40px; }
  .scene-home { align-items: stretch; }
  .scene-home .scene-t { align-self: end; }

  .about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; margin-top: 110px; }
  .tl { grid-column: 1 / -1; margin-bottom: 34px; }
  .tl b { font-size: 64px; }
  .tl span { font-size: 13px; }
  .about .about-b { grid-column: 1 / 9; margin: 0; }
  .tags { grid-column: 9 / 13; align-self: start; margin: 0; }

  .block { margin-top: 110px; }
  .at-stats { grid-column: 1 / 9; grid-row: 3; column-gap: 20px; margin-top: 10px; }
  .at-stats b { font-size: clamp(44px, 4.6vw, 66px); }
  .at-stats span { font-size: 12.5px; }
  .at-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .at-fig { grid-column: 1 / 9; margin: 0; }
  .at-back { left: 10px; }
  .at-legend { grid-column: 1 / 9; grid-row: 2; }
  .at-rows { grid-column: 9 / 13; grid-row: 1 / 4; }
  .kr-end { padding: 70px 0 44px; }
  .kr-lead { font-size: 17px; }
  .kr-els { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .kr-els li { padding-right: 18px; }
  .at-r { padding: 10px 0 11px; }
  .at-r > b { font-size: 32px; }
  .lang-zh .at-r > b { font-size: 26px; line-height: 1.2; }
  .at-r.on { margin-inline: -10px; padding-inline: 10px; }
  .block h2 { margin-bottom: 26px; }
  .b-dark { padding-top: 70px; padding-bottom: 70px; }
  .dv-head { min-height: 0; margin-bottom: 40px; }
  .dv-k { font-size: clamp(150px, 20vw, 290px); margin-bottom: 26px; }
  .dv-burst { top: 0; right: -8vw; width: min(32vw, 440px); }
  .dv-burst b { font-size: 12px; }
  .dv-head h2 { max-width: 56%; }
  .lang-en .dv-head h2, .lang-ru .dv-head h2 { font-size: clamp(56px, 6.4vw, 92px); }
  .dv-lead { max-width: 52%; font-size: 17px; }
  .im-g { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .im-e { text-align: left; justify-items: start; margin-top: 40px; }
  .im b { font-size: clamp(64px, 7.2vw, 104px); }
  .ph-band { margin: 0; }
  .ph-duo { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); column-gap: 20px; margin: 34px 0 40px; }
  .ph-duo .ph-a { grid-column: 1 / 10; grid-row: 1; }
  .ph-duo .ph-b { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; margin: 0; }
  .ph-duo .ph-cap { grid-column: 1 / 8; grid-row: 2; }
  .scene-more { grid-column: 6 / 13; grid-row: 2; margin: 34px 0 0; }
  .tl-art { grid-column: 6 / -1; }
  .scene-outdoor { margin-top: 150px !important; }

  .roles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .roles li:nth-last-child(-n+2) { border-bottom: var(--rule); }

  .l-cta { display: grid; grid-template-columns: 5fr 7fr; column-gap: 40px; align-content: start; padding-top: 70px; padding-bottom: 70px; margin-top: 110px; }
  .l-cta h2, .l-cta-b, .l-acts, .qr { grid-column: 1; }
  .l-cta .lead { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .l-star { top: auto; right: auto; left: -60px; bottom: -70px; width: clamp(110px, 16vw, 260px); height: clamp(110px, 16vw, 260px); }
  .l-back { padding-top: 22px; padding-bottom: 23px; font-size: 44px; }
}

@media (min-width: 1100px) {
  .scene-more { grid-column: 9 / 13; grid-row: 1; align-self: start; margin: -24px 0 0; }
}

@media (max-width: 370px) {
  .langs a { padding-left: 2px; padding-right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pop { opacity: 1; transform: none; }
  .arc { stroke-dashoffset: 0; }
  .catch, .flake, .dive-b { opacity: 0; }
  .pk-run { opacity: 1; }
  .scene-art, .bio-tag, .ph-in { clip-path: none; }
  .bio-ph img, .sm-w, .sm-rise { opacity: 1; transform: none; }
  .bio-ph b { transform: rotate(-8deg); }
  .pop h2, h2.rv { clip-path: none; transform: none; }
  .dl::before { transform: none; }
  .iso i { animation: none; }
  .s1 { transform: translate(80px, 302px); } .s2 { transform: translate(280px, 308px) scaleX(-1); }
}
.lead-dlg:focus { outline: none; }
