/* ============================================================
   Nicole Yao · v4 — single-page clothesline with intro
   ============================================================ */

:root {
  --bg: #f4ecd8;
  --bg-2: #ebe1c8;
  --paper: #fbf6e9;
  --paper-edge: #e6dcc4;
  --paper-warm: #f7f1e0;
  --ink: #1a1612;
  --ink-soft: #4a3f33;
  --muted: #7a6f5e;
  --line: rgba(26,22,18,.14);
  --primary: #a82d28;
  --primary-soft: #c95c45;
  --accent: #e08a3e;
  --cream: #f0d68a;
  --neon: #b89dff;
  --teal: #7be0d4;

  --serif: 'Fraunces', 'Noto Serif SC', ui-serif, Georgia, serif;
  --sans:  'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-elastic: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: hidden;          /* whole site fits in one screen, only the rail scrolls */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100vh;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(1px 1px at 30% 20%, rgba(26,22,18,.06) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(26,22,18,.05) 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 80%, rgba(26,22,18,.04) 50%, transparent 51%);
  background-size: 240px 240px, 320px 320px, 200px 200px;
  opacity: .8; mix-blend-mode: multiply;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--primary); color: var(--bg); }

@media (hover: hover) {
  body { cursor: none; }
  a, button, [data-target], summary, video, .hanger, .show__btn, .modal__close, .kw { cursor: none !important; }
}

/* ============================================================
   FLOATING BRAND + LANG
   ============================================================ */
.brand {
  position: fixed; top: 22px; left: var(--pad);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  padding: 8px 14px 8px 8px;
  background: rgba(244,236,216,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
.brand:hover { background: var(--bg); border-color: var(--ink); transform: translateY(-1px); }

.lang-btn {
  position: fixed; top: 22px; right: var(--pad);
  z-index: 90;
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(244,236,216,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex; gap: 6px; align-items: center;
  transition: border-color .3s, background .3s;
}
.lang-btn:hover { border-color: var(--primary); background: var(--bg); }
.lang-btn span { transition: opacity .3s, color .3s; opacity: .45; }
.lang-btn span.active { opacity: 1; color: var(--primary); }
.lang-btn__sep { opacity: .3 !important; }

/* ============================================================
   YARN MOUNT — fixed, viewport-centered, top-most during intro
   The p5.js canvas is appended into this div.
   ============================================================ */
.yarn-mount {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 95;
  pointer-events: none;
  opacity: 1;
}
.yarn-mount canvas { display: block; }

/* drop-target marker shown during cursor-driven phase */
.yarn-target {
  position: fixed;
  z-index: 94;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.yarn-target.is-show { opacity: 1; }
.yarn-target__circle {
  display: block;
  width: 96px; height: 96px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  animation: targetPulse 1.8s ease-in-out infinite;
  box-sizing: border-box;
}
@keyframes targetPulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.yarn-target__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

/* ============================================================
   YARN BALL (legacy SVG, hidden) — kept for backwards refs
   ============================================================ */
.yarn-ball {
  position: absolute;
  left: 0; top: 0;
  width: 130px; height: 130px;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 4px 10px rgba(168,45,40,.22));
  animation: yarnSpin 5s linear infinite;
  will-change: transform, left, top, opacity;
}
@keyframes yarnSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.yarn-ball.is-done {
  opacity: 0;
  animation: yarnGoneSpin .9s linear forwards;
}
@keyframes yarnGoneSpin {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  to   { transform: translate(-50%, -50%) rotate(720deg) scale(.05); }
}

/* the loose tail that wags (hints that this end is the beginning of the rope) */
#yarnTail {
  transform-origin: 0 0;
  animation: tailWag 1.4s ease-in-out infinite;
}
@keyframes tailWag {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(8deg); }
}

/* ============================================================
   THE SHOW (single-page clothesline)
   ============================================================ */
.show {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center;
  z-index: 5;
}

.show__rail {
  flex: 1 1 auto;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  cursor: grab;
  display: flex; align-items: center;
}
.show__rail.is-grabbing { cursor: grabbing; }
.show__rail::-webkit-scrollbar { height: 6px; }
.show__rail::-webkit-scrollbar-track { background: transparent; }
.show__rail::-webkit-scrollbar-thumb { background: rgba(168,45,40,.6); border-radius: 3px; }

/* the inner container that holds rope + cards */
.show__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(380px, 30vw, 480px);
  padding: 280px var(--inner-pad-l, 240px) 120px;       /* taller top: room for big rope arches */
  padding-right: var(--inner-pad-r, 240px);
  width: max-content;
  min-height: 100vh;
}

/* ===== rope SVG (in front of the cards, threading above their tops) ===== */
.show__rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  pointer-events: none;
  z-index: 6;                /* above cards (z:2) and the hanging string */
  filter: drop-shadow(0 3px 6px rgba(168,45,40,.22));
}
#ropePath {
  stroke-dasharray: var(--rope-len, 9999);
  stroke-dashoffset: var(--rope-len, 9999);
}
.show__inner.is-ready #ropePath {
  transition: stroke-dashoffset .25s linear;
}

/* ===== Hanger (every card hangs from the rope) ===== */
.hanger {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 19vw, 260px);
  margin-top: var(--hang-y, 40px);    /* slight individual height variance — adds rhythm */
  z-index: 2;
  --tilt: 0deg;
  --sway: 0deg;
  transform: rotate(calc(var(--tilt) + var(--sway)));
  transform-origin: 50% -56px;        /* pivot above the card */
  transition: transform .6s var(--ease-out), opacity .9s var(--ease-out);
  will-change: transform;
  opacity: 0;                         /* fade in during boot */
}
.show__inner.is-ready .hanger { opacity: 1; }
.hanger:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
  z-index: 12;
  transition: transform .55s var(--ease-elastic);
}
/* alternate up/down hanging height for big-wave rhythm */
.hanger:nth-of-type(odd)  { --hang-y: 64px; }
.hanger:nth-of-type(even) { --hang-y: 12px; }

/* sizes */
.hanger--key   { width: clamp(280px, 24vw, 340px); }
.hanger--about { width: clamp(380px, 32vw, 460px); }

/* the white-paper card */
.hanger__card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 18px 18px 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 18px 40px -16px rgba(26,22,18,.4),
    0 6px 14px -6px rgba(26,22,18,.2);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(26,22,18,.04), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(26,22,18,.03), transparent 50%);
  background-size: 80px 80px, 120px 120px;
}
.hanger--purple .hanger__card { background-color: var(--paper-warm); }

/* hole element retired — the cards now hang from the rope via a thin
   string (.hanger__card::before).  We hide any leftover hole spans. */
.hanger__hole { display: none; }

/* cover image */
.hanger__cover {
  position: relative;
  margin: 10px 0 14px;
  height: clamp(180px, 16vw, 220px);
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  overflow: hidden;
}
.hanger__cover::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26,22,18,.06);
  pointer-events: none;
}
.hanger--key .hanger__cover { height: clamp(220px, 18vw, 260px); }

.hanger__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(244,236,216,.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform .3s var(--ease-out);
  z-index: 2;
}
.hanger:hover .hanger__play { transform: translate(-50%,-50%) scale(1.12); }

.hanger__info { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }
.hanger__type {
  /* TYPE is now the primary signal — bigger, bolder, brand colour */
  font-family: var(--serif); font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--primary);
}
.hanger--key .hanger__type { font-size: 21px; }
.hanger__name {
  /* NAME secondary — italic, smaller, neutral */
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 14px; line-height: 1.2;
  margin: 0;
  color: var(--ink-soft);
}
.hanger--key .hanger__name { font-size: 15px; }
.hanger__meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 4px;
  font-style: normal;
}

/* hover — fan out 2-3 thumbnails around the card (above and below) */
.hanger__more {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hanger__more img {
  position: absolute;
  width: 60%;
  border-radius: 3px;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  padding: 5px;
  box-shadow: 0 14px 28px -12px rgba(26,22,18,.5);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .5s var(--ease-out), transform .65s var(--ease-elastic);
}
/* place them ABOVE and BELOW the card so they don't overlap with the
   side-mounted brief info card */
.hanger__more img:nth-child(1) { top: -34%;  left: 4%;   transform-origin: bottom right; }
.hanger__more img:nth-child(2) { bottom: -34%; left: 14%; transform-origin: top right; }
.hanger__more img:nth-child(3) { top: -22%;  right: -8%;  transform-origin: bottom left; }
.hanger:hover .hanger__more img { opacity: 1; }
.hanger:hover .hanger__more img:nth-child(1) { transform: scale(1) rotate(-5deg) translate(-12px, -8px); }
.hanger:hover .hanger__more img:nth-child(2) { transform: scale(1) rotate(4deg)  translate(8px,  10px); }
.hanger:hover .hanger__more img:nth-child(3) { transform: scale(1) rotate(7deg)  translate(8px,  -6px); }

/* hover — pop a "brief" info card to the side of the hanger */
.hanger__brief {
  position: absolute;
  top: 50%;
  left: calc(100% + 24px);
  transform: translateY(-50%) translateX(-12px) rotate(2deg);
  width: clamp(280px, 22vw, 340px);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 18px 20px 18px;
  font-family: var(--sans);
  box-shadow:
    0 22px 50px -22px rgba(26,22,18,.5),
    0 6px 14px -8px rgba(26,22,18,.2);
  opacity: 0;
  pointer-events: none;
  z-index: 14;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-elastic);
}
/* a little pin/tape on top to feel paper-like */
.hanger__brief::before {
  content: "";
  position: absolute;
  top: -6px; left: 24px;
  width: 38px; height: 12px;
  background: rgba(168,45,40,.18);
  border: 1px solid rgba(168,45,40,.28);
  border-radius: 2px;
  transform: rotate(-3deg);
}
.hanger:hover .hanger__brief {
  opacity: 1;
  transform: translateY(-50%) translateX(0) rotate(-1.5deg);
  pointer-events: auto;
}
/* alternate which side the brief appears on (every other card) so they don't all go right */
.hanger:nth-of-type(even) .hanger__brief {
  left: auto; right: calc(100% + 24px);
  transform: translateY(-50%) translateX(12px) rotate(-2deg);
}
.hanger:nth-of-type(even):hover .hanger__brief {
  transform: translateY(-50%) translateX(0) rotate(1.5deg);
}

.brief__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}
.brief__desc {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.brief__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed var(--paper-edge);
  padding-top: 10px;
}
.brief__meta li {
  display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: baseline;
  font-size: 12.5px;
}
.brief__meta span {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.brief__meta strong { font-weight: 500; }
.brief__list {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.brief__list li { display: flex; flex-direction: column; gap: 2px; }
.brief__list strong { font-size: 14px; font-weight: 500; }
.brief__list span { font-size: 12.5px; color: var(--ink-soft); }
.brief__list em { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); font-style: normal; margin-top: 2px; }
.brief__tags { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 10px; border-top: 1px dashed var(--paper-edge); }
.brief__tags .kw { font-size: 11px; padding: 3px 9px; }

.hanger__brief--about { width: clamp(320px, 24vw, 380px); }

/* ===== About card (.ac__*) ===== */
.hanger--about { width: clamp(420px, 34vw, 520px); }
.hanger__card--about { padding: 26px 26px 24px; }

.ac__layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}
.ac__portrait {
  margin: 0;
  width: 130px;
  height: 168px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: 0 8px 18px -8px rgba(26,22,18,.4);
}
.ac__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ac__text { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; min-width: 0; }
.ac__num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary);
}
.ac__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -.02em;
  margin: 4px 0 0;
}
[data-lang="zh"] .ac__name { font-family: 'Noto Serif SC', var(--serif); }
.ac__role {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.ac__sub {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 4px 0 0;
}

.ac__bio {
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.ac__actions {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em;
  background: transparent;
  color: var(--ink);
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.btn-pill:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn-pill--solid { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.btn-pill--solid:hover { background: var(--ink); border-color: var(--ink); }

.ac__contact {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed var(--paper-edge);
  padding-top: 12px;
}
.ac__contact li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
}
.ac__contact li > span:first-child {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.ac__contact a { color: var(--ink); transition: color .2s; }
.ac__contact a:hover { color: var(--primary); }

/* shared keyword chip used in both about and brief tags */
.kw {
  font-family: var(--sans); font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  display: inline-block;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-elastic);
}
.kw:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); transform: translateY(-2px); }

/* end-of-line little decoration */
.show__end {
  align-self: center;
  margin-top: 60px;
  font-family: var(--serif); font-style: italic;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  opacity: .8;
}

/* nav buttons */
.show__btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(244,236,216,.92);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  transition: background .25s, transform .25s var(--ease-out);
}
.show__btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); transform: translateY(-50%) scale(1.06); }
.show__btn--prev { left: 22px; }
.show__btn--next { right: 22px; }


/* copyright bottom-right */
.copyright {
  position: fixed;
  bottom: 24px; right: var(--pad);
  z-index: 70;
  display: flex; gap: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .15em;
  color: var(--muted);
  opacity: .8;
  pointer-events: none;
}

/* ============================================================
   MODAL — vertical scroll, lazy-loaded images
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,8,6,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  position: relative;
  width: min(92vw, 1080px);
  height: min(92vh, 920px);
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.6);
  animation: rise .4s var(--ease-out);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(244,236,216,.6);
  backdrop-filter: blur(6px);
  z-index: 5;
}
.modal__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.modal__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(26,22,18,.06);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s;
}
.modal__close:hover { background: var(--ink); color: var(--bg); }

.modal__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px 60px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  scroll-behavior: smooth;
  background: var(--bg-2);
}
.modal__scroll::-webkit-scrollbar { width: 8px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.modal__item {
  width: 100%;
  max-width: 920px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.25);
  position: relative;
  /* skeleton placeholder */
  min-height: 200px;
  background-image: linear-gradient(110deg, var(--bg) 30%, rgba(255,255,255,.6) 50%, var(--bg) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.modal__item.is-loaded { animation: none; min-height: 0; background-image: none; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.modal__item img,
.modal__item video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) { .cursor { display: block; } }
.cursor__dot { position: absolute; width: 6px; height: 6px; background: var(--bg); border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__ring { position: absolute; width: 36px; height: 36px; border: 1px solid var(--bg); border-radius: 50%; transform: translate(-50%, -50%); transition: width .35s var(--ease-out), height .35s var(--ease-out), background .25s; }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; background: rgba(168,45,40,.3); }

/* ============================================================
   LANG SWITCH
   ============================================================ */
[data-lang="zh"] [data-en]:not([data-zh]) { display: none; }
[data-lang="en"] [data-zh]:not([data-en]) { display: none; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .show__btn { display: none; }
  .show__inner { padding: 140px 40px 80px; gap: 60px; }
  .hanger { width: 230px; }
  .hanger--key { width: 260px; }
  .hanger--about { width: 290px; }
  .modal__panel { width: 96vw; height: 94vh; }
  .copyright { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .show__inner { transform: scale(1); opacity: 1; filter: none; }
}
