*{ margin:0; padding:0; box-sizing:border-box; }

html{
  background:#03040a;
  scroll-snap-type: y mandatory;
  scroll-behavior:smooth;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

#stardust{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

/* ---------- Hero section (name + large centered cutout, first page) ---------- */
.hero-section{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding: 48px 0 0 48px;
  perspective: 900px;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  z-index:1;
}

.hero-portrait-wrap{
  position:absolute;
  top:44%;
  left:50%;
  width: clamp(220px, 38vw, 480px);
  border-radius:22px;
  overflow:hidden;
  opacity:0;
  transform: translate(-50%, -50%) scale(0.94);
  animation: heroIn 1s cubic-bezier(.16,1,.3,1) 0.2s forwards;
  will-change: transform, opacity;
  z-index:0;
}

@keyframes heroIn{
  to{ opacity:1; transform: translate(-50%, -50%) scale(1); }
}

.hero-portrait{
  display:block;
  width:100%;
  height:auto;
}

.hero-portrait-wrap:hover .hero-portrait{
  animation: heroShake 0.4s ease-in-out infinite;
}

@keyframes heroShake{
  0%, 100%{ transform: translateX(0) rotate(0deg); }
  20%{ transform: translateX(-4px) rotate(-1deg); }
  40%{ transform: translateX(4px) rotate(1deg); }
  60%{ transform: translateX(-3px) rotate(-1deg); }
  80%{ transform: translateX(3px) rotate(1deg); }
}

.scroll-hint{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  color:#ffffff;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.22em;
  text-transform:uppercase;
  opacity:0;
  animation: fadeInHint 0.8s ease-out 1.4s forwards;
}

@keyframes fadeInHint{
  to{ opacity:1; }
}

.scroll-hint__line{
  width:2px;
  height:44px;
  background: rgba(201,168,255,0.3);
  border-radius:2px;
  position:relative;
  overflow:hidden;
}

.scroll-hint__line::after{
  content:"";
  position:absolute;
  top:-100%;
  left:0;
  width:100%;
  height:100%;
  background:#c9a8ff;
  box-shadow: 0 0 10px rgba(201,168,255,0.9);
  animation: cueDown 2s ease-in-out infinite;
}

@keyframes cueDown{
  0%{ top:-100%; } 50%{ top:0; } 100%{ top:100%; }
}

.intro{
  position:relative;
  z-index:1;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  width:max-content;
  max-width:90vw;
}

.name{
  --rx: 0deg;
  --ry: 0deg;
  position:relative;
  display:flex;
  align-items:flex-start;
  line-height:0.95;
  font-family: 'Bebas Neue', sans-serif;
  font-weight:400;
  letter-spacing:-0.02em;
  color:#9b5cf6;
  cursor:default;
  user-select:none;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: top left;
  transition: transform .12s ease-out;
  will-change: transform;
}

.line{ display:flex; }

.ch{
  display:inline-block;
  font-size: clamp(26px, 6.5vw, 88px);
  opacity:0;
  transform: translateY(60px) rotate(6deg);
  transition: color .25s ease, transform .25s ease;
}

#stage.in-view .ch{
  animation: rise 0.9s cubic-bezier(.16,1,.3,1) forwards;
}

.sp{
  display:inline-block;
  font-size: clamp(26px, 6.5vw, 88px);
  width:0.35em;
}

.ch:hover{
  color:#c9a8ff;
  transform: translateY(-6px) scale(1.08);
}

@keyframes rise{
  to{
    opacity:1;
    transform: translateY(0) rotate(0deg);
  }
}

/* staggered entrance per letter (position 8 is the space) */
.ch:nth-child(1){ animation-delay: 0.05s; }
.ch:nth-child(2){ animation-delay: 0.10s; }
.ch:nth-child(3){ animation-delay: 0.15s; }
.ch:nth-child(4){ animation-delay: 0.20s; }
.ch:nth-child(5){ animation-delay: 0.25s; }
.ch:nth-child(6){ animation-delay: 0.30s; }
.ch:nth-child(7){ animation-delay: 0.35s; }
.ch:nth-child(9){ animation-delay: 0.42s; }
.ch:nth-child(10){ animation-delay: 0.47s; }
.ch:nth-child(11){ animation-delay: 0.52s; }
.ch:nth-child(12){ animation-delay: 0.57s; }
.ch:nth-child(13){ animation-delay: 0.62s; }

.tagline{
  margin-top:4px;
  color:#ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight:400;
  line-height:1.2;
  letter-spacing:-0.01em;
  text-align:center;
  align-self:stretch;
  max-width:100%;
  opacity:0;
}

#stage.in-view .tagline{
  animation: fadeIn 0.8s ease-out 0.85s forwards;
}

@keyframes fadeIn{
  to{ opacity:0.85; }
}

@media (max-width: 600px){
  #stage{ perspective: none; }
  .name{ transform:none !important; }
}

/* ---------- Age timer ---------- */
.age-timer{
  position:fixed;
  top:24px;
  right:24px;
  z-index:10;
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:9px 16px;
  border-radius:100px;
  background:rgba(12,10,20,0.75);
  backdrop-filter: blur(8px);
}

.age-label{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#8f7bb8;
}

.age-value{
  font-family: 'Courier New', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size:15px;
  font-weight:600;
  color:#c9a8ff;
}

.age-unit{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size:11px;
  color:#8f7bb8;
}

@media (max-width: 600px){
  .age-timer{ top:14px; right:14px; padding:7px 12px; }
  .age-value{ font-size:12px; }
}

/* ---------- Socials, to the right of the hero image ---------- */
.hero-socials{
  position:absolute;
  top:44%;
  left: calc(50% + clamp(220px, 38vw, 480px) / 2 + 40px);
  transform: translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:32px;
  z-index:1;
  opacity:0;
  animation: fadeInHint 0.8s ease-out 1.2s forwards;
}

.social-link{
  display:flex;
  align-items:center;
  gap:16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight:400;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration:none;
  white-space:nowrap;
  transition: color .2s ease, transform .2s ease;
}

.social-link::before{
  content:"";
  width:24px;
  height:2px;
  background: currentColor;
  opacity:0.6;
  transition: width .2s ease;
}

.social-link:hover{
  color:#c9a8ff;
  transform: translateX(6px);
}

.social-link:hover::before{
  width:38px;
}

@media (max-width: 900px){
  .hero-socials{
    left:auto;
    right:24px;
    top:auto;
    bottom:100px;
    transform:none;
    align-items:flex-end;
    gap:14px;
  }
  .social-link{ font-size: clamp(16px, 4vw, 22px); gap:10px; }
  .social-link::before{ width:14px; }
}

@media (max-width: 600px){
  .hero-socials{ bottom:86px; right:16px; gap:10px; }
  .social-link{ font-size:14px; }
}

/* ---------- "Stuff I've made", left side of the first page ---------- */
.made-section{
  position:absolute;
  top:27%;
  left:48px;
  display:flex;
  flex-direction:column;
  gap:14px;
  width: clamp(220px, 26vw, 320px);
  max-height:62vh;
  z-index:4;
  opacity:0;
  animation: fadeInHint 0.8s ease-out 1.3s forwards;
}

.made-heading{
  flex-shrink:0;
  text-align:center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight:400;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:#c9a8ff;
}

.made-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.made-list::-webkit-scrollbar{ width:3px; }
.made-list::-webkit-scrollbar-track{ background:transparent; }
.made-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.22); border-radius:2px; }
.made-list::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.4); }

.made-item{
  position:relative;
  flex-shrink:0;
  background: rgba(15,12,24,0.72);
  border:1px solid rgba(201,168,255,0.35);
  border-radius:6px;
  padding:14px 16px 14px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.made-item--1{ transform: rotate(-2.2deg); }
.made-item--2{ transform: rotate(1.6deg) translateX(10px); }
.made-item--3{ transform: rotate(-1deg) translateX(4px); }

.made-item:hover{
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(201,168,255,0.85);
  box-shadow: 0 16px 32px rgba(0,0,0,0.55);
}

.made-item-img{
  display:block;
  width:100%;
  max-height:100px;
  object-fit:contain;
  background:#ffffff;
  border-radius:4px;
  padding:8px;
  margin-bottom:10px;
}

.made-item-title{
  font-family: 'Bespoke Serif', serif;
  font-size:15px;
  font-weight:400;
  color:#ffffff;
  letter-spacing:0.01em;
  margin-bottom:4px;
}

.made-item-desc{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size:11.5px;
  line-height:1.4;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 900px){
  .made-section{
    top:auto;
    bottom:100px;
    left:16px;
    width: clamp(150px, 30vw, 210px);
    max-height:44vh;
    gap:10px;
  }
  .made-heading{ font-size:16px; }
  .made-list{ gap:10px; }
  .made-item{ padding:10px 12px 10px 14px; }
  .made-item-title{ font-size:12px; }
  .made-item-desc{ font-size:9.5px; }
}

@media (max-width: 600px){
  .made-section{ bottom:86px; left:12px; width: clamp(130px, 34vw, 180px); max-height:38vh; }
}

/* ---------- Page two: video + brainrot grid ---------- */
.page-two{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:24px;
  padding: 32px 48px;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  z-index:1;
}

.page-two-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
}

.page-two-title{
  font-family: 'Bebas Neue', sans-serif;
  font-weight:400;
  letter-spacing:-0.01em;
  color:#9b5cf6;
  font-size: clamp(30px, 5vw, 54px);
  line-height:0.95;
}

.page-two-subtitle{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 1.4vw, 14px);
  color:#ffffff;
  opacity:0.85;
}

.page-two-body{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:18px;
  width:100%;
}

.page-two-video{
  flex:0 0 auto;
  max-width: clamp(300px, 38vw, 500px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-left: clamp(12px, 3vw, 36px);
}

.page-two-video-el{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height: clamp(320px, 54vh, 560px);
  border-radius:12px;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  background:#000;
}

.page-two-video-title{
  font-family: 'Bespoke Serif', serif;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight:400;
  color:#ffffff;
  line-height:1.3;
  max-width:100%;
}

.page-two-video-dash{ color:#c9a8ff; }

.page-two-video-rule{
  width:100%;
  height:1px;
  background: rgba(255,255,255,0.3);
  margin-top:-2px;
}

.page-two-video-desc-list{
  margin:2px 0 0 15px;
  padding:0;
  max-width:100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: clamp(11.5px, 1.3vw, 13px);
  line-height:1.35;
  color: rgba(255,255,255,0.65);
}

.page-two-video-desc-list li{ margin-bottom:3px; }
.page-two-video-desc-list li::marker{ color:#c9a8ff; }

.brainrot-section{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  max-height: clamp(320px, 54vh, 560px);
}

.brainrot-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows:140px;
  gap:16px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.brainrot-grid::-webkit-scrollbar{ width:3px; }
.brainrot-grid::-webkit-scrollbar-track{ background:transparent; }
.brainrot-grid::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.22); border-radius:2px; }
.brainrot-grid::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.4); }

.brainrot-tile{
  border-radius:10px;
  overflow:hidden;
  background: rgba(15,12,24,0.55);
  border:1px solid rgba(201,168,255,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
}

.brainrot-tile img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

@media (max-width: 900px){
  .page-two{ padding:56px 24px; gap:28px; }
  .page-two-body{
    flex-direction:column;
    align-items:flex-start;
    gap:28px;
  }
  .page-two-video{ flex:0 0 auto; width:100%; max-width:320px; }
  .brainrot-section{ width:100%; max-height:38vh; }
}

@media (max-width: 600px){
  .page-two{ padding:48px 16px; gap:22px; }
  .brainrot-section{ max-height:34vh; }
  .brainrot-grid{ grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); grid-auto-rows:90px; gap:8px; }
}

/* ---------- Curly animated box around the name ---------- */
.curly-box{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:2;
  overflow:visible;
}
