@charset "UTF-8";

/* Foundation */
:root {
  --bg: #080a09;
  --panel: #10130f;
  --fg: #edf0e6;
  --muted: #a0aa98;
  --lime: #c8ff64;
  --line: #2a3025;
  --warm: #e7c5a1;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::after { position: fixed; inset: 0; z-index: 20; pointer-events: none; content: ""; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.65' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
::selection { background: var(--lime); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 44px; min-height: 44px; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 64px; }
.mono, .eyebrow, .micro, .skills, .filters, .card-meta, .card-links { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 11px; line-height: 1.7; letter-spacing: 1.4px; }
.status-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px #c8ff6440; }
.page-progress { position: fixed; top: 0; left: 0; z-index: 40; width: 0; height: 2px; background: var(--lime); }
.skip { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 15px; background: var(--lime); color: var(--bg); }
.skip:focus { top: 10px; }

/* Header and language controls */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; white-space: nowrap; font-size: 19px; font-weight: 700; letter-spacing: -.6px; }
.brand-mark { width: 37px; color: var(--lime); font-size: 31px; line-height: 38px; letter-spacing: -3px; }
.brand-mark span { font-size: 23px; vertical-align: top; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: #bac2b3; transition: color .2s; }
.main-nav a:hover, .text-link:hover { color: var(--lime); }
.header-tools { display: flex; align-items: center; gap: 24px; }
.languages { display: flex; gap: 2px; }
.languages button { min-width: 44px; padding: 10px 7px; border: 1px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.languages button:hover { color: var(--fg); }
.languages button[aria-pressed=true] { border-color: #52623f; color: var(--lime); background: #c8ff6406; }
.github-top { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-family: var(--mono); font-size: 12px; }
.github-top span { color: var(--lime); }

/* Hero: the orb keeps its existing interaction surface. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; padding-top: 60px; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .2; background-image: linear-gradient(#30382a 1px, transparent 1px), linear-gradient(90deg, #30382a 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent 18%, #000 75%, transparent); }
.hero-copy { position: relative; z-index: 2; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy > .eyebrow { margin-bottom: 25px; }
h1 { position: relative; width: max-content; max-width: 100%; font-size: clamp(76px, 8vw, 114px); font-weight: 800; line-height: .93; letter-spacing: -.065em; }
h1 > span:not(.title-star) { display: block; }
.outline { color: transparent; -webkit-text-stroke: 1px #a5af9b; }
.title-star { position: absolute; top: 3px; right: -89px; color: var(--lime); font-size: 64px; line-height: 1; }
.hero-description { max-width: 460px; margin-top: 26px; color: #b1bba7; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 27px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 16px 21px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: transform .2s, background .2s; }
.primary { background: var(--lime); color: #17200c; }
.primary:hover { background: #dcff9e; transform: translateY(-2px); }
.button > [aria-hidden="true"] { font-size: 19px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 13px; line-height: 1.5; transition: color .2s; }
.hero-art { position: absolute; top: 18px; right: 12px; bottom: 83px; z-index: 1; width: 57%; min-height: 420px; overflow: hidden; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.art-coordinate { position: absolute; top: 32px; right: 45px; color: #849177; font-size: 10px; letter-spacing: .9px; }
.art-caption { position: absolute; bottom: 12px; left: 22%; right: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.micro { color: #a1ad93; font-size: 9px; line-height: 1.6; letter-spacing: .75px; }
.warp { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 44px; padding: 11px 14px; border: 1px solid #53633e; background: #080a09c9; font-size: 10px; white-space: nowrap; transition: background .2s; }
.warp:hover { border-color: var(--lime); }
.warp[aria-pressed=true] { background: var(--lime); color: #17200c; }
.warp-icon { font-size: 22px; line-height: 1; }
.art-cross { position: absolute; color: #7b8b6b; font-family: var(--mono); font-size: 18px; }
.cross-one { top: 100px; right: 70px; }
.cross-two { bottom: 115px; left: 90px; }
.hero-bottom { z-index: 3; grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-block: 22px; color: #a6b09b; font-size: 10px; line-height: 1.6; letter-spacing: .8px; }
.hero-bottom a { display: flex; align-items: center; gap: 22px; min-height: 44px; }
.orbit-fallback { position: absolute; inset: 17%; border: 1px solid #84a642; border-radius: 50%; transform: rotate(-30deg); opacity: .6; }
.orbit-fallback i { position: absolute; inset: 0; border: 1px solid #84a642; border-radius: 50%; transform: rotateY(65deg); }
.orbit-fallback i:nth-child(2) { transform: rotateX(70deg); }
.orbit-fallback i:nth-child(3) { inset: 10%; }
.canvas-ready .orbit-fallback { display: none; }
.ticker { overflow: hidden; padding-block: 18px; border-block: 1px solid var(--lime); background: var(--lime); color: #202a11; }
.ticker > div { display: flex; align-items: center; gap: 44px; width: max-content; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; animation: marquee 35s linear infinite; }
.ticker span { font-size: 21px; line-height: 18px; }
@keyframes marquee { to { transform: translateX(-37%); } }

/* Selected work */
.section { padding-block: 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 22px; }
h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -2px; }
.section-intro { max-width: 320px; padding-bottom: 4px; color: #adb7a1; font-size: 15px; line-height: 1.75; }
.project-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; padding-block: 13px; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { min-height: 44px; padding: 11px 15px; border: 1px solid transparent; color: #b0baa5; font-size: 12px; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed=true] { border-color: #546544; background: #c8ff640a; color: var(--lime); }
.filters sup { margin-left: 5px; font-size: 9px; }
.project-count { color: #a6b09b; font-size: 10px; letter-spacing: .8px; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.project-card { position: relative; grid-column: span 3; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: #0d100c; transition: border-color .25s, transform .25s; }
.project-card.featured { grid-column: span 6; }
.project-grid[data-filter]:not([data-filter=all]) .project-card { grid-column: span 6; }
.project-card:hover { border-color: #63764b; transform: translateY(-4px); }
.project-card[hidden] { display: none; }
.card-visual { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; height: 176px; overflow: hidden; border-bottom: 1px solid var(--line); background: #151b11; }
.featured .card-visual { height: 300px; }
.card-visual > div { width: 100%; height: 100%; }
.card-visual:focus-visible { z-index: 3; outline-offset: -4px; }
.project-preview { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.visual-chess .project-preview, .visual-salvo .project-preview { object-fit: contain; object-position: center; }
.card-visual:hover .project-preview { transform: scale(1.025); }
.card-number { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 7px; background: #080a09dc; color: #d4ddc9; font-family: var(--mono); font-size: 10px; }
.card-open { position: absolute; top: 13px; right: 13px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #6a7e4c; background: #080a09e6; color: var(--lime); font-size: 20px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--lime); font-size: 10px; line-height: 1.6; letter-spacing: .7px; }
.card-body h3 { margin-bottom: 12px; overflow-wrap: anywhere; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.7px; }
.card-body h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.featured .card-body h3 { font-size: 31px; }
.card-body p { margin-bottom: 22px; color: #aab49f; font-size: 14px; line-height: 1.75; }
.featured .card-body p { max-width: 510px; font-size: 15px; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.card-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.card-links a:hover { color: var(--lime); }
.card-links .source { color: #b1bba6; }
.all-code { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; margin-top: 22px; padding-block: 15px; border-bottom: 1px solid var(--line); color: #a9b39e; font-size: 13px; line-height: 1.6; }
.all-code > span:last-child { color: var(--fg); }
.all-code:hover > span:last-child { color: var(--lime); }

/* Abstract covers for projects without a visual interface. */
.technical-art { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; padding: 26px; overflow: hidden; background: radial-gradient(ellipse at 90% 100%, #3e513138, transparent 75%), #11190f; }
.technical-label { position: absolute; top: 20px; left: 24px; color: #c0cbb4; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.technical-code { position: absolute; bottom: 17px; left: 24px; right: 24px; z-index: 1; color: #d6e5c4; font-family: var(--mono); font-size: 11px; letter-spacing: .1px; line-height: 1.65; }
.signal-bars { position: absolute; right: 24px; bottom: 60px; display: flex; align-items: flex-end; gap: 5px; height: 58px; opacity: .65; }
.signal-bars i { width: 9px; height: 40%; background: #a1c86f; }
.signal-bars i:nth-child(2n) { height: 65%; }
.signal-bars i:nth-child(3n) { height: 90%; }
.signal-bars i:nth-child(4n) { height: 55%; }
.visual-mcp .technical-art { background: radial-gradient(ellipse at 85% 100%, #305d4d66, transparent 75%), #101a16; }
.pixel-grid { position: absolute; right: 24px; bottom: 59px; display: grid; grid-template-columns: repeat(3, 14px); gap: 5px; transform: rotate(-10deg); }
.pixel-grid i { aspect-ratio: 1; border: 1px solid #83bca1; background: #67b58e23; }
.pixel-grid i:nth-child(3n) { background: #b6e6b7; }
.pixel-grid i:nth-child(4n) { opacity: .3; }
.visual-jpeg .technical-art { background: radial-gradient(ellipse at 85% 100%, #755d2d50, transparent 75%), #1c1911; }
.visual-jpeg .technical-label { color: #cfc4aa; }
.visual-jpeg .technical-code { color: #e9d8b4; }
.jpeg-stack { position: absolute; right: 26px; bottom: 65px; width: 85px; height: 65px; transform: rotate(-12deg); }
.jpeg-stack > * { position: absolute; inset: 0 20px 0 0; border: 1px solid #ddc794; background: linear-gradient(145deg, #d4be7d 0 26%, #596d3f 26% 55%, #29321c 55%); box-shadow: 0 5px 14px #0005; }
.jpeg-stack > :nth-child(2) { transform: translate(11px, 9px); opacity: .8; }
.jpeg-stack > :nth-child(3) { transform: translate(22px, 18px); opacity: .55; }
.earlier-work { margin-top: 30px; border-block: 1px solid var(--line); }
.earlier-work summary { display: list-item; min-height: 60px; padding-block: 20px; color: #cad3bf; font-family: var(--mono); font-size: 12px; line-height: 1.6; cursor: pointer; }
.earlier-work summary::marker { color: var(--lime); }
.earlier-work[open] summary { color: var(--lime); }
.earlier-work > p { max-width: 760px; padding-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.earlier-links { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 14px 23px; }
.earlier-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #d7dfce; font-size: 14px; text-decoration: underline; text-decoration-color: #6b775c; text-underline-offset: 5px; }
.earlier-links a:hover { color: var(--lime); }

/* Anima Dao: a quiet, warm counterpoint to the project grid. */
.music-section { padding-top: 10px; }
.music-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; border: 1px solid #443d30; background: #12130f; }
.music-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 500px; padding: 70px 30px; overflow: hidden; background: var(--warm); color: #29271f; }
.music-art::before { position: absolute; inset: 18px; border: 1px solid #61513e44; content: ""; }
.music-art-label, .music-art-footer { position: absolute; left: 32px; right: 32px; font-size: 10px; line-height: 1.6; letter-spacing: 1.15px; }
.music-art-label { top: 32px; }
.music-art-footer { bottom: 32px; }
.record { position: relative; display: grid; place-items: center; width: min(100%, 350px); aspect-ratio: 1; border: 10px solid #23241f; border-radius: 50%; background: repeating-radial-gradient(circle, #20221d 0 2px, #36372e 3px, #20221d 4px 6px); box-shadow: 11px 19px 24px #47331d35; }
.record::before { position: absolute; inset: -8px; border-radius: inherit; content: ""; background: conic-gradient(from -35deg, transparent 0deg 42deg, #e5d9b71f 50deg, transparent 90deg 224deg, #f3e6c71f 245deg, transparent 280deg); }
.record-label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 40%; aspect-ratio: 1; border: 1px solid #dbbf8e; border-radius: 50%; background: #c0a267; color: #24271d; text-align: center; }
.record-label::after { position: absolute; top: calc(50% - 3px); left: calc(50% - 3px); width: 6px; height: 6px; border: 1px solid #c6b794; border-radius: 50%; background: #20221d; content: ""; }
.record-label > span { font-size: clamp(22px, 2.5vw, 34px); font-weight: 800; letter-spacing: -1.5px; line-height: .95; }
.record-label small { font-family: var(--mono); font-size: 6px; letter-spacing: .1px; }
.music-copy { padding: 50px 48px 50px 0; }
.music-copy > .eyebrow { margin-bottom: 24px; color: var(--warm); }
.music-copy h2 { margin-bottom: 23px; font-size: clamp(42px, 4.5vw, 64px); }
.music-description { max-width: 470px; color: #c4bfb0; font-size: 16px; line-height: 1.85; }
.music-links { display: flex; flex-wrap: wrap; gap: 7px 28px; margin-top: 21px; }
.music-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--warm); font-size: 14px; }
.music-links a:hover { color: #fff0db; }
.music-player { margin-top: 26px; padding-top: 25px; border-top: 1px solid #443d30; }
.player-button { width: 100%; min-height: 52px; justify-content: center; border: 1px solid #8d795b; color: #f1d4b2; background: #e7c5a10a; }
.player-button:hover { background: #e7c5a11c; }
.player-note { max-width: 470px; margin-top: 13px; color: #b4ad9d; font-size: 12px; line-height: 1.75; }
.spotify-player { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }

/* About and closing links */
.about { padding-top: 6px; }
.about > .eyebrow { margin-bottom: 35px; }
.about-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; }
.about-layout h2 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.22; letter-spacing: -1.5px; }
.about-copy > p { color: #b2bba8; font-size: 16px; line-height: 1.85; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px; }
.skills span { padding: 8px 10px; border: 1px solid #3b4432; color: #c1cbb6; font-size: 10px; line-height: 1.5; letter-spacing: .5px; }
.outro { padding-top: 34px; padding-bottom: 38px; border-top: 1px solid var(--line); }
.outro > .eyebrow { color: #aab59d; font-size: 10px; }
.outro > a { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; font-size: clamp(44px, 7vw, 96px); font-weight: 500; line-height: 1.15; letter-spacing: -4px; }
.outro > a > span:first-child { min-width: 0; }
.outro > a > span:last-child { color: var(--lime); transition: transform .3s; }
.outro > a:hover > span:last-child { transform: translate(5px, -5px); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; border-top: 1px solid var(--line); color: #a4af97; font-size: 10px; line-height: 1.6; letter-spacing: .55px; }
.footer button, .footer a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: inherit; font-size: inherit; letter-spacing: inherit; }
.motion-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.footer button[aria-pressed=false] .motion-dot { background: #7e8775; }

/* Language-specific rhythm. Chinese uses native sans families and spacing. */
html[lang=ru] h1 { font-size: clamp(70px, 7.5vw, 105px); }
html[lang=ru] .section-heading h2 { font-size: clamp(32px, 3.5vw, 50px); }
html[lang=ru] .outro > a { font-size: clamp(32px, 5vw, 68px); letter-spacing: -2px; }
html[lang=zh-Hans] { --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang=zh-Hans] h1, html[lang=zh-Hans] h2, html[lang=zh-Hans] h3, html[lang=zh-Hans] .outro > a { letter-spacing: 0; }
html[lang=zh-Hans] .hero-description, html[lang=zh-Hans] .card-body p, html[lang=zh-Hans] .about-copy > p { line-height: 1.9; }

/* Tablet */
@media (max-width: 1100px) {
  .wrap { padding-inline: 38px; }
  .header { gap: 20px; }
  .header-tools { gap: 16px; }
  .main-nav { gap: 20px; }
  .github-top { display: none; }
  .hero { min-height: 660px; padding-top: 52px; }
  .hero-art { right: 0; width: 56%; }
  .art-caption { left: 23%; right: 25px; flex-direction: column; align-items: flex-end; gap: 12px; }
  .art-coordinate { right: 25px; font-size: 9px; }
  .title-star { right: -68px; font-size: 50px; }
  .hero-actions { gap: 12px 20px; }
  .hero-actions .text-link { font-size: 12px; }
  .project-card { grid-column: span 6; }
  .featured .card-visual { height: 250px; }
  .card-visual { height: 220px; }
  .technical-code { font-size: 12px; }
  .music-layout { gap: 36px; }
  .music-art { min-height: 480px; padding-inline: 26px; }
  .music-copy { padding: 36px 32px 36px 0; }
  .music-description { font-size: 15px; }
  .about-layout { gap: 45px; }
}

/* Small screens: visible second navigation row, compact separate orb. */
@media (max-width: 800px) {
  .wrap { padding-inline: 26px; }
  .header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding-top: 12px; padding-bottom: 6px; }
  .brand { gap: 8px; font-size: 17px; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 30px; font-size: 13px; }
  .hero { display: block; min-height: 0; padding-top: 32px; }
  .hero-copy > .eyebrow { margin-bottom: 20px; font-size: 10px; letter-spacing: 1px; }
  .hero h1 { font-size: clamp(60px, 10.5vw, 84px); }
  .title-star { right: -70px; font-size: 51px; }
  .hero-description { margin-top: 22px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; gap: 10px 22px; }
  .hero-art { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 210px; min-height: 0; margin-top: 12px; }
  .hero-art canvas { top: -28px; height: 220px; }
  .art-coordinate { top: 7px; right: 0; font-size: 8px; }
  .art-caption { bottom: 0; left: 0; right: 0; flex-direction: row; align-items: center; gap: 16px; }
  .art-caption .micro { max-width: 220px; font-size: 9px; letter-spacing: .4px; }
  .cross-one { top: 50px; right: 30px; }
  .cross-two { bottom: 60px; left: 30px; }
  .orbit-fallback { inset: 0 30% 40px; }
  .hero-bottom { margin-top: 8px; padding-block: 8px 12px; font-size: 9px; letter-spacing: .3px; }
  .hero-bottom a { gap: 12px; }
  .ticker { padding-block: 15px; }
  .ticker > div { gap: 32px; font-size: 10px; letter-spacing: 1px; }
  .section { padding-block: 70px; }
  .section-heading { gap: 30px; margin-bottom: 32px; }
  .section-heading h2 { font-size: 38px; }
  .section-intro { max-width: 255px; font-size: 14px; }
  .project-grid { gap: 18px; }
  .card-body { padding: 21px; }
  .card-body h3 { font-size: 24px; }
  .featured .card-body h3 { font-size: 27px; }
  .featured .card-visual { height: 220px; }
  .card-visual { height: 190px; }
  .music-section { padding-top: 0; }
  .music-layout { grid-template-columns: 1fr; gap: 0; }
  .music-art { min-height: 360px; padding-block: 62px; }
  .record { width: 240px; }
  .record-label > span { font-size: 25px; }
  .music-copy { padding: 36px; }
  .music-copy h2 { font-size: 48px; }
  .music-description { max-width: none; font-size: 16px; }
  .about { padding-top: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-layout h2 { max-width: 620px; font-size: 37px; }
  .about-copy { max-width: 610px; }
  .outro > a { letter-spacing: -2px; }
  .footer { flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; }
  .footer > span { display: none; }
  html[lang=ru] h1 { font-size: clamp(57px, 9.7vw, 77px); }
  html[lang=ru] .section-heading h2 { font-size: 35px; }
}

/* Mobile */
@media (max-width: 600px) {
  .wrap { padding-inline: 22px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 29px; font-size: 27px; }
  .brand-mark span { font-size: 20px; }
  .header { column-gap: 8px; }
  .languages { gap: 0; }
  .hero h1 { font-size: clamp(55px, 14.5vw, 76px); }
  .title-star { display: none; }
  .hero-copy > .eyebrow { max-width: 340px; font-size: 9px; }
  .hero-description { max-width: 350px; font-size: 15px; }
  .hero-actions { gap: 8px 18px; }
  .hero-actions .button { gap: 18px; min-height: 48px; padding: 13px 17px; }
  .hero-actions .text-link { gap: 12px; font-size: 12px; }
  .hero-art { height: 190px; margin-top: 8px; }
  .hero-art canvas { top: -20px; height: 188px; }
  .art-coordinate { font-size: 7px; letter-spacing: .5px; }
  .art-caption .micro { max-width: 165px; font-size: 8px; }
  .warp { padding-inline: 11px; font-size: 9px; }
  .hero-bottom { gap: 18px; font-size: 8px; }
  .hero-bottom > span { max-width: 160px; }
  .hero-bottom a { gap: 8px; }
  .section { padding-block: 60px; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .section-heading h2 { font-size: 38px; letter-spacing: -1.5px; }
  .section-intro { max-width: 380px; margin-top: 21px; font-size: 14px; }
  .project-toolbar { gap: 6px; padding-block: 10px; }
  .filters { gap: 0; }
  .filters button { padding-inline: 10px; font-size: 11px; }
  .project-count { padding-block: 7px; font-size: 9px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .project-card, .project-card.featured, .project-grid[data-filter]:not([data-filter=all]) .project-card { grid-column: 1; }
  .card-visual, .featured .card-visual { height: auto; min-height: 190px; aspect-ratio: 16 / 10; }
  .card-body { padding: 24px; }
  .card-body h3, .featured .card-body h3 { font-size: 27px; }
  .card-body p, .featured .card-body p { font-size: 15px; }
  .card-meta { font-size: 10px; }
  .card-links { font-size: 12px; }
  .technical-art { min-height: 100%; padding: 30px; }
  .technical-label { top: 26px; left: 30px; font-size: 11px; }
  .technical-code { bottom: 20px; left: 30px; right: 30px; font-size: 12px; }
  .signal-bars { right: 30px; bottom: 63px; height: 78px; }
  .signal-bars i { width: 10px; }
  .pixel-grid { right: 32px; bottom: 63px; grid-template-columns: repeat(3, 18px); gap: 6px; }
  .jpeg-stack { right: 35px; bottom: 75px; width: 100px; height: 75px; }
  .all-code { align-items: flex-start; font-size: 12px; }
  .all-code > span { max-width: 48%; }
  .earlier-work summary { font-size: 12px; }
  .earlier-links { gap: 4px 22px; }
  .music-section, .about { padding-top: 0; }
  .music-art { min-height: 330px; padding: 60px 28px; }
  .music-art-label, .music-art-footer { left: 28px; right: 28px; font-size: 8px; letter-spacing: .8px; }
  .music-art-label { top: 28px; }
  .music-art-footer { bottom: 27px; }
  .record { width: 220px; }
  .record-label > span { font-size: 23px; }
  .record-label small { max-width: 62px; font-size: 5px; }
  .music-copy { padding: 29px 25px 31px; }
  .music-copy > .eyebrow { margin-bottom: 18px; font-size: 10px; letter-spacing: .8px; }
  .music-copy h2 { margin-bottom: 20px; font-size: 43px; letter-spacing: -1.4px; }
  .music-description { font-size: 15px; }
  .music-links { gap: 4px 24px; margin-top: 17px; }
  .music-links a { font-size: 13px; }
  .music-player { margin-top: 21px; padding-top: 21px; }
  .player-button { padding-inline: 14px; font-size: 12px; }
  .player-note { font-size: 12px; }
  .about > .eyebrow { margin-bottom: 25px; }
  .about-layout h2 { font-size: 32px; letter-spacing: -1px; }
  .about-copy > p { font-size: 15px; }
  .skills { gap: 7px; }
  .skills span { padding: 7px 9px; font-size: 9px; }
  .outro { padding-block: 28px 30px; }
  .outro > .eyebrow { font-size: 9px; letter-spacing: .6px; }
  .outro > a { font-size: 46px; letter-spacing: -2px; }
  .footer { column-gap: 14px; font-size: 9px; letter-spacing: .2px; }
  .footer #back-top { margin-left: auto; }
  html[lang=ru] h1 { font-size: clamp(51px, 13.8vw, 70px); }
  html[lang=ru] .section-heading h2 { font-size: 33px; letter-spacing: -1.3px; }
  html[lang=ru] .outro > a { gap: 18px; font-size: 32px; letter-spacing: -1px; }
  html[lang=zh-Hans] .hero h1 { font-size: 65px; line-height: 1.03; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 18px; }
  .brand-mark { display: none; }
  .brand { font-size: 15px; }
  .main-nav { gap: 26px; }
  .hero-copy > .eyebrow { letter-spacing: .6px; }
  .hero-actions { gap: 5px 14px; }
  .hero-actions .button { padding-inline: 13px; font-size: 12px; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-bottom { font-size: 7px; }
  .hero-bottom > span { max-width: 133px; }
  .art-caption .micro { max-width: 130px; font-size: 7px; }
  .filters button { padding-inline: 8px; }
  .card-body { padding: 21px; }
  .technical-code { font-size: 11px; }
  .music-copy { padding-inline: 21px; }
  .outro > a { font-size: 41px; }
  html[lang=zh-Hans] .hero h1 { font-size: 53px; }
}

/* Both explicit and system preferences stop motion. */
body.motion-off *, body.motion-off *::before, body.motion-off *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
html.motion-off { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
