/* Lightframe — bright editorial portfolio for Yu Qiong */

:root {
  --bg: #f6f3ee;
  --bg-2: #ffffff;
  --ink: #141414;
  --ink-soft: #5c5c5c;
  --line: rgba(20, 20, 20, 0.08);
  --accent: #e85d4c;
  --accent-2: #2f6fed;
  --accent-soft: rgba(232, 93, 76, 0.12);
  --shadow: 0 24px 80px rgba(20, 20, 20, 0.08);
  --radius: 20px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

body.is-touch { cursor: auto; }
body.is-touch .cursor { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: none; }
body.is-touch button { cursor: pointer; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--ink);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.25);
}
.cursor.is-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cursor.is-click .cursor-dot { transform: translate(-50%, -50%) scale(0.6); }

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 10000;
  transition: width 0.08s linear;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 1000;
  transition: box-shadow 0.3s var(--ease), background 0.3s;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a.is-active { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(246, 243, 238, 0.96);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.12);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.16);
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,20,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 70%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  background: #ffd9cc;
  top: 10%; right: 5%;
}
.hero-blob-2 {
  width: 320px; height: 320px;
  background: #d4e4ff;
  bottom: 8%; left: 10%;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.05); }
}

.hero-inner {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  list-style: none;
  padding: 0;
}
.eyebrow span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}

.hero-title {
  position: relative;
  margin: 0 0 20px;
  line-height: 0.9;
}
.title-bg {
  position: absolute;
  left: -0.04em; top: -0.08em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  color: rgba(20, 20, 20, 0.05);
  user-select: none;
  z-index: 0;
}
.title-fg {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 700;
  display: inline-block;
}
.title-fg .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(8deg);
  animation: charIn 0.8s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.08s + 0.2s);
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 28em;
}
.hero-lead span { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.hero-meta dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.portrait-stage {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.portrait-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(232, 93, 76, 0.22), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(47, 111, 237, 0.16), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(246, 243, 238, 0.2) 70%);
  filter: blur(8px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

.portrait-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(20, 20, 20, 0.12);
  z-index: 1;
  animation: orbitSpin 28s linear infinite;
}
.portrait-orbit::before,
.portrait-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.portrait-orbit::before { top: 8%; left: 50%; transform: translateX(-50%); }
.portrait-orbit::after {
  bottom: 10%;
  right: 14%;
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.portrait-wrap {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background:
    linear-gradient(145deg, #fff 0%, #f3efe8 100%);
  box-shadow:
    0 0 0 1px rgba(20, 20, 20, 0.06),
    0 28px 60px rgba(20, 20, 20, 0.12),
    0 8px 20px rgba(232, 93, 76, 0.08);
  will-change: transform;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.portrait-wrap:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(20, 20, 20, 0.08),
    0 36px 72px rgba(20, 20, 20, 0.14),
    0 12px 28px rgba(232, 93, 76, 0.12);
}

.portrait-mat {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e4dc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.portrait-mat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 -40px 50px rgba(20, 20, 20, 0.08),
    inset 0 0 0 1px rgba(20, 20, 20, 0.04);
  pointer-events: none;
  z-index: 2;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.portrait-wrap:hover .portrait {
  transform: scale(1.1);
  filter: saturate(1) contrast(1.06);
}

.portrait-accent {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(232, 93, 76, 0.35);
  opacity: 0.7;
  pointer-events: none;
  animation: accentSpin 10s linear infinite;
}
@keyframes accentSpin {
  to { transform: rotate(360deg); }
}

.portrait-caption {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portrait-caption span {
  color: var(--ink-soft);
  font-weight: 500;
}
.portrait-caption em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .portrait-glow,
  .portrait-orbit,
  .portrait-accent { animation: none; }
}

.hero-badge {
  position: absolute;
  right: 0; bottom: 14%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 4;
  animation: badgePop 0.8s var(--ease) 1s both;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.badge-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint i {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Stats ── */
.stats-band {
  width: min(1180px, calc(100% - 48px));
  margin: -40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 5;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.stat-unit {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.stat-card p {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Sections ── */
.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}
.section-head {
  margin-bottom: 48px;
}
.section-no {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text .lead {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-top: 0;
}
.about-text p {
  color: var(--ink-soft);
  line-height: 1.85;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  transform-style: preserve-3d;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.info-card p { margin: 0 0 6px; font-weight: 600; }
.info-card span { font-size: 0.85rem; color: var(--ink-soft); }

/* ── Works masonry ── */
.works-tip {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: -24px 0 28px;
}
.works-tip code {
  background: rgba(20, 20, 20, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}
.gallery-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}
.gallery-empty code {
  background: rgba(20, 20, 20, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
body.is-touch .masonry-item { cursor: pointer; }
.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.masonry-item .masonry-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.55));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.masonry-item:hover .masonry-cap {
  opacity: 1;
  transform: translateY(0);
}
.works-cta { text-align: center; margin-top: 36px; }

/* ── Videos (Bilibili) ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  text-align: left;
  padding: 0;
  width: 100%;
  cursor: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d;
}
body.is-touch .video-card { cursor: pointer; }
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue, 210), 70%, 68%, 0.85), transparent 55%),
    linear-gradient(135deg, #1a1f2e, #2a3142);
  position: relative;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.22);
  transition: background 0.3s;
  z-index: 1;
}
.video-card:hover .video-play { background: rgba(20, 20, 20, 0.38); }
.video-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease);
}
.video-card:hover .video-play span { transform: scale(1.06); }
.video-body { padding: 20px 22px 22px; }
.video-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.video-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.video-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Lightbox / video modal ── */
.lightbox,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 12, 12, 0.88);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open,
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox[hidden],
.video-modal[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: none;
  transition: background 0.25s;
}
body.is-touch .lightbox-close { cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: none;
  transition: background 0.25s;
}
body.is-touch .lightbox-nav { cursor: pointer; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.video-modal-frame {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 960px) {
  .masonry { column-count: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masonry { column-count: 1; }
  .video-grid { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease);
}
.timeline.is-visible::before { transform: scaleY(1); }

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-item time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.timeline-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transform-style: preserve-3d;
}
.timeline-body h3 { margin: 0 0 4px; font-size: 1.2rem; }
.timeline-body .role {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.timeline-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ── Skills ── */
.skills-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.88rem;
}
.bar {
  height: 8px;
  background: rgba(20,20,20,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s var(--ease);
}
.skills-layout.is-visible .bar i { width: var(--w); }
.skill-row em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  transition: all 0.25s var(--ease);
}
.tag:hover,
.tag.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── Awards ── */
.awards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.award-chip {
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.award-chip:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: var(--shadow);
}
.award-chip strong { color: var(--accent); }

/* ── Contact ── */
.contact-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
}
.contact-inner h2 em {
  font-style: italic;
  color: var(--accent);
}
.contact-inner > p {
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.contact-btn:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
}
.contact-btn .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-btn .value {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}
.contact-btn .hint {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.contact-btn:hover .hint { opacity: 1; }

.toast {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.site-footer a:hover { color: var(--ink); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .skills-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 420px; }
  .portrait-stage { width: min(300px, 72vw); }
  .portrait-caption { bottom: -4px; font-size: 0.66rem; padding: 7px 12px; }
  .hero-meta { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .contact-actions { grid-template-columns: 1fr; }
  .nav, .site-header .btn-sm { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .hero-badge { right: 4px; bottom: 4%; }
}

@media (max-width: 560px) {
  .stats-band { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 1fr; gap: 6px; }
  .skill-row em { display: none; }
}
