*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}

:root{
  --amber:#F4A233;
  --amber-dark:#C9933A;
  --wood:#C8A97E;
  --wood-dark:#A0784A;
  --table-top:#D4B896;
  --table-edge:#B8966A;
  --bg-deep:#2C1A0E;
  --bg-mid:#3D2410;
  --bg-light:#5C2E10;
  --cream:#F5ECD7;
  --text-off:#FAF3E0;
}

body{
  background:var(--bg-deep);
  font-family:'Lato',sans-serif;
  overflow:hidden;
  height:100vh;
  width:100vw;
}

.library-scene{
  width:100vw;
  height:100vh;
  position:relative;
  overflow:hidden;
}

.back-wall{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 50% 50%,#3D2410 0%,#2C1A0E 50%,#1A0C06 100%);
  z-index:0;
}

/* PARTICLES — warm amber dust motes */
.particles{position:absolute;inset:0;z-index:1;pointer-events:none;}
.particles span{
  position:absolute;
  width:3px;height:3px;
  background:rgba(244,162,51,0.45);
  border-radius:50%;
  animation:float linear infinite;
  box-shadow:0 0 5px rgba(244,162,51,0.4),0 0 10px rgba(244,162,51,0.15);
}
/* vary sizes for depth */
.particles span:nth-child(1){left:8%;top:20%;animation-duration:9s;animation-delay:0s;width:2px;height:2px;}
.particles span:nth-child(2){left:20%;top:50%;animation-duration:13s;animation-delay:2s;width:4px;height:4px;background:rgba(201,147,58,0.35);}
.particles span:nth-child(3){left:40%;top:25%;animation-duration:10s;animation-delay:1s;}
.particles span:nth-child(4){left:55%;top:60%;animation-duration:15s;animation-delay:3s;width:2px;height:2px;background:rgba(250,243,224,0.3);}
.particles span:nth-child(5){left:65%;top:15%;animation-duration:11s;animation-delay:0.5s;width:4px;height:4px;}
.particles span:nth-child(6){left:30%;top:70%;animation-duration:12s;animation-delay:4s;background:rgba(244,162,51,0.3);}
.particles span:nth-child(7){left:75%;top:45%;animation-duration:8s;animation-delay:1.5s;width:2px;height:2px;}
.particles span:nth-child(8){left:85%;top:25%;animation-duration:14s;animation-delay:2.5s;background:rgba(201,147,58,0.4);}
.particles span:nth-child(9){left:50%;top:80%;animation-duration:10s;animation-delay:3.5s;width:4px;height:4px;}
@keyframes float{
  0%{transform:translateY(0) translateX(0);opacity:0;}
  10%{opacity:1;}
  90%{opacity:1;}
  100%{transform:translateY(-280px) translateX(18px);opacity:0;}
}

/* WALL SHELF — top left */
.wall-shelf{
  position:absolute;
  top:80px;left:55px;
  width:300px;
  z-index:10;
}
.wall-books{
  display:flex;
  align-items:flex-end;
  gap:4px;
  padding:0 10px;
  height:115px;
}
.wbook{border-radius:2px 2px 0 0;flex-shrink:0;box-shadow:1px 0 3px rgba(0,0,0,0.3);}
.wb1{width:22px;height:110px;background:#c084fc;}
.wb2{width:18px;height:90px;background:#818cf8;}
.wb3{width:26px;height:118px;background:#a78bfa;}
.wb4{width:20px;height:95px;background:#C9933A;}
.wb5{width:24px;height:108px;background:#6366f1;}
.wb6{width:18px;height:88px;background:#d946ef;}
.lean-right{transform:rotate(7deg);transform-origin:bottom center;}
.lean-left{transform:rotate(-7deg);transform-origin:bottom center;}
.yarn-ball{font-size:1.8rem;margin-bottom:0;line-height:1;flex-shrink:0;}
.wall-shelf-board{
  height:14px;background:var(--wood);
  border-radius:3px;
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

/* WALL CLOCK */
.wall-clock{
  position:absolute;
  top:258px;
  left:260px;
  width:90px;height:90px;
  z-index:10;
}
.clock-face{
  width:100%;height:100%;
  border-radius:50%;
  background:#FAF3E0;
  border:4px solid var(--wood);
  box-shadow:0 2px 8px rgba(0,0,0,0.4);
  position:relative;
  display:flex;align-items:center;justify-content:center;
}
.clock-hand{
  position:absolute;
  bottom:50%;left:50%;
  transform-origin:bottom center;
  border-radius:2px;
  background:#2C1A0E;
}
.hour-hand{
  width:4px;height:18px;
  margin-left:-2px;
  transform:rotate(120deg);
  animation:hour-tick 43200s linear infinite;
}
.minute-hand{
  width:3px;height:24px;
  margin-left:-1.5px;
  transform:rotate(0deg);
  animation:minute-tick 3600s linear infinite;
}
.clock-center{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--amber);
  z-index:2;
}
@keyframes hour-tick{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
@keyframes minute-tick{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}

/* STICKY NOTES */
.sticky-left{
  position:absolute;
  bottom:235px;
  right:calc(50% + 130px);
  display:flex;
  flex-direction:row;
  gap:8px;
  z-index:10;
}
.sticky-right{display:none;}
.sticky{
  width:58px;height:58px;
  padding:5px 6px;
  font-family:'Lato',sans-serif;
  font-size:0.38rem;
  line-height:1.3;
  box-shadow:2px 3px 8px rgba(0,0,0,0.35);
  overflow:hidden;
}
.sticky p{margin:0;color:#333;}
.s-yellow{background:#fef08a;transform:rotate(-2deg);}
.s-purple{background:#e9d5ff;transform:rotate(1.5deg);}
.s-pink{background:#fbcfe8;transform:rotate(-1deg);}

/* PAINTING FRAME */
.painting-frame{
  position:absolute;
  top:44px;
  left:580px;
  width:136px;
  padding:7px;
  background:var(--wood-dark);
  border-radius:3px;
  box-shadow:0 4px 14px rgba(0,0,0,0.4);
  z-index:10;
}
.painting-inner{width:100%;border-radius:2px;overflow:hidden;}
.painting-inner svg{display:block;width:100%;}

/* WINDOW */
.window{
  position:absolute;
  right:70px;top:34px;
  width:240px;
  z-index:6;
}
.window-frame{
  width:100%;height:285px;
  border:8px solid var(--wood);
  border-radius:6px 6px 0 0;
  overflow:hidden;position:relative;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
}
.window-sky{
  width:100%;height:100%;
  background:linear-gradient(180deg,#0d0628 0%,#1a0a3d 40%,#2d1060 70%,#4a1580 100%);
  position:relative;overflow:hidden;
}
.moon{
  position:absolute;top:28px;right:44px;
  width:50px;height:50px;
  background:#fef3c7;border-radius:50%;
  box-shadow:0 0 22px rgba(254,243,199,0.7),0 0 44px rgba(254,243,199,0.3);
  animation:moon-glow 4s ease-in-out infinite;
}
@keyframes moon-glow{
  0%,100%{box-shadow:0 0 22px rgba(254,243,199,0.7),0 0 44px rgba(254,243,199,0.3);}
  50%{box-shadow:0 0 32px rgba(254,243,199,0.9),0 0 64px rgba(254,243,199,0.4);}
}
.stars span{position:absolute;background:white;border-radius:50%;animation:twinkle 2s ease-in-out infinite;}
.stars span:nth-child(1){width:2px;height:2px;top:15%;left:10%;animation-delay:0s;}
.stars span:nth-child(2){width:3px;height:3px;top:25%;left:25%;animation-delay:0.5s;}
.stars span:nth-child(3){width:2px;height:2px;top:10%;left:45%;animation-delay:1s;}
.stars span:nth-child(4){width:2px;height:2px;top:40%;left:15%;animation-delay:1.5s;}
.stars span:nth-child(5){width:3px;height:3px;top:20%;left:60%;animation-delay:0.3s;}
.stars span:nth-child(6){width:2px;height:2px;top:35%;left:75%;animation-delay:0.8s;}
.stars span:nth-child(7){width:2px;height:2px;top:55%;left:30%;animation-delay:1.2s;}
.stars span:nth-child(8){width:3px;height:3px;top:60%;left:55%;animation-delay:0.6s;}
.stars span:nth-child(9){width:2px;height:2px;top:70%;left:80%;animation-delay:1.8s;}
.stars span:nth-child(10){width:2px;height:2px;top:80%;left:20%;animation-delay:0.4s;}
.stars span:nth-child(11){width:3px;height:3px;top:75%;left:45%;animation-delay:1.4s;}
.stars span:nth-child(12){width:2px;height:2px;top:85%;left:65%;animation-delay:0.9s;}
@keyframes twinkle{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.2;transform:scale(0.5);}}
.cloud{
  position:absolute;
  background:rgba(255,255,255,0.12);
  border-radius:50px;
}
.c1{width:70px;height:16px;top:65%;left:-20%;animation:cloud-move 22s linear infinite;}
.c2{width:50px;height:12px;top:50%;left:-15%;animation:cloud-move 32s linear infinite;animation-delay:8s;}
.c3{width:90px;height:14px;top:78%;left:-25%;animation:cloud-move 28s linear infinite;animation-delay:14s;}
@keyframes cloud-move{0%{transform:translateX(0);}100%{transform:translateX(350px);}}
.window-divider-h{position:absolute;top:50%;left:0;width:100%;height:5px;background:var(--wood);z-index:2;}
.window-divider-v{position:absolute;top:0;left:50%;width:5px;height:100%;background:var(--wood);z-index:2;}
.window-sill{
  width:calc(100% + 16px);height:14px;
  background:var(--wood-dark);
  border-radius:0 0 4px 4px;
  margin-left:-8px;
  box-shadow:0 4px 8px rgba(0,0,0,0.3);
}

/* WALL BOOKS ROW — flush with table, shifted right */
.wall-books-row{
  position:absolute;
  bottom:82px;
  left:130px;
  display:flex;
  align-items:flex-end;
  gap:4px;
  z-index:12;
  width:310px;
}
.wbr{
  border-radius:2px 2px 0 0;
  flex-shrink:0;
  box-shadow:1px 0 4px rgba(0,0,0,0.3);
}
.wbr.wb1{width:22px;height:110px;background:#c084fc;}
.wbr.wb2{width:18px;height:90px;background:#818cf8;}
.wbr.wb3{width:26px;height:120px;background:#a78bfa;}
.wbr.wb4{width:20px;height:100px;background:#C9933A;}
.wbr.wb5{width:16px;height:85px;background:#6366f1;}
.wbr.wb6{width:24px;height:115px;background:#d946ef;}
.wbr.wb7{width:18px;height:95px;background:#9333ea;}
.wbr.wb8{width:22px;height:105px;background:#a855f7;}



/* MONITOR */
.monitor-wrap{
  position:absolute;
  bottom:112px;
  left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;
  z-index:11;
}
.monitor-screen {
  width:260px;height:168px;
  background:#0d1117;
  border:5px solid #2a2a2a;
  border-radius:8px 8px 0 0;
  overflow:hidden;padding:10px 12px;
  box-shadow:0 0 28px rgba(244,162,51,0.12),0 8px 20px rgba(0,0,0,0.5);
}
.screen-content{font-family:'Source Code Pro',monospace;font-size:0.62rem;line-height:1.65;}
.code-line{white-space:nowrap;overflow:hidden;opacity:0;max-width:0;animation:type-in 0.6s steps(30) forwards;}
.code-line:nth-child(1){animation-delay:0.3s;}
.code-line:nth-child(2){animation-delay:0.9s;}
.code-line:nth-child(3){animation-delay:1.5s;}
.code-line:nth-child(4){animation-delay:2.0s;}
.code-line:nth-child(5){animation-delay:2.5s;}
.code-line:nth-child(6){animation-delay:3.0s;}
.code-line:nth-child(7){animation-delay:3.5s;}
.code-line:nth-child(8){animation-delay:4.0s;}
.code-line:nth-child(9){animation-delay:4.5s;}
@keyframes type-in{from{opacity:0;max-width:0;}to{opacity:1;max-width:100%;}}
.indent{padding-left:14px;}
.c-purple{color:#c084fc;}
.c-amber{color:#F4A233;}
.c-green{color:#4ade80;}
.cursor{color:#F4A233;animation:blink 1s step-end infinite;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:0;}}
.monitor-neck{width:16px;height:22px;background:#888;}
.monitor-base{width:90px;height:8px;background:#777;border-radius:0 0 8px 8px;}
/* TABLE SURFACE */
.table-surface{
  position:absolute;
  bottom:30px;left:0;right:0;
  height:82px;
  background:linear-gradient(180deg,#deb887 0%,#c8a97e 100%);
  z-index:9;
  display:flex;align-items:center;
  padding:0 60px;
  box-shadow:0 -3px 16px rgba(0,0,0,0.2);
}

/* TABLE EDGE */
.table-edge{
  position:absolute;
  bottom:0;left:0;right:0;
  height:30px;
  background:var(--table-edge);
  z-index:10;
  box-shadow:0 4px 15px rgba(0,0,0,0.3);
}

/* KEYBOARD */
.keyboard-wrap{
  position:absolute;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  z-index:11;
}
.keyboard{display:flex;flex-direction:column;gap:4px;padding-bottom:6px;}
.kb-row{display:flex;gap:3px;}
.kb-row span{
  display:block;width:18px;height:14px;
  background:#f0ede8;border-radius:3px;
  box-shadow:0 2px 0 #c8c4be;
}
.spacebar{width:120px !important;height:14px;background:#f0ede8;border-radius:3px;box-shadow:0 2px 0 #c8c4be;}

/* COFFEE CUP */
.coffee-cup{
  position:absolute;
  bottom:30px;right:80px;
  z-index:11;
}
.cup-steam{
  display:flex;gap:5px;
  position:absolute;
  bottom:56px;left:2px;
}
.cup-steam span{
  display:block;width:2px;height:16px;
  background:rgba(200,169,126,0.6);
  border-radius:2px;
  animation:steam 2s ease-in-out infinite;
}
.cup-steam span:nth-child(2){animation-delay:0.35s;height:20px;}
.cup-steam span:nth-child(3){animation-delay:0.7s;}
@keyframes steam{
  0%{transform:translateY(0) scaleX(1);opacity:0.6;}
  100%{transform:translateY(-16px) scaleX(2);opacity:0;}
}
.cup-wrap{position:relative;width:36px;margin-bottom:0;}
.cup-body{
  width:36px;height:40px;
  background:#FAF3E0;
  border-radius:0 0 10px 10px;
  border:2px solid #C8A97E;
  position:relative;
  margin-bottom:-2px;
}
.cup-body::after{
  content:'';position:absolute;
  top:8px;left:4px;right:4px;height:3px;
  background:var(--amber);border-radius:2px;opacity:0.5;
}
.cup-handle{
  position:absolute;
  right:-13px;top:8px;
  width:13px;height:18px;
  border:2.5px solid #C8A97E;
  border-radius:0 10px 10px 0;
  border-left:none;
}
.cup-saucer{
  width:50px;height:8px;
  background:#e8dcc8;
  border-radius:50%;
  margin-left:-7px;
  box-shadow:0 2px 4px rgba(0,0,0,0.2);
  margin-top:0;
}

/* WAKE BUTTON — amber */
.wake-btn{
  position:absolute;
  bottom:145px;
  left:calc(55px + 310px + 30px);
  background:transparent;
  border:1.5px solid var(--amber);
  color:var(--amber);
  font-family:'Playfair Display',serif;
  font-size:0.95rem;
  padding:9px 22px;
  border-radius:30px;
  cursor:pointer;
  animation:pulse 2.5s ease-in-out infinite;
  transition:background 0.3s,color 0.3s;
  z-index:20;
}
.wake-btn:hover{background:var(--amber);color:#2C1A0E;}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(244,162,51,0.4);}
  50%{box-shadow:0 0 0 12px rgba(244,162,51,0);}
}

/* ONYX — shifted right */
.onyx-sleep{
  position:absolute;
  bottom:70px;
  left:165px;
  width:175px;
  z-index:15;
  animation:breathe 3.5s ease-in-out infinite;
}
@keyframes breathe{
  0%,100%{transform:scaleY(1);}
  50%{transform:scaleY(1.06);}
}

/* PLANT */
.plant-wrap{
  position:absolute;
  bottom:30px;
  right:220px;
  width:130px;
  z-index:11;
}
.plant-wrap svg{display:block;width:100%;}

/* PAPERS STACK */
.papers-wrap{
  position:absolute;
  bottom:30px;
  right:140px;
  z-index:11;
}
.paper{
  width:52px;height:38px;
  background:#FAF3E0;
  border:1px solid #C8A97E;
  border-radius:2px;
  position:relative;
}
.p1{z-index:3;}
.p2{position:absolute;top:-5px;left:3px;background:#F5ECD7;transform:rotate(3deg);z-index:2;}
.p3{position:absolute;top:-9px;left:-2px;background:#EBD9C0;transform:rotate(-2deg);z-index:1;}
.paper-line{height:2px;background:#C8A97E;border-radius:1px;margin:6px 6px 0;opacity:0.5;}
.paper-line.short{width:60%;}

/* MOUSE */
.mouse-wrap{
  position:absolute;
  bottom:34px;
  left:calc(50% + 120px);
  width:32px;
  z-index:11;
}
.mouse-wrap svg{display:block;width:100%;}

.yarn-ball{
  width:52px;height:52px;
  flex-shrink:0;
  margin-bottom:-14px;
  align-self:flex-end;
}
.yarn-ball img{width:100%;height:100%;display:block;}

/* PHASE 2 ANIMATIONS */
#yarn-ball-anim{font-size:2rem;z-index:20;}

.onyx-surprised #leftLid,
.onyx-surprised #rightLid{animation:none !important;transform:scaleY(0) !important;}
.onyx-surprised{animation:surprised 0.5s ease-out;}
@keyframes surprised{
  0%{transform:scale(1);}
  40%{transform:scale(1.12) translateY(-8px);}
  100%{transform:scale(1);}
}

.onyx-stretch{animation:stretch 0.6s ease-in-out forwards !important;}
@keyframes stretch{
  0%{transform:scaleX(1) scaleY(1);}
  40%{transform:scaleX(1.3) scaleY(0.7);}
  70%{transform:scaleX(0.85) scaleY(1.2);}
  100%{transform:scaleX(1) scaleY(1);}
}

.onyx-curl{animation:curlBall 0.5s ease-in-out forwards !important;transform-origin:center bottom;}
@keyframes curlBall{
  0%{transform:scaleX(1) scaleY(1) rotate(0deg);border-radius:0%;}
  100%{transform:scaleX(0.55) scaleY(0.55) rotate(360deg);border-radius:50%;}
}
.onyx-curl{transition:left 2s ease-in-out;}

.onyx-uncurl{animation:uncurl 0.5s ease-out forwards !important;}
@keyframes uncurl{
  0%{transform:scaleX(0.55) scaleY(0.55) rotate(360deg);border-radius:50%;}
  100%{transform:scaleX(1) scaleY(1) rotate(0deg);border-radius:0%;}
}

.onyx-paw-hit{animation:pawHit 0.3s ease-in-out !important;}
@keyframes pawHit{
  0%{transform:translateY(0);}
  50%{transform:translateY(8px);}
  100%{transform:translateY(0);}
}
/* SPEECH BUBBLE */
#onyx-bubble {
  position: absolute;
  background: #1a0c06;
  border: 1.5px solid var(--amber);
  border-radius: 12px;
  padding: 14px 16px 14px;
  width: 220px;
  min-height: auto;
  height: auto;
  z-index: 30;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(244,162,51,0.15);
}

.bubble-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: #FAF3E0;
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
  min-height: 48px;
}

.bubble-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  background: var(--amber);
  color: #2C1A0E;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  float: right;
  transition: background 0.2s, transform 0.2s;
}

.bubble-arrow:hover {
  background: var(--amber-dark);
  transform: translateX(2px);
}

.bubble-tail {
  position: absolute;
  bottom: -12px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--amber);
}

.bubble-tail::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #FAF3E0;
}
/* ── PORTFOLIO WRAP ── */
/* ── PORTFOLIO WRAP ── */
.portfolio-wrap {
  display: none;
  background: #f5f0eb;
  color: #1a1a2e;
  font-family: 'Lato', sans-serif;
}

.port-section {
  min-height: 100vh;
  padding: 100px 10% 80px;
  position: relative;
  border-bottom: 1px solid rgba(109,40,217,0.1);
  opacity: 1;
  transform: translateY(0px);
}

.section-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.75rem;
  color: #7c3aed;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #1a1a2e;
  margin-bottom: 48px;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
/* ── HERO ── */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(ellipse at 30% 50%, #ede9fe 0%, #f5f0eb 60%);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  height: 100vh;
}

.hero-pre {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  color: #7c3aed;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.1rem;
  color: #7c3aed;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(26,26,46,0.6);
  margin-bottom: 40px;
  font-style: italic;
}

.hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 28px;
  background: #7c3aed;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

.hero-btn.outline {
  background: transparent;
  border: 1.5px solid #7c3aed;
  color: #7c3aed;
}

.hero-btn.outline:hover {
  background: #7c3aed;
  color: #fff;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 10%;
  font-size: 0.8rem;
  color: rgba(26,26,46,0.4);
  letter-spacing: 0.1em;
  animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%,100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(4px); }
}

/* ── ABOUT ── */
.about-section { background: #f5f0eb; }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: rgba(26,26,46,0.75);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.stat-card:hover {
  border-color: #7c3aed;
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(124,58,237,0.12);
  background: rgba(124,58,237,0.1);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #7c3aed;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(26,26,46,0.5);
  line-height: 1.3;
}

/* ── SKILLS ── */
.skills-section { background: #eee8f8; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #7c3aed;
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  color: #4c1d95;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.skill-tags span:hover {
  background: rgba(124,58,237,0.18);
  border-color: #7c3aed;
  transform: scale(1.08);
  display: inline-block;
}

/* ── PROJECTS ── */
.projects-section { background: #f5f0eb; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
}

.project-card:hover {
  border-color: #7c3aed;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

.project-tag {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.7rem;
  color: #7c3aed;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.project-desc {
  color: rgba(26,26,46,0.65);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-bullets {
  list-style: none;
  margin-bottom: 20px;
}

.project-bullets li {
  color: rgba(26,26,46,0.7);
  font-size: 0.83rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.project-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #7c3aed;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tools span {
  background: rgba(124,58,237,0.08);
  color: #7c3aed;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: 'Source Code Pro', monospace;
}

.project-link {
  color: #7c3aed;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: letter-spacing 0.2s;
}

.project-link:hover { letter-spacing: 0.1em; }

/* ── EXPERIENCE ── */
.experience-section { background: #eee8f8; }

.exp-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 860px;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.exp-card:hover {
  border-color: #7c3aed;
  transform: scale(1.01);
  box-shadow: 0 6px 28px rgba(124,58,237,0.12);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.exp-company {
  color: #7c3aed;
  font-size: 0.9rem;
}

.exp-date {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.78rem;
  color: rgba(26,26,46,0.4);
  white-space: nowrap;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets li {
  color: rgba(26,26,46,0.72);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid rgba(124,58,237,0.06);
}

.exp-bullets li:last-child { border-bottom: none; }

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #7c3aed;
}

/* ── CERTIFICATIONS ── */
.cert-section { background: #f5f0eb; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: #fff;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06);
}

.cert-card:hover {
  border-color: #7c3aed;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px rgba(124,58,237,0.15);
}

.cert-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cert-name {
  font-size: 0.82rem;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 600;
}

.cert-org {
  font-size: 0.72rem;
  color: #7c3aed;
  font-family: 'Source Code Pro', monospace;
}

/* ── CONTACT ── */
.contact-section {
  background: radial-gradient(ellipse at 70% 50%, #ede9fe 0%, #f5f0eb 60%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-sub {
  color: rgba(26,26,46,0.6);
  font-size: 1rem;
  margin-bottom: 40px;
  font-style: italic;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #7c3aed;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

.contact-btn.outline {
  background: transparent;
  border: 1.5px solid #7c3aed;
  color: #7c3aed;
}

.contact-btn.outline:hover {
  background: #7c3aed;
  color: #fff;
}

.contact-icon { font-size: 1rem; }

.contact-note {
  font-size: 0.78rem;
  color: rgba(26,26,46,0.35);
  font-style: italic;
}

/* ── GHOST ONYX ── */
.ghost-onyx {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 200px;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.onyx-circle {
  width: 200px;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.onyx-circle img {
  width:200px;
  display: block;
  margin-bottom: -4px;
  filter: drop-shadow(0 0 6px rgba(124,58,237,0.3));
}

.ghost-bubble {
  background: #fff;
  border: 1.5px solid #7c3aed;
  border-radius: 10px;
  padding: 10px 14px 12px;
  width: 200px;
  min-height: 60px;
  font-size: 0.72rem;
  color: #1a1a2e;
  line-height: 1.5;
  position: absolute;
  bottom: 118px;
  right: 0;
  box-shadow: 0 4px 14px rgba(124,58,237,0.15);
}

.ghost-bubble-tail {
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #7c3aed;
}

.ghost-bubble-tail::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
}

.c-slate  { color: #4a4560; }
.c-violet { color: #7c3aed; }
.cursor   { color: #7c3aed; animation: blink 1s step-end infinite; }

html, body { scroll-behavior: auto !important; }
.about-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.hero-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px) scale(1.04);
}

.contact-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px) scale(1.04);
}
/* ── TREATS RATING ── */
.treats-wrap {
  text-align: center;
  padding: 48px 0 0;
  width: 100%;
}

.treats-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.treats-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.treats-options span {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #7c3aed;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7c3aed;
  cursor: pointer;
  transition: all 0.2s;
}

.treats-options span:hover,
.treats-options span.selected {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.15);
}

.treats-thanks {
  font-size: 0.88rem;
  color: #7c3aed;
  font-style: italic;
  margin-bottom: 20px;
  min-height: 24px;
}

.treats-results {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.treat-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(26,26,46,0.5);
}

.treat-bar-fill {
  width: 28px;
  background: rgba(124,58,237,0.15);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(124,58,237,0.2);
  transition: height 0.6s ease, background 0.3s;
  min-height: 4px;
}

.treat-bar-fill.highlighted {
  background: #7c3aed;
  border-color: #7c3aed;
}
@media (max-width: 768px) {
  .wall-books-row { display: none; }
  .wall-shelf { display: none; }
  .painting-frame { display: none; }
  .sticky-left { display: none; }
  .wall-clock { display: none; }
  .mouse-wrap { display: none; }
  .papers-wrap { display: none; }
  .plant-wrap { display: none; }

  .onyx-sleep {
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
  }

  .monitor-wrap {
    bottom: 130px;
  }

  .monitor-screen {
    width: 200px;
    height: 130px;
  }

  #onyx-bubble {
    width: 180px;
    left: 50% !important;
    transform: translateX(-20%);
  }

  .coffee-cup { display: none; }

  .keyboard-wrap {
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {

  /* LIBRARY SCENE FIXES */
  .wall-books-row { display: none; }
  .wall-shelf { display: none; }
  .painting-frame { display: none; }
  .sticky-left { display: none; }
  .wall-clock { display: none; }
  .mouse-wrap { display: none; }
  .papers-wrap { display: none; }
  .plant-wrap { display: none; }
  .coffee-cup { display: none; }

  .onyx-sleep {
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
  }

  .monitor-wrap { bottom: 130px; }
  .monitor-screen { width: 200px; height: 130px; }

  #onyx-bubble {
    width: 180px;
    left: 50% !important;
    transform: translateX(-20%);
  }

  .keyboard-wrap {
    left: 50%;
    transform: translateX(-50%);
  }

  /* PORTFOLIO FIXES */
  .portfolio-wrap {
    overflow-x: hidden;
    width: 100vw;
  }

  .port-section {
    padding: 60px 5% 60px;
    overflow-x: hidden;
  }

  /* HERO */
  .hero-section {
    padding: 80px 5% 60px;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-links {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btn {
    text-align: center;
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* SKILLS */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* CERTIFICATIONS */
  .cert-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* EXPERIENCE */
  .exp-header {
    flex-direction: column;
    gap: 8px;
  }

  /* CONTACT */
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }

  /* GHOST ONYX */
  .ghost-onyx {
    width: 120px;
  }

  .ghost-bubble {
    width: 160px;
    font-size: 0.65rem;
    bottom: 90px;
  }

  .onyx-circle img {
    width: 120px;
  }

  /* TREATS */
  .treats-options {
    gap: 8px;
  }

  .treats-options span {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}