/* ============================================================
   WIKKING HUANG® — Fashion Portfolio
   Brutalist editorial · glam meets grunge · 5-HT
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg2: #101010;
  --bone: #edeae3;
  --ink: #f2f0ea;
  --acid: #00a6ff;
  --muted: #8c8c86;
  --hair: #242424;
  --gap: 3px;
  --cjk: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "SimHei", sans-serif;
  --disp: "Bahnschrift", "Arial Narrow", Impact, var(--cjk);
  --mono: Consolas, "Courier New", var(--cjk);
  --serif: Georgia, "Times New Roman", var(--cjk);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

::selection { background: var(--acid); color: #000; }

.mono { font-family: var(--mono); }

.acid { color: var(--acid); }

/* Film-grain texture over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("assets/noise.png");
  background-size: 220px 220px;
}

/* ---------------- Top bar ---------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.86);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand .reg {
  color: var(--acid);
  font-size: 9px;
  vertical-align: super;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  padding: 0 10px;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.ticker-track i { color: var(--acid); font-style: normal; font-size: 8px; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.menu {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.menu a {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 6vw 70px;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero-bg-v2.jpg");
  background-size: auto 100%;
  background-position: bottom center;
  background-repeat: no-repeat;
  opacity: 0.25;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 52% 46%, transparent 40%, rgba(0, 0, 0, 0.62) 100%);
  z-index: 1;
}

.hero-tags {
  position: absolute;
  top: 78px;
  left: 6vw;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 6px 10px;
  border: 1px solid var(--hair);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: rgba(10, 10, 10, 0.55);
}

.hero-tags span:first-child { color: var(--acid); border-color: var(--acid); }

.hero-main {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-name {
  font-size: clamp(64px, 12vw, 172px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.mask { display: block; overflow: hidden; }

.inner {
  display: block;
  transform: translateY(112%);
  animation: rise 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.inner.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-right: 5vw;
}

.hero-name .inner.outline {
  margin-right: 0;
}

.hero-subname {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-subname .cn {
  font-family: var(--cjk);
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.hero-subname .en {
  font-family: var(--cjk);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-sub {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  opacity: 0;
  animation: fadeIn 1.1s ease 0.65s forwards;
}

.hero-desc {
  max-width: 46ch;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.09em;
  color: #c9c9c3;
}

.hero-desc em { color: var(--acid); font-size: 1.08em; }

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--hair);
  font-family: var(--disp);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.badge.mono { font-family: var(--mono); color: var(--muted); font-size: 9px; }

.hero-foot {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 26px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

.hero-foot span:nth-child(2) { color: var(--acid); animation: bounce 2s ease-in-out infinite; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Cursor-follow images (hero only) */
.trail-img {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.12) brightness(0.92);
  border: 1px solid rgba(242, 240, 234, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  animation: trailFade 1.3s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

@keyframes trailFade {
  0%   { opacity: 0; transform: scale(0.8) rotate(var(--rot, 0deg)); }
  12%  { opacity: 1; }
  78%  { opacity: 0.88; }
  100% { opacity: 0; transform: scale(1.1) translateY(-18px) rotate(var(--rot, 0deg)); }
}

/* ---------------- Torn seam ---------------- */

/* ---------------- Marquee band ---------------- */

.band {
  overflow: hidden;
  background: var(--acid);
  color: #0a0a0a;
  height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #0a0a0a;
}

.band-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0a0a;
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.band-track span.outline {
  color: transparent;
  -webkit-text-stroke: 2px #0a0a0a;
}

.band-track i {
  font-style: normal;
  color: #0a0a0a;
  font-size: 10px;
  align-self: center;
}

/* ---------------- Section heads ---------------- */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 24px;
  border-top: 1px solid var(--hair);
}

.sec-title {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-meta {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--acid);
  white-space: nowrap;
}

/* ---------------- Works / product grid ---------------- */

.works {
  padding: 0 3vw 100px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  margin: 0;
  cursor: pointer;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #121212;
}

.card-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-media img.p {
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-media img.d {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.card:hover .card-media img.p {
  transform: scale(1.04);
}

.card:hover .card-media img.d {
  opacity: 1;
  transform: scale(1);
}

.card-cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 2px 20px;
  border-bottom: 1px solid var(--hair);
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--acid);
  text-decoration: none;
}

.tag:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flag {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.flag.on {
  color: var(--acid);
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-go {
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.35s ease;
}

.card:hover .card-title { color: var(--acid); transform: translateX(4px); }
.card:hover .card-go { opacity: 1; transform: translateX(0); color: var(--acid); }

/* ---------------- About ---------------- */

.about {
  padding: 0 3vw 110px;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: clamp(30px, 4.5vw, 72px);
  align-items: start;
  margin-top: 42px;
}

.about-photo-col {
  max-width: 160px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 0.75;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.about-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 16px;
  font-family: var(--cjk);
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.about-name span {
  color: var(--ink);
}

.about-name .en {
  font-family: var(--disp);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.about-text {
  padding-top: 6px;
}

.about-bio {
  max-width: 46ch;
  font-family: var(--cjk);
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.about-edu {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-edu p {
  margin: 0;
  font-family: var(--cjk);
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.facts {
  list-style: none;
  margin-top: 9vh;
  border-top: 1px solid var(--hair);
}

.facts li {
  display: grid;
  grid-template-columns: 64px 150px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--hair);
  transition: background 0.35s ease;
}

.facts li:hover { background: var(--bg2); }

.fact-idx { font-size: 10px; color: var(--muted); }
.fact-key {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fact-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: right;
}

.fact-val .en {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.facts li:hover .fact-idx { color: var(--acid); }

/* ---------------- Contact ---------------- */

.contact {
  padding: 0 3vw 90px;
}

.contact-title {
  margin-top: 5vh;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-title em {
  font-family: var(--disp);
  font-style: normal;
  color: var(--acid);
}

.contact-fields {
  margin-top: 7vh;
  border-top: 1px solid var(--hair);
}

.field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hair);
}

.field-label {
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-mail {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  width: fit-content;
  transition: color 0.3s ease;
}

.contact-mail:hover { color: var(--acid); }

.contact-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-chips span {
  padding: 10px 18px;
  border: 1px solid var(--hair);
  background: transparent;
  font-family: var(--disp);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-chips span:hover { background: var(--acid); color: #0a0a0a; border-color: var(--acid); }

.contact-note {
  max-width: 46ch;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--hair);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 3vw;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-row a { color: var(--muted); transition: color 0.3s ease; }
.footer-row a:hover { color: var(--acid); }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr; }
  .ticker { display: none; }
  .menu { justify-content: flex-end; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-left: 5vw; padding-right: 5vw; }
  .hero-tags { left: 5vw; }
  .hero-foot { left: 5vw; right: 5vw; }
  .works, .about, .contact { padding-left: 5vw; padding-right: 5vw; }
}

@media (max-width: 640px) {
  .topbar { height: 50px; padding: 0 16px; gap: 12px; }
  .brand { font-size: 10px; }
  .menu { gap: 12px; }
  .menu a { font-size: 9px; letter-spacing: 0.14em; }
  .hero { padding: 86px 5vw 64px; }
  .hero-name { font-size: clamp(44px, 13.5vw, 84px); }
  .hero-tags { top: 72px; left: 5vw; }
  .hero-desc { font-size: 12px; }
  .hero-foot { bottom: 18px; }
  .hero-foot span:first-child { display: none; }
  .hero-subname {
    margin-top: 14px;
    gap: 5px;
  }
  .hero-subname .cn {
    font-size: clamp(13px, 3.6vw, 18px);
    letter-spacing: 0.16em;
  }
  .hero-subname .en {
    font-size: clamp(10px, 2.6vw, 13px);
    letter-spacing: 0.24em;
  }
  .about-bio {
    white-space: normal;
  }
  .band { height: 50px; }
  .band-track { gap: 14px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .sec-head { padding: 22px 0 18px; }
  .works, .about, .contact { padding-left: 5vw; padding-right: 5vw; }
  .about-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .about-photo-col {
    max-width: 150px;
  }
  .facts li { grid-template-columns: 42px 1fr; }
  .fact-val { grid-column: 2; text-align: left; }
  .fact-val { align-items: flex-start; }
  .field { grid-template-columns: 1fr; gap: 10px; padding: 18px 2px; }
  .contact-chips { gap: 8px; }
  .contact-chips span { padding: 8px 14px; font-size: 10px; }
  .footer-row { padding: 20px 5vw; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inner { animation: none; transform: none; }
  .hero-sub { animation: none; opacity: 1; }
  .ticker-track, .band-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img { transition: none; }
  .trail-img { display: none; }
}
