:root {
  --bg: black;
  --bg-soft: black;
  --card: black;
  --ink: #f4f2ec;
  --ink-dim: #b9b6ac;
  --accent: #d8e84a;        /* yellow-green from screenshots */
  --accent-soft: rgba(216, 232, 74, 0.14);
  --line: rgba(244, 242, 236, 0.14);

  --font-display: "Clash Display", "General Sans", sans-serif;
  --font-body: "Satoshi", "General Sans", sans-serif;
  --font-script: "Allura", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;               /* custom cursor */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #0a0a08; }

/* ─────────────── Preloader ─────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__text {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.5em;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--ink);
}
.preloader__bar {
  width: 220px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__progress {
  display: block; width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.preloader__count {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ink-dim);
}

/* ─────────────── Custom cursor ─────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 8999;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(216, 232, 74, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 0; color: #0a0a08;
}
.cursor-follower.is-hover {
  width: 64px; height: 64px;
  background: rgba(216, 232, 74, 0.12);
  border-color: var(--accent);
}
.cursor-follower.is-view {
  width: 84px; height: 84px;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
}
.cursor-follower.is-view::after { content: "VIEW"; }
.cursor-follower.is-lg {
  width: 110px; height: 110px;
  background: rgba(216, 232, 74, 0.08);
  border-color: rgba(216, 232, 74, 0.35);
}
@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body, a { cursor: auto; }
}

/* ─────────────── Fixed badge ─────────────── */
.badge-frame {
  position: fixed; top: 28px; left: 28px; z-index: 500;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink);
  background: rgba(10, 10, 8, 0.55);
  backdrop-filter: blur(10px);
}
.badge-frame__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(216,232,74,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(216,232,74,0); }
}

/* ─────────────── Nav dots ─────────────── */
.nav-dots {
  position: fixed; right: 28px; top: 50%; z-index: 500;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
}
.nav-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}
.nav-dot::before {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0; transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-dot:hover::before { opacity: 1; }
.nav-dot.is-active { background: var(--accent); transform: scale(1.4); }

/* ─────────────── Ambient glows & grain ─────────────── */
.glow {
  position: fixed; border-radius: 50%;
  filter: blur(140px);
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}
.glow--1 { width: 480px; height: 480px; top: -12%; left: -10%; background: rgba(216, 232, 74, 0.10); }
.glow--2 { width: 420px; height: 420px; bottom: -10%; right: -8%; background: rgba(120, 160, 90, 0.10); }
.glow--3 { width: 340px; height: 340px; top: 45%; left: 55%; background: rgba(216, 232, 74, 0.06); }

.grain {
  position: fixed; inset: -50%;
  z-index: 3; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  30% { transform: translate(4%,-3%); } 50% { transform: translate(-6%,6%); }
  70% { transform: translate(6%,3%); } 90% { transform: translate(-3%,8%); }
}

/* ─────────────── Sections ─────────────── */
.section {
  position: relative;
  min-height: 100vh;
  padding: 120px 8vw;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 1;
}

/* Shared big headings */
.big-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  color: var(--ink);
  text-shadow: 0 0 40px rgba(244, 242, 236, 0.25);
}

/* Sparkles */
.sparkle {
  position: absolute;
  color: var(--accent);
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  text-shadow: 0 0 20px rgba(216, 232, 74, 0.8);
  z-index: 2;
  animation: twinkle 2.6s ease-in-out infinite;
}
.sparkle--1 { top: 22%; left: 24%; animation-delay: 0s; }
.sparkle--2 { top: 18%; right: 26%; animation-delay: 0.7s; font-size: 1.1rem; }
.sparkle--3 { bottom: 26%; left: 30%; animation-delay: 1.2s; font-size: 1rem; }
.sparkle--4 { bottom: 30%; right: 22%; animation-delay: 1.8s; }
.sparkle--t1 { top: 24%; left: 34%; }
.sparkle--t2 { bottom: 28%; right: 34%; animation-delay: 1s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.35; transform: scale(0.7) rotate(35deg); }
}

/* ══════════════════ HERO ══════════════════ */
.hero {
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 13vw, 11.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow:
    0 0 60px rgba(244, 242, 236, 0.18),
    0 1px 0 #cfccc2, 0 2px 0 #b6b3a8, 0 3px 0 #99968c,
    0 6px 18px rgba(0,0,0,0.8);
}
.hero__title .char { display: inline-block; will-change: transform, opacity; }

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6.5vw, 5.4rem);
  margin-top: -0.55em;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(244, 242, 236, 0.35);
  position: relative; z-index: 3;
}

/* zig-zag stair decorations */
.hero__stairs {
  position: absolute; width: 130px; height: 130px;
  opacity: 0.55; z-index: 1;
  background:
    conic-gradient(from 90deg at 2px 2px, transparent 25%, var(--line) 0) 0 0 / 26px 26px;
}
.hero__stairs--left { bottom: 8%; left: 4%; clip-path: polygon(0 100%, 0 0, 20% 0, 20% 20%, 40% 20%, 40% 40%, 60% 40%, 60% 60%, 80% 60%, 80% 80%, 100% 80%, 100% 100%); }
.hero__stairs--right { top: 10%; right: 4%; transform: rotate(180deg); clip-path: polygon(0 100%, 0 0, 20% 0, 20% 20%, 40% 20%, 40% 40%, 60% 40%, 60% 60%, 80% 60%, 80% 80%, 100% 80%, 100% 100%); }

.hero__scroll-hint {
  position: absolute; bottom: 90px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden; white-space: nowrap;
}
.hero__marquee-track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.35em;
  color: var(--ink-dim);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════ ABOUT ══════════════════ */
.about__heading { text-align: center; margin-bottom: 70px; }

.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.about__photo-wrap { position: relative; transform-style: preserve-3d; }
.about__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transform: translateZ(30px);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-fallback {
  display: none;
  position: absolute; inset: 0;
  place-items: center;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.3em; text-align: center;
  color: var(--ink-dim); font-size: 0.9rem;
  background: linear-gradient(135deg, #191914, #101010);
}
.about__photo.is-placeholder .about__photo-fallback { display: grid; }
.about__photo-glow {
  position: absolute; inset: -14px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(216,232,74,0.18), transparent 70%);
  filter: blur(30px);
}

.about__text p {
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink-dim);
  text-align: center;
}
.about__text p + p { margin-top: 1.6em; }
.about__text strong { color: var(--ink); font-weight: 700; }

/* ══════════════════ SKILLS ══════════════════ */
.skills__heading { margin-bottom: 40px; }

.skills__tools { display: flex; gap: 18px; margin-bottom: 60px; flex-wrap: wrap; }
.tool {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.tool:hover { transform: translateY(-6px) scale(1.06); }
.tool--ps { background: #001e36; color: #31a8ff; border: 1px solid #31a8ff55; }
.tool--ps:hover { box-shadow: 0 12px 34px rgba(49,168,255,0.35); }
.tool--pr { background: #00005b; color: #9999ff; border: 1px solid #9999ff55; }
.tool--pr:hover { box-shadow: 0 12px 34px rgba(153,153,255,0.35); }
.tool--ae { background: #00005b; color: #d291ff; border: 1px solid #d291ff55; }
.tool--ae:hover { box-shadow: 0 12px 34px rgba(210,145,255,0.35); }
.tool--capcut { background: #0d0d0d; color: #fff; border: 1px solid #ffffff44; }
.tool--capcut:hover { box-shadow: 0 12px 34px rgba(255,255,255,0.22); }

.skills__sub { margin-bottom: 56px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}

.skill-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  padding: 42px 34px 60px;
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(216,232,74,0.08), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.skill-card:hover { border-color: rgba(216,232,74,0.55); }
.skill-card:hover::before { opacity: 1; }

.skill-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 30px;
  transform: translateZ(24px);
}
.skill-card ul { list-style: none; transform: translateZ(16px); }
.skill-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.skill-card li::before {
  content: "•";
  position: absolute; left: 0;
  color: var(--accent);
}
.skill-card:hover li { color: var(--ink); }
.skill-card__num {
  position: absolute; bottom: 14px; right: 20px;
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: rgba(244,242,236,0.06);
}

/* ══════════════════ WORK ══════════════════ */
.work__heading { text-align: center; margin-bottom: 70px; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 1250px; margin: 0 auto; width: 100%;
}

.work-card {
  position: relative;
  transform-style: preserve-3d;
}
.work-card__label {
  display: block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 12px 10px;
  margin-bottom: 18px;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  transform: translateZ(30px);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover .work-card__label {
  background: var(--accent);
  color: #0a0a08;
  box-shadow: 0 10px 40px rgba(216,232,74,0.35);
}

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  transform: translateZ(12px);
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  position: relative; z-index: 2;
}
.work-card:hover .work-card__media img { transform: scale(1.08); filter: saturate(1.15); }

/* fallbacks when no image present */
.work-card__fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: linear-gradient(180deg, #16161a, #0b0b0d);
}
.music-echo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.music-echo:nth-child(1) { color: #f4f2ec; }
.music-echo:nth-child(2) { color: rgba(244,242,236,0.4); }
.music-echo:nth-child(3) { color: rgba(244,242,236,0.15); }
.work-card__fallback--gradient {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,140,60,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(70,140,60,0.4), transparent 55%),
    linear-gradient(180deg, #1c2410, #0c0f08);
}
.work-card__fallback--vp {
  background:
    linear-gradient(115deg, transparent 45%, rgba(216,232,74,0.12) 45.5%, transparent 60%),
    radial-gradient(circle at 60% 40%, rgba(255,190,60,0.25), transparent 50%),
    linear-gradient(180deg, #14170f, #0a0a08);
}

/* ══════════════════ CONTACT ══════════════════ */
.contact { overflow: hidden; }
.contact__stairs {
  position: absolute; left: 0; top: 50%;
  width: 60px; height: 320px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 40px),
              repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 30px);
  clip-path: polygon(0 0, 50% 0, 50% 12.5%, 100% 12.5%, 100% 25%, 50% 25%, 50% 37.5%, 100% 37.5%, 100% 50%, 50% 50%, 50% 62.5%, 100% 62.5%, 100% 75%, 50% 75%, 50% 87.5%, 100% 87.5%, 100% 100%, 0 100%);
  opacity: 0.6;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.contact__heading { margin-bottom: 48px; }

.contact-item {
  display: flex; gap: 18px;
  padding: 18px 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  will-change: transform;
}
.contact-item:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
  transform: translateX(8px);
}
.contact-item__arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.35s ease;
}
.contact-item:hover .contact-item__arrow { transform: translate(4px, -4px) rotate(0deg); }
.contact-item__body { display: flex; flex-direction: column; gap: 4px; }
.contact-item__body strong {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.04em;
}
.contact-item__body span {
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact__cta { text-align: center; }
.contact__cta-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact__cta-text .line { display: block; overflow: hidden; }

/* ══════════════════ THANK YOU ══════════════════ */
.thanks {
  align-items: center;
  text-align: center;
}
.thanks__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 10rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-shadow:
    0 0 60px rgba(244,242,236,0.18),
    0 1px 0 #cfccc2, 0 2px 0 #b6b3a8,
    0 6px 18px rgba(0,0,0,0.8);
}
.thanks__script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 7vw, 6rem);
  margin-top: -0.5em;
  text-shadow: 0 0 30px rgba(244,242,236,0.35);
}
.thanks__footer {
  position: absolute; bottom: 34px; left: 8vw; right: 8vw;
  display: flex; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ─────────────── Reveal defaults (JS animates) ─────────────── */
[data-reveal] { opacity: 0; }
.no-js [data-reveal] { opacity: 1; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 960px) {
  .section { padding: 100px 6vw; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo-wrap { max-width: 320px; margin: 0 auto; }
  .bento, .work__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__cta { order: -1; }
  .nav-dots { display: none; }
  .badge-frame { top: 16px; left: 16px; font-size: 0.58rem; padding: 8px 12px; }
}
@media (max-width: 520px) {
  .thanks__footer { flex-direction: column; gap: 8px; align-items: center; }
}
