:root {
  --canvas: #e8e8e5;
  --frame: #fff;
  --ink: #1c160e;
  --soft: #6a645b;
  --line: #d6d5d0;
  --dot: #cfcfca;
  --or: #e15b0f;
  --onor: #fff;
  --sel: var(--or);
  --liq: cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  background: var(--canvas);
  background-image: radial-gradient(#cfcfca 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font:
    400 17px/1.6 "Lexend",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sel);
  outline-offset: 3px;
}
.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--frame);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  font-size: 13px;
}
.bar b {
  font-weight: 600;
}
.avt {
  color: var(--soft);
}
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2da44e;
}
.layers {
  position: fixed;
  z-index: 10;
  top: 44px;
  bottom: 0;
  left: 0;
  width: 210px;
  background: var(--frame);
  border-right: 1px solid var(--line);
  padding: 16px 8px;
  font-size: 13px;
}
.layers h2 {
  margin: 0 8px 10px;
  font-size: 13px;
  font-weight: 600;
}
.layers a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}
.layers a::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--soft);
  border-radius: 2px;
  flex: none;
}
.layers a.k {
  padding-left: 26px;
  color: var(--soft);
}
.layers a.k::before {
  border-radius: 50%;
}
.layers a.on {
  background: #e6eeff;
}
.layers a.on::before {
  border-color: var(--sel);
}
main {
  margin-left: 210px;
  padding: 44px 0 0;
}
.sec {
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 56px);
}
.lab {
  font-size: 12px;
  color: var(--soft);
  margin: 0 0 8px;
}
.frame {
  background: var(--frame);
  border: 1px solid var(--line);
  max-width: 1100px;
}
#hero {
  min-height: calc(100svh - 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#hero .frame {
  padding: clamp(24px, 5vw, 64px);
}
.role {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 15px;
}
.sel {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  outline: 1.5px solid var(--sel);
  margin: 0 0 6px;
}
.sel i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--frame);
  border: 1.5px solid var(--sel);
}
.sel i:nth-child(1) {
  left: -5px;
  top: -5px;
}
.sel i:nth-child(2) {
  right: -5px;
  top: -5px;
}
.sel i:nth-child(3) {
  left: -5px;
  bottom: -5px;
}
.sel i:nth-child(4) {
  right: -5px;
  bottom: -5px;
}
.sel .tag {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  background: var(--sel);
  color: #fff;
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
h1 {
  font:
    600 clamp(50px, 11vw, 150px) / 0.95 "Lexend",
    system-ui,
    sans-serif;
  text-transform: uppercase;
  margin: 0;
}
.chip {
  position: absolute;
  right: 6%;
  top: 58%;
  display: flex;
  gap: 4px;
  align-items: flex-start;
  animation: glide 1.6s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chip span {
  background: var(--or);
  color: #fff;
  font:
    500 12px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 9px;
  border-radius: 0 9px 9px 9px;
  margin-top: 14px;
}
@keyframes glide {
  from {
    transform: translate(-60vw, -30vh);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.lede {
  max-width: 34em;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  margin: 44px 0 24px;
}
.now {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 15px;
  max-width: 40em;
}
.now li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.now b {
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font:
    500 15px "Lexend",
    system-ui,
    sans-serif;
  text-decoration: none;
  margin: 0 8px 8px 0;
}
.btn.p {
  background: var(--or);
  border-color: var(--or);
}
h2.t {
  font:
    600 clamp(36px, 6vw, 72px) / 1 "Lexend",
    system-ui,
    sans-serif;
  text-transform: uppercase;
  margin: 0 0 24px;
}
#about .frame {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(20px, 4vw, 48px);
  align-items: end;
}
#about img {
  width: 100%;
  display: block;
  background: #efefec;
}
#about p {
  margin: 0 0 1em;
  max-width: 36em;
}
.work {
  max-width: 1100px;
}
details {
  background: var(--frame);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(16px, 3vw, 28px);
}
summary::-webkit-details-marker {
  display: none;
}
summary h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    600 clamp(30px, 5vw, 56px) / 1 "Lexend",
    system-ui,
    sans-serif;
  text-transform: uppercase;
  margin: 0;
}
summary small {
  font-size: 14px;
  color: var(--soft);
  text-align: right;
}
summary::after {
  content: "+";
  font-size: 26px;
  line-height: 1;
  text-align: center;
  transition: transform 0.25s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
summary:hover h3 {
  color: var(--or);
}
.case {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 0 clamp(16px, 3vw, 28px) clamp(18px, 3vw, 28px);
}
.case img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}
.case p {
  margin: 0 0 0.9em;
  font-size: 16px;
}
.case b {
  display: block;
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
}
#contact .frame {
  padding: clamp(24px, 5vw, 64px);
}
#contact h2 {
  color: var(--ink);
}
#contact p {
  max-width: 30em;
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 20px;
}
.mail {
  display: inline-block;
  font:
    600 clamp(26px, 5vw, 54px) / 1.1 "Lexend",
    system-ui,
    sans-serif;
  word-break: break-all;
  margin-bottom: 16px;
}
.links a {
  margin-right: 18px;
}
footer {
  max-width: calc(var(--w, 1100px) + var(--pad, 56px) * 2);
  margin-inline: auto;
  padding: 8px var(--pad, 56px) calc(128px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: var(--soft);
}
@media (max-width: 820px) {
  .layers {
    display: none;
  }
  main {
    margin-left: 0;
  }
  #about .frame,
  .case {
    grid-template-columns: 1fr;
  }
  #about img {
    max-width: 260px;
  }
  summary {
    grid-template-columns: 1fr 28px;
  }
  summary small {
    display: none;
  }
  .chip {
    right: 4%;
    top: 62%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@property --or {
  syntax: "<color>";
  inherits: true;
  initial-value: #e15b0f;
}
:root {
  transition: --or 1s var(--liq);
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --canvas: #141414;
    --frame: #1e1e1e;
    --ink: #f2f0ea;
    --soft: #9d988e;
    --line: #333;
    --dot: #2b2b2b;
  }
}
:root[data-theme="midnight"] {
  --canvas: #141414;
  --frame: #1e1e1e;
  --ink: #f2f0ea;
  --soft: #9d988e;
  --line: #333;
  --dot: #2b2b2b;
}
body,
.frame,
.bar,
.layers,
details {
  transition:
    background-color 0.8s var(--liq),
    border-color 0.8s var(--liq),
    color 0.8s var(--liq);
}
body {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
}
.layers a.on {
  background: color-mix(in srgb, var(--or) 16%, var(--frame));
}
.layers a.on::before {
  border-color: var(--or);
}
.sel .tag,
.chip span,
.btn.p {
  color: var(--onor);
}

#about .frame {
  align-items: center;
}
#about img {
  aspect-ratio: 1;
  object-fit: cover;
}
.hi {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hi b {
  font-weight: 600;
}
.hi button,
.prof {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 4px;
  display: grid;
  place-items: center;
}
.r {
  display: flex;
  align-items: center;
}
.avl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  white-space: nowrap;
}
.dot {
  position: relative;
  flex: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  to {
    transform: scale(3);
    opacity: 0;
  }
}
.avh {
  display: none;
  align-items: center;
  gap: 8px;
}
.prof {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--or);
  color: var(--onor);
  font:
    600 13px "Lexend",
    system-ui,
    sans-serif;
  padding: 0;
  transition: background-color 0.8s var(--liq);
}
.pop {
  position: fixed;
  z-index: 30;
  top: 52px;
  right: 12px;
  width: min(320px, calc(100vw - 24px));
  background: var(--frame);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.94);
  transform-origin: top right;
  transition:
    opacity 0.5s var(--liq),
    transform 0.8s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0s 0.8s;
}
.pop.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.pop h2 {
  font-size: 14px;
  margin: 0 0 14px;
}
.pop label,
.pop .g {
  display: block;
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 13px;
}
.row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.pop input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.mini {
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  padding: 0 14px;
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.sw {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sw button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--frame);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.5s var(--liq);
}
.sw button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink);
}
.sw input {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.seg {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.seg button {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.6s var(--liq);
}
.seg button[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: var(--onor);
}
.pop .tg {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  margin: 0;
}
.me {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  display: none;
  transition: opacity 0.4s;
}
html.cc .me {
  display: flex;
}
.me svg {
  fill: var(--or);
}
.me span {
  margin: 14px 0 0 -2px;
  background: var(--or);
  color: var(--onor);
  font:
    500 12px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 9px;
  border-radius: 0 9px 9px 9px;
  white-space: nowrap;
}
html.cc,
html.cc * {
  cursor: none !important;
}
.cur {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  top: -8vh;
  height: 116vh;
  background: #141414 linear-gradient(#ffffff0d 1px, transparent 1px) 0 0/64px
    64px;
  border-radius: 50%/8vh;
  display: grid;
  place-items: center;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  color: #fff;
  pointer-events: none;
}

.ltop {
  position: absolute;
  top: calc(8vh + 16px);
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #aaa;
}
.ltop b {
  color: #fff;
  font-weight: 500;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--or);
  object-fit: cover;
}
.pill span {
  border: 1.5px solid #ffffff55;
  border-radius: 999px;
  padding: 9px 18px;
  font:
    500 15px "Lexend",
    system-ui,
    sans-serif;
  color: #ddd;
  min-width: 9em;
}
html.js .e {
  animation: rise 1.4s calc(var(--i, 0) * 0.13s + 0.1s) var(--liq) both;
  animation-play-state: paused;
}
html.js .chip {
  animation-play-state: paused;
}
html.go .e,
html.go .chip {
  animation-play-state: running;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
}
#hero {
  position: relative;
  overflow: hidden;
}
#hero .frame {
  z-index: 1;
}
.blob {
  position: absolute;
  right: -6vw;
  top: 14%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  background: var(--or);
  opacity: 0.17;
  filter: blur(36px);
  border-radius: 42% 58% 63% 37%/45% 38% 62% 55%;
  animation: morph 16s ease-in-out infinite alternate;
  pointer-events: none;
  transition: background-color 1s var(--liq);
}
@keyframes morph {
  to {
    border-radius: 63% 37% 40% 60%/55% 62% 38% 45%;
    transform: translate(-4vw, 6vh) rotate(24deg);
  }
}
details::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.8s var(--liq),
    content-visibility 0.8s allow-discrete;
}
details[open]::details-content {
  height: auto;
}
@media (max-width: 560px) {
  .avt {
    display: none;
  }
  .avh {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .e,
  .blob,
  .dot::after {
    animation: none !important;
  }
  .cur {
    transition: none;
  }
}

.box u,
.box i {
  position: absolute;
  display: block;
}
.box u {
  background: var(--or);
  text-decoration: none;
}
.box u:nth-of-type(1) {
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  transform-origin: left;
  animation: sx 0.3s var(--b, 0s) var(--liq) both;
}
.box u:nth-of-type(2) {
  top: 0;
  bottom: 0;
  right: 0;
  width: 1.5px;
  transform-origin: top;
  animation: sy 0.3s calc(var(--b, 0s) + 0.22s) var(--liq) both;
}
.box u:nth-of-type(3) {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  transform-origin: right;
  animation: sx 0.3s calc(var(--b, 0s) + 0.44s) var(--liq) both;
}
.box u:nth-of-type(4) {
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.5px;
  transform-origin: bottom;
  animation: sy 0.3s calc(var(--b, 0s) + 0.66s) var(--liq) both;
}
@keyframes sx {
  from {
    transform: scaleX(0);
  }
}
@keyframes sy {
  from {
    transform: scaleY(0);
  }
}
.box i {
  width: 9px;
  height: 9px;
  background: var(--frame);
  border: 1.5px solid var(--or);
  animation: hp 0.35s var(--b, 0s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.box i:nth-of-type(1) {
  left: -5px;
  top: -5px;
}
.box i:nth-of-type(2) {
  right: -5px;
  top: -5px;
  animation-delay: calc(var(--b, 0s) + 0.22s);
}
.box i:nth-of-type(3) {
  right: -5px;
  bottom: -5px;
  animation-delay: calc(var(--b, 0s) + 0.44s);
}
.box i:nth-of-type(4) {
  left: -5px;
  bottom: -5px;
  animation-delay: calc(var(--b, 0s) + 0.66s);
}
@keyframes hp {
  from {
    transform: scale(0);
  }
}
html.js .sel.box u,
html.js .sel.box i {
  animation-play-state: paused;
}
html.go .sel.box u,
html.go .sel.box i {
  animation-play-state: running;
}
.sel {
  outline: 0;
}
.lede {
  margin: 28px 0 12px;
}
.sub {
  max-width: 34em;
  color: var(--soft);
  margin: 0 0 24px;
}
.avh {
  margin: 0 0 20px;
}
h1 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-size: clamp(40px, 10.5vw, 112px);
}
h2.t {
  text-transform: none;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-size: clamp(28px, 4.4vw, 52px);
}
summary h3 {
  text-transform: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(24px, 3.6vw, 40px);
}
.mail {
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(22px, 4vw, 44px);
}
.prof i {
  font-style: normal;
}
.ld {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--canvas) radial-gradient(var(--dot) 1px, transparent 1px) 0
    0/22px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s var(--liq),
    visibility 0s 0.8s;
}
html.pl .ld {
  opacity: 1;
  visibility: visible;
  transition: none;
}
.lf {
  position: relative;
  width: min(56vw, 240px);
  height: min(34vw, 150px);
  transition:
    width 1.1s var(--liq),
    height 1.1s var(--liq);
}
.ld.big .lf {
  width: calc(100vw - 32px);
  height: calc(100svh - 32px);
}
.dim {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  background: var(--or);
  color: var(--onor);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  animation: fi 0.4s 0.8s backwards;
  transition: opacity 0.4s;
}
.ld.big .dim {
  opacity: 0;
}
@keyframes fi {
  from {
    opacity: 0;
  }
}
.cur {
  background: var(--or);
  color: var(--onor);
}
.cur .pill span {
  color: var(--onor);
  border-color: currentColor;
  min-width: 0;
}
.pill2 {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font:
    500 14px "Lexend",
    system-ui,
    sans-serif;
  background: none;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  margin: 0 8px 8px 0;
  transition: border-color 0.5s var(--liq);
}
.pill2:hover {
  border-color: var(--or);
}
.c p {
  color: var(--soft);
}
.mb {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.9s var(--liq);
}
.mb.open {
  grid-template-rows: 1fr;
}
.mi {
  overflow: hidden;
  min-height: 0;
}
.mi h3 {
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
  margin: 22px 0 6px;
}
.mi > h3:first-child {
  margin-top: 20px;
}
.mi p {
  font-size: 15px;
  color: var(--soft);
}

h1 {
  font-size: clamp(34px, 9.4vw, 100px);
  letter-spacing: -0.04em;
}
h2.t {
  font-size: clamp(26px, 3.9vw, 46px);
}
summary h3 {
  font-size: clamp(22px, 3.2vw, 36px);
}
.mail {
  font-size: clamp(17px, 3.4vw, 40px);
}
.er {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.er .mail {
  margin: 0;
}
.cp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color 0.5s var(--liq);
}
.cp:hover {
  border-color: var(--or);
}
.tip {
  font-size: 13px;
  color: var(--soft);
  opacity: 0;
  transition: opacity 0.5s var(--liq);
}
.tip.on {
  opacity: 1;
}
.mus {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
  display: grid;
  place-items: center;
}
.mus svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.mus.live path {
  animation: eq 0.9s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
.mus.live path:nth-child(2n) {
  animation-delay: 0.25s;
}
.mus.live path:nth-child(3n) {
  animation-delay: 0.5s;
}
@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
}
.mp {
  position: fixed;
  z-index: 25;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(372px, calc(100vw - 16px));
  background: var(--frame);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.5s var(--liq),
    transform 0.8s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0s 0.8s;
}
.mp.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.mh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 6px;
  font-size: 13px;
  color: var(--soft);
}
.mh button {
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.mp iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 200px;
  border: 0;
  border-radius: 10px;
  background: #000;
}
@media (prefers-reduced-motion: reduce) {
  .mus.live path {
    animation: none;
  }
}

:root {
  --fade: #b4b2ac;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fade: #4b4944;
  }
}
:root[data-theme="midnight"] {
  --fade: #4b4944;
}
.rt .w {
  transition: color 0.6s var(--liq);
}
main {
  margin-left: 0;
}
.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--frame);
  transition:
    background-color 0.8s var(--liq),
    color 0.8s var(--liq);
}
.dock a,
.dock .mus,
.dock .prof {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.dock a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--or);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.5s var(--liq),
    transform 0.7s var(--liq);
}
.dock a.on::before,
.dock a:hover::before {
  opacity: 1;
  transform: none;
}
.dock a.on,
.dock a:hover {
  color: var(--onor);
}
.dock svg {
  position: relative;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sep {
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.25;
  margin: 0 4px;
}
.dock .prof {
  width: 34px;
  height: 34px;
  margin-left: 2px;
  background: var(--or);
  color: var(--onor);
  font:
    600 13px "Lexend",
    system-ui,
    sans-serif;
}
.dock .mus.live {
  color: var(--or);
}
.pop {
  top: auto;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  right: auto;
  transform: translate(-50%, 10px) scale(0.94);
  transform-origin: bottom center;
}
.pop.open {
  transform: translate(-50%, 0);
}
.mp {
  top: calc(52px + env(safe-area-inset-top, 0px));
  bottom: auto;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
}
.mr {
  display: flex;
  gap: 14px;
}
.mh a {
  color: var(--soft);
}
.case img {
  aspect-ratio: 3/2;
  object-fit: cover;
}
.links {
  display: flex;
  gap: 10px;
}
.so {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.5s var(--liq);
}
.so:hover {
  border-color: var(--or);
}
.so svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 820px) {
  #about .frame {
    padding: 20px;
    gap: 20px;
  }
  #about img {
    max-width: none;
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}
:root[data-theme="paper"] {
  --canvas: #f1e6d6;
  --frame: #fbf4e9;
  --ink: #2b1b0e;
  --soft: #7a6652;
  --line: #dfd0ba;
  --dot: #e0d0b8;
  --fade: #cdbb9f;
}
:root[data-theme="blueprint"] {
  --canvas: #0e2a5c;
  --frame: #12326e;
  --ink: #eaf1ff;
  --soft: #9db4dd;
  --line: #2b4c8c;
  --dot: #1e4281;
  --fade: #4a6aa3;
}
:root[data-theme="mono"] {
  --canvas: #ededee;
  --frame: #fafafa;
  --ink: #111;
  --soft: #6b6b70;
  --line: #d4d4d8;
  --dot: #d0d0d4;
  --fade: #b5b5ba;
}
#contact .lab {
  font-size: 12px;
  max-width: none;
  margin: 0 0 8px;
}
#about .frame {
  align-items: start;
}
.rt a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.dock {
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px #0000002e;
  padding: 5px;
}
.dock a,
.dock .mus {
  border-radius: 10px;
}
.dock a::before {
  border-radius: 10px;
}
.dock a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink);
  color: var(--frame);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--liq);
}
@media (hover: hover) {
  .dock a:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.pop {
  z-index: 45;
}
.th .thr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  color: var(--ink);
}
.thr b {
  font-weight: 500;
}
.thr button,
.mc2 button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.thr button:hover,
.mc2 button:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.thr svg,
.mc2 svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv {
  position: relative;
  height: 120px;
  border-radius: 8px;
  margin-top: 8px;
  touch-action: none;
  cursor: crosshair;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(var(--h, 20) 100% 50%));
}
.sv i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0007;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  margin: 12px 0 0;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0007;
}
.hue::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0007;
}
.hx {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
}
.hx input {
  width: 100px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
}
.lf {
  width: min(72vw, 300px);
  height: min(42vw, 160px);
}
.lt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  transition:
    opacity 0.5s var(--liq),
    transform 0.6s var(--liq),
    filter 0.5s;
}
.li {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--or);
  color: var(--onor);
  display: grid;
  place-items: center;
  animation: hp 0.6s 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.li svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lx::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--or);
  margin-left: 2px;
  vertical-align: -0.18em;
  animation: bl 0.7s steps(2) infinite;
}
@keyframes bl {
  50% {
    opacity: 0;
  }
}
.ld.out .lt {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(4px);
}
.wd {
  display: inline-block;
  white-space: nowrap;
}
.sel {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sel .ch {
  display: inline-block;
  transition:
    font-weight 0.6s var(--liq) calc(var(--k) * 28ms),
    transform 0.7s var(--liq) calc(var(--k) * 28ms),
    color 0.7s var(--liq) calc(var(--k) * 28ms);
}
.box i {
  transition: transform 0.5s var(--liq);
}
@media (hover: hover) {
  .sel:hover i {
    transform: scale(1.35);
  }
  .sel {
    cursor: default;
  }
}
.sel.hit .ch {
  color: var(--or);
  transform: translateY(-8px);
}
.sel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--or);
  pointer-events: none;
  opacity: 0;
}
.sel.hit::after {
  animation: ring 1s var(--liq);
}
@keyframes ring {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
    transform: scale(1.12, 1.35);
  }
}
.mp {
  position: fixed;
  z-index: 35;
  left: 50%;
  top: auto;
  right: auto;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  width: min(372px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 18px;
  background: var(--frame);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px #0003;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "v v" "t c";
  gap: 8px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 40px) scale(0.2);
  transform-origin: 50% 100%;
  transition:
    opacity 0.45s var(--liq),
    transform 0.75s cubic-bezier(0.34, 1.3, 0.64, 1),
    visibility 0s 0.75s,
    width 0.8s var(--liq);
}
.mp.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.mv {
  grid-area: v;
  position: relative;
  width: 100%;
  height: max(200px, calc((min(372px, 100vw - 16px) - 12px) * 0.5625));
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  transition:
    width 0.8s var(--liq),
    height 0.8s var(--liq);
}
.mp .mv iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    width 0.8s var(--liq),
    height 0.8s var(--liq);
}
.mt {
  grid-area: t;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: 6px;
}
.mt b {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt a {
  font-size: 12px;
  color: var(--soft);
}
.mc2 {
  grid-area: c;
  display: flex;
  gap: 2px;
}
#mplay[data-p="1"] .ip,
#mplay:not([data-p="1"]) .ia {
  display: none;
}
#mmin .imx {
  display: none;
}
.mini #mmin .imn {
  display: none;
}
.mini #mmin .imx {
  display: block;
}
.mp.mini {
  width: min(344px, calc(100vw - 16px));
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: "v t c";
}
.mp.mini .mv {
  width: 56px;
  height: 56px;
}
.mp.mini .mv iframe {
  width: calc(56px * 16 / 9);
  height: 56px;
}
.mp.mini .mt a {
  display: none;
}
.mp.mini .mt,
.mp.mini .mc2 {
  animation: fi 0.5s 0.25s backwards;
}

.pop {
  width: min(344px, calc(100vw - 24px));
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px #0004;
  font-size: 14px;
}
.ph {
  height: 20px;
  border-radius: 17px 17px 0 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--or) 0 11px,
    color-mix(in srgb, var(--or) 50%, var(--frame)) 11px 22px
  );
  transform-origin: 0 100%;
}
.pop.open .ph {
  animation: clap 0.8s 0.1s var(--liq) backwards;
}
@keyframes clap {
  from {
    transform: rotate(-9deg) translateY(-3px);
  }
}
.pt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 6px;
}
.pt b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pt span {
  font-size: 13px;
  color: var(--soft);
}
.pt button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pt svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.tabs {
  display: flex;
  gap: 4px;
  margin: 10px 18px 0;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--soft);
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background-color 0.5s var(--liq),
    color 0.5s;
}
.tabs button[aria-selected="true"] {
  background: var(--frame);
  color: var(--ink);
  box-shadow: 0 1px 3px #0003;
}
.tp {
  display: none;
  padding: 18px;
}
.tp.on {
  display: block;
  animation: fi 0.5s var(--liq);
}
.tp label {
  display: block;
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 13px;
}
.tp input[type="text"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.tp input[type="text"]:focus {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}
.br {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
}
.br .mini {
  height: 44px;
  flex: 1;
}
.mini.p {
  background: var(--or);
  border-color: var(--or);
  color: var(--onor);
}
.tp .cr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.cr b {
  display: block;
  font-weight: 500;
  font-size: 14px;
}
.cr small {
  color: var(--soft);
  font-size: 12px;
}
.cr input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background-color 0.5s var(--liq);
}
.cr input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cr input:checked {
  background: var(--or);
}
.cr input:checked::after {
  transform: translateX(18px);
}
.tl {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
}
.tl b {
  color: var(--ink);
  font-weight: 500;
}
.tg2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tg2 button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
  text-align: center;
}
.pv {
  display: block;
  aspect-ratio: 1/0.8;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  transition:
    transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.4s;
}
.pv > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  padding: 7px;
  position: relative;
}
.pv i {
  display: block;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 5px;
  opacity: 0.7;
}
.pv em {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tg2 b {
  display: block;
  margin-top: 6px;
  font-weight: 500;
}
.tg2 button:hover .pv {
  transform: translateY(-2px);
}
.tg2 button[aria-pressed="true"] .pv {
  box-shadow:
    0 0 0 2px var(--frame),
    0 0 0 4px var(--or);
}
.pf {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 12px;
  color: var(--soft);
  text-align: center;
}
.tp .sv {
  height: 140px;
  margin-top: 0;
}
.sw button {
  width: 30px;
  height: 30px;
}
.tp .hx {
  margin: 14px 0 16px;
}
.tp .hx input[type="text"] {
  width: 110px;
  height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
}
.li {
  width: 46px;
  height: 46px;
  border: 2px solid var(--or);
  padding: 3px;
  background: none;
  overflow: hidden;
}
.li img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

:root {
  --w: 1100px;
  --pad: clamp(16px, 4vw, 56px);
}
.sec {
  max-width: calc(var(--w) + var(--pad) * 2);
  margin-inline: auto;
  width: 100%;
}
.frame,
details {
  max-width: none;
}
.sec.work {
  max-width: calc(var(--w) + var(--pad) * 2);
}
.mp.mini {
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--frame);
  color: inherit;
  font: inherit;
  padding: 6px;
  cursor: default;
}
.dock button::after,
.tabs button::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink);
  color: var(--frame);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--liq);
}
@media (hover: hover) {
  .dock button:hover::after,
  .tabs button:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.dock .prof {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin: 0;
  background: var(--ink);
  color: var(--frame);
}
.pop.pg {
  width: auto;
  padding: 5px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--frame);
  box-shadow: 0 10px 30px #0000002e;
  display: flex;
}
.pg .tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.pg .tabs button {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--frame);
  background: none;
  box-shadow: none;
  padding: 0;
}
.pg .tabs button:hover {
  background: color-mix(in srgb, var(--frame) 16%, transparent);
}
.pg .tabs button[aria-selected="true"] {
  background: var(--or);
  color: var(--onor);
}
.pg .tabs button[aria-selected="true"]::after {
  display: none;
}
.tabs button::after {
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
}
.tabs svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg .tp {
  position: absolute;
  bottom: calc(100% + 12px);
  left: var(--ax, 50%);
  transform: translateX(-50%);
  width: min(284px, calc(100vw - 24px));
  padding: 16px;
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px #0004;
}
.pg .tp::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: var(--cx, 50%);
  width: 10px;
  height: 10px;
  background: var(--frame);
  border: solid var(--line);
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
}
.ptt {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}
.zm {
  display: none;
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #0000002e;
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
}
.zm button {
  border: 0;
  background: none;
  color: inherit;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  display: grid;
  place-items: center;
}
.zm button:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.zm svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#zv {
  min-width: 54px;
}
.zmn {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 180px;
  padding: 5px;
  border-radius: 12px;
  background: var(--frame);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px #0004;
  display: flex;
  flex-direction: column;
}
.zmn button {
  display: flex;
  justify-content: flex-start;
  height: 34px;
  padding: 0 10px;
}
html.cv .zm {
  display: flex;
}
html.cv #cv {
  position: relative;
  transform-origin: 50% 0;
  transform: translate(var(--px, 0px), 0) scale(var(--z, 1));
}
html.cv #stage {
  position: relative;
}
html.cv .sec {
  position: relative;
}
html.cv #hero {
  overflow: visible;
  clip-path: inset(-140px 0 0 0);
}
#hero .lab {
  align-self: flex-start;
}
html.cv #cv {
  padding-top: calc(44px + max(0px, 56px / var(--z, 1) - 56px));
}
.sec.rs {
  transition: transform 0.7s var(--liq);
}
.sec.up {
  z-index: 3;
}
.sec.dg .frame,
.sec.dg details {
  outline: 1.5px solid var(--or);
  box-shadow: 0 24px 60px #0003;
}
html.cv #cv .lab {
  transform-origin: 0 100%;
  transform: scale(calc(1 / var(--z, 1)));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  margin: 0 0 6px -8px;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}
html.cv #cv .lab::before {
  content: "";
  width: 8px;
  height: 12px;
  background: radial-gradient(currentColor 1.2px, transparent 1.6px) 0 0/4px 4px;
  opacity: 0.55;
}
html.cv #cv .lab::after {
  content: "Drag to move";
  font-size: 11px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 0.5s var(--liq),
    opacity 0.3s;
}
html.cv #cv .lab:hover,
.sec.dg .lab {
  background: var(--or);
  color: var(--onor);
}
html.cv #cv .lab:hover::after,
.sec.dg .lab::after {
  max-width: 110px;
  opacity: 1;
}
html.drag,
html.drag * {
  cursor: grabbing !important;
  user-select: none;
}

.dock .prof {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 0 0 2px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 600;
}
.dock .prof[aria-expanded="true"] {
  background: var(--ink);
  color: var(--frame);
}
.dock .prof::after {
  border-radius: 6px;
}
.pg .tabs button[aria-selected="true"] {
  background: var(--frame);
  color: var(--ink);
}
.nf {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  transition:
    border-color 0.4s var(--liq),
    box-shadow 0.4s var(--liq);
}
.nf:focus-within {
  border-color: var(--or);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 22%, transparent);
}
.nf > svg {
  width: 16px;
  height: 16px;
  stroke: var(--soft);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.tp .nf input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  outline: 0;
  font:
    500 15px "Lexend",
    system-ui,
    sans-serif;
}
.tp .nf input[type="text"]:focus {
  outline: 0;
}
.nfx {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.nfx:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}
.nfx svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.nh {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--soft);
}
#about img {
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 18%;
}
@media (max-width: 820px) {
  #about img {
    aspect-ratio: 1/1;
    max-height: min(70svh, 520px);
    object-position: 50% 15%;
  }
}
@media (max-width: 560px) {
  #about img {
    aspect-ratio: 4/5;
    max-height: none;
  }
}
@media (max-width: 1100px) and (min-width: 821px) {
  #about .frame {
    grid-template-columns: minmax(0, 280px) 1fr;
  }
}

.mi .ex {
  margin: 0 0 4px;
}
.mi .ex details {
  margin: 0 0 8px;
}
.ex summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 11em 28px;
  gap: 6px 16px;
  padding: 16px clamp(14px, 2.4vw, 22px);
}
.ex summary h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.ex summary:hover h3 {
  color: var(--or);
}
.mi .ex .rl {
  font-size: 14px;
  color: var(--soft);
}
.ex .yr {
  font-style: normal;
  font-size: 13px;
  color: var(--soft);
  text-align: right;
  white-space: nowrap;
}
.xb {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 2fr);
  gap: clamp(14px, 3vw, 32px);
  padding: 0 clamp(14px, 2.4vw, 22px) 20px;
}
.xm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.xm span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--or) 14%, transparent);
  color: var(--ink);
}
.hl {
  counter-reset: h;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.hl li {
  counter-increment: h;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.hl li::before {
  content: counter(h, decimal-leading-zero);
  color: var(--or);
  font-weight: 600;
  font-size: 13px;
  padding-top: 2px;
}
.lp {
  margin: 0 0 14px;
}
.lp a {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.4s;
}
.lp a:hover {
  color: var(--or);
}
.lp b {
  font-weight: 600;
}
.lp span {
  color: var(--soft);
}
.lp i {
  font-style: normal;
  text-align: right;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  transition:
    border-color 0.4s,
    background-color 0.4s;
}
.tags span:hover {
  border-color: var(--or);
  background: color-mix(in srgb, var(--or) 10%, transparent);
}
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.tools li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition:
    transform 0.5s var(--liq),
    border-color 0.4s;
}
.tools li:hover {
  transform: translateY(-3px);
  border-color: var(--or);
}
.tools svg {
  width: 40px;
  height: 40px;
  display: block;
}
.tools li span {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.2;
}
.tools .more {
  border-style: dashed;
  justify-content: center;
}
.tools .more b {
  font-size: 26px;
  line-height: 40px;
  font-weight: 500;
  color: var(--or);
}
.mi .gap {
  height: 22px;
}
.tgp {
  margin: 0 0 14px;
}
.tgp .tgl {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--soft);
}
@media (max-width: 820px) {
  .ex summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas: "n x" "r x" "y x";
  }
  .ex summary h3 {
    grid-area: n;
  }
  .ex .rl {
    grid-area: r;
  }
  .ex .yr {
    grid-area: y;
    text-align: left;
  }
  .ex summary::after {
    grid-area: x;
  }
  .xb {
    grid-template-columns: 1fr;
  }
  .lp a {
    grid-template-columns: minmax(0, 1fr) 20px;
  }
  .lp a span {
    grid-column: 1;
    grid-row: 2;
  }
  .lp a i {
    grid-row: 1/3;
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(8px);
    transition:
      opacity 1s var(--liq),
      transform 1s var(--liq),
      filter 1s var(--liq),
      background-color 0.8s var(--liq),
      border-color 0.8s var(--liq);
    transition-delay:
      calc(var(--d, 0) * 80ms), calc(var(--d, 0) * 80ms),
      calc(var(--d, 0) * 80ms), 0s, 0s;
  }
  .rv.in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  summary h3 {
    transition: transform 0.6s var(--liq);
  }
  summary:hover h3 {
    transform: translateX(10px);
  }
  .tgd .tags span {
    transition:
      transform 0.5s var(--liq),
      border-color 0.4s,
      color 0.4s;
  }
  .tgd .tags span:hover {
    transform: translateY(-3px);
    border-color: var(--or);
  }
  details[open] .case > img {
    animation: zin 1.2s var(--liq) both;
  }
  details[open] .case > div > * {
    animation: up 0.8s var(--liq) both;
  }
  details[open] .case > div > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  details[open] .case > div > *:nth-child(3) {
    animation-delay: 0.16s;
  }
  details[open] .xc > *,
  details[open] .tags > * {
    animation: up 0.8s var(--liq) both;
    animation-delay: calc(var(--k, 0) * 45ms);
  }
  .case {
    overflow: hidden;
  }
  .case > img {
    transition: transform 1s var(--liq);
  }
  .case:hover > img {
    transform: scale(1.03);
  }
  @keyframes zin {
    from {
      transform: scale(1.12);
      opacity: 0.3;
    }
  }
  @keyframes up {
    from {
      transform: translateY(18px);
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
}
footer p {
  margin: 0;
}
.tgd .xb {
  grid-template-columns: 1fr;
}
.mi .tgd {
  margin: 0 0 8px;
}
.mi .tgd summary h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.tgd summary:hover h3 {
  color: var(--or);
}
.tgd summary {
  padding: 16px clamp(14px, 2.4vw, 22px);
}

/* case-study frame: lives on the canvas on desktop, fixed full-screen on small screens */
.me {
  z-index: 400;
}
.csec {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--canvas) radial-gradient(var(--dot) 1px, transparent 1px) 0
    0/22px 22px;
  padding: 0;
}
.csec.show {
  display: block;
}
.csec > .lab {
  padding: 12px clamp(12px, 3vw, 24px) 8px;
  margin: 0;
}
.csec .frame {
  max-width: none;
  margin: 0 clamp(10px, 3vw, 24px);
}
.csbar2 {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: var(--frame);
  border-bottom: 1px solid var(--line);
}
.csbar2 b {
  flex: 1;
  min-width: 0;
  font:
    600 15px "Lexend",
    system-ui,
    sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.csbar2 .pill2 {
  margin: 0;
  white-space: nowrap;
}
.csfoot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 10px clamp(14px, 3vw, 28px)
    calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--frame);
  border-top: 1px solid var(--line);
}
.csfoot .pill2 {
  margin: 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.csec {
  overflow-x: hidden;
}
html:not(.cv) #cs.csec > .frame {
  width: auto;
  max-width: none;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .csfoot {
    justify-content: stretch;
  }
  .csfoot .pill2 {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
.csbody {
  padding: clamp(18px, 3.5vw, 40px);
}
.csbody h2 {
  font:
    600 clamp(40px, 7vw, 84px) / 0.95 "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: -0.04em;
  text-transform: none;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.csbody .csl {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.4;
  color: var(--soft);
  max-width: 32em;
  margin: 0 0 22px;
}
.csbody .csm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
}
.csbody .csm div {
  padding: 12px 12px 12px 0;
  font-size: 14px;
  line-height: 1.4;
}
.csbody .csm span {
  display: block;
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 4px;
}
.csbody .csd {
  margin-bottom: 10px;
}
.csbody .csd summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.csbody .csd summary h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}
.csbody .csb {
  display: grid;
  gap: 16px;
  padding: 0 clamp(14px, 2.4vw, 24px) 22px;
  font-size: 16px;
  line-height: 1.6;
}
.csbody .csb p {
  margin: 0;
  max-width: 44em;
}
.csbody .todo {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--soft);
  font-size: 14px;
}
.csbody .phi {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: var(--p, 56.25%);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
  text-align: center;
  background: color-mix(in srgb, var(--or) 4%, transparent);
}
.csbody .phi span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 8px;
}
.csbody .phi small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}
.csbody .g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.csbody .kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.csbody .kpi div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.csbody .kpi b {
  display: block;
  font:
    600 clamp(26px, 4vw, 40px) / 1 "Lexend",
    system-ui,
    sans-serif;
  color: var(--or);
  margin-bottom: 6px;
}
.csbody .kpi span {
  font-size: 13px;
  color: var(--soft);
}
.csbody figure {
  margin: 0;
}
.csbody .cover {
  margin: 0 0 24px;
}
.btn.cso {
  cursor: pointer;
  background: none;
  color: var(--ink);
}
html.cv #cv .csec.show {
  position: absolute;
  inset: auto;
  left: 50%;
  top: var(--ct, 60px);
  width: min(940px, 92%);
  margin-left: calc(min(940px, 92%) / -2);
  z-index: 5;
  overflow: visible;
  background: none;
  padding: 0;
  overscroll-behavior: auto;
}
html.cv #cv .csec > .lab {
  padding: 3px 8px;
  margin: 0 0 6px -8px;
}
html.cv.cso #cv {
  padding-bottom: calc(70vh / var(--z, 1));
}
html.cv #cv .csec .frame {
  margin: 0;
  max-height: calc((100vh - 200px) / var(--z, 1));
  overflow: auto;
  box-shadow: 0 24px 70px #0003;
}
@media (max-width: 640px) {
  .csbody .g2 {
    grid-template-columns: 1fr;
  }
  .csbar2 b {
    font-size: 14px;
  }
}

#play .frame {
  padding: 0;
  overflow: hidden;
}

.avg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.avg button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: color-mix(in srgb, var(--or) 12%, var(--frame));
  cursor: pointer;
}
.avg button[aria-pressed="true"] {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}
.avg svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: none;
  shape-rendering: crispEdges;
}
.avmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
}
.avmore:hover {
  color: var(--ink);
}
.pg .tabs a.tgo {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--frame);
  text-decoration: none;
}
.pg .tabs a.tgo:hover {
  background: color-mix(in srgb, var(--frame) 16%, transparent);
}
.pg .tabs a.tgo svg {
  fill: currentColor;
  stroke: none;
  width: 20px;
  height: 20px;
}
.tabs a.tgo::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--liq);
}
@media (hover: hover) {
  .tabs a.tgo:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* ===== Layout picker ===== */
.lyh {
  margin: 0 0 10px;
  font:
    600 14px "Lexend",
    system-ui,
    sans-serif;
}
.lyg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lyt {
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 10px;
  padding: 8px 8px 7px;
  cursor: pointer;
  color: inherit;
  font:
    500 11px "Lexend",
    system-ui,
    sans-serif;
  text-align: left;
  display: block;
}
.lyt svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 6px;
}
.lyt:hover {
  border-color: var(--ink);
}
.lyt[aria-pressed="true"] {
  outline: 2px solid var(--or);
  outline-offset: -1px;
  border-color: transparent;
}
.lyk {
  display: flex;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--soft);
}
.lyk i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}
.lyn {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.4;
}
#zl[aria-expanded="true"] {
  background: var(--or);
  color: var(--onor);
}
.sec.lx {
  transition:
    left 0.7s var(--liq),
    top 0.7s var(--liq);
}

/* ===== Playground · Now playing ===== */
.nwf {
  padding: clamp(16px, 3vw, 24px);
  border-radius: 22px;
  background: color-mix(in srgb, var(--frame) 55%, var(--canvas));
  container-type: inline-size;
}
.nwh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    500 10px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}
.nwl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.nwl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.nwf[data-s="on"] .nwl i {
  background: var(--or);
  box-shadow: 0 0 8px var(--or);
  animation: nwbl 1.6s ease-in-out infinite;
}
.nwf[data-s="last"] .nwl i {
  background: var(--or);
}
.nwsc {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--ink);
  border-radius: 12px;
  padding: 14px;
  color: var(--or);
  overflow: hidden;
}
.nwsc::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(rgba(0, 0, 0, 0.5) 0.9px, transparent 1.1px) 0
    0/3px 3px;
}
.nwc {
  flex: none;
  width: 72px;
  height: 72px;
  background: var(--or);
  border-radius: 4px;
  overflow: hidden;
}
.nwc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35);
  mix-blend-mode: multiply;
}
.nwx {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nwk {
  margin: 0;
  font:
    500 10px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.nwt {
  margin: 6px 0 0;
  overflow: hidden;
  white-space: nowrap;
  font:
    500 clamp(17px, 4.4cqw, 24px) / 1.15 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px color-mix(in srgb, var(--or) 55%, transparent);
}
.nwt span {
  display: inline-block;
}
.nwt.mq span {
  animation: nwm var(--d, 12s) linear infinite;
}
.nwa {
  margin: 2px 0 0;
  font:
    400 13px/1.3 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--frame) 70%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nwm {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
  margin-top: auto;
  padding-top: 8px;
}
.nwm i {
  flex: 1;
  height: 12%;
  background: var(--or);
  -webkit-mask: repeating-linear-gradient(
    to top,
    #000 0 3px,
    transparent 3px 5px
  );
  mask: repeating-linear-gradient(to top, #000 0 3px, transparent 3px 5px);
}
.nwf[data-s="on"] .nwm i {
  animation: nwb calc(0.55s + var(--k) * 0.07s) ease-in-out infinite alternate;
  animation-delay: calc(var(--k) * -0.11s);
}
.nwr {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.nwd {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: repeating-conic-gradient(
    var(--ink) 0 1.2deg,
    transparent 1.2deg 12deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 24px, #000 24.5px);
  mask: radial-gradient(circle, transparent 0 24px, #000 24.5px);
  position: relative;
}
.nwd {
  -webkit-mask: none;
  mask: none;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nwd span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--frame);
  box-shadow:
    0 2px 0 var(--line),
    inset 0 -3px 0 #0001;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s var(--liq);
}
.nwd span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--or);
}
.nwf[data-s="on"] .nwd span {
  animation: nwr 9s linear infinite;
}
.nwg {
  flex: 1;
  height: 64px;
  border-radius: 12px;
  background: radial-gradient(var(--ink) 1.5px, transparent 2px) 0 0/10px 10px;
  opacity: 0.55;
}
.nwb {
  flex: none;
  width: 84px;
  height: 64px;
  border-radius: 12px;
  background: var(--or);
  color: var(--onor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-family: "Lexend", system-ui, sans-serif;
  transition: transform 0.3s var(--liq);
}
.nwb:hover {
  transform: translateY(-2px);
}
.nwb b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nwb small {
  font-size: 10px;
  opacity: 0.85;
}
@keyframes nwb {
  to {
    height: 100%;
  }
}
@keyframes nwm {
  to {
    transform: translateX(-50%);
  }
}
@keyframes nwr {
  to {
    transform: rotate(360deg);
  }
}
@keyframes nwbl {
  50% {
    opacity: 0.35;
  }
}
@container (max-width:380px) {
  .nwc {
    width: 56px;
    height: 56px;
  }
  .nwb {
    width: 70px;
  }
  .nwd {
    width: 56px;
    height: 56px;
  }
  .nwg {
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nwf[data-s="on"] .nwm i,
  .nwf[data-s="on"] .nwd span,
  .nwf[data-s="on"] .nwl i,
  .nwt.mq span {
    animation: none;
  }
  .nwf[data-s="on"] .nwm i {
    height: 55%;
  }
}
.lyg.f3 {
  grid-template-columns: repeat(3, 1fr);
}
#cv.ord {
  display: flex;
  flex-direction: column;
}
.bar .r {
  display: flex;
  align-items: center;
}

/* ===== Playground · Design journal ===== */
.jpf {
  padding: clamp(16px, 3vw, 24px);
}
.jph {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.jph b {
  font:
    600 clamp(20px, 3vw, 26px) / 1.2 "Lexend",
    system-ui,
    sans-serif;
}
.jph span {
  font-size: 12px;
  color: var(--soft);
}
.jnt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.jnq {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  height: 28px;
  padding: 0 12px;
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.jnq:hover {
  border-color: var(--ink);
}
.jnq[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: var(--onor);
}
.jnl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jnl li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.jnl li:first-child {
  border-top: 0;
}
.jnh {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.jnh b {
  font-weight: 600;
  font-size: 13px;
}
.jnh span {
  font-size: 12px;
  color: var(--soft);
}
.jnl p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.jnx {
  margin-top: 10px;
}
/* ===== Playground · Instagram ===== */
.igf {
  padding: clamp(16px, 3vw, 24px);
}
.igh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.igh b {
  font:
    600 clamp(20px, 3vw, 26px) / 1.2 "Lexend",
    system-ui,
    sans-serif;
}
.igh a {
  font-size: 12px;
  color: var(--ink);
}
.igg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.igg a,
.igg div {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.igg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--liq);
}
.igg a:hover img {
  transform: scale(1.05);
}
.igg div {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--soft);
  opacity: 0.6;
}

.igr {
  display: flex;
  align-items: center;
  gap: 12px;
}
.igh button[hidden] {
  display: none;
}
.igg a {
  cursor: zoom-in;
}
@media (max-width: 640px) {
  .igg {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    margin: 0 calc(-1 * clamp(16px, 3vw, 24px));
    padding: 0 clamp(16px, 3vw, 24px) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .igg::-webkit-scrollbar {
    display: none;
  }
  .igg a,
  .igg div {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .igg.sh a {
    animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    rotate: var(--t, 0deg);
  }
}
.igv {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}
.igv[hidden] {
  display: none;
}
.igb {
  position: absolute;
  inset: 0;
  background: #000c;
}
.igc {
  position: relative;
  margin: 0;
  width: min(440px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbfaf6;
  color: #1c160e;
  border-radius: 4px;
  padding: 14px 14px 18px;
  box-shadow: 0 24px 60px #0008;
  rotate: -2deg;
}
@media (prefers-reduced-motion: no-preference) {
  .igv:not([hidden]) .igc {
    animation: igd 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes igd {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(6deg) scale(0.9);
  }
}
.igc img {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: cover;
  border-radius: 0;
  background: #e8e4da;
  box-shadow: inset 0 0 0 1px #0002;
}
.igc figcaption {
  font:
    400 12px/1.5 "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.04em;
  color: #3a3226;
  max-height: 4.5em;
  overflow: auto;
  padding: 4px 2px 0;
}
.igp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.igp button {
  width: 44px;
  height: 44px;
  border: 2px solid #1c160e;
  border-radius: 0;
  background: #fbfaf6;
  color: #1c160e;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 2px 2px 0 #1c160e;
}
.igp button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.igp a {
  font-size: 13px;
  color: #1c160e;
  text-decoration: underline;
}
.igx {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #000a;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.trk::after {
  content: "";
  position: absolute;
  left: 0;
  top: 70px;
  z-index: 0;
  width: var(--p, 0%);
  border-top: 4px solid var(--or);
  transition: width 0.9s steps(10);
}
.trk .nd,
.trk .stc {
  z-index: 1;
}
.lvl .pu {
  border-style: solid;
  border-color: var(--or);
  font:
    500 16px/1.35 "Lexend",
    system-ui,
    sans-serif;
  color: var(--ink);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.fch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.fch b,
.mnh b {
  font:
    600 clamp(20px, 3vw, 26px) / 1.2 "Lexend",
    system-ui,
    sans-serif;
}
.px {
  font-family: "Silkscreen", "Lexend", monospace;
  letter-spacing: 0.06em;
}
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock a .dl {
  display: block;
  position: relative;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font:
    500 14px "Lexend",
    system-ui,
    sans-serif;
  transition:
    max-width 0.6s var(--liq),
    margin 0.6s var(--liq);
}
.dock a.on {
  width: auto;
  padding: 0 14px 0 12px;
}
.dock a.on .dl {
  max-width: 96px;
  margin-left: 8px;
}
.dock a.on::after {
  display: none;
}
@media (max-width: 560px) {
  .dock a.on {
    width: 42px;
    padding: 0;
  }
  .dock a.on .dl {
    max-width: 0;
    margin: 0;
  }
}
.mn {
  padding: clamp(16px, 3vw, 28px);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px;
}
.mnh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.mnh span {
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  color: var(--soft);
  letter-spacing: 0.06em;
}
.mnb {
  position: relative;
  aspect-ratio: 4/3;
  max-width: 760px;
  margin: 0 auto;
}
.mnw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pin {
  position: absolute;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pin svg {
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 3px 0 #0002);
}
.pin:hover,
.pin[aria-expanded="true"] {
  transform: scale(1.25) rotate(-6deg);
}
.pin.rs {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s,
    opacity 0.45s;
}
@media (prefers-reduced-motion: no-preference) {
  .pin {
    animation: bob 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.4s);
  }
}
@keyframes bob {
  50% {
    translate: 0 -4px;
  }
}
.mnd {
  position: absolute;
  z-index: 3;
  width: min(300px, calc(100% - 16px));
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 14px;
  box-shadow: 0 18px 44px #0003;
  animation: pop 0.35s var(--liq);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}
.mnd[hidden] {
  display: none;
}
.cmh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.cmh .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--or);
  color: var(--onor);
  display: grid;
  place-items: center;
  font:
    600 11px "Lexend",
    sans-serif;
}
.cmh b {
  font-weight: 600;
}
.cmh span {
  color: var(--soft);
  font-size: 11px;
}
.cmh .x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--soft);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.cmt {
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.06em;
  color: var(--or);
  margin: 0 0 6px;
}
.mnd p.cm {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
}
.cmf {
  display: flex;
  gap: 8px;
}
.cmf .mini {
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}
.cmf .mini.p {
  background: var(--or);
  border-color: var(--or);
  color: var(--onor);
}
.mnt {
  text-align: center;
  font-size: 12px;
  color: var(--soft);
  margin: 14px 0 0;
}
@media (max-width: 700px) {
  .mnd {
    position: static;
    width: auto;
    margin-top: 14px;
  }
  .mnb {
    aspect-ratio: 4/3;
  }
  .pin {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
  }
}
.chf {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
}
.chs {
  text-align: center;
  cursor: pointer;
  padding: 20px 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 8px;
}
#chv {
  display: block;
  width: min(260px, 64vw);
  margin: 0 auto;
  shape-rendering: crispEdges;
}
.chs.hop #chv {
  animation: hop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes hop {
  40% {
    transform: translateY(-26px) scale(0.94, 1.08);
  }
}
.chn {
  display: inline-block;
  margin-top: 14px;
  background: var(--or);
  color: var(--onor);
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  padding: 5px 8px;
  border-radius: 0 8px 8px 8px;
}
.cg {
  margin: 0 0 14px;
}
.cg > span {
  display: block;
  font-size: 12px;
  color: var(--soft);
}
.cg .seg {
  flex-wrap: wrap;
}
.cg .seg button {
  flex: none;
  padding: 0 12px;
}
.chb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.chh {
  font-size: 12px;
  color: var(--soft);
  max-width: 22em;
}
.chm {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 150;
  width: 52px;
  pointer-events: none;
  will-change: transform;
}
.chm svg {
  display: block;
  width: 100%;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 4px 0 #0002);
}
.chm.hop svg {
  animation: hop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@media (max-width: 700px) {
  .chf {
    grid-template-columns: 1fr;
  }
}
.igg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 6px;
}
.igg a,
.igg .ph {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.igg > :nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  transform: rotate(-1.2deg);
}
.igg > :nth-child(2) {
  transform: rotate(1.6deg);
}
.igg > :nth-child(3) {
  transform: rotate(-1deg);
}
.igg > :nth-child(4) {
  transform: rotate(1.2deg);
}
.igg > :nth-child(5) {
  transform: rotate(-1.6deg);
}
.igg > :nth-child(6) {
  transform: rotate(1deg);
}
.igg a:hover {
  transform: rotate(0) scale(1.04) !important;
  z-index: 2;
}
.igg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igg i {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--or);
  color: var(--onor);
  font:
    400 10px "Silkscreen",
    "Lexend",
    monospace;
  padding: 4px 6px;
  font-style: normal;
  border-radius: 0 0 6px 0;
}
.igg .ph {
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(45deg, var(--dot) 25%, transparent 25% 75%, var(--dot) 75%),
    linear-gradient(45deg, var(--dot) 25%, transparent 25% 75%, var(--dot) 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    8px 8px;
}
@media (max-width: 560px) {
  .igg {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chs {
  background: #141414
    repeating-linear-gradient(0deg, #ffffff0a 0 2px, transparent 2px 4px);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--or);
  border-radius: 0;
  position: relative;
  padding: 34px 0 18px;
  color: #fff;
}
.chs::before {
  content: "PLAYER SELECT";
  position: absolute;
  top: 8px;
  left: 12px;
  font:
    400 10px "Silkscreen",
    monospace;
  color: #ffffff88;
  letter-spacing: 0.1em;
}
.chs::after {
  content: "P1";
  position: absolute;
  top: 8px;
  right: 12px;
  font:
    400 10px "Silkscreen",
    monospace;
  color: var(--or);
  animation: blk 1s steps(2) infinite;
}
@keyframes blk {
  50% {
    opacity: 0;
  }
}
.chn {
  border-radius: 0;
}
.cg {
  margin: 0 0 16px;
}
.cg > .px {
  display: block;
  font-size: 10px;
  color: var(--soft);
  margin-bottom: 7px;
}
.chps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  background: var(--c);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition:
    transform 0.15s steps(2),
    box-shadow 0.15s steps(2);
}
.chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.chip[aria-pressed="true"] {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
.chip[aria-pressed="true"]::after {
  content: "▲";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--or);
  margin-top: 5px;
}
.stp {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
  max-width: 300px;
}
.stp button {
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--frame);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font:
    400 12px "Silkscreen",
    monospace;
  cursor: pointer;
  padding: 0;
}
.stp button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.stp button:hover {
  background: var(--or);
  color: var(--onor);
}
.stp b {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px dotted var(--line);
}
.pgw {
  max-width: 760px;
  margin: 0 auto;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--or);
  background: #141414;
}
#pgc {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  image-rendering: pixelated;
  touch-action: pan-y;
  cursor: none;
}
.gmf,
.stf,
.arf,
.rdf {
  padding: clamp(18px, 3.5vw, 36px);
}
.gmf a,
.rdf a {
  color: var(--or);
}
.trk {
  position: relative;
  height: 104px;
  margin: 6px 28px 22px;
}
.trk::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  border-top: 4px dashed var(--line);
}
.nd {
  position: absolute;
  top: 61px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border: 3px solid var(--ink);
  background: var(--frame);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.nd.v {
  background: var(--or);
}
.nd[aria-current="step"] {
  transform: scale(1.35);
  box-shadow: 3px 3px 0 var(--ink);
}
.nd span {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font:
    400 10px "Silkscreen",
    monospace;
  color: var(--soft);
  white-space: nowrap;
}
.stc {
  position: absolute;
  top: 8px;
  width: 52px;
  margin-left: -26px;
  transition: left 0.9s steps(10);
  pointer-events: none;
}
.stc svg {
  width: 100%;
  display: block;
  shape-rendering: crispEdges;
}
.stc.w svg {
  animation: hop 0.3s steps(3) 3;
}
.lvl {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 40px);
  align-items: start;
  animation: pop 0.5s var(--liq);
}
.lvl .k {
  font:
    400 11px "Silkscreen",
    monospace;
  color: var(--or);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.lvl h3 {
  font:
    600 clamp(24px, 4vw, 40px) / 1.1 "Lexend",
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.lvl h4 {
  font:
    500 15px "Lexend",
    sans-serif;
  color: var(--soft);
  margin: 0 0 14px;
}
.lvl p {
  margin: 0 0 16px;
  line-height: 1.55;
  font-size: 16px;
  color: var(--soft);
  border-left: 3px solid var(--or);
  padding-left: 12px;
}
.pu {
  min-height: 170px;
  border: 3px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--soft);
  background: repeating-linear-gradient(
    45deg,
    transparent 0 8px,
    color-mix(in srgb, var(--or) 7%, transparent) 8px 16px
  );
}
.pu b {
  display: block;
  font:
    400 10px "Silkscreen",
    monospace;
  color: var(--or);
  margin-bottom: 6px;
}
.lvb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .lvl {
    grid-template-columns: 1fr;
  }
}
.pxt {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pxt button {
  border: 2px solid var(--ink);
  background: var(--frame);
  color: var(--ink);
  font:
    400 10px "Silkscreen",
    monospace;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.pxt button[aria-pressed="true"] {
  background: var(--or);
  color: var(--onor);
}
.awl {
  columns: 3 200px;
  column-gap: 14px;
}
.tl {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px;
  border: 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  font: inherit;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c) 14%, var(--frame)) 0 10px,
    color-mix(in srgb, var(--c) 24%, var(--frame)) 10px 20px
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tl:hover {
  transform: rotate(-0.8deg) scale(1.02);
}
.tl .tg {
  font:
    400 9px "Silkscreen",
    monospace;
  background: var(--ink);
  color: var(--frame);
  align-self: flex-start;
  padding: 3px 6px;
}
.tl b {
  font:
    600 15px/1.2 "Lexend",
    sans-serif;
}
.tl em {
  font-style: normal;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.4;
  margin-top: 6px;
  display: block;
}
.tl.on {
  outline: 2px solid var(--or);
  outline-offset: 4px;
  z-index: 1;
}
.tl.on::after {
  content: attr(data-dim);
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  background: var(--or);
  color: var(--onor);
  font:
    500 11px/1 "Lexend",
    sans-serif;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.ins {
  margin-top: 20px;
  border: 2px solid var(--ink);
  background: var(--frame);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  box-shadow: 5px 5px 0 var(--ink);
}
.ins div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.ins span {
  display: block;
  font:
    400 9px "Silkscreen",
    monospace;
  color: var(--or);
  margin-bottom: 4px;
}
.ins .w {
  grid-column: 1/-1;
}
.rdc {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: clamp(16px, 4vw, 36px);
  align-items: center;
}
.bk {
  aspect-ratio: 2/3;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--or);
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--or) 14%, var(--frame)) 0 10px,
    color-mix(in srgb, var(--or) 26%, var(--frame)) 10px 20px
  );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--soft);
  overflow: hidden;
}
.bk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rdc h3 {
  font:
    600 clamp(22px, 3.5vw, 34px) / 1.1 "Lexend",
    sans-serif;
  letter-spacing: -0.03em;
  margin: 4px 0;
}
.rdc p {
  margin: 0 0 12px;
  color: var(--soft);
}
.seg10 {
  display: flex;
  gap: 3px;
}
.seg10 i {
  flex: 1;
  height: 14px;
  background: var(--line);
  border: 2px solid var(--ink);
}
.seg10 i.f {
  background: var(--or);
}
.sp {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 26px;
  overflow-x: auto;
  padding: 0 4px 10px;
}
.sp .bk {
  width: 78px;
  flex: none;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
}
.sp .bk:nth-child(2n) {
  transform: translateY(-6px);
}
@media (max-width: 560px) {
  .rdc {
    grid-template-columns: 120px 1fr;
  }
}

.dock .kit {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.dock .kit[aria-expanded="true"] {
  background: var(--or);
  color: var(--onor);
}
.dock svg.pxi {
  fill: currentColor;
  stroke: none;
}
.dock .prof #ini {
  display: none;
}
@media (max-width: 560px) {
  .dock {
    max-width: calc(100vw - 16px);
  }
  .dock a,
  .dock .mus {
    flex: none;
    width: 38px;
    height: 38px;
  }
}
.gct {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ib {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--frame);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.ib:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.ib[aria-pressed="true"] {
  background: var(--or);
  color: var(--onor);
}
.ib svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: square;
}
.gmw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 26px;
  align-items: start;
}
.gmw .pgw {
  max-width: none;
  margin: 0;
  position: relative;
}
.lb {
  border: 3px solid var(--ink);
  background: var(--frame);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px;
}
.lbh {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--or);
  margin-bottom: 10px;
}
.lbh span + span {
  color: var(--soft);
}
.lb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: r;
}
.lb li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  font:
    400 12px "Silkscreen",
    monospace;
  padding: 6px 0;
  border-top: 2px dotted var(--line);
}
.lb li::before {
  content: counter(r, decimal-leading-zero);
  color: var(--soft);
}
.lb li:first-child {
  color: var(--or);
}
.lb li.empty {
  color: var(--line);
}
.lb li.mine {
  background: color-mix(in srgb, var(--or) 16%, transparent);
}
.lbn {
  font-size: 11px;
  color: var(--soft);
  margin: 10px 0 0;
  line-height: 1.4;
}
.gsub {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  background: #141414f2;
  border: 2px solid var(--or);
  padding: 10px 12px;
  width: max-content;
  max-width: calc(100% - 16px);
}
.gsub[hidden] {
  display: none;
}
.gsub .px {
  font-size: 11px;
  color: #fff;
}
.gsub input {
  width: 76px;
  height: 34px;
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font:
    400 16px "Silkscreen",
    monospace;
  letter-spacing: 0.2em;
}
.gsub .mini {
  color: #fff;
  border-color: #fff;
  height: 34px;
}
@media (max-width: 800px) {
  .gmw {
    grid-template-columns: 1fr;
  }
}

/* ===== Standing avatar in the dock: no circle, just the character, and it hops ===== */
.dock .prof,
.dock .prof[aria-expanded="true"] {
  position: relative;
  flex: none;
  width: 36px;
  height: 42px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  color: inherit;
  display: block;
}
.dock .prof::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 22px;
  height: 4px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.16;
  transition:
    opacity 0.3s,
    background-color 0.3s,
    width 0.3s,
    margin 0.3s;
}
.dock .prof[aria-expanded="true"]::before {
  background: var(--or);
  opacity: 1;
  width: 28px;
  margin-left: -14px;
}
.dock .prof .pw {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 48px;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.dock .prof .pav {
  display: block;
  width: 36px;
  height: 48px;
  overflow: visible;
  stroke: none;
  fill: none;
  shape-rendering: crispEdges;
}
@keyframes pxhop {
  0% {
    transform: none;
  }
  28% {
    transform: translateY(-12px) scale(0.94, 1.08);
  }
  55% {
    transform: translateY(0) scale(1.1, 0.88);
  }
  75% {
    transform: translateY(-3px);
  }
  100% {
    transform: none;
  }
}
.dock .prof .pw.hop {
  animation: pxhop 0.55s ease-in-out;
}
@media (hover: hover) {
  .dock .prof:hover .pw {
    animation: pxhop 0.55s ease-in-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock .prof .pw,
  .dock .prof .pw.hop {
    animation: none !important;
  }
}
/* panel: avatar picker + archive/game shortcuts */
.avg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.avg button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: color-mix(in srgb, var(--or) 12%, var(--frame));
  cursor: pointer;
}
.avg button[aria-pressed="true"] {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}
.avg svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: none;
  fill: none;
  shape-rendering: crispEdges;
}
.pg .tabs .tsep {
  flex: none;
  width: 1px;
  height: 22px;
  align-self: center;
  margin: 0 4px;
  background: color-mix(in srgb, var(--frame) 28%, transparent);
}
.pg .tabs a.tgo svg:not(.pxi) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}
.tabs a.tgo {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 430px) {
  .pg .tabs button,
  .pg .tabs a.tgo {
    width: 38px;
    height: 38px;
  }
  .pg .tabs {
    gap: 2px;
  }
}
/* game: off until play is pressed */
.pgo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  background: #141414;
  color: #fff;
}
.pgo[hidden] {
  display: none;
}
.pgo b {
  font:
    400 clamp(18px, 5vw, 28px) / 1.1 "Silkscreen",
    monospace;
  letter-spacing: 0.04em;
}
.pgo p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}
.pgp {
  font:
    400 14px "Silkscreen",
    monospace;
  letter-spacing: 0.06em;
  border: 2px solid #fff;
  background: var(--or);
  color: var(--onor);
  padding: 12px 22px;
  box-shadow: 4px 4px 0 #fff;
  cursor: pointer;
}
.pgp:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.ib[hidden] {
  display: none;
}
.gmf .fch {
  flex-wrap: wrap;
  gap: 10px;
}
/* leaderboard: delete button on your own rows */
.lb li {
  grid-template-columns: 26px 1fr auto auto !important;
  align-items: center;
}
.lb li > i {
  display: block;
  width: 22px;
}
.lbx {
  font:
    400 11px "Silkscreen",
    monospace;
  color: var(--soft);
  background: none;
  border: 0;
  min-width: 22px;
  height: 24px;
  padding: 0 4px;
  cursor: pointer;
  margin-left: 6px;
}
.lbx:hover,
.lbx:focus-visible {
  color: var(--or);
}
.lbx.arm {
  color: #fff;
  background: #d6336c;
}
#lbe[hidden] {
  display: none;
}

.pg .tabs svg.pxi {
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
  width: 20px;
  height: 20px;
}
.pg .tabs svg.pxi.gpi {
  width: 24px;
  height: 14px;
}
@keyframes tabhop {
  40% {
    transform: translateY(-3px);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pg .tabs button:hover svg.pxi,
  .pg .tabs a.tgo:hover svg.pxi {
    animation: tabhop 0.4s steps(4);
  }
}
.avr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.avr .ptt {
  margin: 0;
}
.shf {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background-color 0.4s var(--liq),
    border-color 0.4s;
}
.shf:hover,
.shf:focus-visible {
  border-color: var(--or);
  background: color-mix(in srgb, var(--or) 12%, transparent);
}
.shf svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes shfs {
  from {
    transform: rotate(-180deg) scale(0.8);
  }
}
.shf.spin svg,
.ib.spin svg {
  animation: shfs 0.5s var(--liq);
}
@media (prefers-reduced-motion: reduce) {
  .shf.spin svg,
  .ib.spin svg {
    animation: none;
  }
}
.ib svg {
  stroke-linejoin: round;
}
/* controls legend */
.ctl {
  margin-top: 18px;
  border: 3px solid var(--ink);
  background: var(--frame);
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 1100px;
}
.ctl-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--frame);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.ctl-h .coin {
  color: var(--or);
  animation: blk 1s steps(2) infinite;
}
.ctl-b {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.ctc {
  padding: 14px 16px 16px;
  border-left: 2px dotted var(--line);
  min-width: 0;
}
.ctc:first-child {
  border-left: 0;
}
.ctt {
  margin: 0 0 10px;
  font-size: 10px;
  color: var(--or);
}
.ctk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.ctk i {
  font:
    400 12px "Lexend",
    system-ui,
    sans-serif;
  font-style: normal;
  color: var(--soft);
  padding: 0 2px;
}
.ctk kbd {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-bottom-width: 5px;
  background: var(--frame);
  color: var(--ink);
  font:
    400 12px "Silkscreen",
    monospace;
  transition:
    transform 0.08s steps(2),
    border-bottom-width 0.08s steps(2),
    background-color 0.15s;
}
.ctk kbd.dn {
  transform: translateY(3px);
  border-bottom-width: 2px;
  background: var(--or);
  color: var(--onor);
}
.ctk kbd.sp {
  min-width: 84px;
}
.ctk kbd.big {
  min-width: 48px;
  height: 48px;
  font-size: 22px;
  background: var(--or);
  color: var(--onor);
}
.ctw {
  font-size: 13px;
  color: var(--ink);
}
.ctn {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--soft);
  max-width: 26em;
}
.ctf {
  margin: 0;
  padding: 10px 16px;
  border-top: 2px dotted var(--line);
  font-size: 12px;
  color: var(--soft);
}
@media (hover: none) {
  .kbo {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ctl-h .coin {
    animation: none;
  }
}
/* leaderboard: empty state, rows appear only once saved */
.lbz {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 16px 12px 14px;
  border: 2px dashed var(--line);
}
.lbzi {
  width: 50px;
  height: 50px;
  fill: var(--soft);
  opacity: 0.55;
  shape-rendering: crispEdges;
}
.lbz b {
  font-size: 11px;
  color: var(--ink);
}
.lbz p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--soft);
}
@keyframes lbin {
  from {
    opacity: 0;
    transform: translateX(-14px);
    background: color-mix(in srgb, var(--or) 40%, transparent);
  }
}
.lb li.lbnew {
  animation: lbin 0.7s var(--liq);
}
@media (prefers-reduced-motion: reduce) {
  .lb li.lbnew {
    animation: none;
  }
}
/* widgets answer to their own width, so every layout (recruiter included) stays usable */
.frame.gmf {
  container-type: inline-size;
}
.gmw {
  max-width: 1100px;
  margin-inline: auto;
}
@container (max-width:700px) {
  .gmw {
    grid-template-columns: 1fr;
  }
}
.frame.chf {
  display: block;
  container-type: inline-size;
}
.chw {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
}
@container (max-width:620px) {
  .chw {
    grid-template-columns: 1fr;
  }
}
/* about: download */
.dlr {
  margin: 18px 0 0;
}
.dlr .btn {
  gap: 10px;
  margin: 0;
}
.dlr svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dlh {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-right: 6px;
  border-radius: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.4s var(--liq),
    color 0.4s;
}
.dlh svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
}
.dlh:hover,
.dlh:focus-visible {
  background: color-mix(in srgb, var(--or) 16%, transparent);
  color: var(--or);
}
.dlh::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--ink);
  color: var(--frame);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--liq);
}
@media (hover: hover) {
  .dlh:hover::after,
  .dlh:focus-visible::after {
    opacity: 1;
    transform: none;
  }
  .dlh:hover svg {
    animation: dlb 0.5s steps(4);
  }
}
@keyframes dlb {
  50% {
    transform: translateY(2px);
  }
}
.nf > svg.pxi {
  fill: var(--soft);
  stroke: none;
  shape-rendering: crispEdges;
}
/* margin notes by Mario */
.mnm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mar {
  width: 30px;
  height: 32px;
  flex: none;
  overflow: visible;
}
.mar .wv {
  animation: mwv 0.7s steps(1) infinite;
}
@keyframes mwv {
  50% {
    transform: translate(1px, -1px);
  }
}
.cmh .av {
  background: var(--canvas);
  border: 1px solid var(--line);
}
.cmh .av svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  .mar .wv {
    animation: none;
  }
}
/* jackpot lever */
.shf svg.lvr,
.ib svg.lvr {
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
  overflow: visible;
}
.lvr .st,
.lvr .bl {
  transform-box: fill-box;
}
.lvr .st {
  transform-origin: 50% 100%;
}
.pull .bl {
  animation: lvb 1s steps(1);
}
.pull .st {
  animation: lvs 1s steps(1);
}
@keyframes lvb {
  0% {
    transform: none;
  }
  12%,
  70% {
    transform: translateY(4px);
  }
  100% {
    transform: none;
  }
}
@keyframes lvs {
  0% {
    transform: none;
  }
  12%,
  70% {
    transform: scaleY(0.3);
  }
  100% {
    transform: none;
  }
}
.chs.rolling #chv {
  animation: rl 0.12s steps(2) infinite;
}
@keyframes rl {
  50% {
    transform: translateY(-4px);
  }
}
.chn.jp {
  animation: blk 0.25s steps(2) 4;
  background: #f2b04b;
  color: #1c160e;
}
@media (prefers-reduced-motion: reduce) {
  .pull .bl,
  .pull .st,
  .chs.rolling #chv,
  .chn.jp {
    animation: none;
  }
}
/* leaderboard legend */
.lgd {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.lgd p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--soft);
}
.lgd b {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--ink);
  background: var(--or);
  color: var(--onor);
  font-size: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}
.lgd b.x {
  background: var(--frame);
  color: var(--ink);
  font-size: 12px;
}
/* archive: bottom sheet on small screens */
.axs {
  position: fixed;
  inset: 0;
  z-index: 350;
}
.axs[hidden] {
  display: none;
}
.axb {
  position: absolute;
  inset: 0;
  background: #000a;
  animation: fi 0.3s;
}
.axc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88svh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--frame);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-bottom: 0;
  box-shadow: 0 -6px 0 var(--or);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  animation: axu 0.45s var(--liq);
}
@keyframes axu {
  from {
    transform: translateY(100%);
  }
}
.axh {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 6px 14px;
  background: var(--ink);
  color: var(--frame);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.axx {
  width: auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--frame);
  font:
    400 14px "Silkscreen",
    monospace;
  cursor: pointer;
}
.axp {
  position: relative;
  height: 130px;
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c) 14%, var(--frame)) 0 10px,
    color-mix(in srgb, var(--c) 24%, var(--frame)) 10px 20px
  );
}
.axp .tg {
  position: absolute;
  left: 12px;
  top: 12px;
  font:
    400 9px "Silkscreen",
    monospace;
  background: var(--ink);
  color: var(--frame);
  padding: 3px 6px;
}
.axt {
  padding: 16px 16px 4px;
}
.axt h3 {
  margin: 0 0 6px;
  font:
    600 22px/1.15 "Lexend",
    sans-serif;
  letter-spacing: -0.02em;
}
.axt p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
}
.axg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 16px 0;
  border: 2px solid var(--ink);
}
.axg div {
  padding: 10px;
  font-size: 13px;
  border-left: 2px dotted var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.axg div:first-child {
  border-left: 0;
}
.axg span,
.axn span {
  display: block;
  font:
    400 9px "Silkscreen",
    monospace;
  color: var(--or);
  margin-bottom: 4px;
}
.axn {
  margin: 12px 16px 0;
  padding: 10px;
  border: 2px dashed var(--line);
  font-size: 14px;
  color: var(--soft);
}
.axf {
  display: flex;
  gap: 10px;
  margin: 16px 16px 0;
}
.axf .pill2 {
  flex: 1;
  justify-content: center;
  margin: 0;
  min-height: 46px;
}
@media (min-width: 821px) {
  .axs {
    display: none !important;
  }
}
.tl {
  -webkit-tap-highlight-color: transparent;
}

.chps .chip {
  animation: none !important;
  display: block;
  gap: 0;
}
.avb {
  display: flex;
  gap: 8px;
}
.shf svg.pxi,
.ib svg.pxi {
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
}
.chip,
.avg button,
.sw button {
  transition: none !important;
}
.chip:hover {
  transition: none;
}
html.jp,
html.jp * {
  transition: none !important;
}
.mnx {
  position: relative;
}
.mmar {
  position: absolute;
  right: clamp(16px, 6%, 56px);
  bottom: 100%;
  width: 54px;
  margin-bottom: -1px;
  z-index: 3;
  cursor: pointer;
  transition:
    transform 0.9s steps(9),
    opacity 0.9s;
  -webkit-tap-highlight-color: transparent;
}
.mmar svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 2px 0 #0002);
}
.mmar .wv {
  animation: mwv 0.7s steps(1) infinite;
}
.mmar.hop svg {
  animation: hop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mmar.away {
  transform: translateX(140px);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .mmar .wv {
    animation: none;
  }
  .mmar {
    transition: opacity 0.4s;
  }
  .mmar.away {
    transform: none;
  }
}
.chip[data-tm]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    #fff7 0 3px,
    transparent 3px 6px
  );
}
.cmf .ib2 {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--frame);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.cmf .ib2.p {
  background: var(--or);
  color: var(--onor);
}
.cmf .ib2:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.ib2 svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
}
.cmf .ib2::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: var(--ink);
  color: var(--frame);
  font:
    500 11px/1 "Lexend",
    system-ui,
    sans-serif;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .cmf .ib2:hover::after {
    opacity: 1;
  }
}
button.avmore {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  margin-left: 16px;
  color: var(--soft);
}
button.avmore:hover {
  color: var(--ink);
}
.pg .tabs button.rsb svg.pxi {
  width: 18px;
  height: 18px;
}
.pg .tabs button.rsb.arm {
  background: #d6336c;
  color: #fff;
}
.tabs button.arm::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.frame.nwf,
.frame.igf,
.frame.mn,
.frame.chf,
.frame.gmf,
.frame.stf,
.frame.arf,
.frame.rdf {
  padding: clamp(18px, 3.4vw, 36px);
}
.chf,
.chw {
  align-items: start;
}
.igg .ph {
  height: auto;
}
.igg {
  isolation: isolate;
}
.igg a:hover,
.igg a:focus-visible {
  z-index: 6 !important;
}
.igg a[draggable="true"] {
  cursor: grab;
}
.igg a.dg {
  opacity: 0.35;
}
.igg a.ov {
  outline: 3px dashed var(--or);
  outline-offset: -3px;
}
.igh .ib {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--frame);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.igh .ib:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.igd {
  margin: 12px 0 0;
}
@media (hover: none) {
  .igd {
    display: none;
  }
}
.ctl {
  margin-right: 6px;
  margin-bottom: 6px;
}
@container (min-width:640px) {
  .ctl-b {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 821px) {
  .arf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    column-gap: 28px;
    align-items: start;
  }
  .arf > .fch {
    grid-column: 1/-1;
  }
  .arf > .awl {
    grid-column: 1;
  }
  .arf > .ins {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 96px;
    margin-top: 0;
    grid-template-columns: 1fr;
  }
}
.lvl .cl {
  color: var(--or);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.chs #chv {
  transition:
    opacity 0.3s,
    filter 0.3s;
}
.chs.out #chv {
  opacity: 0.14;
  filter: grayscale(1);
}
.chm.in svg {
  animation: chOut 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.chm.bk svg {
  animation: chIn 0.55s ease-in both;
}
@keyframes chOut {
  0% {
    transform: translateY(46px) scale(0.2) rotate(-14deg);
    opacity: 0;
  }
  50% {
    transform: translateY(-44px) scale(1.2) rotate(6deg);
    opacity: 1;
  }
  78% {
    transform: translateY(6px) scale(0.95);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes chIn {
  0% {
    transform: none;
  }
  35% {
    transform: translateY(-30px) scale(1.1);
  }
  100% {
    transform: translateY(44px) scale(0.15) rotate(18deg);
    opacity: 0;
  }
}
/* install-as-app pill */
.app {
  position: fixed;
  z-index: 60;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 52px;
  background: var(--frame);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(160%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app[hidden] {
  display: none;
}
.app.on {
  transform: none;
}
.app-m {
  position: absolute;
  left: 14px;
  bottom: 7px;
  width: 26px;
  pointer-events: none;
}
.app-m svg {
  display: block;
  width: 100%;
  shape-rendering: crispEdges;
  animation: appBob 2.2s steps(2) infinite;
}
@keyframes appBob {
  50% {
    transform: translateY(-3px);
  }
}
.app-b {
  all: unset;
  cursor: pointer;
  display: grid;
  gap: 2px;
}
.app-b:focus-visible,
.app-x:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
.app-b .px {
  font:
    400 11px "Silkscreen",
    monospace;
  letter-spacing: 0.08em;
  color: var(--or);
}
.app-b small {
  font:
    400 12px "Lexend",
    system-ui,
    sans-serif;
  color: var(--soft);
}
.app-x {
  all: unset;
  cursor: pointer;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  font-size: 18px;
  color: var(--soft);
}
.app.mini {
  padding-right: 8px;
}
.app.mini .app-b,
.app.mini .app-x {
  display: none;
}
.app.mini:hover,
.app.mini:focus-within {
  padding-right: 10px;
}
.app.mini:hover .app-b,
.app.mini:hover .app-x,
.app.mini:focus-within .app-b,
.app.mini:focus-within .app-x {
  display: grid;
}
.app-s {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  width: min(290px, calc(100vw - 24px));
  padding: 12px 14px;
  background: var(--frame);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font:
    400 13px/1.45 "Lexend",
    system-ui,
    sans-serif;
}
.app-s[hidden] {
  display: none;
}
.app-s b {
  display: block;
  font:
    400 10px "Silkscreen",
    monospace;
  color: var(--or);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
@media (max-width: 820px) {
  .app {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
    padding-right: 10px;
  }
  .app-b {
    flex: 1;
  }
  .app.mini {
    padding-right: 10px;
  }
  .app.mini .app-b,
  .app.mini .app-x {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app,
  .app-m svg,
  .chm.in svg,
  .chm.bk svg {
    animation: none;
    transition: none;
  }
}

.sec.rl {
  transition:
    left 0.35s var(--liq),
    top 0.35s var(--liq);
}
/* hero name fits whatever frame it is in */
#hero .frame {
  container-type: inline-size;
}
@supports (font-size: 1cqi) {
  #hero h1 {
    font-size: clamp(34px, min(9.4vw, 15.2cqi), 100px);
  }
}
/* about stacks when its own frame is narrow, not only when the screen is */
#about {
  container-type: inline-size;
}
@container (max-width:700px) {
  #about .frame {
    grid-template-columns: 1fr;
    align-items: start;
  }
  #about img {
    max-width: 260px;
    max-height: none;
    aspect-ratio: 1/1;
  }
}
/* work: case layout follows the frame */
#work {
  container-type: inline-size;
}
@container (max-width:560px) {
  .case {
    grid-template-columns: 1fr;
  }
}
/* journey panel */
#pl-story {
  container-type: inline-size;
}
@container (max-width:620px) {
  .lvl {
    grid-template-columns: 1fr;
  }
}
/* Archive responds to its frame width */
#pl-arch {
  container-type: inline-size;
}
@media (min-width: 821px) {
  .arf {
    display: block;
  }
  .arf > .ins {
    position: static;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
@container (min-width:760px) {
  .arf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    column-gap: 28px;
    align-items: start;
  }
  .arf > .fch {
    grid-column: 1/-1;
  }
  .arf > .awl {
    grid-column: 1;
  }
  .arf > .ins {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 96px;
    margin-top: 0;
    grid-template-columns: 1fr;
  }
}
/* gram grid */
#pl-ig {
  container-type: inline-size;
}
@container (max-width:420px) {
  .igg {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .igg {
    margin: 0;
    overflow: visible;
  }
}
/* link style for projects in the journey */
.lvl a.ext {
  color: var(--or);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.lvl a.ext::after {
  content: "\2197";
  display: inline-block;
  font-size: 0.8em;
  margin-left: 2px;
  text-decoration: none;
}

/* pixel camera in Mario's Gram */
.igcam {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 14px 6px 0;
  border-top: 2px dashed var(--line);
}
.igcam .cam {
  width: 48px;
  height: 36px;
  flex: none;
  shape-rendering: crispEdges;
  overflow: visible;
  animation: camb 2.4s steps(2) infinite;
}
.igcam .fl {
  animation: camfl 3.2s steps(1) infinite;
}
.igcam p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--soft);
}
.igcam p b {
  display: block;
  font:
    400 10px "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.08em;
  color: var(--or);
  margin-bottom: 3px;
}
.igcam .t {
  display: none;
}
@media (hover: none) {
  .igcam .d {
    display: none;
  }
  .igcam .t {
    display: inline;
  }
}
.igf.swp .igcam .cam {
  animation: camz 0.22s steps(2) infinite;
}
.igf.swp .igcam .fl {
  animation: none;
  fill: var(--or);
}
@keyframes camb {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes camz {
  50% {
    transform: rotate(-6deg);
  }
}
@keyframes camfl {
  0%,
  86%,
  100% {
    opacity: 1;
  }
  90%,
  96% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .igcam .cam,
  .igcam .fl,
  .igf.swp .igcam .cam {
    animation: none;
  }
}

/* Polaroid: touch overlay and draggable desktop frame */
.igpsec {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-width: none;
  width: auto;
  padding: 16px;
  place-items: center;
}
.igpsec.show {
  display: grid;
}
.igpsec > .lab {
  display: none;
}
.igpsec .igb {
  position: absolute;
  inset: 0;
  background: #000c;
}
.igpsec .igc img {
  aspect-ratio: 1;
  max-height: none;
  height: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .igpsec.show .igc {
    animation: igd 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
html.cv #cv .igpsec.show {
  position: absolute;
  inset: auto;
  left: var(--ix, 60%);
  top: var(--iy, 100px);
  width: 400px;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  z-index: 6;
}
html.cv #cv .igpsec .igb {
  display: none;
}
html.cv #cv .igpsec .igc {
  width: 100%;
  max-height: none;
  box-shadow: 0 24px 60px #0004;
}
html.cv #cv .igpsec.dg .igc {
  outline: 1.5px solid var(--or);
  box-shadow: 0 30px 70px #0005;
}
html.cv #cv .igpsec .igx {
  top: 22px;
  right: 22px;
}

.mnx {
  max-width: 1100px;
}
/* profile photo: equal margins on every side on phones */
@media (max-width: 820px) {
  #about .frame {
    padding: 20px;
    gap: 20px;
    justify-items: stretch;
  }
  #about img {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 1/1;
    max-height: none;
    object-position: 50% 15%;
  }
}
@container (max-width:700px) {
  #about .frame {
    padding: 20px;
    gap: 20px;
    justify-items: stretch;
  }
  #about img {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 1/1;
    max-height: none;
  }
}
/* Mario on Now playing */
.nmar svg {
  animation: none;
}
.nmar.bop svg {
  animation: nbop 0.6s steps(1) infinite;
}
.nmar.walk svg {
  animation: nwk 0.3s steps(1) infinite;
}
@keyframes nbop {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes nwk {
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nmar.bop svg,
  .nmar.walk svg {
    animation: none;
  }
}
/* camera on Mario's Gram */
.gcam {
  position: absolute;
  right: clamp(16px, 6%, 56px);
  bottom: 100%;
  width: 54px;
  margin-bottom: -1px;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gcam svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 2px 0 #0002);
}
.gcam .ph {
  animation: gph 4.8s steps(6) infinite;
}
.gcam .fl {
  animation: camfl 4.8s steps(1) infinite;
}
.gcam.snap svg {
  animation: gsn 0.3s steps(2);
}
.mnx:has(.igf.swp) .gcam svg {
  animation: camz 0.22s steps(2) infinite;
}
@keyframes gph {
  0%,
  58% {
    transform: translateY(7px);
  }
  72%,
  92% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(7px);
  }
}
@keyframes gsn {
  50% {
    transform: translateY(2px) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gcam .ph,
  .gcam .fl,
  .gcam.snap svg,
  .mnx:has(.igf.swp) .gcam svg {
    animation: none;
  }
  .gcam .ph {
    transform: translateY(0);
  }
}
.igcam .px .t {
  display: none;
}
@media (hover: none) {
  .igcam .px .d {
    display: none;
  }
  .igcam .px .t {
    display: inline;
  }
}
/* download-to-device flow */
.dlx {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #000b;
}
.dlx[hidden] {
  display: none;
}
.dlc {
  width: min(420px, 100%);
  background: var(--frame);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  text-align: center;
}
.dls {
  position: relative;
  height: 130px;
  margin-bottom: 16px;
  border-bottom: 3px dashed var(--line);
  overflow: hidden;
}
.dls svg {
  display: block;
  shape-rendering: crispEdges;
}
.dlm {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 56px;
}
.dld {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 48px;
}
.dld .ck {
  opacity: 0;
}
.dlc.ok .dld .ck {
  opacity: 1;
}
.dlc.ok .dld {
  animation: dlj 0.4s steps(2) 2;
}
.dlf {
  position: absolute;
  left: 56px;
  bottom: 34px;
  width: 28px;
  opacity: 0;
}
.dlc.run .dlf {
  animation: dlfly 1.9s steps(14) 0.5s forwards;
}
.dlc.run .dlm {
  animation: dlh 0.5s steps(2) 4;
}
@keyframes dlfly {
  0% {
    left: 56px;
    bottom: 34px;
    opacity: 1;
    transform: rotate(0);
  }
  45% {
    left: 42%;
    bottom: 96px;
    opacity: 1;
    transform: rotate(-12deg);
  }
  85% {
    left: calc(100% - 82px);
    bottom: 44px;
    opacity: 1;
    transform: rotate(8deg) scale(0.6);
  }
  100% {
    left: calc(100% - 66px);
    bottom: 30px;
    opacity: 0;
    transform: scale(0.2);
  }
}
@keyframes dlh {
  50% {
    transform: translateY(-4px);
  }
}
@keyframes dlj {
  50% {
    transform: translateY(-5px);
  }
}
.dlt {
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 10px;
  min-height: 1.4em;
}
.dlb {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin: 0 0 4px;
}
.dlb i {
  height: 12px;
  background: var(--line);
}
.dlb i.on {
  background: var(--or);
}
.dla {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.dla[hidden] {
  display: none;
}
.dla .btn {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .dlc.run .dlf,
  .dlc.run .dlm,
  .dlc.ok .dld {
    animation: none;
  }
}
/* Download frame: touch overlay and draggable desktop frame */
.dlsec {
  z-index: 1200;
}
.dlsec .igb {
  background: #000b;
}
.dlsec .dlc {
  position: relative;
  z-index: 1;
}
html.cv #cv .dlsec.show {
  width: 420px;
  z-index: 7;
}
html.cv #cv .dlsec .dlc {
  width: 100%;
  margin: 0;
  box-shadow:
    6px 6px 0 var(--ink),
    0 24px 60px #0004;
}
html.cv #cv .dlsec.dg .dlc {
  outline: 1.5px solid var(--or);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .dlsec.show .dlc {
    animation: igd 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
/* Lykluk case-study layout */
.lyk {
  display: grid;
  gap: 56px;
  margin-top: 28px;
}
.lyk section {
  display: grid;
  gap: 14px;
  align-content: start;
}
.lyk h3 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.1;
}
.lyk h3 small {
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-right: 10px;
  vertical-align: middle;
}
.lyk p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
}
.lyk figure {
  margin: 0;
}
.lyk img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--frame);
}
.lyk figcaption {
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 8px;
}
.lyk .pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}
.lyk .strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.lyk .strip figure {
  flex: 0 0 min(80%, 440px);
  scroll-snap-align: start;
}
.lyk .lyl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.lyl .st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lyl .st svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}
.lyk .nt {
  position: relative;
  justify-self: start;
  max-width: min(540px, 100%);
  margin: 6px 0 4px;
  padding: 18px 18px 14px;
  background: color-mix(in srgb, var(--or) 14%, var(--frame));
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 3px 4px 0 var(--line);
  font-size: 15px;
  line-height: 1.5;
  transform: rotate(var(--r, -1.2deg));
}
.lyk .nt::before,
.lyk .pn::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--or);
  box-shadow:
    inset -2px -2px 0 #0003,
    0 2px 0 #0002;
  z-index: 1;
}
.lyk .pn {
  position: relative;
  transform: rotate(var(--r, 0deg));
  padding-top: 6px;
}
.lyk .pn::before {
  left: 50%;
  margin-left: -6px;
  top: -4px;
}
@media (prefers-reduced-motion: no-preference) {
  .lyk .nt,
  .lyk .pn {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .lyk .nt:hover,
  .lyk .pn:hover {
    transform: rotate(0);
  }
}

.igcam .px .t {
  display: none;
}
@media (hover: none) {
  .igcam {
    display: none;
  }
}
.mnx {
  overflow-x: clip;
}
/* lykluk v2: hero stage, real-screen strip, motion cards */
.csbody figure.hero {
  --pad: clamp(18px, 3.5vw, 40px);
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 26px;
  padding: clamp(14px, 4vw, 40px) clamp(8px, 2vw, 24px) 0;
  background: radial-gradient(
    120% 90% at 50% 40%,
    #fff 0,
    #f2e8fb 55%,
    #e3d0f4 100%
  );
}
.csbody figure.hero img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.lyk .scr figure {
  flex: 0 0 min(60%, 250px);
}
.lyk .scr img {
  border-radius: 18px;
  box-shadow: 0 10px 28px #0002;
}
.lyk .mh {
  margin: 18px 0 0;
  padding: 0;
  font-size: 16px;
}
.lyk .mo {
  display: grid;
  gap: 10px;
}
.lyk .mo a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #7a2fb8, #2a0b3d) center/cover;
}
.lyk .mo a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000a, #0005);
}
.lyk .mo b,
.lyk .mo small {
  position: relative;
  font-weight: 500;
}
.lyk .mo b {
  align-self: end;
  font-size: 16px;
}
.lyk .mo small {
  align-self: start;
  font-size: 12.5px;
  opacity: 0.85;
}
.lyk .mo i {
  position: relative;
  z-index: 1;
  grid-row: 1/3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.lyk .mo i::after {
  content: "";
  margin-left: 3px;
  border-left: 12px solid #3a1257;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.lyk .mo a:active {
  transform: scale(0.98);
}

/* case-study image lightbox */
.lyk figure {
  position: relative;
}
.lyk figure > img,
.csbody .cover img {
  cursor: zoom-in;
}
.lyk figure::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E")
    center/14px no-repeat;
  pointer-events: none;
  opacity: 0.85;
}
.cszv {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  flex-direction: column;
  background: #0b0b0b;
  color: #fff;
  overscroll-behavior: contain;
}
.cszv.show {
  display: flex;
}
.cszv .czt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.cszv .czt span {
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  opacity: 0.8;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cszv button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #fff6;
  border-radius: 999px;
  background: none;
  color: #fff;
  font:
    500 14px "Lexend",
    system-ui,
    sans-serif;
  cursor: pointer;
}
.cszv .czs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}
.cszv img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  touch-action: pan-x pan-y pinch-zoom;
}
.cszv.z .czs {
  place-items: start;
}
.cszv.z img {
  max-width: none;
  max-height: none;
  width: 200%;
  cursor: zoom-out;
}
.cszv .czn {
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}
.cszv .czn button {
  flex: 1;
}
.cszv .czn[hidden] {
  display: none;
}

html:not(.cv) .sec,
html:not(.cv) .sec > .frame {
  width: 100%;
  max-width: 100%;
}

.nsy .ln {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}
.nsy .l1 {
  animation: nl1 4.4s steps(6) infinite;
}
.nsy .l2 {
  animation: nl2 4.4s steps(6) infinite;
}
.nsy .l3 {
  animation: nl3 4.4s steps(6) infinite;
}
.nsy .pc {
  animation: npc 4.4s steps(6) infinite;
}
.nsy .ck {
  opacity: 0;
}
.nsy.done .ln {
  animation: none;
  transform: scaleX(1);
}
.nsy.done .pc {
  animation: none;
  transform: translate(9px, -6px);
}
.nsy.done .ck {
  opacity: 1;
}
@keyframes nl1 {
  0% {
    transform: scaleX(0);
  }
  22%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes nl2 {
  0%,
  26% {
    transform: scaleX(0);
  }
  48%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes nl3 {
  0%,
  52% {
    transform: scaleX(0);
  }
  74%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes npc {
  0% {
    transform: translate(0, 0);
  }
  22% {
    transform: translate(6px, 0);
  }
  26% {
    transform: translate(0, 2px);
  }
  48% {
    transform: translate(5px, 2px);
  }
  52% {
    transform: translate(0, 4px);
  }
  74% {
    transform: translate(7px, 4px);
  }
  86%,
  100% {
    transform: translate(9px, -6px);
  }
}
.arb .lid {
  animation: alid 5s steps(4) infinite;
}
.arb .s1 {
  animation: as1 5s steps(6) infinite;
}
.arb .s2 {
  animation: as2 5s steps(6) infinite;
}
.arb .s3 {
  animation: as3 5s steps(6) infinite;
}
@keyframes alid {
  0%,
  8% {
    transform: translateY(0);
  }
  14%,
  82% {
    transform: translateY(-3px);
  }
  90%,
  100% {
    transform: translateY(0);
  }
}
@keyframes as1 {
  0%,
  16% {
    transform: translateY(8px);
  }
  30%,
  70% {
    transform: translateY(0);
  }
  84%,
  100% {
    transform: translateY(8px);
  }
}
@keyframes as2 {
  0%,
  24% {
    transform: translateY(10px);
  }
  38%,
  62% {
    transform: translateY(0);
  }
  78%,
  100% {
    transform: translateY(10px);
  }
}
@keyframes as3 {
  0%,
  32% {
    transform: translateY(8px);
  }
  46%,
  54% {
    transform: translateY(0);
  }
  72%,
  100% {
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nsy .ln {
    animation: none;
    transform: scaleX(1);
  }
  .nsy .pc {
    animation: none;
    transform: translate(9px, -6px);
  }
  .arb .lid {
    animation: none;
    transform: translateY(-3px);
  }
  .arb .s {
    animation: none;
    transform: none;
  }
}
/* Disable cursor follower for touch input */
@media (hover: none), (max-width: 700px) {
  .chb {
    display: none;
  }
}
/* Case studies (SOMA, Lykluk, Revolve, Yadsale) */
@font-face {
  font-family: "Goldplay";
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/goldplay-400.woff) format("woff");
}
@font-face {
  font-family: "Goldplay";
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/goldplay-600.woff) format("woff");
}
@font-face {
  font-family: "Goldplay";
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/goldplay-700.woff) format("woff");
}
@font-face {
  font-family: "Goldplay";
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/goldplay-900.woff) format("woff");
} /* Case study scenes shared by SOMA and Lykluk. Colours come from per-project vars on #csf */
#csf[data-p="soma"] {
  --pb: #0a0a0b;
  --pa: #1c4fd8;
  --pl: #222c52;
  --ps: #9aa5c4;
  --pt: #e6ecfd;
}
#csf[data-p="lykluk"] {
  --pb: #2a0b3d;
  --pa: #8b35c0;
  --pl: #4b2670;
  --ps: #cbb4e2;
  --pt: #efe3f8;
}
#csf:is(
    [data-p="soma"],
    [data-p="lykluk"],
    [data-p="revolve"],
    [data-p="yadsale"]
  )
  :is(.csbar2, .csfoot) {
  background: var(--pb);
  color: #fff;
  border-color: var(--pl);
  z-index: 6;
}
#csf:is(
    [data-p="soma"],
    [data-p="lykluk"],
    [data-p="revolve"],
    [data-p="yadsale"]
  )
  .pill2 {
  color: #fff;
  border-color: #ffffff55;
}
#csf:is(
    [data-p="soma"],
    [data-p="lykluk"],
    [data-p="revolve"],
    [data-p="yadsale"]
  )
  .pill2:hover {
  border-color: var(--pa);
}
.sxh {
  --pad: clamp(20px, 4vw, 44px);
  --soft: var(--ps);
  --line: var(--pl);
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 16px;
  padding: var(--pad) var(--pad) calc(var(--pad) - 6px);
  color: #fff;
  background:
    radial-gradient(
      80% 90% at 85% 120%,
      color-mix(in srgb, var(--pa) 45%, transparent),
      transparent
    ),
    var(--pb);
}
.sxh .btn {
  color: #fff;
  border-color: #ffffff55;
  min-height: 42px;
  font-size: 14px;
}
.sxh .btn.p {
  background: var(--pa);
  border-color: var(--pa);
}
.sxs {
  isolation: isolate;
  --bg: var(--pa);
  --fg: #fff;
  --tg: #ffffff26;
  display: grid;
  gap: clamp(12px, 2.4vw, 24px);
  margin: 0 0 14px;
  padding: clamp(16px, 3.4vw, 38px);
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.sxs.k {
  --bg: var(--pb);
  --tg: #ffffff1f;
}
.sxs.l {
  --bg: var(--pt);
  --fg: #0a0a0b;
  --tg: #fff;
}
.sxs.bl {
  padding-bottom: 0;
}
.sxs figure {
  margin: 0;
  min-width: 0;
}
.sxi {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px #0006;
}
.sxi img {
  display: block;
  width: 100%;
  height: auto;
}
.sxs.l .sxi {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pa) 25%, transparent);
}
.sxs figcaption {
  display: table;
  margin: 12px auto 0;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--tg);
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
}
.sxs .t3,
.sxs .g2 {
  display: grid;
  gap: clamp(12px, 2.4vw, 24px);
  align-items: start;
}
.sxs .g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sxs .t3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sxs .ph3 .sxi {
  border: 4px solid #0a0a0b;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 9/19.2;
}
.sxs .ph3 img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.sxs .fan {
  max-width: 620px;
  margin: 0 auto;
  align-items: end;
}
.sxs .fan figure:nth-child(2) {
  position: relative;
  z-index: 2;
}
.sxs .wv figure:nth-child(2) {
  margin-top: clamp(14px, 4vw, 40px);
}
.sxs .wv.up figure:nth-child(2) {
  margin-top: 0;
}
.sxs .wv.up figure:not(:nth-child(2)) {
  margin-top: clamp(14px, 4vw, 40px);
}
.sxs .flow figure {
  position: relative;
}
.sxs .flow figure:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(-1 * clamp(10px, 2.4vw, 24px) - 5px);
  top: 42%;
  width: clamp(10px, 2.4vw, 24px);
  height: 2px;
  background: #fff9;
  z-index: 3;
}
.sxs .flow figure:not(:last-child)::before {
  content: "";
  position: absolute;
  right: calc(-1 * clamp(10px, 2.4vw, 24px) - 5px);
  top: calc(42% - 4px);
  width: 8px;
  height: 8px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  z-index: 3;
}
.sxs .ov {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}
.sxs .ov figure:first-child {
  grid-area: 1/1/2/10;
  position: relative;
  z-index: 1;
  padding-bottom: clamp(16px, 3.4vw, 38px);
}
.sxs .ov figure:last-child {
  grid-area: 1/9/2/13;
  position: relative;
  z-index: 3;
}
.sxs .pho .sxi {
  border: 5px solid #0a0a0b;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 50px #0008;
}
.sxs .pho figcaption {
  display: none;
}
.sxs .ov2 {
  display: block;
}
.sxs .ov2 figure:first-child {
  width: 74%;
  display: flex;
  flex-direction: column-reverse;
}
.sxs .ov2 figure:first-child figcaption {
  margin: 0 0 12px;
  align-self: flex-start;
}
.sxs .ov2 figure:last-child {
  position: relative;
  z-index: 2;
  width: 66%;
  margin: -9% 0 0 auto;
}
.sxs .ov2 figure:last-child .sxi {
  box-shadow: 0 24px 60px #0007;
}
.sxs .stg figure:nth-child(2) {
  margin-top: clamp(18px, 6vw, 64px);
}
.sxs .bw .sxi::before {
  content: "checksoma.com";
  display: block;
  padding: 9px 14px 9px 62px;
  font:
    500 11px "Lexend",
    system-ui,
    sans-serif;
  color: #6b6b6b;
  background:
    radial-gradient(circle at 16px 50%, #ff6058 4.5px, #0000 5px),
    radial-gradient(circle at 31px 50%, #ffbd2e 4.5px, #0000 5px),
    radial-gradient(circle at 46px 50%, #28c840 4.5px, #0000 5px), #f2f2f0;
}
.sxs .split {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 56px);
  align-items: center;
}
.sx .nt {
  position: relative;
  justify-self: start;
  max-width: min(520px, 100%);
  margin: 2px 0 0;
  padding: 16px 18px 12px;
  background: color-mix(in srgb, var(--or) 14%, #fff);
  color: #1c160e;
  border-radius: 4px;
  box-shadow: 3px 4px 0 #0004;
  font-size: 15px;
  line-height: 1.5;
  transform: rotate(var(--r, -1.2deg));
}
.sx .nt::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--or);
  box-shadow:
    inset -2px -2px 0 #0003,
    0 2px 0 #0002;
}
.sx .lk {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}
.sx .lk a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  background: var(--pb);
  color: #fff;
  text-decoration: none;
  font:
    500 14px/1 "Lexend",
    system-ui,
    sans-serif;
  transition:
    transform 0.4s var(--liq),
    background 0.3s;
}
.sx .lk a::before {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pa)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M3.2 1.4v9.2l7.4-4.6z'/%3E%3C/svg%3E")
    55% 50%/12px no-repeat;
}
.sx .lk a.go::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' d='M3 9l6-6M4 3h5v5'/%3E%3C/svg%3E");
  background-position: center;
}
.sxs .lk a {
  background: #ffffff1f;
}
.sx .lk a:hover {
  transform: translateY(-2px);
  background: var(--pl);
}
/* name scene */
.sxs .nm {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 5vw, 56px);
  align-items: center;
}
.sxs .nm .ico {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  overflow: visible;
}
.ico .pc {
  transition: transform 1s var(--liq);
}
.ico .pc circle {
  fill: #fff;
  transition: fill 0.9s;
}
.ico .ln path {
  stroke: #0a0a0b;
  stroke-width: 0.16;
  stroke-dasharray: 1;
  transition:
    stroke 0.8s,
    stroke-width 0.8s,
    opacity 0.5s;
}
.ico .lt {
  font:
    700 0.36px "Geist",
    "Lexend",
    system-ui,
    sans-serif;
  fill: #0a0a0a;
  opacity: 0;
  transition: opacity 0.6s 0.6s;
}
.ico .a .lt,
.ico .b .lt {
  fill: #fff;
}
.nm[data-st="tree"] .ico .pc circle {
  fill: #16161c;
}
.nm[data-st="tree"] .ico .ln path {
  stroke: #4b7bff;
  stroke-width: 0.11;
}
.nm[data-st="pie"] .ico .ln path {
  opacity: 0;
}
.nm[data-st="pie"] .ico .lt {
  opacity: 1;
}
.nm[data-st="pie"] .ico .a {
  transform: translate(-0.1px, -0.1px);
}
.nm[data-st="pie"] .ico .b {
  transform: translate(-0.1px, 0.1px);
}
.nm[data-st="pie"] .ico .c {
  transform: translate(0.1px, -0.1px);
}
.nm[data-st="pie"] .ico .d {
  transform: translate(0.1px, 0.1px);
}
.nm[data-st="pie"] .ico .a circle {
  fill: #1c4fd8;
}
.nm[data-st="pie"] .ico .b circle {
  fill: #fff;
}
.nm[data-st="pie"] .ico .c circle {
  fill: #ededed;
}
.nm[data-st="pie"] .ico .d circle {
  fill: #5a82ee;
}
.sxs .jg {
  display: flex;
  gap: clamp(10px, 2vw, 18px);
}
.sxs .jg + .jg {
  margin-top: clamp(10px, 2vw, 18px);
}
.sxs .jg figure {
  flex: var(--r, 1) 1 0;
  position: relative;
}
.sxs .jg figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  background: #0009;
  color: #fff;
}
.sxs .story {
  min-width: 0;
}
.sxs .wm {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 0 0 16px;
}
.sxs .eb {
  margin: 0 0 12px;
  color: #9aa5c4;
  font:
    500 11px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sxs .cs-process {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.sxs .cs-process button {
  all: unset;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff8c;
  font:
    400 14px/1.5 "Lexend",
    system-ui,
    sans-serif;
  transition:
    background 0.5s,
    color 0.5s;
}
.sxs .cs-process button b {
  font:
    600 12px/22px "Lexend",
    system-ui,
    sans-serif;
  color: #7c9cff;
}
.sxs .cs-process strong {
  display: block;
  font:
    600 16px/1.3 "Lexend",
    system-ui,
    sans-serif;
  margin-bottom: 2px;
}
.sxs .cs-process button.on {
  background: #ffffff14;
  color: #fff;
}
.sxs .cs-process button:focus-visible {
  outline: 2px solid #7c9cff;
}
.sxs .lg {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s 0.5s,
    transform 0.8s 0.5s var(--liq);
}
.nm[data-st="pie"] .lg {
  opacity: 1;
  transform: none;
}
.sxs .lg li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  background: #ffffff14;
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
}
.sxs .lg b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font:
    700 12px "Geist",
    "Lexend",
    system-ui,
    sans-serif;
}
.lg li:nth-child(1) b {
  background: #1c4fd8;
  color: #fff;
}
.lg li:nth-child(2) b {
  background: #ededed;
  color: #0a0a0a;
}
.lg li:nth-child(3) b {
  background: #fff;
  color: #0a0a0a;
}
.lg li:nth-child(4) b {
  background: #5a82ee;
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes grow {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  .nm[data-st="tree"] .ico .ln path {
    animation: grow 1.3s var(--liq) both;
  }
  .nm[data-st="tree"] .ico .ln path:nth-child(2) {
    animation-delay: 0.45s;
  }
  .nm[data-st="tree"] .ico .ln path:nth-child(3) {
    animation-delay: 0.7s;
  }
}
.sxs .wd {
  font:
    700 clamp(64px, 13vw, 128px) / 0.9 "Geist",
    "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: -0.05em;
  margin: 0;
}
.sxs .wd + p {
  margin: 6px 0 18px;
  color: #ffffffa6;
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sxs .tg2 {
  display: inline-flex;
  padding: 4px;
  border-radius: 99px;
  background: #ffffff1a;
  margin-bottom: 6px;
}
.sxs .tg2 button {
  all: unset;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 99px;
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  color: #fff;
}
.sxs .tg2 button.on {
  background: #fff;
  color: #0a0a0a;
}
/* system boards */
.sxs .pal {
  display: flex;
  gap: 10px;
}
.sxs .sw {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: var(--w, 1);
  min-height: var(--h, 170px);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--c);
  color: var(--t, #fff);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  font:
    500 14px/1.3 "Lexend",
    system-ui,
    sans-serif;
  transition: transform 0.5s var(--liq);
  outline: 1px solid #0001;
}
.sxs .sw:hover {
  transform: translateY(-4px);
}
.sxs .sw span {
  font:
    400 12px "Lexend",
    system-ui,
    sans-serif;
  opacity: 0.75;
}
.sxs .sw.cp span::after {
  content: " · copied";
}
.sxs .sw:focus-visible {
  outline: 2px solid currentColor;
}
.sxs .note2 {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
  max-width: 60ch;
}
.sxs .lbn {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sxs .lbn .sw:first-child {
  grid-area: 1/1/3/3;
  min-height: 240px;
}
.sxs .lbn .sw {
  min-height: 115px;
}
.sxs .lbn .sw:nth-child(4) {
  grid-column: 3/5;
}
.sxs .chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.sxs .chips .sw {
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.sxs .ty {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(14px, 4vw, 40px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 14px;
  background: #fff;
  color: #0a0a0a;
}
.sxs .ty.d {
  background: #1a0a2b;
  color: #fff;
}
.sxs .aa {
  font: 700 clamp(96px, 22vw, 190px) / 0.85 var(--ff);
  letter-spacing: -0.04em;
  margin: 0;
}
.sxs .ty small {
  display: block;
  margin-top: 10px;
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
  opacity: 0.6;
}
.sxs .rw {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid #8883;
}
.sxs .rw:first-child {
  border: 0;
}
.sxs .rw i {
  font:
    500 11px "Lexend",
    system-ui,
    sans-serif;
  font-style: normal;
  opacity: 0.6;
}
.sxs .rw span {
  font-family: var(--ff);
  line-height: 1.1;
}
@media (hover: hover) {
  .sxs .sxi {
    transition: transform 0.5s var(--liq);
  }
  .sxs .sxi:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 640px) {
  .sxs .nm,
  .sxs .ty,
  .sxs .split {
    grid-template-columns: 1fr;
  }
  .sxs .pal {
    flex-direction: column;
  }
  .sxs .sw {
    min-height: var(--hm, 84px);
  }
  .sxs .lbn .sw:first-child {
    min-height: 170px;
  }
  .sxs .lbn .sw {
    min-height: 96px;
  }
  .sxs .aa {
    font-size: clamp(88px, 34vw, 150px);
  }
}
@media (max-width: 560px) {
  .sxs .g2 {
    grid-template-columns: 1fr;
  }
  .sxs .ph3 .sxi {
    border-width: 3px;
    border-radius: 14px;
  }
  .sxs .ph3 figcaption {
    font-size: 10px;
    padding: 3px 8px;
  }
  .sxs .ov {
    display: block;
  }
  .sxs .ov figure:last-child {
    width: 62%;
    margin: 14px auto 0;
  }
  .sxs .nm .icw {
    max-width: 290px;
  }
  .sxs .lbn {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sxs .lbn .sw:first-child {
    grid-area: 1/1/2/4;
    min-height: 140px;
  }
  .sxs .lbn .sw:nth-child(4) {
    grid-column: auto;
  }
  .sxs .lbn .sw {
    padding: 10px 12px;
    font-size: 13px;
  }
  .sxs .lbn .sw span {
    font-size: 11px;
  }
  .sxs .ov figure:first-child {
    padding-bottom: 0;
  }
  .sxs .ov2 figure:first-child {
    width: 86%;
  }
  .sxs .ov2 figure:last-child {
    width: 76%;
  }
  .sxs .flow figure::before,
  .sxs .flow figure::after {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes sxu {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  .sxh > * {
    animation: sxu 0.9s var(--liq) both;
  }
  .sxh > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .sxh > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .sxh > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .sxs .rv {
    filter: none;
  }
  .sxs.fx :is(figure, .nt, .rv) {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    transition:
      opacity 0.7s var(--liq),
      transform 0.95s var(--liq);
    transition-delay: calc(var(--i, 0) * 120ms);
  }
  .sxs.in :is(figure, .rv) {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .sxs.in .nt {
    opacity: 1;
    transform: rotate(var(--r, -1.2deg));
  }
  .sxs.fx:not(.in) .fan figure:first-child {
    transform: translateX(62%);
  }
  .sxs.fx:not(.in) .fan figure:last-child {
    transform: translateX(-62%);
  }
  .sxs.fx:not(.in) .fan figure:nth-child(2) {
    transform: translateY(34px) scale(0.92);
  }
  .sxs.fx:not(.in) .ov figure:last-child {
    transform: translateY(60px);
  }
  .sxs.fx:not(.in) .ov2 figure:last-child {
    transform: translate(40px, 40px);
  }
}

#csf[data-p="revolve"] {
  --pb: #0d1b37;
  --pa: #988ff7;
  --pl: #24336b;
  --ps: #aab4e6;
  --pt: #ede7fb;
}
#csf[data-p="revolve"] .sxh .btn.p {
  background: #e5fb72;
  border-color: #e5fb72;
  color: #0d1b37;
}
.sxs.cs {
  background:
    radial-gradient(62% 72% at 50% 42%, #988ff766, transparent), var(--pb);
  justify-items: center;
}
.sxs.cs > .rv {
  width: 100%;
}
.sxs .cn {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1000px;
  height: clamp(250px, 56vw, 400px);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.sxs .cn:active {
  cursor: grabbing;
}
.sxs .cn::after {
  content: "";
  position: absolute;
  bottom: 3%;
  width: 44%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(#0009, #0000 70%);
  filter: blur(5px);
}
.sxs .cw {
  position: relative;
  width: clamp(170px, 42vw, 270px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(var(--ry, 0deg));
}
.sxs .cw i {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  aspect-ratio: 1;
  position: absolute;
  inset: 0;
  background: var(--img) center/100% 100% no-repeat;
  transform: translateZ(var(--z, 0));
}
.sxs .cw i.coin-edge {
  background: var(--rim, #b98521);
  border-radius: 50%;
  width: 98%;
  height: 98%;
  inset: 1%;
  filter: none;
}
.sxs .cw i.coin-front {
  --z: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sxs .cw i.coin-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(-6px) rotateY(180deg);
}
.sxs .cc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sxs .cc button {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: #ffffff1a;
  color: #fff;
  font:
    500 13px "Lexend",
    system-ui,
    sans-serif;
  transition:
    background 0.4s,
    color 0.4s,
    transform 0.4s var(--liq);
}
.sxs .cc button:hover {
  transform: translateY(-2px);
}
.sxs .cc button.on {
  background: #e5fb72;
  color: #0d1b37;
}
.sxs .cc button:focus-visible {
  outline: 2px solid #e5fb72;
}
.sxs .cc img {
  border-radius: 50%;
}
.sxs .hint {
  margin: 0;
  color: #ffffff99;
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sxs .mk {
  display: block;
  background: var(--c, #fff);
  -webkit-mask: var(--m) left center/100% 100% no-repeat;
  mask: var(--m) left center/100% 100% no-repeat;
  width: 100%;
}
.sxs .mk[aria-label^="Where"] {
  aspect-ratio: 900/237;
  max-width: 520px;
}
.sxs .mk[aria-label^="ABC"] {
  aspect-ratio: 900/143;
  margin-bottom: 12px;
}
.sxs .fw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
}
.sxs .sub {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.8;
}
.sxs .fl {
  position: relative;
  aspect-ratio: 1.02;
}
.sxs .fl img {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 18px 24px #0d1b3744);
}
.sxs .f1 {
  left: 0;
  top: 6%;
  width: 52%;
}
.sxs .f2 {
  left: 54%;
  top: 0;
  width: 42%;
}
.sxs .f3 {
  left: 72%;
  top: 44%;
  width: 25%;
}
.sxs .f4 {
  left: 4%;
  top: 56%;
  width: 62%;
}
.sxs.cs .rv {
  display: grid;
  justify-items: center;
}
@media (max-width: 640px) {
  .sxs .fw {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes flt {
    50% {
      transform: translateY(-12px) rotate(2deg);
    }
  }
  @keyframes mqa {
    to {
      transform: translateX(-50%);
    }
  }
  .sxs .fl img {
    animation: flt 6s ease-in-out infinite;
  }
  .sxs .f2 {
    animation-duration: 7.5s !important;
    animation-delay: -2s;
  }
  .sxs .f3 {
    animation-duration: 5s !important;
    animation-delay: -1s;
  }
  .sxs .f4 {
    animation-duration: 8s !important;
    animation-delay: -3s;
  }
  .sxs .mq > div {
    animation: mqa 30s linear infinite;
  }
  .sxs .mq.r > div {
    animation-direction: reverse;
    animation-duration: 36s;
  }
}
.sxs.cs .cc {
  display: flex;
}
#csf[data-p="revolve"] .sxs .ty.d {
  background: #0d1b37;
}
#csf[data-p="revolve"] .sxs .jg figcaption {
  top: 10px;
  bottom: auto;
}
.sxs figcaption:empty {
  display: none;
}
.sxs .gl {
  margin: 0;
  color: #ffffffb3;
  font:
    500 12px "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sxs .mq {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, #0000, #000 7%, #000 93%, #0000);
  mask: linear-gradient(90deg, #0000, #000 7%, #000 93%, #0000);
}
.sxs .mq + .mq {
  margin-top: 10px;
}
.sxs .mq > div {
  display: flex;
  width: max-content;
}
.sxs .mq img {
  display: block;
  height: clamp(54px, 11vw, 84px);
  width: auto;
  margin-right: 10px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #0d1b3726;
}
.sxs .ty .aa {
  transition:
    font-weight 0.8s var(--liq),
    letter-spacing 0.8s var(--liq),
    transform 0.8s var(--liq);
}
.sxs .ty.on .aa {
  font-weight: 400;
  letter-spacing: 0.03em;
  transform: scale(1.05) rotate(-2deg);
}
.sxs .rw span {
  display: block;
  transition:
    transform 0.7s var(--liq),
    letter-spacing 0.7s var(--liq);
}
.sxs .ty.on .rw span {
  transform: translateX(10px);
  letter-spacing: 0.015em;
}
.sxs .ty.on .rw:nth-child(2) span {
  transition-delay: 0.05s;
}
.sxs .ty.on .rw:nth-child(3) span {
  transition-delay: 0.1s;
}
.sxs .ty.on .rw:nth-child(4) span {
  transition-delay: 0.15s;
}
.sxs .ty.on .rw:nth-child(5) span {
  transition-delay: 0.2s;
}
.sxs .ty .mk {
  transition:
    transform 0.8s var(--liq),
    background 0.6s;
}
.sxs .ty.on .mk[aria-label^="ABC"] {
  background: #e0b8f6;
  transform: skewX(-8deg) translateX(8px);
}
.sxs .ty.on .mk[aria-label^="Where"] {
  background: #e5fb72;
  transform: translateX(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .sxs .mq > div {
    animation: mqa 34s linear infinite;
  }
  .sxs .mq.r > div {
    animation-direction: reverse;
    animation-duration: 40s;
  }
}
.sxs .nm .icw {
  position: relative;
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.sxs .nm .ico {
  display: block;
  width: 100%;
  max-width: none;
  transition: transform 1s var(--liq);
}
.nm[data-st="tree"] .ico {
  transform: scale(0.58);
}
.sxs .bl {
  position: absolute;
  font:
    500 10.5px/1.3 "Lexend",
    system-ui,
    sans-serif;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s,
    transform 0.8s var(--liq);
}
.sxs .bl::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b7bff;
  box-shadow: 0 0 0 3px #4b7bff33;
}
.sxs .bl.r {
  left: 71%;
  top: calc(35.5% - 7px);
  width: 29%;
  padding-left: 13px;
  transform: translateX(-10px);
}
.sxs .bl.r::before {
  left: 0;
  top: 4px;
}
.sxs .bl.l {
  right: 75%;
  top: calc(47.7% - 7px);
  width: 26%;
  padding-right: 13px;
  text-align: right;
  transform: translateX(10px);
}
.sxs .bl.l::before {
  right: 0;
  top: 4px;
}
.sxs .bl.b {
  left: 50%;
  top: 75.5%;
  padding-top: 13px;
  white-space: nowrap;
  text-align: center;
  transform: translate(-50%, 10px);
}
.sxs .bl.b::before {
  left: 50%;
  top: 0;
  margin-left: -3px;
}
.nm[data-st="tree"] .bl {
  opacity: 1;
  transform: none;
}
.nm[data-st="tree"] .bl.b {
  transform: translateX(-50%);
  transition-delay: 0.9s;
}
.nm[data-st="tree"] .bl.r {
  transition-delay: 1.4s;
}
.nm[data-st="tree"] .bl.l {
  transition-delay: 1.7s;
}

#csf[data-p="yadsale"] {
  --pb: #013335;
  --pa: #009834;
  --pl: #0d5a4a;
  --ps: #9fd6b5;
  --pt: #fff9e3;
}
.sxh h2.gt {
  font-family: "Geist", "Lexend", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.sxs .ab {
  width: min(100%, 430px);
  margin: 0 auto;
}
.sxs .dg {
  display: grid;
  justify-items: center;
  padding: 4px 0;
  cursor: pointer;
  outline: none;
}
.sxs .dg:focus-visible {
  outline: 2px solid #b8dd58;
  outline-offset: 6px;
  border-radius: 12px;
}
.sxs .dg p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #ffffffe0;
  max-width: min(34ch, 86%);
}
.sxs .dg b {
  color: #b8dd58;
  font-weight: 600;
}
.sxs .dt1 {
  justify-self: start;
}
.sxs .dt2 {
  justify-self: end;
}
.dgs {
  display: block;
  width: min(60%, 280px);
  height: auto;
  overflow: visible;
  margin: -2px 0;
}
.dgs .y1 {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.dgs .sg {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.dgs .ld circle,
.dgs .ld path {
  fill: none;
  stroke: #fff9e3;
  stroke-width: 0.9;
}
.sxs .wmr {
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}
.wmr svg {
  display: block;
  width: min(340px, 76%);
  height: auto;
  overflow: visible;
}
.sxs .wmr .eb {
  margin: 0;
  color: #9fd6b5;
}
.wmr .sm {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.sxs .pw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
}
.sxs .pw .sxi {
  border-radius: 14px;
}
.sxs .pw figure:nth-child(2) {
  margin-top: clamp(14px, 4vw, 44px);
}
.sxs .sxi video {
  display: block;
  width: 100%;
  height: auto;
}
#csf[data-p="yadsale"] .sxs .jg figcaption {
  top: 10px;
  bottom: auto;
}
@media (max-width: 640px) {
  .sxs .pw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sxs .pw figure:first-child {
    grid-column: 1/-1;
  }
  .sxs .pw figure:nth-child(2) {
    margin-top: 0;
  }
  .sxs .pw figure:nth-child(3) {
    margin-top: clamp(12px, 5vw, 28px);
  }
  .dgs {
    width: min(66%, 260px);
  }
}
@media (max-width: 560px) {
  #csf[data-p="yadsale"] .sxs .jg:not(.vids) {
    flex-direction: column;
  }
  #csf[data-p="yadsale"] .sxs .jg:not(.vids) figure {
    flex: none;
    width: 100%;
  }
  #csf[data-p="yadsale"] .sxs .jg.vids {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  #csf[data-p="yadsale"] .sxs .jg.vids figure {
    flex: 0 0 56%;
    scroll-snap-align: start;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes rock {
    0%,
    100% {
      transform: rotate(2.5deg);
    }
    50% {
      transform: rotate(-2.5deg);
    }
  }
  @keyframes drop {
    0% {
      transform: translateY(-130px) scaleY(1.12);
      opacity: 0;
    }
    35% {
      opacity: 1;
    }
    58% {
      transform: translateY(7px) scaleY(0.9);
    }
    76% {
      transform: translateY(-5px) scaleY(1.04);
    }
    90% {
      transform: translateY(1px) scaleY(0.99);
    }
    100% {
      transform: none;
      opacity: 1;
    }
  }
  @keyframes cradle {
    0% {
      transform: none;
    }
    30% {
      transform: rotate(-10deg);
    }
    55% {
      transform: rotate(7deg);
    }
    78% {
      transform: rotate(-3deg);
    }
    100% {
      transform: none;
    }
  }
  .sxs.fx:not(.in) .dgs .y1 {
    opacity: 0;
  }
  .sxs.in .dgs .y1 {
    animation: drop 1.3s var(--liq) both;
  }
  .sxs.in .dgs .sg {
    animation:
      cradle 1.5s 0.62s var(--liq) both,
      rock 3.8s 2.3s ease-in-out infinite;
  }
  .dgs .ld path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s var(--liq) 1.3s;
  }
  .dgs .ld circle {
    transition: opacity 0.4s 1.2s;
  }
  .sxs.fx:not(.in) .dgs .ld path {
    stroke-dashoffset: 1;
  }
  .sxs.fx:not(.in) .dgs .ld circle {
    opacity: 0;
  }
  .sxs .dt1,
  .sxs .dt2,
  .sxs .wmr {
    transition:
      opacity 0.9s var(--liq),
      transform 1s var(--liq);
  }
  .sxs.in .dt1 {
    transition-delay: 0.25s;
  }
  .sxs.in .dt2 {
    transition-delay: 1.3s;
  }
  .sxs.in .wmr {
    transition-delay: 1.7s;
  }
  .sxs.fx:not(.in) .dt1,
  .sxs.fx:not(.in) .dt2 {
    opacity: 0;
    transform: translateY(14px);
  }
  .sxs.fx:not(.in) .wmr {
    opacity: 0;
    transform: translateY(18px);
  }
  .wmr .sm {
    animation: rock 3.6s ease-in-out infinite;
  }
}

.sxs.l .gl {
  color: #0a0a0a99;
}
.sxs .wmw {
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  justify-items: center;
  padding: clamp(6px, 2vw, 18px) 0;
}
.sxs .wmz {
  display: block;
  object-fit: contain;
  aspect-ratio: 4.444;
  width: min(100%, 520px);
  height: auto;
}
.sxs .wmw { width: 100%; }

.sxs .wpls {
  display: flex;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
  justify-content: center;
}
.sxs .wpl {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.6vw, 18px) clamp(20px, 5vw, 40px);
  border-radius: 999px;
  transition: transform 0.5s var(--liq);
}
.sxs .wpl:hover {
  transform: translateY(-3px);
}
.sxs .wpl .wmz {
  width: clamp(96px, 22vw, 170px);
}
.sxs .wpl.a {
  background: #0a0a0b;
}
.sxs .wpl.b {
  background: #ededed;
}
.sxs .wpl.b .wmz {
  filter: brightness(0);
}
.sxs .wpl.c {
  background: #1d4ed8;
  box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 560px) {
  .sxs .jg.st {
    flex-direction: column;
  }
  .sxs .jg.st figure {
    flex: none;
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sxs .wmz.big {
    transition: clip-path 1.5s var(--liq);
  }
  .sxs.fx:not(.in) .wmz.big {
    clip-path: inset(0 100% 0 0);
  }
  .sxs .wpl {
    transition:
      transform 0.8s var(--liq),
      opacity 0.6s;
  }
  .sxs.fx:not(.in) .wpl {
    transform: translateY(26px) scale(0.9);
    opacity: 0;
  }
  .sxs.in .wpl.a {
    transition-delay: 0.8s;
  }
  .sxs.in .wpl.b {
    transition-delay: 1s;
  }
  .sxs.in .wpl.c {
    transition-delay: 1.2s;
  }
}

.sxs.l .hint {
  color: #0a0a0a88;
}
.sxs.l .eb {
  color: #0a0a0a99;
}
.sxs .wmw2 {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(20px, 6vw, 56px) 0;
  cursor: pointer;
  outline: none;
}
.sxs .wmw2:focus-visible {
  outline: 2px solid #009834;
  outline-offset: 6px;
  border-radius: 12px;
}
.sxs .wmw2 .eb {
  margin: 0;
}
.wmw2 svg {
  display: block;
  width: min(430px, 84%);
  height: auto;
  overflow: visible;
}
.wmw2 .wa,
.wmw2 .wb,
.wmw2 .sm {
  transform-box: fill-box;
}
.wmw2 .sm {
  transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .wmw2 .wa,
  .wmw2 .wb {
    transition:
      transform 1.1s var(--liq),
      opacity 0.8s;
  }
  .wmw2 .wb {
    transition-delay: 0.15s;
  }
  .wmw2 .sm {
    transition:
      transform 0.9s var(--liq) 0.6s,
      opacity 0.5s 0.6s;
  }
  .sxs.fx:not(.in) .wmw2 .wa {
    transform: translateX(-30px);
    opacity: 0;
  }
  .sxs.fx:not(.in) .wmw2 .wb {
    transform: translateX(30px);
    opacity: 0;
  }
  .sxs.fx:not(.in) .wmw2 .sm {
    transform: scaleX(0);
    opacity: 0;
  }
  .sxs.in .wmw2 .sm {
    animation: rock 3.6s 1.8s ease-in-out infinite;
  }
}

.awl {
  columns: 3;
  column-gap: 20px;
  padding: 28px 20px 6px;
  border: 6px solid #7a4e24;
  border-radius: 10px;
  background-color: #c9965b;
  background-image:
    radial-gradient(#00000022 1px, #0000 1.7px),
    radial-gradient(#ffffff2e 1px, #0000 1.7px),
    radial-gradient(#5a37172b 2px, #0000 2.8px);
  background-size:
    8px 8px,
    12px 12px,
    19px 19px;
  background-position:
    0 0,
    3px 5px,
    9px 2px;
  box-shadow:
    inset 0 10px 26px #0000003a,
    4px 4px 0 var(--ink);
}
.tl.im {
  display: block;
  text-align: left;
  background: #fffdf6;
  padding: 9px 9px 0;
  border-radius: 2px;
  color: #1c160e;
  margin: 0 0 28px;
  box-shadow:
    0 10px 18px #0000003d,
    0 1px 0 #00000014;
  transform: rotate(var(--rt, 0deg));
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
  break-inside: avoid;
}
.tl.im:hover {
  transform: rotate(0) scale(1.04);
  z-index: 3;
  box-shadow: 0 16px 26px #00000052;
}
.tl.im::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 17px;
  height: 17px;
  margin-left: -8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fffa 0 13%, #0000 14%), var(--c);
  box-shadow:
    0 3px 0 #0000003d,
    inset -2px -2px 0 #0003;
  z-index: 2;
}
.tl.im.t::before {
  display: none;
}
.tl.im .plt {
  position: absolute;
  left: 50%;
  top: -11px;
  width: 64px;
  height: 22px;
  margin-left: -32px;
  transform: rotate(-4deg);
  background: #f4e6a8cc;
  box-shadow: 0 1px 0 #0001;
  z-index: 2;
}
.tl.im:nth-child(4n + 3) .plt {
  transform: rotate(5deg);
}
.tl.im .plp {
  display: block;
  position: relative;
  width: 100%;
  background-color: var(--c);
  background-size: cover;
  background-position: center;
}
.tl.im .plp .tg {
  position: absolute;
  left: 6px;
  top: 6px;
}
.tl.im .plc {
  display: block;
  width: 100%;
  padding: 10px 2px 13px;
}
.tl.im .plc b {
  font:
    600 13.5px/1.25 "Lexend",
    sans-serif;
  color: #1c160e;
  letter-spacing: -0.01em;
}
.tl.im.on {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}
.tl.im.on::after {
  bottom: -34px;
}
.ip img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
@container (max-width:880px) {
  .awl {
    columns: 2;
  }
}
@media (max-width: 820px) {
  .awl {
    columns: 2;
    column-gap: 12px;
    padding: 22px 12px 2px;
  }
  .tl.im {
    padding: 6px 6px 0;
    margin-bottom: 22px;
  }
  .tl.im .plc {
    padding: 8px 1px 10px;
  }
  .tl.im .plc b {
    font-size: 11.5px;
  }
  .tl.im .plt {
    width: 46px;
    height: 18px;
    margin-left: -23px;
  }
}

.csfoot {
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 700px) {
  .csfoot .pill2 {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
}
.xb .pill2 {
  margin: 0 8px 8px 0;
}
.igtb {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 0;
}
.igsb {
  width: auto;
  height: 36px;
  padding: 0 14px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  font:
    400 11px "Silkscreen",
    "Lexend",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.igsb svg {
  width: 16px;
  height: 16px;
}
.pu.pj {
  display: block;
  min-height: 0;
  padding: 0;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--frame);
  text-align: left;
  overflow: hidden;
}
.pj > svg {
  display: block;
  width: 100%;
  height: auto;
  shape-rendering: crispEdges;
}
.pj .pc {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--soft);
  border-top: 3px solid var(--ink);
}
.pj .pc b {
  display: block;
  margin: 0 0 4px;
  font:
    400 10px "Silkscreen",
    monospace;
  letter-spacing: 0.08em;
  color: var(--or);
}
@keyframes pjb {
  50% {
    transform: translateY(-1px);
  }
}
@keyframes pjh {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes pjs {
  50% {
    opacity: 0.28;
  }
}
@keyframes pjt {
  50% {
    opacity: 0.2;
  }
}
@keyframes pjw {
  to {
    transform: translateX(40px);
  }
}
@keyframes pjc1 {
  0% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes pjc2 {
  0%,
  50% {
    opacity: 0;
  }
  51%,
  100% {
    opacity: 1;
  }
}
@keyframes pjk {
  50% {
    transform: translate(1px, 0);
  }
}
@keyframes pjd {
  0% {
    transform: translateY(-34px);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  16%,
  86% {
    transform: none;
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@keyframes pjp {
  to {
    transform: translateX(12px);
  }
}
@keyframes pjp2 {
  to {
    transform: translateX(-12px);
  }
}
@keyframes pjq {
  0%,
  40% {
    transform: none;
  }
  55%,
  90% {
    transform: translate(var(--dx), var(--dy));
  }
  100% {
    transform: none;
  }
}
@keyframes pjk2 {
  0% {
    opacity: 0;
  }
  10%,
  80% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}
.pjb {
  animation: pjb 1.4s steps(2) infinite;
}
.pjb2d {
  animation-delay: -0.7s;
}
.pjh {
  animation: pjh 0.9s steps(2) infinite;
}
.pjs {
  animation: pjs 3s steps(3) infinite;
}
.pjt {
  animation: pjt 1.6s steps(2) infinite;
}
.pjt2 {
  animation-delay: -0.8s;
}
.pjw {
  animation: pjw 7s steps(28) infinite alternate;
}
.pjb1 {
  animation: pjc1 6s steps(1) infinite;
}
.pjb2 {
  opacity: 0;
  animation: pjc2 6s steps(1) infinite;
}
.pjk {
  animation: pjk 0.5s steps(2) infinite;
}
.pjd {
  animation: pjd 7s steps(6) infinite;
  animation-delay: calc(var(--k) * 0.55s);
}
.pjp1 {
  animation: pjp 2.4s steps(12) infinite;
}
.pjp2 {
  animation: pjp2 2.4s steps(12) infinite -1.2s;
}
.q1,
.q2,
.q3,
.q4 {
  animation: pjq 6s steps(2) infinite;
}
.q1 {
  --dx: -2px;
  --dy: -2px;
}
.q2 {
  --dx: 2px;
  --dy: -2px;
}
.q3 {
  --dx: -2px;
  --dy: 2px;
}
.q4 {
  --dx: 2px;
  --dy: 2px;
}
.ck {
  animation: pjk2 6s steps(1) infinite;
  animation-delay: calc(var(--k) * 0.7s);
}
@media (prefers-reduced-motion: reduce) {
  .pj svg * {
    animation: none !important;
  }
  .pjb2 {
    opacity: 0;
  }
}

::selection {
  background: var(--or);
  color: var(--onor);
}
::-moz-selection {
  background: var(--or);
  color: var(--onor);
}
.btn.p::selection,
.btn.p *::selection,
.cur ::selection,
.chip span::selection,
.me span::selection {
  background: var(--ink);
  color: var(--frame);
}
html.hand,
html.hand * {
  cursor: grab !important;
}
html.pan,
html.pan * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
html.hand #cur,
html.pan #cur {
  opacity: 0 !important;
}
.axp.pi {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
}
.axp.pi img {
  display: block;
  width: 100%;
  max-height: min(58vh, 540px);
  object-fit: contain;
}
.pcx {
  margin-left: auto;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font:
    500 12px/1 "Lexend",
    system-ui,
    sans-serif;
  display: grid;
  place-items: center;
  transition:
    background 0.25s,
    color 0.25s;
}
.pcx:hover,
.pcx:focus-visible {
  background: var(--ink);
  color: var(--frame);
}

/* Launch: mobile archive, popup hit areas and motion preferences. */
.pg .tp::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
}
.axh {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--frame);
  color: var(--ink);
}
.axp.pi img {
  height: auto;
  max-width: 100%;
  max-height: min(58svh, 540px);
  object-fit: contain;
}
.axx,
.axf button,
.pcx {
  min-width: 44px;
  min-height: 44px;
}
.axc {
  scroll-padding-top: 64px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.igstatus {
  font-size: 12px;
  color: var(--soft);
  padding: 0 16px;
}
.app-help-close {
  display: block;
  margin-top: 12px;
  padding: 9px 14px;
  min-height: 44px;
  background: var(--frame);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.igg a > span {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  text-align: center;
}
/* Keep case-study scrolling without visible scrollbar tracks. */
#cs,
#csf,
#cszv .czs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#cs::-webkit-scrollbar,
#csf::-webkit-scrollbar,
#cszv .czs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lb-best { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0 14px; border-top: 2px dotted var(--line); }
.lb-best div { display: grid; gap: 5px; min-width: 0; }
.lb-best span { font: 10px "Silkscreen", monospace; color: var(--soft); }
.lb-best b { font: 20px "Silkscreen", monospace; color: var(--ink); overflow-wrap: anywhere; }
.lb-best small { font-size: 11px; color: var(--soft); }

.pg-scoring { margin: 12px 0; border: 1px solid var(--line); }
.pg-scoring summary { grid-template-columns: 1fr auto; gap: 8px; padding: 10px; font-size: 12px; font-weight: 600; }
.pg-scoring summary::after { font-size: 18px; }
.pg-score-guide { padding: 0 10px 10px; font-size: 12px; line-height: 1.55; }
.pg-score-guide table { width: 100%; border-collapse: collapse; }
.pg-score-guide caption { text-align: left; padding: 3px 0 8px; color: var(--soft); }
.pg-score-guide th, .pg-score-guide td { padding: 7px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pg-score-guide th { font-weight: 400; padding-right: 8px; }
.pg-score-guide td { text-align: right; white-space: nowrap; font-weight: 600; }
.pg-score-guide p { margin: 10px 0 0; }
.pg-score-example { border-top: 1px solid var(--line); padding-top: 10px; }

.gmw {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  grid-template-areas: "game board" "controls scoring";
  gap: 24px;
}
.gmw > .pgw { grid-area: game; min-width: 0; }
.gmw > .lb { grid-area: board; margin-left: 0; min-width: 0; }
.gmw > .ctl { grid-area: controls; margin: 0 6px 6px 0; max-width: none; align-self: stretch; display: grid; grid-template-rows: auto 1fr auto; }
.gmw > .pg-scoring { grid-area: scoring; margin: 0 6px 6px 0; min-width: 0; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.gmw > .ctl .ctl-b { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.gmw > .ctl .ctc { border: 1px solid var(--line); padding: 14px; background: color-mix(in srgb, var(--or) 3%, var(--frame)); }
.gmw > .ctl .ctc:first-child { grid-column: 1 / -1; border: 1px solid var(--line); }
.gmw > .ctl .ctc:last-child { background: color-mix(in srgb, var(--or) 10%, var(--frame)); }
.gmw > .ctl .ctf { border-top: 1px solid var(--line); }
.gmw > .pg-scoring summary { min-height: 44px; padding: 10px 12px; background: var(--ink); color: var(--frame); }
.gmw > .pg-scoring .pg-score-guide { padding: 8px 14px 14px; }
@container (max-width: 760px) {
  .gmw { grid-template-columns: minmax(0, 1fr); grid-template-areas: "game" "board" "controls" "scoring"; gap: 20px; }
}
@media (max-width: 800px) {
  .gmw { grid-template-columns: minmax(0, 1fr); grid-template-areas: "game" "board" "controls" "scoring"; gap: 20px; }
}
@container (max-width: 400px) {
  .gmw > .ctl .ctl-b { grid-template-columns: minmax(0, 1fr); }
  .gmw > .ctl .ctc:first-child { grid-column: auto; }
}
