/* ============================================================
   MR.RC — Personal Website v5 — GAME UI EDITION
   Color Palette: #FEFAE0 (light yellow) · #0A0A0A (black)
   Inspired by: Persona 5, Yakuza, Ghost of Tsushima
   ============================================================ */

:root {
  --yellow: #FEFAE0;
  --yellow-dim: #F5F0C8;
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-mid: #1A1A1A;
  --accent: #FEFAE0;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-hud: 'Orbitron', 'Space Mono', monospace;
  --font-calligraphy: 'Zhi Mang Xing', 'Ma Shan Zheng', cursive;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-main);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

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

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--yellow);
  z-index: 10001;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(254,250,224,0.4);
}

/* ── NOISE OVERLAY ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  transition: padding 0.3s ease, background 0.3s ease;
  background: transparent;
}

nav.scrolled {
  padding: 16px 48px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(254,250,224,0.08);
}

.nav-logo {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--yellow);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* ── HERO — CHARACTER SELECT ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HUD CORNERS */
.hero-hud-corner {
  position: absolute;
  width: 40px; height: 40px;
  border-color: rgba(254,250,224,0.15);
  border-style: solid;
  z-index: 3;
}
.hero-hud-tl { top: 24px; left: 24px; border-width: 2px 0 0 2px; }
.hero-hud-tr { top: 24px; right: 24px; border-width: 2px 2px 0 0; }
.hero-hud-bl { bottom: 24px; left: 24px; border-width: 0 0 2px 2px; }
.hero-hud-br { bottom: 24px; right: 24px; border-width: 0 2px 2px 0; }

/* DIAGONAL SLASHES (Persona 5 inspired) */
.hero-slash {
  position: absolute;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(254,250,224,0.06), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-slash-1 { top: 30%; left: -50%; transform: rotate(-15deg); }
.hero-slash-2 { bottom: 25%; left: -50%; transform: rotate(10deg); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ── PROFILE IMAGE ── */
.hero-profile {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease 0.1s both;
}

.profile-frame {
  width: 130px;
  height: 130px;
  padding: 3px;
  background: linear-gradient(135deg, var(--yellow), rgba(254,250,224,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  /* Angular hexagonal clip — game character portrait */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.profile-frame:hover .profile-img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.profile-level {
  font-family: var(--font-hud);
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-top: 12px;
  color: var(--yellow);
  opacity: 0.7;
  animation: fadeUp 1s ease 0.15s both;
}

.hero-tag {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.5;
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.2s both;
}

.tag-bracket {
  opacity: 0.3;
  font-weight: 300;
}

.hero-name {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

.line-wrap {
  overflow: visible;
  display: block;
}

.reveal-line {
  display: block;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--yellow);
  opacity: 0;
  margin-top: 20px;
  animation: fadeUp 1s ease 0.9s both;
}

.hero-cta {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--yellow);
  opacity: 0;
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 1s ease 1.05s both;
}

.inline-link-hero {
  border-bottom: 1px solid rgba(254,250,224,0.5);
  font-weight: 500;
  transition: border-color 0.3s ease;
}

.inline-link-hero:hover {
  border-color: var(--yellow);
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s both;
}

.hero-socials a {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  border-bottom: 1px solid transparent;
}

.hero-socials a:hover {
  opacity: 1;
  border-bottom-color: var(--yellow);
}

.hero-scroll-hint {
  margin-top: 40px;
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s both, scrollPulse 2s ease-in-out 2.4s infinite;
  color: var(--yellow);
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── SECTION LABELS — GAME HUD STYLE ── */
.section-label {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.4;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid rgba(254,250,224,0.3);
  font-size: 11px;
  font-weight: 700;
  /* Angular diamond shape */
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: rgba(254,250,224,0.05);
}

.section-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--yellow);
}

.section-title.center { text-align: center; }

.sub-title-en {
  font-family: var(--font-hud);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ── MARQUEE ── */
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
  border-bottom: 1px solid rgba(254,250,224,0.08);
  background: var(--black-soft);
}

.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: var(--font-hud);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.2;
  color: var(--yellow);
}

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

/* ── CALLIGRAPHY FONT ── */
.calligraphy {
  font-family: var(--font-calligraphy);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.calligraphy-sm {
  font-family: var(--font-calligraphy);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ── ABOUT — CHARACTER STATS ── */
.about {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 0;
}

.about-text {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 20px;
}

.inline-link {
  border-bottom: 1px solid rgba(254,250,224,0.4);
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.inline-link:hover { border-color: var(--yellow); opacity: 1; }

/* CHARACTER STAT BARS */
.char-stats {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.char-stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.char-stat-name {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

.stat-bar {
  width: 100%;
  height: 6px;
  background: rgba(254,250,224,0.08);
  position: relative;
  overflow: hidden;
  /* Angular bar shape */
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

.stat-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), rgba(254,250,224,0.6));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.stat-num {
  font-family: var(--font-hud);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  display: block;
  letter-spacing: 0.05em;
}

.stat-label {
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: 8px;
  display: block;
}

/* ── JOURNEY — QUEST LOG ── */
.journey {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

/* QUEST TABS */
.quest-tabs {
  display: flex;
  gap: 0;
  margin: 60px auto 48px;
  max-width: 420px;
  border: 1px solid rgba(254,250,224,0.15);
  overflow: hidden;
  /* Angular tab shape */
  clip-path: polygon(0 0, 97% 0, 100% 30%, 100% 100%, 3% 100%, 0 70%);
}

.quest-tab {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: var(--yellow);
  font-family: var(--font-hud);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s ease;
  opacity: 0.4;
  position: relative;
}

.quest-tab:first-child {
  border-right: 1px solid rgba(254,250,224,0.15);
}

.quest-tab.active {
  background: rgba(254,250,224,0.08);
  opacity: 1;
}

.quest-tab:hover {
  opacity: 0.8;
  background: rgba(254,250,224,0.04);
}

.tab-icon {
  margin-right: 8px;
  font-size: 14px;
}

/* QUEST PANELS */
.quest-panel {
  display: none;
}

.quest-panel.active {
  display: block;
}

/* TIMELINE — MAIN QUEST */
.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(254,250,224,0.2), rgba(254,250,224,0.05));
}

.timeline-item {
  position: relative;
  padding: 32px 0 32px 40px;
  border-bottom: 1px solid rgba(254,250,224,0.04);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* QUEST MARKERS */
.quest-marker {
  position: absolute;
  left: -52px; top: 36px;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  background: rgba(254,250,224,0.3);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  z-index: 2;
}

.timeline-item.completed .quest-marker {
  background: var(--yellow);
  color: var(--black);
}

.active-marker {
  background: var(--yellow) !important;
  color: var(--black) !important;
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,250,224,0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(254,250,224,0.15); }
}

.timeline-year {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.timeline-age {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.4;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.6;
  font-weight: 300;
}

.quest-status {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.2; }
}

/* SIDE QUESTS */
.side-quests {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-quest-item {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(254,250,224,0.02);
  border: 1px solid rgba(254,250,224,0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  /* Angular card */
  clip-path: polygon(0 0, 96% 0, 100% 20px, 100% 100%, 4% 100%, 0 calc(100% - 20px));
}

.side-quest-item:hover {
  border-color: rgba(254,250,224,0.15);
  background: rgba(254,250,224,0.04);
}

.side-quest-item .quest-marker {
  position: relative;
  left: auto; top: auto;
  flex-shrink: 0;
  margin-top: 4px;
}

.side-quest-content {
  flex: 1;
}

.side-quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.side-quest-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.side-quest-tag {
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  border: 1px solid rgba(254,250,224,0.2);
  color: var(--yellow);
  opacity: 0.5;
}

.active-tag {
  opacity: 1 !important;
  border-color: var(--yellow) !important;
  animation: blink 1.5s ease-in-out infinite;
}

.side-quest-item p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.5;
  font-weight: 300;
}

/* ── PROJECTS — BUILDS ── */
.projects {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.project-card {
  position: relative;
  padding: 48px;
  background: rgba(254,250,224,0.02);
  border: 1px solid rgba(254,250,224,0.06);
  transition: all 0.4s ease;
  display: block;
  overflow: hidden;
  cursor: none;
  /* Angular card shape */
  clip-path: polygon(0 0, 92% 0, 100% 32px, 100% 100%, 8% 100%, 0 calc(100% - 32px));
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.project-card:hover::before { transform: translateY(0); }
.project-card:hover { color: var(--black); border-color: var(--yellow); }
.project-card:hover .project-tag { color: var(--black); opacity: 0.5; }
.project-card:hover .project-role { color: var(--black); opacity: 0.6; }
.project-card:hover .project-arrow { opacity: 1; }

.project-card.featured {
  grid-column: span 2;
  background: var(--black-mid);
}

.project-tag {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.project-card h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.project-role {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.project-card p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.6;
  font-weight: 300;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-card:hover p { opacity: 0.7; }

.project-arrow {
  position: absolute;
  bottom: 48px; right: 48px;
  font-size: 28px;
  opacity: 0.2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.project-card:hover .project-arrow { transform: translate(4px, -4px); }

/* ── GROUPS — PARTY ── */
.groups {
  padding: 120px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.groups-list {
  margin-top: 64px;
}

.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid rgba(254,250,224,0.06);
  transition: opacity 0.3s ease, padding-left 0.3s ease;
  cursor: none;
}

.group-item:hover {
  padding-left: 12px;
}

.group-name {
  font-size: 28px;
  font-weight: 600;
  min-width: 200px;
}

.group-desc {
  font-size: 14px;
  opacity: 0.4;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.group-arrow {
  font-size: 20px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.group-item:hover .group-arrow { opacity: 1; }

/* ── HONORS — ACHIEVEMENTS ── */
.honors {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.honor-item {
  padding: 32px;
  border: 1px solid rgba(254,250,224,0.06);
  background: rgba(254,250,224,0.02);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  /* Angular shape */
  clip-path: polygon(0 0, 90% 0, 100% 20px, 100% 100%, 10% 100%, 0 calc(100% - 20px));
}

.honor-item:hover {
  border-color: rgba(254,250,224,0.15);
  background: rgba(254,250,224,0.04);
  transform: translateY(-2px);
}

.achievement-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.honor-issuer {
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 8px;
}

.honor-title {
  font-size: 18px;
  font-weight: 600;
}

/* ── WRITING — SKILL SCROLLS ── */
.writing {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.writing-list {
  margin-top: 64px;
}

.writing-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(254,250,224,0.06);
  transition: padding-left 0.3s ease, opacity 0.3s ease;
  cursor: none;
}

.writing-item:hover {
  padding-left: 12px;
}

.writing-num {
  font-family: var(--font-hud);
  font-size: 12px;
  opacity: 0.3;
  min-width: 32px;
  letter-spacing: 0.1em;
}

.writing-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
}

.writing-arrow {
  font-size: 16px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.writing-item:hover .writing-arrow { opacity: 1; }

/* ── CONNECT — PARTY UP ── */
.connect {
  padding: 160px 0;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.connect-title { margin-bottom: 80px; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid rgba(254,250,224,0.08);
  transition: opacity 0.3s ease, padding-left 0.3s ease;
  cursor: none;
}

.social-link:hover {
  opacity: 0.7;
  padding-left: 12px;
}

.social-platform {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  min-width: 160px;
}

.social-handle {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── FOOTER ── */
footer {
  padding: 48px;
  border-top: 1px solid rgba(254,250,224,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.25em;
  opacity: 0.4;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.25;
}

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

/* ── SCROLL REVEAL ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.32s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .honors-grid { grid-template-columns: 1fr; }
  .group-desc { display: none; }
  .social-handle { font-size: 18px; }
  footer { padding: 32px 24px; }
  .profile-frame { width: 100px; height: 100px; }
  .quest-tabs { max-width: 100%; }
  .hero-hud-corner { display: none; }
  .side-quest-item { clip-path: none; }
  .project-card { clip-path: none; }
  .honor-item { clip-path: none; }
}

@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: 48px; }
  .quest-tab { font-size: 9px; padding: 12px 16px; }
}
