/* ============================================================================
   LUMINA · 拾光  —  02 Components
   Navigation, cards, masonry, lightbox, modal, toast, phone mockup
   ========================================================================== */

/* ============================================================ scroll bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 1002;
  background: linear-gradient(90deg, var(--brass), var(--glow));
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

/* ================================================================== nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}

.site-nav::after {
  content: "";
  position: absolute;
  inset: auto var(--gutter) 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(247, 244, 237, .86);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.site-nav.is-scrolled::after { opacity: 1; }

/* inverted bar, used over dark hero / cover imagery */
.site-nav--onDark {
  --fg: #F4F1EA;
  --fg-soft: rgba(244, 241, 234, .68);
  --fg-mute: rgba(244, 241, 234, .46);
  --line: rgba(244, 241, 234, .14);
  --line-strong: rgba(244, 241, 234, .30);
  --bg: var(--ink-950);
  --brass: #C9A15E;
  color: #F4F1EA;
}

.site-nav--onDark.is-scrolled {
  background: rgba(8, 9, 10, .82);
}

.site-nav--onDark::after { background: rgba(244, 241, 234, .16); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  height: 76px;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height .5s var(--ease);
}

.site-nav.is-scrolled .nav-inner { height: 66px; }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: currentColor;
  flex: none;
  transition: transform .7s var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(90deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-text em {
  font-style: normal;
  font-size: .5625rem;
  letter-spacing: .42em;
  opacity: .55;
  padding-left: 1px;
}

/* links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: .875rem;
  letter-spacing: .06em;
  padding-block: 6px;
  color: var(--fg-soft);
  transition: color .35s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}

.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-link.is-active { color: var(--fg); }
.nav-link.is-active::after { transform: scaleX(1); opacity: .9; }

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

.nav-actions .btn { height: 42px; padding: 0 20px; font-size: .8125rem; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.is-open span { transform: rotate(45deg); }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-90deg); opacity: 0; }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-102%);
  transition: transform .68s var(--ease-out);
  overflow-y: auto;
}

.nav-drawer.is-open { transform: none; }

.nav-drawer a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 0;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 500;
  letter-spacing: .01em;
  border-bottom: 1px solid var(--line);
}

.nav-drawer a small {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--fg-mute);
}

.nav-drawer .btn { margin-top: 26px; align-self: flex-start; }

@media (max-width: 900px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { height: 66px; }
}

/* ============================================================== work card */
.masonry {
  column-count: 3;
  column-gap: clamp(14px, 1.7vw, 26px);
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: clamp(14px, 1.7vw, 26px);
  display: block;
}

.masonry--2 { column-count: 2; }

@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 620px) { .masonry { column-count: 1; } .masonry--2 { column-count: 1; } }

.work-card {
  position: relative;
  display: block;
  width: 100%;
}

.work-media {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-3);
  isolation: isolate;
  cursor: pointer;
}

.work-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(150deg, #2C3138, #14161A 60%, #0B0C0E);
}

/* per-category colour grade for the fallback surface */
.cat-landscape { background: linear-gradient(160deg, #1B3A44, #24444C 46%, #0E1E24); }
.cat-portrait { background: linear-gradient(160deg, #4A2E2C, #6B4038 50%, #241715); }
.cat-street { background: linear-gradient(160deg, #2A2C33, #41454E 52%, #14161A); }
.cat-architecture { background: linear-gradient(160deg, #2E3338, #4B525A 55%, #171A1E); }
.cat-humanity { background: linear-gradient(160deg, #4C3A24, #6B5232 52%, #241A10); }
.cat-wildlife { background: linear-gradient(160deg, #1F3A2B, #2E5240 54%, #0F1B15); }

.work-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.94) contrast(1.02);
  transition: transform 1.15s var(--ease-out), filter .7s var(--ease), opacity .6s var(--ease);
}

.work-media:hover .work-figure img {
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.05);
}

/* graceful failure: hide the img, reveal a designed surface instead */
.work-figure.is-fallback img { opacity: 0; }

.work-figure.is-fallback::after {
  content: "LUMINA";
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  place-items: center;
  padding-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .5em;
  color: rgba(255, 250, 240, .34);
  text-indent: .5em;
}

.work-figure.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 46%, rgba(255, 247, 230, .12), transparent 58%);
}

/* ratio helpers */
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-5x4 { aspect-ratio: 5 / 4; }

.ratio-1x1 img,
.ratio-4x5 img,
.ratio-3x4 img,
.ratio-2x3 img,
.ratio-3x2 img,
.ratio-4x3 img,
.ratio-16x9 img,
.ratio-9x16 img,
.ratio-5x4 img {
  height: 100%;
}

/* media overlays */
.work-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 9, .86) 0%, rgba(6, 7, 9, .28) 34%, rgba(6, 7, 9, 0) 62%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}

.work-media:hover .work-scrim { opacity: 1; }

.work-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.work-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(9, 10, 12, .62);
  color: #F3EEE2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.work-play span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(250, 246, 236, .16);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: scale(.82);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease);
}

.work-media:hover .work-play span { transform: none; opacity: 1; }

.work-play svg { width: 18px; height: 18px; color: #FFFDF6; margin-left: 2px; }

/* hover metadata, bottom of the media */
.work-hover {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px 16px 15px;
  color: #F6F2E8;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease);
  pointer-events: none;
}

.work-media:hover .work-hover { transform: none; opacity: 1; }

.work-hover__title {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 5px;
}

.work-hover__exif {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .07em;
  color: rgba(246, 242, 232, .68);
  text-transform: uppercase;
}

/* card body (opt-in, used in creator page) */
.work-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px 0;
}

.work-body__title {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
}

.work-body__meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.work-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--fg-mute);
  flex: none;
  padding-top: 2px;
  transition: color .3s var(--ease);
}

.work-like svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.work-like:hover { color: var(--fg); }
.work-like:hover svg { transform: scale(1.14); }
.work-like.is-liked { color: var(--douyin-red); }
.work-like.is-liked svg { fill: currentColor; }

/* ============================================================ creator card */
.creator-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease);
  overflow: hidden;
}

.theme-dark .creator-card { background: rgba(255, 255, 255, .035); }

.creator-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md);
}

.creator-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(150deg, #404650, #14161A);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.avatar--lg { width: 96px; height: 96px; }

.creator-card__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.creator-card__spec {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 3px;
}

.creator-card__works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.creator-card__works figure {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-3);
  margin: 0;
}

.creator-card__works img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}

.creator-card:hover .creator-card__works img { transform: scale(1.07); }

.creator-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.creator-card__stat {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--fg-soft);
}

.creator-card__stat b {
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ============================================================ article card */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card__media {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.article-card:hover .article-card__media img { transform: scale(1.045); }

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.article-card__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.article-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .005em;
  transition: color .35s var(--ease);
}

.article-card:hover .article-card__title { color: var(--brass); }

/* ================================================================ marquee */
.marquee {
  --speed: 42s;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 100%;
  animation: marquee-scroll var(--speed) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.1vw, 2.6rem);
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--fg);
}

.marquee__item i {
  font-style: normal;
  font-size: .5em;
  color: var(--brass-2);
  transform: translateY(-.12em);
}

/* ================================================================== stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat__value sup {
  font-size: .4em;
  top: -.75em;
  position: relative;
  color: var(--brass-2);
  letter-spacing: 0;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =================================================================== tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 15px 4px;
  margin-right: clamp(16px, 2.6vw, 34px);
  font-size: .9375rem;
  letter-spacing: .03em;
  color: var(--fg-mute);
  white-space: nowrap;
  transition: color .35s var(--ease);
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--fg);
  transform: scaleX(0);
  transition: transform .45s var(--ease-out);
}

.tab:hover { color: var(--fg-soft); }
.tab.is-active { color: var(--fg); }
.tab.is-active::after { transform: scaleX(1); }

/* ================================================================== toast */
.toast-stack {
  position: fixed;
  z-index: 8000;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--ink-900);
  color: #F5F1E7;
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  line-height: 1.55;
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease);
  pointer-events: auto;
}

.toast.is-in { transform: none; opacity: 1; }

.toast__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--glow);
}

.toast--ok .toast__icon { color: #8FD9A8; }
.toast--warn .toast__icon { color: #F0BE72; }

/* ================================================================== modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s;
}

.modal.is-open { visibility: visible; opacity: 1; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, .62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.modal__panel {
  position: relative;
  width: min(430px, 100%);
  background: var(--paper);
  color: var(--ink-900);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98);
  transition: transform .55s var(--ease-out);
}

.modal.is-open .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-400);
  transition: background-color .3s, color .3s;
}

.modal__close:hover { background: rgba(13, 15, 17, .06); color: var(--ink-900); }

.modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

/* =============================================================== lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 7500;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease), visibility .45s;
  background: #07080A;
  color: #F4F1EA;
}

.lightbox.is-open { visibility: visible; opacity: 1; }

.lb-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  overflow: hidden;
}

.lb-media {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  transform: scale(.97);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease);
}

.lightbox.is-open .lb-media { transform: none; opacity: 1; }

.lb-media img,
.lb-media video {
  max-width: 100%;
  max-height: calc(100vh - clamp(32px, 8vw, 112px));
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
}

.lb-side {
  width: 372px;
  flex: none;
  border-left: 1px solid rgba(244, 241, 234, .12);
  padding: clamp(28px, 3vw, 42px) clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transform: translateX(24px);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease);
}

.lightbox.is-open .lb-side { transform: none; opacity: 1; }

.lb-close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(244, 241, 234, .78);
  background: rgba(244, 241, 234, .07);
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}

.lb-close:hover { background: rgba(244, 241, 234, .16); color: #FFF; transform: rotate(90deg); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(244, 241, 234, .8);
  background: rgba(244, 241, 234, .06);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .14);
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}

.lb-nav:hover { background: rgba(244, 241, 234, .15); color: #FFF; }

.lb-prev { left: clamp(10px, 1.6vw, 22px); }
.lb-next { right: clamp(10px, 1.6vw, 22px); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

.lb-nav svg { width: 18px; height: 18px; }

.lb-eyebrow {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .42);
}

.lb-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin-top: 10px;
}

.lb-author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 234, .12);
}

.lb-author .avatar { width: 40px; height: 40px; }

.lb-author__name { font-size: .875rem; font-weight: 500; }
.lb-author__handle {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: rgba(244, 241, 234, .45);
  margin-top: 1px;
}

.lb-exif {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 241, 234, .1);
  border: 1px solid rgba(244, 241, 234, .1);
  border-radius: 8px;
  overflow: hidden;
}

.lb-exif div {
  background: #07080A;
  padding: 11px 13px;
}

.lb-exif dt {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .38);
}

.lb-exif dd {
  margin: 4px 0 0;
  font-size: .8125rem;
  color: rgba(244, 241, 234, .9);
  font-variant-numeric: tabular-nums;
}

.lb-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.lb-tag {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .1em;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .2);
  color: rgba(244, 241, 234, .74);
  transition: box-shadow .3s, color .3s;
}

.lb-tag:hover { box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .5); color: #FFF; }

.lb-actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 10px;
}

.lb-actions .btn {
  flex: 1;
  height: 46px;
  --btn-bg: rgba(244, 241, 234, .09);
  --btn-fg: #F4F1EA;
  font-size: .8125rem;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .16);
}

.lb-actions .btn:hover { --btn-bg: rgba(244, 241, 234, .18); }

.lb-actions .btn--dy {
  --btn-bg: var(--douyin-red);
  --btn-fg: #FFF;
  box-shadow: none;
}

.lb-actions .btn--dy:hover { --btn-bg: #e01f46; }

.lb-counter {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  bottom: clamp(14px, 3vw, 26px);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: rgba(244, 241, 234, .45);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 940px) {
  .lightbox { flex-direction: column; }
  .lb-side {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(244, 241, 234, .12);
    max-height: 46vh;
    padding: 22px;
  }
  .lb-media img,
  .lb-media video { max-height: 42vh; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-counter { bottom: auto; top: 16px; left: 16px; }
}

/* ============================================================ phone mockup */
.phone {
  position: relative;
  width: min(304px, 76vw);
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #33383F, #121417 46%, #262A30);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 60px 120px -40px rgba(0, 0, 0, .85),
    inset 0 1px 1px rgba(255, 255, 255, .26);
  flex: none;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0A0B0D;
  isolation: isolate;
}

.phone__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) saturate(.96);
}

.phone__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 5, 7, .92) 0%, rgba(4, 5, 7, .35) 34%, rgba(4, 5, 7, 0) 58%),
    linear-gradient(to bottom, rgba(4, 5, 7, .55), transparent 24%);
}

.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 21px;
  border-radius: 999px;
  background: #050607;
  z-index: 6;
}

.phone__status {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
}

.phone__status i { display: inline-flex; gap: 3px; align-items: flex-end; height: 8px; }
.phone__status i b { display: block; width: 2.5px; background: currentColor; border-radius: 1px; }
.phone__status i b:nth-child(1) { height: 3px; }
.phone__status i b:nth-child(2) { height: 5px; }
.phone__status i b:nth-child(3) { height: 7px; }
.phone__status i b:nth-child(4) { height: 8px; opacity: .4; }

.phone__rail {
  position: absolute;
  right: 11px;
  bottom: 96px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  color: rgba(255, 255, 255, .92);
}

.phone__rail span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .02em;
}

.phone__rail svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }

.phone__caption {
  position: absolute;
  left: 15px;
  right: 62px;
  bottom: 84px;
  z-index: 5;
  color: #FFF;
}

.phone__caption b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 7px;
}

.phone__caption b em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .12em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(37, 244, 238, .2);
  color: #25F4EE;
  text-transform: uppercase;
}

.phone__caption p {
  font-size: .6875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

.phone__caption small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: .5625rem;
  color: rgba(255, 255, 255, .7);
}

.phone__caption small svg { width: 10px; height: 10px; }

.phone__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(6, 7, 9, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .52);
}

.phone__bar svg { width: 19px; height: 19px; }

.phone__bar .is-on { color: #FFF; }

.phone__bar .plus {
  width: 34px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(90deg, #25F4EE 0 46%, #FE2C55 54% 100%);
  display: grid;
  place-items: center;
  color: #06070A;
}

.phone__bar .plus svg { width: 13px; height: 13px; }

/* floating sync chips around the phone */
.sync-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(244, 241, 234, .07);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: .75rem;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #F4F1EA;
  animation: chip-float 7s var(--ease-io) infinite;
  z-index: 8;
}

.sync-chip--top { top: 12%; left: -14%; animation-delay: -1.4s; }
.sync-chip--bottom { bottom: 14%; right: -12%; animation-delay: -3.6s; }

.sync-chip svg { width: 15px; height: 15px; color: var(--glow); }

.sync-chip b {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .45);
  font-weight: 400;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (max-width: 640px) {
  .sync-chip--top { left: -4%; }
  .sync-chip--bottom { right: -4%; }
}

/* ================================================================ dropzone */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: clamp(30px, 5vw, 62px) 24px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-strong);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(188, 138, 61, .07), transparent 62%),
    var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}

.dropzone:hover { border-color: var(--brass-2); }

.dropzone.is-drag {
  border-color: var(--brass);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(188, 138, 61, .17), transparent 62%),
    var(--surface);
  transform: scale(.995);
}

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(156, 107, 37, .1);
  color: var(--brass);
  transition: transform .5s var(--ease-out);
}

.dropzone:hover .dropzone__icon { transform: translateY(-3px); }
.dropzone__icon svg { width: 24px; height: 24px; }

.dropzone__title { font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.dropzone__hint { font-size: .8125rem; color: var(--fg-mute); line-height: 1.7; }

.dropzone__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* uploaded preview strip */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item__x {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 9, .66);
  color: #FFF;
  backdrop-filter: blur(6px);
  transition: background-color .3s;
}

.preview-item__x:hover { background: var(--douyin-red); }
.preview-item__x svg { width: 11px; height: 11px; }

.preview-item__tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(6, 7, 9, .7);
  color: #F1ECE0;
  backdrop-filter: blur(6px);
}

/* =================================================================== panel */
.panel {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 2.8vw, 34px);
}

.theme-dark .panel { background: rgba(255, 255, 255, .035); }

.panel--flat { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.panel__title svg { width: 16px; height: 16px; color: var(--brass); }

/* ========================================================= writer's badge */
.dy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(254, 44, 85, .1);
  color: var(--douyin-red);
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dy-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, .16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ================================================================= footer */
.site-footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr));
  gap: clamp(26px, 4vw, 60px);
  padding-bottom: clamp(38px, 5vw, 64px);
}

.footer-brand .brand { margin-bottom: 20px; }

.footer-brand p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--fg-soft);
  max-width: 26rem;
}

.footer-news {
  display: flex;
  gap: 0;
  margin-top: 24px;
  max-width: 340px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  transition: border-color .4s var(--ease);
}

.footer-news:focus-within { border-color: var(--fg); }

.footer-news input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-size: .875rem;
  padding: 6px 0;
  color: var(--fg);
}

.footer-news input:focus { outline: none; }
.footer-news input::placeholder { color: var(--fg-mute); }

.footer-news button {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--fg);
  transition: background-color .35s var(--ease), color .35s;
}

.footer-news button:hover { background: var(--fg); color: var(--bg); }
.footer-news button svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-col li + li { margin-top: 10px; }

.footer-col a {
  font-size: .875rem;
  color: var(--fg-soft);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
  display: inline-block;
}

.footer-col a:hover { color: var(--fg); padding-left: 4px; }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 15vw, 13rem);
  line-height: .8;
  letter-spacing: .04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  padding-block: clamp(10px, 2vw, 24px);
  opacity: .9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--fg-mute);
}

.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom__links a:hover { color: var(--fg); }

.footer-socials { display: flex; gap: 8px; }

.footer-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-soft);
  transition: color .3s, box-shadow .3s, transform .4s var(--ease-out);
}

.footer-socials a:hover {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transform: translateY(-2px);
}

.footer-socials svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ========================================================== back to top */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 600;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 15, 17, .93);
  color: #F5F1E7;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .5s var(--ease-out), background-color .3s;
  backdrop-filter: blur(10px);
}

.to-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink-700); }
.to-top svg { width: 16px; height: 16px; }

/* keeps the toast above the to-top button */
.toast-stack { bottom: calc(clamp(14px, 2.4vw, 32px) + 58px); }
