/* ============================================================
   RESET & VARIABLES
   ============================================================ */
:root {
  --bg: #050505;
  --fg: #e8e8e8;
  --accent: #e5a55c;
  --accent-dim: rgba(229, 165, 92, 0.15);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --dim: #888;
  --faint: #555;

  --sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-text {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: load 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes load { to { transform: scaleX(1); } }

.loader-pct {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.2em;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}
.cursor.grow {
  width: 48px;
  height: 48px;
  background: var(--fg);
}

@media (max-width: 768px) {
  .cursor { display: none; }
  body { cursor: auto; }
}

/* ============================================================
   3D CANVAS
   ============================================================ */
#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  pointer-events: none;
}
nav a, nav span {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.1em; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 120px;
  position: relative;
}

.hero-frame {
  position: absolute;
  inset: 90px 0 60px;
  pointer-events: none;
  z-index: -1;
}
.hero-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
}
.hero-frame .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-frame .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-frame .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-frame .br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-eyebrow .eyebrow-label {
  padding: 7px 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(229, 165, 92, 0.06);
}
.hero-eyebrow .eyebrow-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.hero-eyebrow .eyebrow-year {
  color: var(--faint);
  letter-spacing: 0.4em;
}

.hero-name-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}
.hero-name-glow {
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse at center, rgba(229, 165, 92, 0.14), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}
.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 9.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  position: relative;
  white-space: nowrap;
}

.hero-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-accent::after {
  content: "";
  position: absolute;
  bottom: 0.06em;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-name .glitch {
  position: relative;
  display: inline-block;
}
.hero-name .glitch::before,
.hero-name .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.hero-name .glitch::before {
  color: #ff3b3b;
  z-index: -1;
  animation: glitch-1 4s infinite linear alternate-reverse;
}
.hero-name .glitch::after {
  color: #3b8aff;
  z-index: -2;
  animation: glitch-2 4s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  92% { opacity: 1; transform: translate(-3px, 2px); }
  94% { opacity: 1; transform: translate(3px, -2px); }
  96% { opacity: 1; transform: translate(-2px, 1px); }
  98% { opacity: 0; transform: translate(0); }
}
@keyframes glitch-2 {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  90% { opacity: 1; transform: translate(2px, -1px); }
  93% { opacity: 1; transform: translate(-3px, 2px); }
  95% { opacity: 1; transform: translate(1px, -2px); }
  97% { opacity: 0; transform: translate(0); }
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--dim);
  max-width: 62ch;
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-sub b { color: var(--fg); font-weight: 700; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.3s ease;
}
.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(229, 165, 92, 0.05);
}
.chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s infinite ease-in-out;
}
.scroll-hint::before {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.hero-index {
  position: absolute;
  bottom: 40px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-index::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 100px; }
  .hero-frame { inset: 80px 0 40px; }
  .scroll-hint { bottom: 24px; }
  .hero-index { bottom: 24px; }
}
@media (max-width: 600px) {
  .hero-name {
    white-space: normal;
    word-break: break-word;
    font-size: clamp(2.2rem, 13vw, 4rem);
  }
}
@media (max-width: 480px) {
  .hero-frame { display: none; }
  .hero-index { display: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
}
.about-text p {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
}
.about-text p:first-child::first-letter {
  font-family: var(--display);
  font-size: 4em;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  padding: 8px 16px 0 0;
  color: var(--accent);
}
.about-text .highlight { color: var(--fg); font-weight: 700; }
.about-quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--fg);
  line-height: 1.6;
}
.about-facts { font-size: 13px; }
.fact {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.fact .k {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-family: var(--mono);
}
.fact .v { color: var(--fg); text-align: right; font-weight: 700; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   ROSTER
   ============================================================ */
.account {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.account:first-of-type { border-top: 1px solid var(--line-2); }

.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.account-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.account-idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: block;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  white-space: nowrap;
}
.badge.hot {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.account-note {
  color: var(--dim);
  font-size: 15px;
  max-width: 65ch;
  margin: 20px 0 32px;
  line-height: 1.8;
}
.account-note b { color: var(--fg); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.stat-cell {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .lbl {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--faint);
  margin-bottom: 8px;
  display: block;
}
.stat-cell .val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}
.stat-cell .val.gold { color: var(--accent); }

/* PROGRESS */
.progress-block { margin-top: 28px; }
.progress-heading {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.progress-row { margin-bottom: 14px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 6px;
}
.progress-label .num { color: var(--fg); }
.progress-track {
  height: 2px;
  background: var(--line-2);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f3c185);
  width: 0;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ACHIEVEMENTS */
.achievements-block { margin-top: 36px; }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.achievement {
  background: var(--bg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  transition: background 0.3s ease;
}
.achievement:hover { background: rgba(229, 165, 92, 0.04); }
.achievement .rank {
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.achievement .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.achievement .value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 700;
}

/* REPUTATION TAGS */
.reputation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.rep-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s ease;
}
.rep-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.rep-tag::before {
  content: "//";
  color: var(--accent);
  margin-right: 6px;
  font-size: 9px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.shot {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: brightness(0.7) saturate(0.8);
  transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}
.shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 24px 20px;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.shot-cap .name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.shot-cap .tag {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  white-space: nowrap;
}

/* ============================================================
   MEMORIES
   ============================================================ */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.memory-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.memory-img:hover { border-color: var(--accent); }

.memory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.85);
  transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.memory-img:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.05);
}

/* ============================================================
   LINKS
   ============================================================ */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.link-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: background 0.3s ease;
}
.link-card:last-child { border-right: none; }
.link-card:hover { background: rgba(255, 255, 255, 0.02); }

.link-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 12px;
}
.link-name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.link-name .arrow {
  color: var(--accent);
  transition: transform 0.3s ease;
  font-family: var(--sans);
}
.link-card:hover .arrow { transform: translateX(8px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 80px 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.1em;
}
footer .sig b { color: var(--accent); font-weight: 700; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: scroll 20s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--faint);
  padding: 0 40px;
  opacity: 0.45;
}
.marquee-track span.accent {
  color: var(--accent);
  opacity: 0.65;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content { padding: 0 24px; }
  section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .gallery { grid-template-columns: 1fr; }
  .link-card { border-right: none; border-bottom: 1px solid var(--line); }
  .link-card:last-child { border-bottom: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat-cell:last-child { border-bottom: none; }
  .memory-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
}
@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.1em; }
}
.keep-clashing {
  font-weight: 700;
  color: var(--fg);
}