@font-face {
  font-family: "Smiley Sans";
  src: url("./assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05080a;
  --ink: #f4f4ef;
  --muted: rgba(244, 244, 239, 0.62);
  --line: rgba(244, 244, 239, 0.09);
  --cyan: #7ccfff;
  --blue: #436cff;
  --violet: #9b67ff;
  --warm: #f5b985;
  --font-en: "Smiley Sans", sans-serif;
  font-family:
    "Smiley Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

:lang(en) {
  font-family: var(--font-en) !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

.public-site .admin-toggle,
.public-site .control-panel,
.public-site .work-tune-panel {
  display: none !important;
}

.embed-mode,
.embed-mode body,
.embed-mode .prototype-shell {
  background: transparent !important;
}

.embed-mode .entry-screen,
.embed-mode .chrome,
.embed-mode .hero-orbit,
.embed-mode .admin-toggle,
.embed-mode .music-control,
.embed-mode .contact-link {
  display: none !important;
}

.work-project-modal-frame {
  position: fixed;
  z-index: 300;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.has-project-frame .subpage-admin {
  z-index: 320;
}

.has-project-frame .work-tune-panel {
  z-index: 321;
}

.prototype-shell {
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(65, 112, 255, 0.18), transparent 24%),
    radial-gradient(circle at 76% 56%, rgba(245, 185, 133, 0.14), transparent 22%),
    radial-gradient(circle at 22% 40%, rgba(124, 207, 255, 0.11), transparent 23%),
    #05080a;
}

.entry-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05080a;
}

.entry-screen::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(100, 168, 255, 0.13);
  filter: blur(28px);
  animation: entry-glow 2.8s ease-in-out infinite alternate;
}

.entry-logo {
  position: relative;
  z-index: 1;
  width: 82px;
  aspect-ratio: 1;
  padding: 0;
  cursor: pointer;
  background: center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(120, 192, 255, 0.28));
  animation: entry-spin 12s linear infinite;
  transition: filter 240ms ease;
}

.entry-logo:hover {
  filter: drop-shadow(0 0 24px rgba(130, 205, 255, 0.58));
}

.entry-logo:disabled { cursor: wait; opacity: 0.7; }
.entry-loader {
  position: absolute;
  z-index: 1;
  top: calc(50% + 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(164px, 48vw);
  padding: 5px 0 0;
  color: #dff5ff;
  font: 600 11px/1 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-shadow: 0 0 7px rgba(148, 215, 255, 0.62);
}
.entry-loader::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(143, 209, 255, 0.22) 3px); }
.entry-loader-track { position: relative; z-index: 1; width: 100%; height: 15px; overflow: hidden; background: rgba(143, 209, 255, 0.08); }
.entry-loader-track::before, .entry-loader-track::after { position: absolute; z-index: 1; top: 0; color: #c6f2ff; font-size: 13px; line-height: 14px; }
.entry-loader-track::before { content: "["; left: 0; }
.entry-loader-track::after { content: "]"; right: 0; }
.entry-loader-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #69bfff, #f0fbff); box-shadow: 0 0 12px rgba(143, 209, 255, 0.82); transition: width 90ms linear; }
.entry-loader-meta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 10px; }
.entry-loader #entry-loader-value { color: #effbff; }
.entry-loader-state { color: rgba(166, 222, 255, 0.8); font-size: 8px; letter-spacing: 0.12em; }
.entry-loader-state::before { content: "> "; }
.entry-loader.is-ready .entry-loader-state { color: #fff; }

.entry-screen.is-leaving {
  pointer-events: none;
  animation: entry-screen-exit 1050ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.entry-screen.is-leaving .entry-loader { opacity: 0; transform: translateY(-8px); transition: 240ms ease; }

.entry-screen.is-leaving .entry-logo {
  animation: entry-logo-elastic 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.entry-particle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: hsl(var(--hue) 90% 72%);
  box-shadow: 0 0 18px hsl(var(--hue) 90% 65% / 0.8);
  mix-blend-mode: screen;
  animation: entry-goo 950ms var(--delay) cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes entry-spin { to { transform: rotate(1turn); } }
@keyframes entry-glow { to { transform: scale(1.35); opacity: 0.55; } }
@keyframes entry-logo-elastic {
  0% { transform: scale(1) rotate(0); }
  20% { transform: scaleX(0.72) scaleY(1.28) rotate(8deg); }
  52% { transform: scaleX(1.45) scaleY(0.78) rotate(-5deg); }
  100% { transform: scale(8) rotate(35deg); opacity: 0; }
}
@keyframes entry-screen-exit {
  0%, 45% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes entry-goo {
  0% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0); opacity: 0; }
  28% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; }
  72% { transform: translate(calc(-50% + var(--x-mid)), calc(-50% + var(--y-mid))) scale(0.72); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-logo,
  .entry-screen::after { animation-duration: 1ms; animation-iteration-count: 1; }
}

.chrome {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 25px clamp(18px, 3vw, 36px);
  pointer-events: none;
}

.mark {
  pointer-events: auto;
  text-decoration: none;
}

.chrome > .mark {
  position: fixed;
  top: 38px;
  left: clamp(22px, 3vw, 38px);
}

.mark.has-image:hover {
  animation: uploaded-logo-spin 6.4s linear infinite;
  box-shadow: 0 0 34px rgba(105, 169, 255, 0.58);
}

@keyframes uploaded-logo-spin { to { transform: rotate(1turn); } }

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: none;
  visibility: hidden;
}

.mark span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  mix-blend-mode: overlay;
}

.mark.has-image {
  background-position: center;
  background-size: cover;
  background-color: transparent;
  mix-blend-mode: screen;
  visibility: visible;
}

.mark.has-image span {
  display: none;
}

.edge-nav {
  position: fixed;
  z-index: 120;
  pointer-events: auto;
  color: rgba(244, 244, 239, 0.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.edge-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.edge-nav:hover {
  color: #fff;
  transform: translateY(-2px);
}

.edge-nav:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.work-link {
  top: 39px;
  right: clamp(22px, 3vw, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  padding: 4px 0 4px 8px;
  font-family: "Smiley Sans", "Arial Black", Impact, Inter, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.work-link::after {
  display: none;
}

.work-label {
  display: block;
  max-width: 0;
  opacity: 0;
  transform: translateX(14px);
  white-space: nowrap;
  transition: max-width 0.36s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.22s ease, transform 0.36s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-flame {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  transform-origin: 50% 80%;
  fill: #fff;
  stroke: #fff;
  stroke-width: 0.65;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
  transition: transform 0.36s cubic-bezier(0.19, 1, 0.22, 1), filter 0.36s ease;
}

.work-flame path {
  transform-box: fill-box;
  transform-origin: 50% 82%;
}

.work-link:hover .work-label,
.work-link:focus-visible .work-label {
  max-width: 82px;
  opacity: 1;
  transform: translateX(0);
}

.work-link:hover .work-flame,
.work-link:focus-visible .work-flame {
  animation: flame-flicker 0.72s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.34)) drop-shadow(0 0 26px rgba(255, 151, 91, 0.24));
}

.work-link:hover .work-flame path,
.work-link:focus-visible .work-flame path {
  animation: flame-breathe 0.42s ease-in-out infinite alternate;
}

.contact-link {
  right: clamp(22px, 3vw, 38px);
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 44px;
  font-family: "Smiley Sans", "Arial Black", Impact, Inter, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  overflow: hidden;
}

.contact-link::after {
  display: none;
}

.contact-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(12px);
  white-space: nowrap;
  transition: max-width 0.36s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.22s ease, transform 0.36s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-hand {
  width: 38px;
  flex: 0 0 38px;
  color: #fff;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 35px;
  line-height: 1;
  text-align: center;
  filter: grayscale(1) brightness(0) invert(1);
}

.contact-hand-wave {
  display: none;
  transform-origin: 68% 76%;
}

.contact-link:hover .contact-label,
.contact-link:focus-visible .contact-label {
  max-width: 110px;
  opacity: 1;
  transform: translateX(0);
}

.contact-link:hover .contact-hand-ok,
.contact-link:focus-visible .contact-hand-ok {
  display: none;
}

.contact-link:hover .contact-hand-wave,
.contact-link:focus-visible .contact-hand-wave {
  display: block;
  animation: contact-wave 0.62s ease-in-out infinite alternate;
}

.admin-toggle {
  position: fixed;
  right: auto;
  left: clamp(22px, 3vw, 38px);
  bottom: 36px;
  z-index: 120;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(244, 244, 239, 0.9);
  color: #07090b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, background 180ms ease;
}

.music-control {
  --music-volume: 35%;
  --music-stretch: 1;
  --music-shift: 0px;
  --music-low-shift: 0px;
  --music-high-shift: 0px;
  position: fixed;
  left: clamp(22px, 3vw, 38px);
  bottom: 86px;
  z-index: 121;
  display: grid;
  grid-template-columns: auto auto minmax(92px, 128px) auto 28px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.68);
  color: rgba(244, 244, 239, 0.82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.music-control.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.work-page-frame {
  position: fixed;
  z-index: 200;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070c;
}

.work-shell-open .music-control { z-index: 401; }

.public-site .music-control { bottom: 36px; }

.music-label,
.music-volume-value {
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.music-label { color: rgba(244, 244, 239, 0.42); }
.music-control.is-playing .music-label { color: rgba(158, 158, 255, 0.92); }
.music-volume-value { text-align: right; color: rgba(244, 244, 239, 0.58); }

.music-end {
  display: inline-grid;
  width: 12px;
  place-items: center;
  color: rgba(244, 244, 239, 0.5);
  font-size: 13px;
  line-height: 1;
  transition: transform 480ms cubic-bezier(0.2, 1.55, 0.32, 1), color 180ms ease;
}

.music-end-low { transform: translateX(var(--music-low-shift)); }
.music-end-high { transform: translateX(var(--music-high-shift)); }
.music-control.is-muted .music-end-low { color: #f4f4ef; }

.music-slider-shell {
  display: flex;
  align-items: center;
  transform: translateX(var(--music-shift)) scaleX(var(--music-stretch));
  transition: transform 520ms cubic-bezier(0.2, 1.55, 0.32, 1);
  transform-origin: center;
}

.music-control.is-dragging .music-slider-shell,
.music-control.is-dragging .music-end { transition-duration: 70ms; }

.music-volume-input {
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  appearance: none;
  cursor: ew-resize;
  background: transparent;
}

.music-volume-input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f4ef var(--music-volume), rgba(244, 244, 239, 0.2) var(--music-volume));
  transition: height 180ms ease;
}

.music-volume-input::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #f4f4ef;
  box-shadow: 0 0 0 3px rgba(244, 244, 239, 0.08), 0 0 14px rgba(145, 145, 255, 0.55);
  transition: transform 180ms ease;
}

.music-volume-input::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 244, 239, 0.2);
}

.music-volume-input::-moz-range-progress { height: 2px; border-radius: 999px; background: #f4f4ef; }
.music-volume-input::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #f4f4ef; }
.music-control:hover { border-color: rgba(255, 255, 255, 0.24); }
.music-control:hover .music-volume-input::-webkit-slider-runnable-track { height: 3px; }
.music-control:hover .music-volume-input::-webkit-slider-thumb { transform: scale(1.18); }

@media (max-width: 640px) {
  .music-control {
    grid-template-columns: auto auto minmax(76px, 104px) auto 24px;
    gap: 6px;
  }
}

@keyframes contact-wave {
  from { transform: rotate(-13deg); }
  to { transform: rotate(15deg); }
}

.contact-modal {
  width: min(var(--contact-modal-width, 820px), calc(100vw - 36px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(4, 6, 13, 0.9);
  color: #f4f4ef;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.contact-modal[open] {
  animation: contact-modal-in 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal::backdrop {
  background: rgba(1, 3, 9, 0.56);
  backdrop-filter: blur(3px);
}

.contact-modal-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(1, 3, 9, 0.56);
  backdrop-filter: blur(3px);
}

.contact-modal-preview-backdrop[hidden] {
  display: none;
}

.contact-modal.is-local-preview[open] {
  position: fixed;
  inset: 0;
  z-index: 45;
  margin: auto;
}

.contact-preview-open .work-tune-panel,
.contact-preview-open .control-panel {
  z-index: 50;
}

.contact-modal-shell {
  position: relative;
  padding: clamp(28px, 5vw, 58px);
  background: radial-gradient(circle at 82% 12%, rgba(112, 92, 210, 0.2), transparent 42%);
}

.contact-modal header,
.contact-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-modal header span,
.contact-modal-address small {
  color: rgba(244, 244, 239, 0.48);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.contact-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.contact-modal h2 {
  margin: clamp(44px, 8vh, 76px) 0 22px;
  font: 500 clamp(42px, 7vw, var(--contact-modal-title-size, 82px))/0.9 "Smiley Sans", Arial, sans-serif;
  letter-spacing: -0.025em;
  white-space: pre-line;
}

.contact-modal > .contact-modal-shell > p {
  margin: 0;
  color: rgba(244, 244, 239, 0.62);
  font-size: clamp(16px, 2vw, 21px);
}

.contact-modal-address {
  display: grid;
  gap: 10px;
  margin: clamp(42px, 7vh, 68px) 0 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-modal-address strong {
  font: 500 clamp(21px, 3.4vw, 38px)/1.1 Inter, Arial, sans-serif;
}

.contact-modal-actions {
  justify-content: flex-start;
}

.contact-modal-copy,
.contact-modal-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 750 14px/1 Inter, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.contact-modal-copy {
  background: #f4f4ef;
  color: #07080d;
}

.contact-modal-write {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #f4f4ef;
}

.contact-modal-write span {
  margin-left: 12px;
}

.contact-modal footer {
  margin-top: 34px;
  color: rgba(244, 244, 239, 0.48);
  font-size: 12px;
}

.contact-modal footer i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7e8cff;
  box-shadow: 0 0 14px #7e8cff;
}

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .contact-modal-actions { align-items: stretch; flex-direction: column; }
  .contact-modal-copy,
  .contact-modal-write { width: 100%; }
}

.admin-toggle:hover,
.admin-toggle[aria-expanded="true"] {
  background: #fff;
  transform: translateY(-2px);
}

@keyframes flame-flicker {
  0% {
    transform: translateX(1px) translateY(0) scale(1.04) rotate(-5deg);
  }
  45% {
    transform: translateX(2px) translateY(-1px) scale(1.12, 1.06) rotate(3deg);
  }
  100% {
    transform: translateX(1px) translateY(-2px) scale(1.08, 1.15) rotate(-2deg);
  }
}

@keyframes flame-breathe {
  from {
    transform: skewX(-2deg) scale(0.98, 1.02);
  }
  to {
    transform: skewX(4deg) scale(1.04, 1.12);
  }
}

.work-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(73, 91, 158, 0.22), transparent 34%),
    radial-gradient(circle at 18% 74%, rgba(44, 111, 117, 0.16), transparent 38%),
    #030708;
  color: #f4f4ef;
}

.work-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(99, 210, 255, 0.55) 0 1px, transparent 1.4px);
  background-size: 170px 150px, 260px 230px;
  opacity: 0.34;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}

.work-page-shell {
  position: relative;
  min-height: 100vh;
  padding: 118px clamp(22px, 6vw, 96px) 80px;
}

.work-back {
  top: 39px;
  right: clamp(22px, 3vw, 38px);
}

.work-page-heading {
  max-width: 760px;
  margin: 0 0 54px;
}

.work-page-heading p {
  margin: 0 0 14px;
  color: rgba(244, 244, 239, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.work-page-heading h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.work-item {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.work-item-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 28px 80px rgba(0, 0, 0, 0.36);
}

.work-item-visual img,
.work-item-visual span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-item-visual img {
  object-fit: cover;
}

.work-item-visual span {
  background: linear-gradient(135deg, rgba(78, 204, 236, 0.86), rgba(118, 118, 255, 0.86) 48%, rgba(238, 180, 255, 0.82));
}

.work-item h2 {
  margin: 18px 0 6px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.work-item p {
  margin: 0;
  color: rgba(244, 244, 239, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.hero-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1120px;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(760px, 68vw);
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 48% 42%, rgba(120, 199, 255, 0.26), transparent 56%),
    radial-gradient(ellipse at 72% 68%, rgba(245, 185, 133, 0.18), transparent 48%);
  filter: blur(34px);
  opacity: 0.86;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(circle at center, transparent 34%, rgba(5, 8, 10, 0.34) 72%, rgba(5, 8, 10, 0.95)),
    linear-gradient(180deg, rgba(5, 8, 10, 0.54), transparent 20%, transparent 68%, rgba(5, 8, 10, 0.74));
  pointer-events: none;
}

.mobius-shadow {
  position: absolute;
  left: 50%;
  top: 61%;
  width: min(960px, 78vw);
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(69, 105, 255, 0.2), transparent 66%);
  filter: blur(18px);
  opacity: 0.9;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.galaxy-canvas,
.mobius-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.galaxy-canvas {
  z-index: 23;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.96;
}

.mobius-canvas {
  z-index: 24;
  cursor: pointer;
}

.mobius-shadow::before,
.mobius-shadow::after {
  content: "";
  position: absolute;
  inset: -46px -120px;
  border-radius: 50%;
  border-top: 18px solid rgba(86, 142, 255, 0.13);
  border-bottom: 16px solid rgba(245, 185, 133, 0.08);
  filter: blur(10px);
  transform: rotateX(66deg) rotateZ(-7deg);
}

.mobius-shadow::after {
  inset: -30px -90px;
  border-top-color: rgba(124, 207, 255, 0.1);
  border-bottom-color: rgba(155, 103, 255, 0.08);
  transform: rotateX(66deg) rotateZ(173deg);
}

.orbit-stage::before,
.orbit-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(1420px, 88vw);
  height: min(370px, 34vh);
  border: 0;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  filter: blur(4px);
  opacity: 0.64;
}

.orbit-stage::before {
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-9deg);
  box-shadow:
    0 -8px 22px rgba(124, 207, 255, 0.23),
    0 12px 38px rgba(67, 108, 255, 0.2),
    inset 0 0 32px rgba(84, 144, 255, 0.16);
}

.orbit-stage::after {
  width: min(1340px, 86vw);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(171deg);
  box-shadow:
    0 -8px 20px rgba(245, 185, 133, 0.18),
    0 12px 36px rgba(155, 103, 255, 0.12);
  opacity: 0.32;
}

.orbit-stage {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  transform-style: preserve-3d;
}

.project-card {
  position: absolute;
  left: 50%;
  top: 52%;
  display: block;
  width: clamp(132px, 12.2vw, 206px);
  aspect-ratio: 1.28;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  --curve: 0deg;
  --bend: 0deg;
  --skew: 0deg;
  --shine: 0.4;
  --shine-soft: 0.3;
  --shine-glass: 0.24;
  --origin: center;
}

.card-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.018)),
    rgba(14, 20, 32, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 24px rgba(0, 0, 0, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px) saturate(1.35);
  transform:
    perspective(300px)
    rotateY(var(--curve))
    rotateX(var(--bend))
    skewY(var(--skew));
  transform-origin: var(--origin);
}

.card-surface {
  clip-path: polygon(5% 0%, 100% 2%, 95% 100%, 0% 98%);
}

.card-surface::before,
.card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-surface::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 9%, transparent 91%, rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(124, 207, 255, 0.28), transparent 30%, rgba(67, 108, 255, 0.2));
  mix-blend-mode: screen;
  opacity: var(--shine-soft);
}

.card-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    radial-gradient(circle at 50% 0%, rgba(124, 207, 255, 0.3), transparent 46%);
  opacity: var(--shine-glass);
}

.project-card:nth-child(4n + 1) .card-image {
  background:
    radial-gradient(circle at 32% 38%, rgba(255, 255, 255, 0.78), transparent 9%),
    radial-gradient(circle at 58% 52%, rgba(124, 207, 255, 0.82), transparent 19%),
    radial-gradient(circle at 72% 28%, rgba(155, 103, 255, 0.72), transparent 16%),
    linear-gradient(135deg, rgba(51, 74, 255, 0.76), rgba(7, 12, 20, 0.92));
}

.project-card:nth-child(4n + 2) .card-image {
  background:
    radial-gradient(circle at 45% 48%, rgba(245, 185, 133, 0.86), transparent 20%),
    conic-gradient(from 40deg, rgba(124, 207, 255, 0.62), rgba(155, 103, 255, 0.7), rgba(245, 185, 133, 0.78), rgba(67, 108, 255, 0.72));
}

.project-card:nth-child(4n + 3) .card-image {
  background:
    radial-gradient(circle at 55% 42%, rgba(255, 255, 255, 0.74), transparent 12%),
    radial-gradient(circle at 48% 50%, rgba(124, 207, 255, 0.74), transparent 28%),
    radial-gradient(circle at 76% 74%, rgba(67, 108, 255, 0.72), transparent 18%),
    #0d111c;
}

.project-card:nth-child(4n) .card-image {
  background:
    radial-gradient(circle at 72% 32%, rgba(245, 185, 133, 0.74), transparent 18%),
    radial-gradient(circle at 32% 60%, rgba(124, 207, 255, 0.62), transparent 24%),
    linear-gradient(135deg, rgba(246, 217, 137, 0.82), rgba(54, 38, 92, 0.86));
}

.card-image {
  position: absolute;
  inset: 0;
  opacity: 0.88;
  filter: contrast(1.06) saturate(1.08);
  transform: scale(1.02);
}

.card-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 18px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.26), transparent 23%, transparent 74%, rgba(255, 255, 255, 0.14));
  mix-blend-mode: screen;
  opacity: var(--shine-glass);
}

.card-inner {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.card-inner em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-inner strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(11px, 0.96vw, 17px);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.project-card.is-active {
  filter: saturate(1.25);
}

.project-card.is-active .card-surface {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 46px rgba(84, 144, 255, 0.5),
    0 28px 80px rgba(0, 0, 0, 0.5);
}

.project-card.is-distant .card-inner {
  opacity: 0.34;
}

.project-card:hover {
  border-color: rgba(244, 244, 239, 0.56);
}

.project-pill {
  position: absolute;
  z-index: 70;
  left: 50%;
  bottom: var(--pill-bottom, 34px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill-radius, 40px);
  background: rgba(244, 244, 239, 0.94);
  color: #07090b;
  transform: translateX(-50%) scale(var(--pill-scale, 1));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.project-pill {
  cursor: default;
}

.project-pill span {
  width: var(--pill-icon-size, 22px);
  height: var(--pill-icon-size, 22px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 28%, #fff, transparent 18%),
    linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
}

.project-pill strong {
  display: block;
  font-size: var(--pill-font-size, 13px);
  line-height: 1.08;
}

.project-pill strong small {
  display: block;
  max-width: 360px;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(7, 9, 11, 0.48);
  font-family: var(--font-en);
  font-size: clamp(8px, 0.46em, 11px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-panel {
  position: fixed;
  z-index: 110;
  right: auto;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 207, 255, 0.62) rgba(255, 255, 255, 0.06);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(7, 10, 14, 0.72);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(22px) saturate(1.25);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.control-panel::-webkit-scrollbar {
  width: 7px;
}

.control-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 207, 255, 0.62);
}

.control-panel.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.panel-head,
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head strong {
  font-size: 15px;
}

.panel-head span {
  margin-left: 6px;
  color: rgba(124, 207, 255, 0.78);
  font-size: 11px;
}

.control-section-title {
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 239, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.panel-head + .control-section-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.panel-head button,
.panel-actions button {
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
}

.project-admin {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-admin-head,
.project-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-admin-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-admin-head button,
.project-item button {
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.project-admin-head button {
  padding: 7px 12px;
  border-radius: 999px;
}

.project-list {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.project-item {
  min-width: 0;
}

.project-item .project-select {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  overflow: hidden;
  border-radius: 6px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item.is-active .project-select {
  color: #071014;
  background: var(--cyan);
}

.project-item .project-move,
.project-item .project-delete {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.project-fields input[type="text"],
.project-fields input[type="file"],
.project-fields textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.project-fields textarea {
  resize: vertical;
}

.control-panel .visibility-field {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: flex-start;
}

.project-actions {
  flex-wrap: wrap;
}

.project-actions button {
  flex: 1 1 30%;
}

.admin-status {
  min-height: 16px;
  margin: 10px 0 0;
  color: rgba(124, 207, 255, 0.9);
  font-size: 11px;
}

.panel-head button {
  width: 32px;
  font-size: 20px;
}

.control-panel label {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(244, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.control-panel label[data-value]::after {
  content: attr(data-value);
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(124, 207, 255, 0.9);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.control-panel input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.panel-actions {
  margin-top: 8px;
}

.panel-actions button {
  flex: 1;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.project-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 9, 0.76);
  backdrop-filter: blur(8px) saturate(0.72);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(var(--project-modal-width, 1080px), calc(100vw - 120px));
  overflow: hidden;
  border: 1px solid rgba(235, 242, 255, 0.42);
  border-radius: 34px;
  background: #090c10;
  color: #f4f5f3;
  opacity: 0;
  clip-path: inset(38% round 34px);
  filter: blur(12px) brightness(1.45);
  transform: translate(-50%, -50%) scale(0.58);
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1), clip-path 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms ease, opacity 180ms ease;
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.64);
}

.project-modal.is-open .modal-card {
  opacity: 1;
  clip-path: inset(0 round 34px);
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 11, 0.7);
  color: #f4f5f3;
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 25px;
}

.modal-visual {
  position: relative;
  aspect-ratio: 2.08 / 1;
  overflow: hidden;
  background: #0c1118;
}

.project-modal.has-video-only .modal-visual {
  aspect-ratio: 16 / 9;
}

.project-modal.has-video-only .modal-gallery-scroll {
  overflow: hidden;
}

.modal-gallery-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.modal-gallery {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 12px;
  columns: var(--project-modal-columns, 2);
  column-gap: var(--project-modal-image-gap, 12px);
}

.modal-gallery:empty {
  display: none;
}

.modal-gallery.is-single {
  columns: 1;
  padding: 0;
}

.modal-gallery-item {
  position: relative;
  margin: 0 0 var(--project-modal-image-gap, 12px);
  break-inside: avoid;
}

.modal-gallery img {
  width: 100%;
  display: block;
  border-radius: var(--project-modal-image-radius, 14px);
  opacity: 0;
  animation: masonry-reveal 560ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 260ms ease, filter 260ms ease;
}

.modal-gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--project-modal-image-radius, 14px);
  background: #000;
  object-fit: contain;
}

.modal-video-item {
  column-span: all;
  margin-bottom: var(--project-modal-image-gap, 12px);
}

.project-modal.has-video-only .modal-video-item,
.project-modal.has-video-only .modal-video-item video {
  height: 100%;
  margin: 0;
}

.project-modal.has-video-only .modal-video-item {
  transform: scale(var(--ai-project-video-scale, 1));
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.modal-gallery-item:nth-child(2n) img {
  animation-delay: 70ms;
}

.modal-gallery img:hover {
  transform: scale(0.985);
  filter: brightness(1.08);
}

.modal-gallery.is-sortable .modal-gallery-item {
  cursor: grab;
}

.modal-gallery.is-sortable .modal-gallery-item:active {
  cursor: grabbing;
}

.modal-gallery-item.is-dragging {
  opacity: 0.35;
}

.modal-image-replace,
.modal-image-delete {
  display: none;
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 12, 0.76);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-image-replace {
  right: 68px;
}

.modal-image-delete {
  right: 12px;
  color: #ffd7d7;
}

.modal-gallery.is-sortable .modal-gallery-item:hover .modal-image-replace,
.modal-gallery.is-sortable .modal-gallery-item:hover .modal-image-delete {
  display: block;
}

.modal-gallery.is-single .modal-gallery-item {
  min-height: 100%;
  margin: 0;
}

.modal-gallery.is-single img {
  min-height: 100%;
  border-radius: 0;
  object-fit: cover;
}

@keyframes masonry-reveal {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.modal-gradual-blur {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(92px, 18%, 178px);
  pointer-events: none;
  opacity: 0;
  isolation: isolate;
  transform: translateY(10px);
  transition: opacity 360ms ease-out, transform 360ms ease-out;
  will-change: opacity, transform;
}

.modal-gallery-scroll.is-scrollable + .modal-gradual-blur {
  opacity: 1;
  transform: translateY(0);
}

.modal-gradual-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 8, 12, 0.18) 52%, rgba(5, 8, 12, 0.78) 100%);
}

.modal-gradual-blur i {
  position: absolute;
  inset: 0;
  opacity: 0.86;
  transition: backdrop-filter 300ms ease-out;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
}

.modal-gradual-blur i:nth-child(1) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.modal-gradual-blur i:nth-child(2) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
  mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
  -webkit-backdrop-filter: blur(1.7px);
  backdrop-filter: blur(1.7px);
}

.modal-gradual-blur i:nth-child(3) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
  mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
  -webkit-backdrop-filter: blur(2.7px);
  backdrop-filter: blur(2.7px);
}

.modal-gradual-blur i:nth-child(4) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
  mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-gradual-blur i:nth-child(5) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
  mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-gradual-blur i:nth-child(6) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.modal-gradual-blur i:nth-child(7) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 72%, #000 84%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 72%, #000 84%, #000 100%);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.modal-gradual-blur i:nth-child(8) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 80%, #000 92%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 80%, #000 92%, #000 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.modal-visual-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 38%, rgba(144, 194, 255, 0.22), transparent 25%),
    linear-gradient(135deg, #070a0f 12%, #17202c 55%, #080b10);
}

.modal-info {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(220px, 0.9fr);
  gap: 18px 48px;
  padding: 26px 34px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 14, 0.98);
}

.modal-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.modal-card h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, var(--project-modal-title-size, 50px));
  line-height: 1;
  letter-spacing: 0;
}

.modal-card p {
  margin: 0;
}

.modal-translation {
  display: block;
  margin-top: 7px;
  color: rgba(238, 242, 247, 0.38);
  font-family: var(--font-en);
  font-size: clamp(9px, 0.42em, 12px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

#modal-title .modal-translation {
  font-size: clamp(10px, 0.28em, 14px);
  letter-spacing: 0.1em;
}

.modal-heading p,
.modal-description,
.modal-meta {
  color: rgba(238, 242, 247, 0.6);
  font-size: var(--project-modal-text-size, 12px);
  line-height: 1.65;
}

.modal-description {
  align-self: end;
}

.modal-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .modal-card {
    width: calc(100vw - 28px);
    border-radius: 24px;
  }

  .modal-info {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .modal-meta {
    grid-column: auto;
    grid-template-columns: 1fr auto;
  }

}

/* WORK image reveal */
.reveal-page {
  min-height: 100vh;
  overflow: auto;
  background: #000;
  color: #fff;
}

.reveal-back {
  position: fixed;
  z-index: 10;
  top: 28px;
  left: 32px;
  color: rgba(255, 255, 255, 0.72);
  font: 700 12px/1 Arial, sans-serif;
  text-decoration: none;
  transition: color 180ms ease;
}

.reveal-back:hover {
  color: #fff;
}

.reveal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 32px;
}

.reveal-frame {
  width: min(1120px, 100%, calc((100vh - 190px) * 16 / 9));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.image-reveal {
  --reveal-x: 50%;
  --reveal-y: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #080808;
  cursor: none;
}

.image-reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reveal-base {
  filter: grayscale(1) brightness(0.42) contrast(1.08);
}

.reveal-color {
  clip-path: circle(0 at var(--reveal-x) var(--reveal-y));
  transition: clip-path 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-reveal.is-active .reveal-color {
  clip-path: circle(22% at var(--reveal-x) var(--reveal-y));
  transition-duration: 90ms;
}

.reveal-cursor {
  position: absolute;
  left: var(--reveal-x);
  top: var(--reveal-y);
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), left 180ms cubic-bezier(0.22, 1, 0.36, 1), top 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-reveal.is-active .reveal-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reveal-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 2px;
}

.reveal-meta p,
.reveal-meta h1 {
  margin: 0;
}

.reveal-meta p,
.reveal-actions {
  color: rgba(255, 255, 255, 0.52);
  font: 600 11px/1.4 Arial, sans-serif;
}

.reveal-meta h1 {
  margin-top: 7px;
  font: 600 clamp(24px, 3vw, 42px)/1.05 Arial, sans-serif;
  letter-spacing: 0;
}

.reveal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reveal-actions span {
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.reveal-actions button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.reveal-actions button:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 680px) {
  .reveal-shell {
    padding: 80px 14px 28px;
  }

  .reveal-frame {
    padding: 10px;
    border-radius: 20px;
  }

  .image-reveal {
    border-radius: 13px;
  }

  .reveal-meta {
    align-items: center;
    padding: 16px 4px 4px;
  }

  .reveal-actions span {
    display: none;
  }
}

/* WORK mouse-trail index */
.work-trail-page {
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  background: #10120f;
  color: #f4f4ef;
}

.work-trail-back {
  position: fixed;
  z-index: 30;
  top: 28px;
  left: 32px;
  color: rgba(255, 255, 255, 0.62);
  font: 700 12px/1 Arial, sans-serif;
  transition: color 180ms ease;
}

.work-trail-back:hover {
  color: #fff;
}

.work-trail-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  isolation: isolate;
}

.work-trail-list {
  position: relative;
  z-index: 10;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  scrollbar-width: none;
}

.work-trail-list::-webkit-scrollbar {
  display: none;
}

.work-trail-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  color: rgba(255, 255, 255, 0.76);
  transition: color 180ms ease, padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-trail-row:last-child {
  border-bottom: 0;
}

.work-trail-row span {
  overflow: hidden;
  font: 800 clamp(22px, 2.6vw, 34px)/1 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-trail-row small {
  color: rgba(255, 255, 255, 0.38);
  font: 600 10px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.work-trail-row b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #10120f;
  font: 700 14px/1 Arial, sans-serif;
  transform: rotate(0deg);
  transition: transform 240ms ease, background 180ms ease;
}

.work-trail-row:hover,
.work-trail-row.is-active {
  padding-left: 10px;
  color: #fff;
}

.work-trail-row:hover b,
.work-trail-row.is-active b {
  background: #fff;
  transform: rotate(45deg);
}

.work-trail-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.work-trail-image {
  position: absolute;
  width: clamp(120px, 12vw, 190px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--angle)) scale(0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
  animation: work-trail-pop 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes work-trail-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) scale(0.72);
  }
  16%,
  66% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--angle)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -54%) rotate(calc(var(--angle) * 0.4)) scale(0.9);
  }
}

@media (max-width: 680px) {
  .work-trail-stage {
    padding: 72px 14px 30px;
  }

  .work-trail-list {
    width: 100%;
    padding: 6px 14px;
  }

  .work-trail-row {
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) 26px;
  }

  .work-trail-row small {
    display: none;
  }

  .work-trail-image {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-trail-image {
    display: none;
  }
}

/* WORK three-column index */
.work-columns-page {
  position: relative;
  min-width: 320px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  margin: 0;
  background:
    radial-gradient(circle at 48% 42%, rgba(82, 99, 170, 0.28), transparent 34%),
    radial-gradient(circle at 68% 62%, rgba(79, 224, 214, 0.11), transparent 30%),
    radial-gradient(circle at 22% 72%, rgba(176, 99, 211, 0.13), transparent 28%),
    linear-gradient(180deg, #080b12 0%, #030606 100%);
  color: #f4f4ef;
}

.subpage-galaxy {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.96;
}

.subpage-chrome {
  z-index: 130;
}

.subpage-admin {
  display: inline-flex;
  align-items: center;
}

.work-columns-back {
  position: fixed;
  z-index: 30;
  top: 28px;
  left: 32px;
  color: rgba(255, 255, 255, 0.62);
  font: 700 12px/1 Arial, sans-serif;
}

.work-columns-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 82px clamp(22px, 5vw, 80px);
}

.work-about {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px clamp(28px, 8vw, 150px);
}

.work-about-inner {
  width: min(var(--about-content-width, 1420px), 100%);
  display: grid;
  grid-template-columns: minmax(220px, var(--about-left-width, 400px)) minmax(0, 1fr);
  align-items: center;
  gap: var(--about-column-gap, 140px);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-sidebar-item {
  --effect: 0;
  position: relative;
  display: grid;
  grid-template-columns: 70px 28px auto;
  align-items: center;
  min-height: 34px;
  color: color-mix(in srgb, #bc8cff calc(var(--effect) * 100%), rgba(244, 244, 239, 0.58));
  text-decoration: none;
  transform: translateX(calc(var(--effect) * var(--contact-shift, 26px)));
  transition: transform 100ms ease, color 100ms ease;
}

.contact-sidebar-item i {
  width: calc(48px + var(--effect) * 22px);
  height: 1px;
  background: currentColor;
  transition: width 100ms ease;
}

.contact-sidebar-item b {
  font: 500 11px/1 ui-monospace, monospace;
  opacity: calc(0.5 + var(--effect) * 0.5);
}

.contact-sidebar-item em {
  font: 600 var(--contact-font-size, 21px)/1.2 Inter, "Microsoft YaHei", sans-serif;
  font-style: normal;
  letter-spacing: 0.04em;
}

.contact-sidebar-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 13px);
  width: 24px;
  height: 1px;
  background: rgba(244, 244, 239, 0.2);
}

.work-about-eyebrow {
  margin: 0 0 30px;
  color: rgba(244, 244, 239, 0.5);
  font-size: var(--about-eyebrow-size, 13px);
  letter-spacing: 0;
}

.work-about-title,
.work-about-body {
  margin: 0;
  letter-spacing: 0;
}

.work-about-title {
  max-width: 1050px;
  font-size: var(--about-title-size, 92px);
  line-height: 1.08;
}

.work-about-body {
  max-width: 800px;
  margin-top: 54px;
  color: rgba(244, 244, 239, 0.66);
  font-size: var(--about-body-size, 28px);
  line-height: 1.55;
}

.work-translation {
  display: block;
  max-width: 900px;
  margin-top: 14px;
  color: rgba(214, 222, 242, 0.42);
  font-family: var(--font-en);
  font-size: clamp(11px, 0.28em, 16px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0.075em;
  text-transform: none;
  white-space: pre-line;
}

.work-about-copy .work-translation {
  margin-top: calc(var(--about-en-gap, 22px) * 0.636);
  line-height: var(--about-en-line-height, 1.65);
}

.work-about-eyebrow .work-translation {
  margin-top: calc(var(--about-en-gap, 22px) * 0.318);
  font-size: var(--about-eyebrow-en-size, 12px);
  letter-spacing: 0.14em;
}

.work-about-title .work-translation {
  font-size: var(--about-title-en-size, 13px);
}

.work-about-body .work-translation {
  margin-top: var(--about-en-gap, 22px);
  font-size: var(--about-body-en-size, 12px);
}

.work-about-title span,
.work-about-body span {
  --proximity: 0;
  position: relative;
  display: inline-block;
  font-weight: 400;
  font-variation-settings: "wght" 400, "opsz" 9;
  transform: scale(calc(1 + var(--proximity) * var(--about-proximity-scale, 0.08)));
  transform-origin: center 65%;
  z-index: calc(var(--proximity) * 10);
  text-rendering: geometricPrecision;
  will-change: font-variation-settings, transform;
}

.work-columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--work-column-gap, 28px);
  width: min(var(--work-columns-width, 1320px), 100%);
  min-height: min(620px, calc(100vh - 170px));
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 90px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.work-column {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 18px clamp(14px, 1.8vw, 28px) 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.work-column:last-child,
.work-column:nth-child(3) {
  border-right: 0;
}

.work-column h1 {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.52);
  font: 800 var(--work-heading-size, 13px)/1 "Smiley Sans", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.work-column h1 strong,
.work-column h1 small {
  display: block;
  font: inherit;
}

.work-column h1 small {
  margin-top: 7px;
  color: rgba(214, 222, 242, 0.34);
  font-family: var(--font-en);
  font-size: var(--work-heading-en-size, 7px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.1em;
}

.work-column-list {
  max-height: min(62vh, 610px);
  overflow-y: auto;
  scrollbar-width: none;
}

.work-column-list::-webkit-scrollbar {
  display: none;
}

.work-column-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  min-height: var(--work-row-height, 82px);
  color: rgba(235, 238, 246, 0.82);
  transition: color 180ms ease, opacity 180ms ease, padding 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-columns.has-preview .work-column-row {
  opacity: 0.26;
}

.work-columns.has-preview .work-column-row.is-active {
  opacity: 1;
}

.work-column-row::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.82);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-column-row:hover::after,
.work-column-row.is-active::after {
  transform: scaleX(1);
}

.work-column-row span {
  position: relative;
  z-index: 3;
  overflow: hidden;
  font: 900 clamp(18px, var(--work-title-size, 30px), 48px)/0.98 "Smiley Sans", Arial, "Microsoft YaHei", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-column-row span strong,
.work-column-row span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-column-row span strong { font: inherit; }

.work-column-row span small {
  margin-top: 5px;
  color: rgba(214, 222, 242, 0.38);
  font-family: var(--font-en);
  font-size: var(--work-title-en-size, 12px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.work-column-row b {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: 800 24px/1 "Smiley Sans", Arial, sans-serif;
  transition: transform 220ms ease, background 180ms ease, color 180ms ease;
}

.work-column-row:hover,
.work-column-row.is-active {
  padding-left: 8px;
  color: #fff;
}

.work-column-row:hover b,
.work-column-row.is-active b {
  background: #fff;
  color: #10120f;
  transform: rotate(45deg) scale(1.02);
}

.work-project-preview {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(var(--work-preview-width, 360px), 42vw);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-50% + var(--work-preview-offset-x, 0px)), calc(-50% + var(--work-preview-offset-y, 0px))) scale(0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.66);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.work-project-preview.is-visible {
  opacity: 1;
  transform: translate(calc(-50% + var(--work-preview-offset-x, 0px)), calc(-50% + var(--work-preview-offset-y, 0px))) scale(1);
}

.work-tune-panel {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  width: 220px;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 6, 6, 0.82);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  display: none;
}

.work-tune-panel.is-open {
  display: block;
}

.work-tune-panel strong {
  display: block;
  margin-bottom: 10px;
  font: 800 13px/1 Arial, "Microsoft YaHei", sans-serif;
}

.work-tune-panel label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font: 700 11px/1 Arial, "Microsoft YaHei", sans-serif;
}

.work-tune-panel input,
.work-tune-panel textarea,
.work-tune-panel select {
  width: 100%;
  accent-color: #fff;
}

.work-tune-panel textarea {
  min-height: 64px;
  resize: vertical;
}

.work-tune-panel button {
  width: 100%;
  height: 30px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #050606;
  font: 800 12px/1 Arial, "Microsoft YaHei", sans-serif;
}

.contact-tune-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-tune-section input:not([type="range"]),
.contact-tune-section textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.contact-tune-section textarea {
  min-height: 54px;
  resize: vertical;
}

#control-panel .contact-tune-section > button {
  width: 100%;
  min-height: 32px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

@media (max-width: 820px) {
  .work-about-inner {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .contact-sidebar {
    order: 2;
  }

  .work-columns-stage {
    display: block;
    padding: 76px 14px 28px;
  }

  .work-columns {
    grid-template-columns: 1fr;
  }

  .work-column {
    padding: 20px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .work-column:last-child {
    border-bottom: 0;
  }

  .work-column-list {
    max-height: none;
  }

  .work-project-preview {
    display: none;
  }
}

.prototype-shell.is-list .project-card {
  width: min(680px, calc(100vw - 34px));
  aspect-ratio: 5.8;
  border-radius: 22px;
}

@media (max-width: 760px) {
  .chrome > .mark {
    top: 18px;
    left: 16px;
    width: 38px;
    height: 38px;
  }

  .chrome {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .work-link {
    top: 18px;
    right: 16px;
    min-height: 44px;
  }

  .work-flame {
    width: 28px;
    height: 28px;
  }

  .mobius-canvas {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobius-canvas.is-touching {
    cursor: grabbing;
  }

  .contact-link {
    right: 14px;
    bottom: 16px;
  }

  .contact-hand {
    width: 34px;
    flex-basis: 34px;
    font-size: 31px;
  }

  .music-control {
    left: 14px;
    bottom: 16px;
    grid-template-columns: auto auto minmax(64px, 82px) auto 22px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .music-volume-input {
    height: 32px;
    touch-action: none;
  }

  .music-volume-input::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -5.5px;
  }

  .public-site .music-control {
    bottom: 16px;
  }

  .ambient-glow {
    top: 50%;
    width: 92vw;
    height: 32vh;
    opacity: 0.68;
  }

  .mobius-shadow {
    top: 56%;
    width: 92vw;
    opacity: 0.62;
  }

  .vignette {
    background:
      radial-gradient(circle at center, transparent 24%, rgba(5, 8, 10, 0.28) 68%, rgba(5, 8, 10, 0.92)),
      linear-gradient(180deg, rgba(5, 8, 10, 0.42), transparent 18%, transparent 72%, rgba(5, 8, 10, 0.76));
  }

  .project-card {
    width: clamp(118px, 34vw, 170px);
  }

  .project-pill {
    bottom: 78px;
    width: min(76vw, 320px);
    min-height: 40px;
    padding: 7px 11px;
  }

  .project-pill strong {
    min-width: 0;
    overflow: hidden;
    font-size: min(var(--pill-font-size, 13px), 12px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-pill strong small {
    max-width: 100%;
  }

  .admin-toggle {
    display: none;
  }
}
