/* ==========================================================================
   Yizhe Ruan — "Night boutique"
   ========================================================================== */
:root {
  --bg: #0b0b0a;
  --bg-2: #121210;
  --ink: #ece6da;
  --ink-2: #a49e92;
  --ink-3: #6b675f;
  --line: rgba(236, 230, 218, 0.12);
  --accent: #b49a6a;

  --serif: "Instrument Serif", "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type primitives ---------- */
.label {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); font-weight: 400;
}
.label em {
  font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0.04em;
  text-transform: none; color: var(--accent);
}
.label em::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line); }
.title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.2vw, 96px); line-height: 0.98; letter-spacing: -0.015em;
}
[data-lang="zh"] .title { letter-spacing: 0.01em; line-height: 1.12; font-size: clamp(36px, 5vw, 80px); }

/* split lines */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-in { display: inline-block; will-change: transform; }
html:not(.reduced) [data-split]:not(.is-in) .line-in { transform: translateY(110%); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg);
}
.loader-dial { width: min(42vmin, 260px); height: auto; overflow: visible; }
.loader-ticks line { stroke: var(--ink-3); stroke-width: 0.8; opacity: 0; }
.loader-ticks line.major { stroke: var(--ink); stroke-width: 1.2; }
.loader-ring { fill: none; stroke: var(--accent); stroke-width: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 100px 100px; }
.loader-count {
  position: absolute; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.is-repeat .loader, .reduced .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  .has-cursor .cursor { display: block; }
  .cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
  .cursor-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fff; }
  .cursor-ring {
    position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55); display: grid; place-items: center;
    transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s;
  }
  .cursor-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; font-weight: 500; }
  .cursor.is-link .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(255,255,255,.9); }
  .cursor.is-label .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: #fff; border-color: #fff; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.is-label .cursor-dot, .cursor.is-link .cursor-dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); mix-blend-mode: difference; color: #ece6da;
}
.nav-mark { font-family: var(--serif); font-size: 22px; letter-spacing: 0.02em; }
.nav-right { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.clock { display: inline-flex; align-items: center; gap: 10px; letter-spacing: inherit; text-transform: inherit; font-size: inherit; }
.clock-dial { width: 22px; height: 22px; }
.clock-dial circle:first-child { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .6; }
.clock-dial line { stroke: currentColor; stroke-linecap: round; transform-origin: 20px 20px; }
.clock-dial .h { stroke-width: 2; }
.clock-dial .m { stroke-width: 1.4; }
.clock-dial .s { stroke: var(--accent); stroke-width: .8; }
.clock-dial .pin { fill: currentColor; }
.clock-time { font-variant-numeric: tabular-nums; }
.lang { position: relative; padding: 6px 0; letter-spacing: inherit; font-size: inherit; text-transform: inherit; }
.lang::after, .btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.lang:hover::after { transform: scaleX(1); transform-origin: left; }
[data-lang="zh"] .nav-right { letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 0 110px;
}
.hero-top {
  position: absolute; top: 84px; left: 0; right: 0; display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
}
.name {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.84; letter-spacing: -0.035em;
  font-size: clamp(84px, 17vw, 290px); display: flex; flex-direction: column; align-items: center;
}
.name-row { display: block; overflow: hidden; padding: 0.02em 0.06em 0.1em; }
.name-row + .name-row { margin-top: -0.08em; }
.name .ch {
  display: inline-block; will-change: transform;
  transition: color .7s var(--ease) calc(var(--i) * 28ms);
}
.name .ch b, .name .ch i { display: block; font-weight: 400; transition: transform .8s var(--ease) calc(var(--i) * 28ms), opacity .5s calc(var(--i) * 28ms); }
.name .ch i { position: absolute; left: 0; top: 0; font-style: italic; transform: translateY(100%); opacity: 0; }
.name .ch { position: relative; }
.name:hover .ch b { transform: translateY(-100%); opacity: 0; }
.name:hover .ch i { transform: none; opacity: 1; color: var(--accent); }
html:not(.reduced):not(.is-ready) .name .ch { transform: translateY(105%); }

.hero-quote {
  margin: clamp(28px, 4vw, 48px) 0 0; font-family: var(--serif); font-style: italic; color: var(--ink-2);
  font-size: clamp(19px, 1.9vw, 27px); line-height: 1.3; padding-inline: var(--gutter);
}
[data-lang="zh"] .hero-quote { font-style: normal; letter-spacing: 0.08em; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3);
}
.hero-scroll i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ink-2);
  animation: drip 2.4s var(--ease-io) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
html:not(.reduced):not(.is-ready) .hero-top,
html:not(.reduced):not(.is-ready) .hero-scroll,
html:not(.reduced):not(.is-ready) .nav { opacity: 0; }

/* ---------- Chapters ---------- */
.chapter { position: relative; padding: clamp(110px, 16vh, 200px) 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-head { display: grid; grid-template-columns: 1fr; margin-bottom: clamp(48px, 7vw, 96px); }

/* frames + image reveal */
.frame { position: relative; overflow: hidden; margin: 0; background: var(--bg-2); }
.frame .in { position: absolute; inset: 0; will-change: transform; }
.frame .in.px { inset: -9% 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.mirror-orb .in { position: absolute; inset: 0; }
html:not(.reduced) [data-reveal] { clip-path: inset(100% 0 0 0); }
html:not(.reduced) [data-reveal].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease); }

/* I. About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.about-body { margin-top: clamp(32px, 4vw, 56px); max-width: 30em; display: grid; gap: 1.2em; color: var(--ink-2); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; }
.about-body p { margin: 0; }
.about-body p:first-child { color: var(--ink); }
[data-lang="zh"] .about-body { line-height: 1.95; letter-spacing: 0.02em; }
.about-figure { aspect-ratio: 4 / 5; }

/* II. Interests */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; }
.card .frame { aspect-ratio: 4 / 5; }
.card img {
  filter: grayscale(0.7) brightness(0.86) contrast(1.04);
  transform: scale(1.001);
  transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
.card .frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,10,.82) 0%, rgba(11,11,10,0) 55%);
}
.card-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 28px); }
.card-num { position: absolute; top: clamp(16px, 1.8vw, 24px); left: clamp(18px, 2vw, 28px); z-index: 2; font-size: 11px; letter-spacing: .2em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; transition: transform .8s var(--ease); }
.card-desc {
  margin: 12px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 22em;
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.card-rule { display: block; height: 1px; margin-top: 16px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
@media (hover: hover) {
  .card:hover img { filter: grayscale(0) brightness(0.95) contrast(1); transform: scale(1.04); }
  .card:hover .card-desc { opacity: 1; transform: none; }
  .card:hover .card-rule { transform: scaleX(1); }
  .card:hover .card-title { transform: translateY(-2px); }
}
@media (hover: none) {
  .card img { filter: grayscale(0.2) brightness(0.8); }
  .card-desc { opacity: 1; transform: none; }
}

/* III. Travel */
.travel { padding-bottom: 0; }
.travel-pin { position: relative; }
.travel-track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); align-items: flex-end; will-change: transform; }
.travel-intro { flex: 0 0 auto; width: clamp(260px, 30vw, 480px); align-self: center; padding-right: 2vw; }
.place { flex: 0 0 auto; margin: 0; width: clamp(260px, 30vw, 470px); }
.place:nth-child(odd) .frame { aspect-ratio: 3 / 4; }
.place:nth-child(even) .frame { aspect-ratio: 4 / 5; }
.place .frame img { transition: transform 1.4s var(--ease); }
@media (hover: hover) { .place:hover .frame img { transform: scale(1.03); } }
.place figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.place-name { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); }
.place-idx { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.travel-progress { display: flex; align-items: center; gap: 18px; margin-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(70px, 12vh, 130px); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.travel-progress i { flex: 1; height: 1px; background: var(--line); position: relative; }
.travel-progress b { position: absolute; inset: 0; background: var(--ink-2); transform-origin: left; transform: scaleX(0); }

/* IV. Mirror */
.mirror { padding: 0; overflow: hidden; }
.mirror-stage { position: relative; min-height: 115vh; display: grid; place-items: center; }
.mirror-orb {
  position: relative; width: min(64vh, 78vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -20px rgba(0,0,0,.8);
}
.mirror-orb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; transform: scale(1.18); filter: grayscale(.35) contrast(1.05) brightness(.82); }
.mirror-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 45%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(11,11,10,.55) 100%); }
.mirror-quote {
  position: absolute; inset: 0; margin: 0; pointer-events: none;
  display: grid; align-content: center; padding-inline: var(--gutter);
  font-family: var(--serif); font-size: clamp(46px, 8.6vw, 150px); line-height: 0.95; letter-spacing: -0.02em;
  mix-blend-mode: difference; color: #ece6da;
}
.mirror-quote .q { display: block; }
.mirror-quote .q:nth-child(1) { justify-self: start; }
.mirror-quote .q:nth-child(2) { justify-self: end; font-style: italic; }
.mirror-quote .q:nth-child(3) { justify-self: center; margin-top: .1em; }
[data-lang="zh"] .mirror-quote { font-size: clamp(40px, 7vw, 120px); line-height: 1.15; letter-spacing: 0.04em; }
.mirror-label { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vh, 48px); margin: 0 auto; }

/* V. Currently */
.currently-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.rows { margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 9em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.rows dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); }
.rows dd .live { font-variant-numeric: tabular-nums; }
.rows dd .live::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.player { position: relative; padding-top: clamp(0px, 4vw, 60px); }
.player-shell, .player iframe { width: 100%; height: 452px; border-radius: 14px; display: block; border: 0; }
.player-shell { display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.player iframe { opacity: 0; transition: opacity 1s var(--ease); }
.player iframe.ok { opacity: 1; }
.player.loaded .player-shell { display: none; }

/* VI. Contact */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact-big {
  display: inline-block; font-family: var(--serif); font-size: clamp(88px, 17vw, 290px); line-height: .9; letter-spacing: -0.035em;
  margin: clamp(10px, 2vw, 24px) 0 clamp(40px, 6vw, 80px);
}
[data-lang="zh"] .contact-big { letter-spacing: 0.02em; font-size: clamp(64px, 13vw, 220px); }
.contact-big .ch { position: relative; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.contact-big .ch b, .contact-big .ch i { display: block; font-weight: 400; transition: transform .8s var(--ease) calc(var(--i) * 30ms), opacity .5s calc(var(--i) * 30ms); }
.contact-big .ch i { position: absolute; inset: 0; font-style: italic; transform: translateY(100%); color: var(--accent); }
.contact-big:hover .ch b { transform: translateY(-100%); }
.contact-big:hover .ch i { transform: none; }
.contact-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-foot p { margin: 0; max-width: 26em; color: var(--ink-2); }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 16px 0 12px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.btn::after { transform: scaleX(1); transform-origin: left; opacity: .35; }
.btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); z-index: 1; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .6s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(1px); }

/* Footer */
.footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 28px 34px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------- Easter egg ---------- */
.egg {
  position: fixed; inset: 0; z-index: 180; display: grid; place-content: center; text-align: center; gap: 10px;
  background: #050505; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; padding: var(--gutter);
}
.egg.on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.egg p { margin: 0; font-family: var(--serif); }
.egg-a, .egg-b { font-size: clamp(36px, 6vw, 96px); line-height: 1; }
.egg-a { transform: scaleX(-1); filter: blur(6px); opacity: 0; transition: transform 1.6s var(--ease) .3s, filter 1.4s var(--ease) .3s, opacity 1s .3s; }
.egg-b { font-style: italic; opacity: 0; transition: opacity 1.6s var(--ease) 1.6s, letter-spacing 2.4s var(--ease) 1.6s; letter-spacing: .3em; }
.egg-c { margin-top: 36px !important; font-family: var(--sans) !important; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity 1s 3s; }
.egg.on .egg-a { transform: none; filter: none; opacity: 1; }
.egg.on .egg-b { opacity: .55; letter-spacing: 0; }
.egg.on .egg-c { opacity: 1; }
.egg-out main, .egg-out .nav { filter: blur(8px); }

/* ---------- Content swap (language) ---------- */
main, .footer { transition: opacity .35s ease; }
.is-swapping main, .is-swapping .footer { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-grid, .currently-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; aspect-ratio: 4 / 5; width: 86%; margin-left: auto; }
  .travel-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; scroll-padding-inline: var(--gutter); }
  .travel-track::-webkit-scrollbar { display: none; }
  .travel-intro { display: none; }
  .travel-head-m { display: block !important; margin-bottom: 48px; }
  .place { width: 74vw; scroll-snap-align: start; }
  .place:last-child { margin-right: var(--gutter); }
  .player { padding-top: 0; }
  .player-shell, .player iframe { height: 380px; }
}
.travel-head-m { display: none; }
@media (max-width: 640px) {
  .nav { padding: 18px var(--gutter); }
  .nav-right { gap: 18px; font-size: 11px; }
  .clock-text [data-k] { display: none; }
  .hero-top { top: 70px; font-size: 10px; letter-spacing: .14em; }
  .hero-coord { display: none; }
  .hero-top { justify-content: center; }
  .cards { gap: 10px; }
  .card-num { font-size: 10px; }
  .card-title { font-size: 26px; }
  .card-desc { font-size: 12.5px; margin-top: 6px; }
  .card-rule { display: none; }
  .rows > div { grid-template-columns: 7.5em 1fr; }
  .mirror-stage { min-height: 100svh; }
  .mirror-orb { width: 86vw; }
  .contact-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition-duration: .01ms !important; }

/* ---------- Fixes after first review ---------- */
.travel { overflow-x: clip; }
.btn { text-transform: none; letter-spacing: .06em; font-size: 14px; }
@media (max-width: 640px) {
  .name { font-size: 31vw; }
  .contact-big { font-size: 27vw; }
  [data-lang="zh"] .contact-big { font-size: 19vw; }
  .mirror-quote { font-size: 13.5vw; row-gap: 33vw; align-content: center; }
  [data-lang="zh"] .mirror-quote { font-size: 12vw; row-gap: 30vw; }
  .mirror-quote .q:nth-child(3) { justify-self: end; margin-top: 0; }
}

/* ---------- Interests: desktop index list ---------- */
.into-list, .into-float { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .cards { display: none; }
  .into-list { display: block; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
  .into-float { display: block; }
}
.into-row {
  display: grid; grid-template-columns: 3.5em minmax(0, 1fr) minmax(0, 22em); align-items: center; gap: 24px;
  padding: clamp(14px, 1.6vw, 24px) 0; border-top: 1px solid var(--line);
  transition: opacity .6s var(--ease);
}
.into-n { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .5s; }
.into-t { font-family: var(--serif); font-size: clamp(56px, 7vw, 112px); line-height: 1; letter-spacing: -0.02em; transition: transform .9s var(--ease), color .6s var(--ease); }
[data-lang="zh"] .into-t { letter-spacing: .04em; font-size: clamp(48px, 5.6vw, 92px); }
.into-d { color: var(--ink-2); font-size: 15px; text-align: right; opacity: .32; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.into-list:hover .into-row { opacity: .28; }
.into-list .into-row:hover { opacity: 1; }
.into-row:hover .into-t { transform: translateX(clamp(16px, 2vw, 32px)); font-style: italic; color: var(--accent); }
[data-lang="zh"] .into-row:hover .into-t { font-style: normal; }
.into-row:hover .into-d { opacity: 1; transform: none; }
.into-row:hover .into-n { color: var(--accent); }

.into-float {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(240px, 21vw, 340px); aspect-ratio: 4 / 5; overflow: hidden;
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .7s var(--ease);
}
.into-float.on { clip-path: inset(0 0 0 0); }
.into-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .45s ease, transform 1.2s var(--ease); filter: contrast(1.03); }
.into-float img.on { opacity: 1; transform: none; }

/* mobile mirror: line above the orb, two lines below it */
@media (max-width: 640px) {
  .mirror-stage { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 16vh var(--gutter) 20vh; }
  .mirror-quote { display: contents; }
  .mirror-quote .q { position: relative; z-index: 2; mix-blend-mode: difference; color: #ece6da; line-height: 1; }
  .mirror-quote .q:nth-child(1) { order: 0; align-self: flex-start; margin-bottom: -6vw; }
  .mirror-orb { order: 1; align-self: center; width: 78vw; }
  .mirror-quote .q:nth-child(2) { order: 2; align-self: flex-end; margin-top: -7vw; }
  .mirror-quote .q:nth-child(3) { order: 3; align-self: flex-end; margin-top: 1vw; }
}

/* Spotify placeholder (shown until the player loads, and kept where Spotify is unreachable) */
.player-shell { flex-direction: column; gap: 14px; text-transform: none; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }
.player-shell .ps-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.player-shell .ps-t { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); color: var(--ink); opacity: 0; transition: opacity .6s var(--ease), color .4s; }
.player.offline .ps-t { opacity: 1; }
.player-shell .ps-t:hover { color: var(--accent); }
