/* ════════════════════════════════════════════
   NAJISA PORTFOLIO — main.css
   Single-page dark cosmic portfolio
════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: #fff;
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
  cursor: none;
}
body.light-mode { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }

/* ── Background: stars only ── */
.bg-container, .top-container { display: none; }
#universe { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ── Lamp ── */
.lamp-toggle {
  position: fixed;
  top: 22px; left: 26px;
  width: 200px; height: 65vh;
  z-index: 900;
  transform: scale(0.27); transform-origin: top left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.click-mask {
  position: absolute; inset: 0; z-index: 200; cursor: pointer;
}
.layer-part {
  position: absolute; inset: 0;
  background-size: contain; background-repeat: no-repeat;
  background-position: center top;
  transition: opacity 0.1s steps(1);
  pointer-events: none;
}
.eye-dark  { background-image: url('../images/eye-dark.png'); opacity: 0; }
.eye-light { background-image: url('../images/eye-light.png'); opacity: 1; }
.line-dark  { background-image: url('../images/line-dark.png'); }
.line-light { background-image: url('../images/line-light.png'); opacity: 0; }
.han-dark  { background-image: url('../images/han-dark.png'); }
.han-light { background-image: url('../images/han-light.png'); opacity: 0; }
body.light-mode .eye-dark  { opacity: 1; }
body.light-mode .eye-light { opacity: 0; }
body.light-mode .line-dark, body.light-mode .han-dark { opacity: 0; }
body.light-mode .line-light, body.light-mode .han-light { opacity: 1; }

.line-group, .han-group {
  position: absolute; inset: 0;
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* hide rope and handle — eye only */
.line-group, .han-group { display: none; }
/* active: eye squish */
.lamp-toggle:active .eye-dark,
.lamp-toggle:active .eye-light {
  transform: scaleY(1.1) scaleX(0.92);
  transform-origin: top center;
  transition: transform 0.1s ease-out;
}

/* ── Topbar ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 76px;
  display: flex; align-items: center;
  z-index: 800;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.4s ease;
}
.topbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.12); }
body.light-mode .topbar { background: #000; border-bottom-color: rgba(255,255,255,0.07); }
body.light-mode .topbar.scrolled { box-shadow: 0 2px 24px rgba(255,255,255,0.1); }
.topbar-lamp-space { width: 120px; flex-shrink: 0; }

.topbar-home {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 14px; letter-spacing: 8px; text-transform: uppercase;
  color: rgba(0,0,0,0.7);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.topbar-home:hover { color: #000; }
body.light-mode .topbar-home { color: rgba(255,255,255,0.7); }
body.light-mode .topbar-home:hover { color: #fff; }

.topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 26px;
  padding-right: 52px;
}

/* Lang picker */
.lang-picker { position: relative; }
.lang-current {
  background: none; border: none; cursor: none;
  font-size: 13px; letter-spacing: 1px;
  color: rgba(0,0,0,0.5);
  padding: 3px 5px;
  transition: color 0.3s;
}
.lang-current:hover { color: rgba(0,0,0,0.9); }
body.light-mode .lang-current { color: rgba(255,255,255,0.5); }
body.light-mode .lang-current:hover { color: rgba(255,255,255,0.9); }

.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 5px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  min-width: 52px;
  opacity: 0; pointer-events: none;
  transform: scale(0.88) translateY(-6px);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
  z-index: 900;
}
body.light-mode .lang-dropdown { background: #111; border-color: rgba(255,255,255,0.1); }
.lang-picker.open .lang-dropdown { opacity: 1; pointer-events: all; transform: scale(1) translateY(0); }
.lang-opt {
  background: none; border: none; cursor: none;
  font-size: 12px; letter-spacing: 1px;
  color: rgba(0,0,0,0.45);
  padding: 8px 14px;
  text-align: center;
  transition: color 0.2s, background 0.2s;
}
.lang-opt:hover { color: rgba(0,0,0,0.9); background: rgba(0,0,0,0.04); }
.lang-opt.active { color: rgba(0,0,0,0.9); }
body.light-mode .lang-opt { color: rgba(255,255,255,0.45); }
body.light-mode .lang-opt:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
body.light-mode .lang-opt.active { color: rgba(255,255,255,0.9); }

/* Burger */
.burger-icon {
  width: 36px; height: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: none;
}
.burger-icon span {
  display: block; width: 100%; height: 2px;
  background: rgba(0,0,0,0.7);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1), background 0.6s ease;
}
body.light-mode .burger-icon span { background: rgba(255,255,255,0.7); }
.burger-icon:hover span:first-child { width: 75%; }
.burger-icon:hover span:last-child  { width: 75%; margin-left: auto; }
.burger-icon.active span:first-child { transform: translateY(8px) rotate(45deg); width: 100%; }
.burger-icon.active span:last-child  { transform: translateY(-8px) rotate(-45deg); width: 100%; }

/* ── Drawer ── */
.menu-overlay {
  position: fixed; top: 88px; right: 18px;
  width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  z-index: 700;
  display: flex; flex-direction: column;
  padding: 28px 32px 22px;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  /* hidden: scale down from top-right corner */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88) translateY(-8px);
  transform-origin: top right;
  transition: opacity 0.3s ease,
              transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
body.light-mode .menu-overlay { background: #000; border-color: rgba(255,255,255,0.08); }
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}
.menu-links { display: flex; flex-direction: column; gap: 16px; }
.menu-link {
  font-size: 13px; font-weight: 300; letter-spacing: 4px; text-transform: uppercase;
  color: #000; text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.4s cubic-bezier(0.4,0,0.2,1),
              letter-spacing 0.3s ease;
  position: relative; display: inline-block; width: fit-content;
}
body.light-mode .menu-link { color: #fff; }
.menu-overlay.active .menu-link { opacity: 1; transform: translateY(0); }
.menu-overlay.active .menu-link:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.active .menu-link:nth-child(2) { transition-delay: 0.13s; }
.menu-overlay.active .menu-link:nth-child(3) { transition-delay: 0.18s; }
.menu-overlay.active .menu-link:nth-child(4) { transition-delay: 0.23s; }
.menu-link:hover { opacity: 0.5; letter-spacing: 6px; }
.menu-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: #000;
  transition: width 0.3s ease;
}
body.light-mode .menu-link::after { background: #fff; }
.menu-link:hover::after { width: 100%; }
.menu-footer {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  line-height: 1.8; color: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 14px; margin-top: 4px;
}
body.light-mode .menu-footer { color: rgba(255,255,255,0.3); border-top-color: rgba(255,255,255,0.1); }

/* ════════════════════════════════════════════
   HOME
════════════════════════════════════════════ */
.s-home {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 13vh;
  padding-bottom: 60px;
}

.home-title {
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 200; letter-spacing: 5px;
  color: rgba(255,255,255,0.92);
  text-align: center;
  margin-top: 8vh;
  margin-bottom: 2vh;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
body.light-mode .home-title { color: rgba(0,0,0,0.9); }

.home-center {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; justify-content: center; width: 100%;
  margin-top: -6vh;
}

/* Avatar */
.avatar-wrap {
  position: relative; z-index: 3;
  width: 400px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.35s both;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
/* particle nebula — outer sparse cloud */
.avatar-wrap::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 1040px; height: 960px;
  background:
    radial-gradient(circle at 52% 48%, rgba(255,255,255,0.18) 0%, transparent 28%),
    radial-gradient(circle at 28% 35%, rgba(255,255,255,0.07) 0%, transparent 18%),
    radial-gradient(circle at 74% 30%, rgba(255,255,255,0.06) 0%, transparent 15%),
    radial-gradient(circle at 20% 62%, rgba(255,255,255,0.05) 0%, transparent 14%),
    radial-gradient(circle at 78% 68%, rgba(255,255,255,0.06) 0%, transparent 16%),
    radial-gradient(circle at 40% 22%, rgba(255,255,255,0.04) 0%, transparent 12%),
    radial-gradient(circle at 65% 78%, rgba(255,255,255,0.04) 0%, transparent 13%),
    radial-gradient(circle at 14% 48%, rgba(255,255,255,0.03) 0%, transparent 10%),
    radial-gradient(circle at 86% 50%, rgba(255,255,255,0.03) 0%, transparent 11%);
  filter: blur(14px);
  pointer-events: none;
  animation: nebulaDrift 8s ease-in-out infinite alternate;
}
/* inner dense core */
.avatar-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 720px; height: 680px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.32) 0%, transparent 22%),
    radial-gradient(circle at 38% 42%, rgba(255,255,255,0.14) 0%, transparent 30%),
    radial-gradient(circle at 63% 55%, rgba(255,255,255,0.10) 0%, transparent 25%),
    radial-gradient(circle at 55% 28%, rgba(255,255,255,0.08) 0%, transparent 18%),
    radial-gradient(circle at 35% 65%, rgba(255,255,255,0.07) 0%, transparent 16%),
    radial-gradient(circle at 70% 38%, rgba(255,255,255,0.06) 0%, transparent 14%),
    radial-gradient(circle at 28% 30%, rgba(255,255,255,0.05) 0%, transparent 12%);
  filter: blur(22px);
  animation: nebulaPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nebulaPulse {
  0%,100% { opacity: 0.75; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%,-50%) scale(1.10) rotate(3deg); }
}
@keyframes nebulaDrift {
  0%   { opacity: 0.6; transform: translate(-50%,-50%) scale(1)    rotate(0deg); }
  100% { opacity: 0.9; transform: translate(-50%,-50%) scale(1.08) rotate(-5deg); }
}
.avatar-img {
  width: 360px; position: absolute; z-index: 2;
  transition: opacity 0.6s ease;
}
.avatar-img-dark  { opacity: 1; }
.avatar-img-light { opacity: 0; }
body.light-mode .avatar-img-dark  { opacity: 0; }
body.light-mode .avatar-img-light { opacity: 1; }
body.light-mode .avatar-wrap::before {
  background:
    radial-gradient(circle at 52% 48%, rgba(26,21,14,0.18) 0%, transparent 28%),
    radial-gradient(circle at 28% 35%, rgba(26,21,14,0.07) 0%, transparent 18%),
    radial-gradient(circle at 74% 30%, rgba(26,21,14,0.06) 0%, transparent 15%),
    radial-gradient(circle at 20% 62%, rgba(26,21,14,0.05) 0%, transparent 14%),
    radial-gradient(circle at 78% 68%, rgba(26,21,14,0.06) 0%, transparent 16%),
    radial-gradient(circle at 40% 22%, rgba(26,21,14,0.04) 0%, transparent 12%),
    radial-gradient(circle at 65% 78%, rgba(26,21,14,0.04) 0%, transparent 13%),
    radial-gradient(circle at 14% 48%, rgba(26,21,14,0.03) 0%, transparent 10%),
    radial-gradient(circle at 86% 50%, rgba(26,21,14,0.03) 0%, transparent 11%);
}
body.light-mode .avatar-glow {
  background:
    radial-gradient(circle at 50% 50%, rgba(26,21,14,0.32) 0%, transparent 22%),
    radial-gradient(circle at 38% 42%, rgba(26,21,14,0.14) 0%, transparent 30%),
    radial-gradient(circle at 63% 55%, rgba(26,21,14,0.10) 0%, transparent 25%),
    radial-gradient(circle at 55% 28%, rgba(26,21,14,0.08) 0%, transparent 18%),
    radial-gradient(circle at 35% 65%, rgba(26,21,14,0.07) 0%, transparent 16%),
    radial-gradient(circle at 70% 38%, rgba(26,21,14,0.06) 0%, transparent 14%),
    radial-gradient(circle at 28% 30%, rgba(26,21,14,0.05) 0%, transparent 12%);
}

/* Particle dots — JS-generated box-shadow, orbiting the avatar */
.avatar-particles {
  position: absolute; left: 50%; top: 50%;
  width: 1px; height: 1px; border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; pointer-events: none;
  animation: particleOrbit 50s linear infinite;
  box-shadow: /* set by JS */
    72px  -48px 0 0 rgba(255,255,255,0.88),
    -60px  -72px 1px 1px rgba(255,255,255,0.78),
     90px   40px 2px 0px rgba(255,255,255,0.72),
    -84px   28px 1px 1px rgba(255,255,255,0.68),
     50px  -94px 1px 0px rgba(255,255,255,0.82),
    -100px  -18px 2px 0px rgba(255,255,255,0.62),
     30px  106px 1px 1px rgba(255,255,255,0.58),
    -46px   98px 2px 0px rgba(255,255,255,0.62),
     98px  -16px 1px 0px rgba(255,255,255,0.54),
    -66px   88px 1px 1px rgba(255,255,255,0.58),
     42px   68px 1px 0px rgba(255,255,255,0.50),
    -110px   55px 1px 1px rgba(255,255,255,0.44),
    /* mid ring */
    140px  -62px 2px 1px rgba(255,255,255,0.52),
   -134px  -98px 2px 0px rgba(255,255,255,0.44),
    160px   80px 2px 1px rgba(255,255,255,0.38),
   -150px   74px 2px 0px rgba(255,255,255,0.36),
    114px -160px 2px 0px rgba(255,255,255,0.46),
   -170px  -50px 2px 1px rgba(255,255,255,0.34),
     80px  172px 2px 0px rgba(255,255,255,0.40),
    -90px  164px 2px 0px rgba(255,255,255,0.30),
    180px   34px 2px 1px rgba(255,255,255,0.34),
   -180px   14px 2px 0px rgba(255,255,255,0.30),
     20px -182px 2px 0px rgba(255,255,255,0.40),
    -14px  178px 2px 1px rgba(255,255,255,0.26),
    128px  130px 2px 0px rgba(255,255,255,0.32),
   -120px -150px 2px 1px rgba(255,255,255,0.30),
    168px -120px 2px 0px rgba(255,255,255,0.28),
    -60px  175px 1px 1px rgba(255,255,255,0.36),
    /* outer ring */
    220px  -98px 3px 1px rgba(255,255,255,0.24),
   -200px -130px 3px 0px rgba(255,255,255,0.22),
    240px   64px 3px 1px rgba(255,255,255,0.20),
   -230px   82px 3px 0px rgba(255,255,255,0.20),
    152px -222px 3px 1px rgba(255,255,255,0.22),
   -162px -212px 3px 0px rgba(255,255,255,0.18),
    100px  252px 3px 0px rgba(255,255,255,0.20),
   -122px  242px 3px 1px rgba(255,255,255,0.16),
    262px  152px 3px 0px rgba(255,255,255,0.14),
   -252px  142px 3px 1px rgba(255,255,255,0.14),
    272px  -50px 3px 0px rgba(255,255,255,0.16),
   -270px   22px 3px 0px rgba(255,255,255,0.14),
     50px -272px 3px 1px rgba(255,255,255,0.18),
    -70px  266px 3px 0px rgba(255,255,255,0.14),
    200px  180px 3px 0px rgba(255,255,255,0.12),
   -190px -175px 3px 1px rgba(255,255,255,0.12);
}
body.light-mode .avatar-particles {
  box-shadow:
     72px  -48px 1px 1px rgba(26,21,14,0.75),
    -60px  -72px 1px 1px rgba(26,21,14,0.65),
     90px   40px 2px 0px rgba(26,21,14,0.60),
    -84px   28px 1px 1px rgba(26,21,14,0.55),
     50px  -94px 1px 0px rgba(26,21,14,0.70),
    -100px  -18px 2px 0px rgba(26,21,14,0.52),
     30px  106px 1px 1px rgba(26,21,14,0.48),
    -46px   98px 2px 0px rgba(26,21,14,0.52),
     98px  -16px 1px 0px rgba(26,21,14,0.44),
    -66px   88px 1px 1px rgba(26,21,14,0.48),
     42px   68px 1px 0px rgba(26,21,14,0.40),
    -110px   55px 1px 1px rgba(26,21,14,0.36),
    140px  -62px 2px 1px rgba(26,21,14,0.42),
   -134px  -98px 2px 0px rgba(26,21,14,0.36),
    160px   80px 2px 1px rgba(26,21,14,0.30),
   -150px   74px 2px 0px rgba(26,21,14,0.28),
    114px -160px 2px 0px rgba(26,21,14,0.36),
   -170px  -50px 2px 1px rgba(26,21,14,0.26),
     80px  172px 2px 0px rgba(26,21,14,0.30),
    -90px  164px 2px 0px rgba(26,21,14,0.22),
    180px   34px 2px 1px rgba(26,21,14,0.26),
   -180px   14px 2px 0px rgba(26,21,14,0.22),
     20px -182px 2px 0px rgba(26,21,14,0.30),
    -14px  178px 2px 1px rgba(26,21,14,0.18),
    128px  130px 2px 0px rgba(26,21,14,0.24),
   -120px -150px 2px 1px rgba(26,21,14,0.22),
    168px -120px 2px 0deg rgba(26,21,14,0.20),
    -60px  175px 1px 1px rgba(26,21,14,0.28),
    220px  -98px 3px 1px rgba(26,21,14,0.16),
   -200px -130px 3px 0px rgba(26,21,14,0.14),
    240px   64px 3px 1px rgba(26,21,14,0.12),
   -230px   82px 3px 0px rgba(26,21,14,0.12),
    152px -222px 3px 1px rgba(26,21,14,0.14),
   -162px -212px 3px 0px rgba(26,21,14,0.10),
    100px  252px 3px 0px rgba(26,21,14,0.12),
   -122px  242px 3px 1px rgba(26,21,14,0.10),
    262px  152px 3px 0px rgba(26,21,14,0.08),
   -252px  142px 3px 1px rgba(26,21,14,0.08),
    272px  -50px 3px 0px rgba(26,21,14,0.10),
   -270px   22px 3px 0px rgba(26,21,14,0.08),
     50px -272px 3px 1px rgba(26,21,14,0.12),
    -70px  266px 3px 0px rgba(26,21,14,0.08),
    200px  180px 3px 0px rgba(26,21,14,0.07),
   -190px -175px 3px 1px rgba(26,21,14,0.07);
}
@keyframes particleOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* White nav bar — wide wings extending from avatar center */
.home-nav-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92);
  padding: 22px 6.5vw;
  width: min(88vw, 1200px);
  margin-top: -200px;
  border-radius: 40px;
  animation: fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.6s both;
}
body.light-mode .home-nav-bar { background: rgba(0,0,0,0.9); }
.hnb-link {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: #111;
  transition: opacity 0.3s;
  white-space: nowrap;
}
body.light-mode .hnb-link { color: #eee; }
.hnb-link {
  position: relative;
  transition: opacity 0.3s, letter-spacing 0.3s;
}
.hnb-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: #111;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
body.light-mode .hnb-link::after { background: #eee; }
.hnb-link:hover { opacity: 1; letter-spacing: 5px; }
.hnb-link:hover::after { transform: scaleX(1); }
.hnb-div { width: 1px; height: 14px; background: rgba(0,0,0,0.18); flex-shrink: 0; }
body.light-mode .hnb-div { background: rgba(255,255,255,0.2); }

/* Scroll cue */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.28); font-size: 8px; letter-spacing: 4px; text-transform: uppercase;
  margin-top: 48px;
  animation: fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}
body.light-mode .scroll-cue { color: rgba(26,21,14,0.3); }
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
body.light-mode .scroll-line { background: linear-gradient(to bottom, rgba(26,21,14,0.4), transparent); }
@keyframes scrollPulse { 0%,100%{opacity:0.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
/* !important overrides animation fill-mode in CSS cascade */
.avatar-wrap.morph-hide { opacity: 0 !important; }

/* ════════════════════════════════════════════
   CURTAIN (Home → About transition)
════════════════════════════════════════════ */
.curtain { display: none; }
.curtain-handle {
  width: 24px; height: 13px;
  border: 1.2px solid rgba(255,255,255,0.35);
  border-top: none; border-radius: 0 0 24px 24px;
}
body.light-mode .curtain-handle { border-color: rgba(26,21,14,0.3); }
.curtain.raised { transform: translateY(-100px); opacity: 0; }

/* ════════════════════════════════════════════
   SECTIONS — shared
════════════════════════════════════════════ */
.s-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 72px;
}
.s-title {
  font-size: clamp(30px, 4.2vw, 56px); font-weight: 200;
  letter-spacing: 10px; text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}
body.light-mode .s-title { color: rgba(26,21,14,0.9); }
.s-sub {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 44px; display: block;
}
body.light-mode .s-sub { color: rgba(26,21,14,0.35); }

/* ── TEXT REVEAL ANIMATION (white block sweep) ── */
.reveal {
  position: relative;
  overflow: hidden;
}
.reveal::before {
  content: '';
  position: absolute; top: -2px; left: -101%; bottom: -2px; right: -2px;
  background: #fff;
  pointer-events: none;
  z-index: 2;
}
body.light-mode .reveal::before { background: #000; }
/* Initially hide text */
.reveal { color: transparent; }
body.light-mode .reveal { color: transparent; }

/* Block sweeps in from left, pauses, exits right */
.reveal.in-view::before {
  animation: sweepReveal 0.9s cubic-bezier(0.77,0,0.175,1) var(--delay, 0s) both;
}

/* Text color fires right as block starts exiting (~52% into the 0.9s animation).
   The color starts transparent (from .reveal above) and the transition-delay holds
   it invisible until the block has passed, then it jumps to the target color. */
.reveal.in-view {
  transition: color 0.01s step-start calc(var(--delay, 0s) + 0.47s);
  color: rgba(255,255,255,0.9);
}
body.light-mode .reveal.in-view { color: rgba(26,21,14,0.9); }
.s-title.in-view           { color: rgba(255,255,255,0.9); }
body.light-mode .s-title.in-view { color: rgba(26,21,14,0.9); }
.about-p.in-view           { color: rgba(255,255,255,0.85); }
body.light-mode .about-p.in-view { color: rgba(26,21,14,0.85); }
.s-sub.in-view             { color: rgba(255,255,255,0.35); }
body.light-mode .s-sub.in-view { color: rgba(26,21,14,0.35); }
.more-link.in-view         { color: rgba(255,255,255,0.6); }
body.light-mode .more-link.in-view { color: rgba(26,21,14,0.6); }
.contact-title.in-view     { color: rgba(255,255,255,0.9); }
body.light-mode .contact-title.in-view { color: rgba(26,21,14,0.9); }
.contact-sub.in-view       { color: rgba(255,255,255,0.55); font-style: italic; }
body.light-mode .contact-sub.in-view { color: rgba(26,21,14,0.55); }

@keyframes sweepReveal {
  0%   { left: -101%; right:  100%; }
  48%  { left:    0%;  right:    0%; }
  52%  { left:    0%;  right:    0%; }
  100% { left:  100%;  right: -101%; }
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.s-about {
  position: relative; z-index: 10;
  padding: 110px 0 130px;
}
.about-layout {
  display: flex; gap: 6vw; align-items: flex-start;
}
.about-left { flex: 0 0 300px; }
.about-right { flex: 1; padding-top: 82px; }

/* Photo frame — real photo style */
.photo-wrap { margin-top: 28px; }
.photo-frame {
  display: inline-block;
  box-sizing: border-box;
  border: solid #fff;
  border-width: 20px 20px 66px 20px;
  background: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.15s ease;
  max-width: 240px;
  position: relative;
}
body.light-mode .photo-frame { border-color: #111; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
.photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.photo-img {
  display: block; width: 100%; height: 230px;
  object-fit: cover; object-position: center top;
  filter: grayscale(0.2) contrast(1.05);
}
/* same image as home */
.photo-img-light { display: none; }
.photo-img-dark  { display: block; }
body.light-mode .photo-img-dark  { display: none; }
body.light-mode .photo-img-light { display: block; }

/* ── Morph overlay (avatar → about photo) ── */
#morphAvatar {
  position: fixed; z-index: 200;
  pointer-events: none; opacity: 0;
  overflow: hidden;
  transition: opacity 0.14s ease;
}
.morph-imgs {
  position: relative; width: 100%; height: 100%;
}
/* both images stacked — JS controls opacity for cross-dissolve */
.morph-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top;
}

.about-p {
  font-size: clamp(13px, 1.2vw, 15px); line-height: 2.2;
  letter-spacing: 0.5px; font-weight: 400;
  margin-bottom: 32px;
}
.about-p strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
body.light-mode .about-p strong { color: rgba(26,21,14,1); }

/* ════════════════════════════════════════════
   WORK — SELECTED
════════════════════════════════════════════ */
.s-work {
  position: relative; z-index: 10;
  padding: 110px 0 130px;
}
.sel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 52px;
  margin-bottom: 56px;
}
.sel-card {
  cursor: pointer; display: flex; flex-direction: column; gap: 14px;
}
.sel-thumb {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: rgba(255,255,255,0.04);
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
body.light-mode .sel-thumb { background: rgba(26,21,14,0.06); border-color: rgba(26,21,14,0.12); box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.sel-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.sel-thumb img.loaded { opacity: 1; }
.sel-card { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.sel-card:hover { transform: translateY(-6px); }
.sel-card:hover .sel-thumb { box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.sel-card:hover .sel-thumb img { transform: scale(1.03); }
.sel-type {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
body.light-mode .sel-type { color: rgba(26,21,14,0.38); }
.sel-name {
  font-size: clamp(11px, 1.1vw, 14px); font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
body.light-mode .sel-name { color: rgba(26,21,14,0.88); }

.more-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(11px, 1.1vw, 15px); letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: gap 0.35s ease, color 0.3s ease;
}
body.light-mode .more-link { color: rgba(26,21,14,0.5); }
.more-link:hover { gap: 22px; color: rgba(255,255,255,0.9); }
body.light-mode .more-link:hover { color: rgba(26,21,14,0.9); }
.more-link svg { width: 18px; height: 12px; }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.s-contact {
  position: relative; z-index: 10;
  padding: 160px 0 0;
  background: rgba(255,255,255,0.055);
  margin-top: 100px;
}
body.light-mode .s-contact { background: rgba(26,21,14,0.06); }
.contact-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 32px; padding-bottom: 80px;
}
.contact-title {
  font-size: clamp(28px, 3.8vw, 52px); font-weight: 200;
  letter-spacing: 8px; text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-sub {
  font-size: 13px; letter-spacing: 2px;
  font-style: italic; display: block;
  margin-top: 4px;
}
.contact-icons {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  align-self: center;
}
.ci {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
}
body.light-mode .ci { border-color: rgba(26,21,14,0.15); color: rgba(26,21,14,0.5); }
.ci svg { width: 22px; height: 22px; }
.ci:hover { opacity: 1; border-color: rgba(255,255,255,0.6); color: rgba(255,255,255,0.9); transform: translateY(-3px); }
body.light-mode .ci:hover { border-color: rgba(26,21,14,0.5); color: rgba(26,21,14,0.9); }

/* Phone picker dropdown */
.phone-picker { position: relative; cursor: pointer; }
.phone-dropdown {
  position: absolute;
  bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) scale(0.88) translateY(6px);
  transform-origin: bottom center;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 5px 0;
  white-space: nowrap;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
  z-index: 900;
}
body.light-mode .phone-dropdown { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.phone-picker.open .phone-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) scale(1) translateY(0); }
.phone-opt {
  display: block;
  padding: 9px 20px;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.phone-opt:hover { color: #fff; background: rgba(255,255,255,0.06); }
body.light-mode .phone-opt { color: rgba(0,0,0,0.7); }
body.light-mode .phone-opt:hover { color: #000; background: rgba(0,0,0,0.04); }

.back-top {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); align-self: center;
  transition: color 0.3s, transform 0.3s;
}
body.light-mode .back-top { color: rgba(26,21,14,0.35); }
.back-top svg { width: 16px; height: 10px; }
.back-top:hover { color: rgba(255,255,255,0.8); transform: translateY(-4px); }
body.light-mode .back-top:hover { color: rgba(26,21,14,0.8); }

.contact-hr {
  border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 36px;
}
body.light-mode .contact-hr { border-top-color: rgba(26,21,14,0.1); }

.site-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px; padding-bottom: 110px; padding-top: 48px;
}
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); transition: color 0.3s;
}
body.light-mode .footer-nav a { color: rgba(26,21,14,0.35); }
.footer-nav a:hover { color: rgba(255,255,255,0.75); }
body.light-mode .footer-nav a:hover { color: rgba(26,21,14,0.75); }
.copyright { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-top: 12px; }
body.light-mode .copyright { color: rgba(26,21,14,0.2); }
.feye { width: 64px; display: block; opacity: 0.28; }
.feye-light { display: none; }
body.light-mode .feye-dark  { display: none; }
body.light-mode .feye-light { display: block; }

/* ════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content {
  position: relative; width: 85vw; height: 48vw; max-height: 80vh;
  display: flex; justify-content: center;
  cursor: default;
}
.lightbox-close {
  position: absolute; top: -36px; right: 0;
  color: #fff; font-size: 10px; letter-spacing: 5px;
  cursor: pointer; opacity: 0.5; transition: opacity 0.3s;
  background: none; border: none;
}
.lightbox-close:hover { opacity: 1; }
#lbMedia { width: 100%; height: 100%; }
#lbMedia iframe, #lbMedia img { width: 100%; height: 100%; border: none; object-fit: contain; }

/* ════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Layout ── */
  .s-inner { padding: 0 20px; }

  /* ── Topbar ── */
  .topbar { height: 62px; }
  .topbar-lamp-space { width: 72px; }
  .topbar-home { font-size: 11px; letter-spacing: 5px; }
  .topbar-right { padding-right: 18px; gap: 14px; }
  .lang-picker { font-size: 11px; }
  .lang-btn { font-size: 11px; }
  .burger-icon { width: 22px; height: 11px; }
  .burger-icon.active span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger-icon.active span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

  /* ── Lamp ── */
  .lamp-toggle { width: 170px; height: 42vh; top: 21px; left: 14px; transform: scale(0.18); transform-origin: top left; }

  /* ── Menu ── */
  .menu-overlay { width: 172px; right: 10px; top: 74px; padding: 20px 22px 16px; }
  .menu-link { font-size: 12px; letter-spacing: 3px; }
  .menu-links { gap: 14px; }

  /* ── Home ── */
  .s-home { padding-top: 14vh; }
  .home-title { font-size: clamp(28px, 8vw, 52px); letter-spacing: 2px; }
  .home-center { flex-direction: column-reverse; gap: 20px; }
  .avatar-wrap { width: 280px; height: 255px; }
  .avatar-img { width: 260px; }
  .avatar-glow { width: 320px; height: 300px; }
  .avatar-wrap::before { width: 480px; height: 440px; }
  .home-nav-bar {
    width: min(92vw, 500px);
    padding: 13px 18px;
    margin-top: 0;
    justify-content: space-between;
  }
  .hnb-link { font-size: 10px; letter-spacing: 3px; }
  .scroll-cue { margin-top: 24px; }

  /* ── About ── */
  .s-about { padding: 60px 0 70px; }
  .about-layout { flex-direction: row; gap: 5vw; align-items: flex-start; }
  .about-left { flex: 0 0 auto; width: auto; }
  .about-left .s-title { font-size: 20px; letter-spacing: 7px; margin-bottom: 14px; }
  .about-right { flex: 1; padding-top: 6px; }
  .photo-wrap { margin-top: 12px; }
  .photo-frame { max-width: 130px; border-width: 14px 14px 46px 14px; }
  .photo-img { height: 125px; }
  .about-p { font-size: 12px; line-height: 2; letter-spacing: 0.3px; margin-bottom: 18px; }

  /* ── Work (selected) ── */
  .s-work { padding: 60px 0 70px; }
  .sel-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }

  /* ── Works page (coverflow) ── */
  .works-page { padding-top: 72px; }
  .works-page-title { padding: 0 20px; font-size: clamp(24px, 6vw, 40px); }
  .filter-bar { padding: 0 20px; }
  .works-track { height: clamp(240px, 62vw, 360px); }
  .wk-card { width: 72vw; min-width: 220px; }
  .progress-row { padding: 16px 20px; }
  .wk-arrow { width: 34px; height: 34px; }

  /* ── Contact ── */
  .s-contact { padding: 80px 0 0; margin-top: 40px; }
  .contact-top { flex-direction: column; gap: 20px; padding-bottom: 36px; }
  .contact-title { font-size: clamp(26px, 7vw, 42px); }
  .contact-icons { gap: 8px; }
  .back-top { flex-direction: row; align-self: flex-start; }

  /* ── Footer ── */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 60px; }
  .footer-eye { align-self: flex-end; }

  /* ── Lightbox ── */
  .lightbox-content { width: 92vw; height: 70vw; max-height: none; }

  /* ── Hide custom cursor on touch ── */
  .cursor-dot, .cursor-ring { display: none; }
  *, *::before, *::after { cursor: auto !important; }
  input, textarea, select { cursor: auto !important; }
}

/* ════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════ */
/* ── Hatched dot: diagonal-stripe circle ── */
.cursor-dot {
  position: fixed;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    45deg,
    #fff 0px,   #fff 1.5px,
    transparent 1.5px, transparent 4px
  );
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width  0.3s cubic-bezier(0.16,1,0.3,1),
              height 0.3s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s ease;
}
.cursor-dot.hovering {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor-dot.hidden { opacity: 0; }

/* ── Outer ring: lags behind the dot ── */
.cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width  0.55s cubic-bezier(0.16,1,0.3,1),
              height 0.55s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s ease;
}
.cursor-ring.hovering {
  width: 54px; height: 54px;
}
.cursor-ring.hidden { opacity: 0; }

/* hide system cursor everywhere */
*, *::before, *::after { cursor: none !important; }
input, textarea, select { cursor: none !important; }
