/* ══════════════════════════════════════════════════════
   INTERSTELLAR CINEMA — Full-Page Background Portfolio
   Color palette: Deep Navy + Warm Gold (from background images)
   ══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --bg:       #070b14;
  --bg2:      #0c1220;
  --bg3:      #111827;

  --text:     #f0ece6;
  --text2:    #a8a29e;
  --text3:    #78716c;

  --accent:   #d4a574;
  --accent-h: #c49060;
  --accent2:  #f0c878;
  --cyan:     #7cb8d4;

  --glass:        rgba(7,11,20,0.65);
  --glass-hover:  rgba(7,11,20,0.8);
  --glass-border: rgba(212,165,116,0.12);
  --border:       rgba(212,165,116,0.1);
  --border-h:     rgba(212,165,116,0.25);

  --glow-sm: 0 0 20px rgba(212,165,116,0.1);
  --glow-md: 0 0 40px rgba(212,165,116,0.18);
  --glow-lg: 0 0 80px rgba(212,165,116,0.22);
  --shadow:  0 4px 24px rgba(0,0,0,0.6);

  --r:    16px;
  --r-sm: 10px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:      0.3s var(--ease);

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font:         'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ══ Custom Cursor ══ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(212,165,116,0.8);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(212,165,116,0.4);
  background: transparent;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
body.cursor-hover .cursor-dot {
  width: 10px; height: 10px;
  background: var(--accent2);
  box-shadow: 0 0 16px rgba(240,200,120,0.9);
}
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(240,200,120,0.3);
  background: rgba(212,165,116,0.04);
}
body.cursor-click .cursor-dot { width: 4px; height: 4px; }
body.cursor-click .cursor-ring {
  width: 22px; height: 22px;
  border-color: var(--accent);
  background: rgba(212,165,116,0.1);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ══ Page Loader ══ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#loader.fade-out { opacity: 0; pointer-events: none; }

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 280px;
  position: relative;
}
.loader-scan {
  position: absolute;
  top: -60px; left: -60px; right: -60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-down 1.8s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes scan-down {
  0%   { top: -60px; opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { top: 160px; opacity: 0; }
}
.loader-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(212,165,116,0.15);
  border-radius: 1px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(212,165,116,0.5);
}
.loader-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
}

/* ══ Particles ══ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

/* ══ Mouse Spotlight ══ */
.mouse-spotlight {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
}
body:hover .mouse-spotlight { opacity: 1; }

/* ══ Film Grain ══ */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%; height: 300%;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.3s steps(1) infinite;
}
@keyframes grain-shift {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-4%, -5%); }
  20% { transform: translate(-8%,  3%); }
  30% { transform: translate( 6%,-12%); }
  40% { transform: translate(-3%, 14%); }
  50% { transform: translate(-11%, 6%); }
  60% { transform: translate( 5%, -3%); }
  70% { transform: translate( 0%, 16%); }
  80% { transform: translate( 4%,-11%); }
  90% { transform: translate(-8%, 7%); }
}

/* ══════════════════════════════════════════════════════
   PILL NAVIGATION
   ══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  z-index: 200;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 100px;
  transition: background 0.4s ease;
}

#main-nav {
  inset: auto;
  top: 18px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100vw - 40px);
  padding: 0 8px 0 20px;
  gap: 6px;
  background: rgba(7,11,20,0.8);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(212,165,116,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 40px rgba(0,0,0,0.55),
    0 0 60px rgba(212,165,116,0.04);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
  margin-right: 12px;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text2);
  text-decoration: none;
  transition: color var(--t), background var(--t);
  padding: 6px 12px;
  border-radius: 100px;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(212,165,116,0.1);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 16px;
  margin-left: 8px;
  height: 100%;
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(240,200,120,0.5);
  animation: blink 2.8s ease infinite;
}
.nav-status-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.5px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ══════════════════════════════════════════════════════
   FULL-PAGE BACKGROUND SECTIONS
   ══════════════════════════════════════════════════════ */

/* ── Hero: 1111.jpg — Dark Moon ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 120px 48px 0;
  position: relative;
  overflow: hidden;
  background: url('/media/1111.jpg') center center / cover no-repeat fixed;
  scroll-snap-align: start;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,11,20,0.5) 0%,
    rgba(7,11,20,0.15) 35%,
    rgba(7,11,20,0.3) 65%,
    rgba(7,11,20,0.75) 100%
  );
  z-index: 1;
}
#hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.07) 0%, transparent 65%);
  top: 5%; left: 2%;
  z-index: 2;
  animation: orb-float 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-top: 40px;
}

.hero-text { display: flex; flex-direction: column; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.15s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #f0ece6 0%, #d4a574 50%, #f0c878 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite 1.5s;
}

.name-char {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  animation: char-reveal 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes char-reveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
  opacity: 1;
  min-height: 1.7em;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.8s ease infinite;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.6s forwards;
}

/* ── Photo Frame ── */
.hero-visual {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.5s forwards;
}

.photo-frame {
  width: 280px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212,165,116,0.15);
  background: rgba(7,11,20,0.5);
  box-shadow: 0 0 40px rgba(212,165,116,0.08), 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(212,165,116,0.25), transparent, rgba(240,200,120,0.15));
  z-index: -1;
  animation: border-glow 4s ease infinite;
}
@keyframes border-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.hero-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.hero-avatar.loaded { display: block; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text3);
  font-size: 10px;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, rgba(7,11,20,0.6), rgba(7,11,20,0.8));
}

.frame-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(212,165,116,0.3);
  border-style: solid;
  z-index: 2;
}
.frame-tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.frame-tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.frame-bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.frame-br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }

/* ── Education Strip ── */
.edu-strip {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 64px auto 0;
  width: 100%;
  padding: 28px 0 52px;
  border-top: 1px solid rgba(212,165,116,0.1);
  display: flex;
  align-items: flex-start;
  gap: 52px;
}
.edu-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  padding-top: 4px;
  white-space: nowrap;
}
.edu-items { display: flex; gap: 52px; flex-wrap: wrap; }
.edu-item { display: flex; flex-direction: column; gap: 4px; }
.edu-school {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text); letter-spacing: -0.2px;
}
.edu-degree { font-size: 13px; color: var(--text2); }
.edu-years {
  font-family: var(--mono);
  font-size: 10px; color: var(--text3); margin-top: 2px;
}
.edu-note { font-size: 12px; color: var(--accent); margin-top: 2px; }

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
}
.scroll-hint span {
  font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
}
.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.12); }
}

/* ══════════════════════════════════════════════════════
   STATS BANNER — Compact Dark Strip
   ══════════════════════════════════════════════════════ */
#stats-banner {
  padding: 56px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
  overflow: hidden;
}
#stats-banner::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.07) 0%, transparent 65%);
  top: -60%; left: 10%;
  animation: orb-float 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
#stats-banner::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,184,212,0.05) 0%, transparent 65%);
  bottom: -70%; right: 15%;
  animation: orb-float 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 700px;
  margin: 0 auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: var(--text3); letter-spacing: 0.5px; }
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ══════════════════════════════════════════════════════
   SKILLS — Compact Dark Strip
   ══════════════════════════════════════════════════════ */
#skills {
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
#skills::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,165,116,0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: skills-pulse 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
#skills::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 75%;
  background: linear-gradient(90deg, transparent 0%, rgba(212,165,116,0.04) 50%, transparent 100%);
  animation: skills-sweep 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.skill-card {
  background: rgba(212,165,116,0.03);
  border: 1px solid rgba(212,165,116,0.08);
  border-radius: var(--r);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all var(--t);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(14px);
}
.skill-card.visible {
  opacity: 1;
  transform: none;
}
.skill-card:hover {
  background: rgba(212,165,116,0.06);
  border-color: rgba(212,165,116,0.2);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}
.skill-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(212,165,116,0.08);
  border-radius: 12px;
  padding: 10px;
}
.skill-icon svg { width: 100%; height: 100%; }
.skill-card.visible .skill-icon {
  animation: icon-glow 4s ease-in-out infinite;
}
.skill-card:nth-child(2).visible .skill-icon { animation-delay: 1s; }
.skill-card:nth-child(3).visible .skill-icon { animation-delay: 2s; }
.skill-card:nth-child(4).visible .skill-icon { animation-delay: 3s; }
.skill-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.skill-desc { font-size: 12px; color: var(--text3); }

/* ══════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 68px;
  position: relative;
  z-index: 5;
  overflow: visible;
}
.eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub { font-size: 14px; color: var(--text3); }

/* Scan-light titles */
.scan-title { position: relative; overflow: hidden; }
.scan-title::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.2), transparent);
  transform: skewX(-15deg);
}
.scan-title.scan-active::after { animation: title-scan 0.9s ease forwards; }
@keyframes title-scan {
  0%   { left: -80%; }
  100% { left: 130%; }
}

/* Decorative ghost numbers */
.section-deco-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,165,116,0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  right: -10px;
  bottom: -50px;
}

/* ══════════════════════════════════════════════════════
   AWARDS — 1112.jpg — Jupiter
   ══════════════════════════════════════════════════════ */
#awards {
  min-height: 100vh;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
  background: url('/media/1112.jpg') center center / cover no-repeat fixed;
  scroll-snap-align: start;
}
#awards::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,11,20,0.6) 0%,
    rgba(7,11,20,0.35) 30%,
    rgba(7,11,20,0.4) 70%,
    rgba(7,11,20,0.8) 100%
  );
  z-index: 1;
}

.awards-grid {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* Timeline */
.awards-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 0 40px;
}
.awards-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(212,165,116,0.35) 8%,
    rgba(240,200,120,0.45) 50%,
    rgba(212,165,116,0.35) 92%,
    transparent 100%
  );
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.awards-timeline.line-drawn::before {
  transform: translateX(-50%) scaleY(1);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
  transform: translateX(40px);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.2), 0 0 16px rgba(212,165,116,0.3);
  z-index: 3;
  transition: box-shadow var(--t), background var(--t);
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212,165,116,0.45);
  animation: dot-pulse-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.timeline-card {
  background: rgba(7,11,20,0.7);
  border: 1px solid rgba(212,165,116,0.1);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all var(--t);
}
.timeline-card:hover {
  border-color: rgba(212,165,116,0.25);
  box-shadow: var(--glow-sm);
}
.timeline-item.tl-open .timeline-card {
  border-color: rgba(212,165,116,0.3);
  box-shadow: var(--glow-md);
}
.timeline-item.tl-open .timeline-dot {
  background: var(--accent2);
  box-shadow: 0 0 0 3px rgba(240,200,120,0.3), 0 0 20px rgba(240,200,120,0.5);
}

.tl-header { padding: 20px 24px; }
.tl-cat {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.15);
  padding: 3px 9px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
}
.tl-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.35;
}
.tl-issuer {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}

.tl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 24px;
}
.timeline-item.tl-open .tl-body {
  max-height: 300px;
  padding: 0 24px 24px;
}
.tl-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* Legacy award card (fallback) */
.award-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  backdrop-filter: blur(12px);
}
.award-card.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   WORKS — 1113.jpg — Dark Sphere
   ══════════════════════════════════════════════════════ */
#works {
  min-height: 100vh;
  padding: 120px 48px 130px;
  position: relative;
  overflow: hidden;
  background: url('/media/1113.jpg') center center / cover no-repeat fixed;
  scroll-snap-align: start;
}
#works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,11,20,0.65) 0%,
    rgba(7,11,20,0.3) 30%,
    rgba(7,11,20,0.4) 70%,
    rgba(7,11,20,0.8) 100%
  );
  z-index: 1;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* 3D Tilt Card */
.video-card {
  perspective: 800px;
  background: transparent;
  border-radius: var(--r);
  overflow: visible;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  position: relative;
}
.video-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-inner {
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(7,11,20,0.7);
  border: 1px solid rgba(212,165,116,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video-card:hover .card-inner {
  transform: translateY(-4px);
  box-shadow: var(--glow-md);
  border-color: rgba(212,165,116,0.2);
}
.video-card.clicking .card-inner {
  transform: scale(1.02) !important;
  box-shadow: var(--glow-lg) !important;
  transition: transform 0.15s var(--spring), box-shadow 0.15s ease !important;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.video-card:hover .card-shine { opacity: 1; }

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-card:hover .card-thumb img { transform: scale(1.05); }

.thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity var(--t);
}
.video-card:hover .play-overlay { opacity: 1; }

.play-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.video-card:hover .play-ring {
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.7);
  background: rgba(212,165,116,0.2);
  box-shadow: 0 0 20px rgba(212,165,116,0.3);
}
.play-ring svg { width: 16px; height: 16px; fill: white; margin-left: 3px; }

.card-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.card-body { padding: 20px 24px 24px; }

.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(212,165,116,0.15);
  padding: 3px 9px;
  border-radius: 100px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin-bottom: 7px;
}
.card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-year {
  font-family: var(--mono);
  font-size: 10px; color: var(--text3); margin-top: 10px;
}

.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  font-size: 14px;
  color: var(--text3);
}

/* Featured first card */
.video-card:first-child { grid-column: 1 / -1; }
.video-card:first-child .card-thumb { aspect-ratio: 21 / 9; }
.video-card:first-child .card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: start;
}
.video-card:first-child .card-tags { grid-column: 1 / -1; }
.video-card:first-child .card-title { font-size: 20px; }
.video-card:first-child .card-year { align-self: start; margin-top: 4px; }
.video-card:first-child .card-desc { grid-column: 1; -webkit-line-clamp: 3; }

/* ══════════════════════════════════════════════════════
   STATEMENT — 1114.jpg — Planet + City
   ══════════════════════════════════════════════════════ */
#statement {
  min-height: 100vh;
  padding: 128px 48px;
  position: relative;
  overflow: hidden;
  background: url('/media/1114.jpg') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
}
#statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,11,20,0.55) 0%,
    rgba(7,11,20,0.2) 30%,
    rgba(7,11,20,0.3) 70%,
    rgba(7,11,20,0.7) 100%
  );
  z-index: 1;
}

.statement-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
  background: rgba(7,11,20,0.45);
  padding: 64px 48px;
  border-radius: 24px;
  border: 1px solid rgba(212,165,116,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.3px;
  border: none;
  margin: 20px 0 32px;
}
.statement-quote strong {
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statement-body {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 52px;
  font-weight: 300;
}

.statement-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0a14;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(212,165,116,0.2);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212,165,116,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(212,165,116,0.3);
}
.btn-outline:hover {
  background: rgba(212,165,116,0.08);
  border-color: rgba(212,165,116,0.5);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  padding: 36px 48px;
  border-top: 1px solid var(--border);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.3;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
}
.footer-top .footer-name { color: var(--text2); font-weight: 500; }
.footer-sep { opacity: 0.3; }
.footer-bottom {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}
.modal.open { pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,11,20,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal.open .modal-backdrop { opacity: 1; }

.modal-close {
  position: fixed;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  transition: all var(--t);
  z-index: 502;
  opacity: 0;
}
.modal.open .modal-close {
  opacity: 1;
  transition: opacity 0.35s ease 0.1s, background var(--t), color var(--t);
}
.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}
.modal-close svg { width: 14px; height: 14px; }

.modal-content {
  position: relative;
  z-index: 501;
  width: 100%;
  max-width: 920px;
  opacity: 0;
  transform: scale(0.95) translateY(14px);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal.open .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(212,165,116,0.1), 0 40px 100px rgba(0,0,0,0.6);
}
.modal-video-wrap video {
  width: 100%; height: 100%;
  object-fit: contain;
}

.modal-meta { padding: 20px 4px 0; }
.modal-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.modal-tags .tag {
  color: var(--text3);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }
.modal-year {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   TOAST + REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(7,11,20,0.9);
  color: var(--text);
  font-size: 11px; font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow-sm);
}
.toast.show { opacity: 1; transform: none; }

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ══════════════════════════════════════════════════════ */
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}
@keyframes skills-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes skills-sweep {
  0%   { left: -100%; }
  100% { left: 180%; }
}
@keyframes icon-glow {
  0%, 100% { background: rgba(212,165,116,0.08); box-shadow: none; }
  50%       { background: rgba(212,165,116,0.18); box-shadow: 0 0 24px rgba(212,165,116,0.2); }
}
@keyframes dot-pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  80%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  #hero, #awards, #works, #statement { background-attachment: scroll; }
  #main-nav { padding: 0 12px 0 16px; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: flex; justify-content: center; }
  .photo-frame { width: 240px; height: 320px; }
  #hero, #awards, #works, #statement, #skills { padding-left: 24px; padding-right: 24px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { padding-right: 0; padding-left: 48px; justify-content: flex-start; }
  .timeline-item:nth-child(even) { padding-left: 48px; padding-right: 0; }
  .awards-timeline::before { left: 16px; }
  .timeline-dot { left: 16px; }
}

@media (max-width: 620px) {
  #main-nav { padding: 0 10px 0 14px; }
  .nav-status { display: none; }
  #hero { padding: 96px 20px 0; }
  #awards, #works, #statement, #skills { padding: 80px 20px; }
  #stats-banner { padding: 32px 20px; }
  .stats-inner { gap: 24px; }
  .stat-number { font-size: 36px; }
  .works-grid { grid-template-columns: 1fr; }
  .video-card:first-child .card-thumb { aspect-ratio: 16 / 9; }
  .video-card:first-child .card-body { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .statement-cta { flex-direction: column; align-items: center; }
  .statement-inner { padding: 40px 24px; }
  .edu-strip { flex-direction: column; gap: 16px; }
  footer { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
