/* Home: final layout layer. Keeps the existing content, removes conflicting experiments. */
/* Portfolio CTA는 테마와 관계없이 흰색 글자를 유지합니다. */
body .about-detail-trigger,
body .about-detail-trigger span,
body.is-light-theme .about-detail-trigger,
body.is-light-theme .about-detail-trigger span {
  color: #fff !important;
}

/* Mobile layout safety: keep media and content inside the viewport. */
html,
body {
  min-width: 0;
  overflow-x: hidden;
}

img,
video,
svg,
canvas {
  max-width: 100%;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #000;
}

.portfolio-main-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sub-projects-grid,
.sub-card,
.about-feature-copy,
.project-gallery-card,
.project-section-label {
  min-width: 0;
}

.sub-card-title,
.sub-card-desc,
.project-gallery-card p,
.project-gallery-card h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .portfolio-main-img {
    height: 100%;
    aspect-ratio: auto;
  }

  #Download,
  #SubProjects {
    padding: 76px 16px 88px !important;
  }

  #Download .sub-projects-grid,
  #SubProjects .sub-projects-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-top: 32px !important;
  }

  #Download .sub-card,
  #SubProjects .sub-card {
    width: 100%;
    padding: 22px 18px !important;
  }

  #Download .sub-card img,
  #SubProjects .sub-card img {
    max-height: 220px;
  }

  #projectModal {
    width: calc(100% - 16px) !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    overflow: hidden !important;
  }

  #projectModal .modal-inner {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
  }

  #projectModal .modal-header {
    width: 100% !important;
    padding: 62px 24px 18px !important;
  }

  #projectModal .modal-title {
    font-size: clamp(38px, 13vw, 58px) !important;
    overflow-wrap: anywhere;
  }

  #projectModal .modal-content-grid {
    display: block !important;
    padding: 0 24px 44px !important;
    overflow: visible !important;
  }

  #projectModal .modal-visual {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin-bottom: 28px !important;
    border-radius: 18px !important;
  }

  #projectModal .modal-visual img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #projectModal .modal-body {
    padding: 0 !important;
    overflow: visible !important;
  }

  #projectModal .modal-quick-summary dl {
    grid-template-columns: 1fr !important;
    margin-top: 36px !important;
  }

  #projectModal .modal-close {
    top: 14px !important;
    right: 14px !important;
  }
}
/* 상세 보기 버튼은 hover 상태에서도 흰색 텍스트를 유지합니다. */
#projectModal .modal-detail-link,
#projectModal .modal-detail-link:hover,
#projectModal .modal-detail-link span { color: #fff !important; }
:root{--void:#07080c;--ink:#f8f9fd;--line:rgba(255,255,255,.22);--glass:rgba(18,22,34,.30);--accent:#c8ff75}html,body{background:var(--void)!important;color:var(--ink)!important}.firsttext,.hero-bottom{display:none!important}
@media(pointer:fine){body,body *{cursor:none!important}}.glass-cursor{z-index:99999!important;width:18px!important;height:18px!important;margin:-9px 0 0 -9px!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:50%!important;background:linear-gradient(135deg,rgba(255,255,255,.52),rgba(163,202,255,.12) 42%,rgba(6,9,17,.18))!important;box-shadow:inset 1px 1px 2px rgba(255,255,255,.7),inset -2px -2px 4px rgba(0,0,0,.25),0 3px 11px rgba(0,0,0,.32)!important;backdrop-filter:blur(4px) saturate(1.8)!important}.glass-cursor.is-hovering{width:25px!important;height:25px!important;margin:-12.5px 0 0 -12.5px!important;background:rgba(205,230,255,.18)!important}
/* Stable, centered header. */
.project-section-description{width:min(1480px,calc(100% - 24px))!important;margin:0 auto 18px!important;color:rgba(255,255,255,.62)!important;font-size:15px!important;line-height:1.5!important;letter-spacing:-.035em!important}
.topbar{position:fixed!important;z-index:1000!important;top:14px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(1240px,calc(100% - 32px))!important;height:58px!important;min-height:0!important;overflow:visible!important;border:1px solid var(--line)!important;border-radius:999px!important;background:rgba(14,17,27,.22)!important;box-shadow:inset 0 1px rgba(255,255,255,.32),0 18px 42px rgba(0,0,0,.24)!important;backdrop-filter:blur(20px) saturate(1.6)!important}.topbar.is-scrolled{height:54px!important;background:linear-gradient(100deg,rgba(17,21,33,.52),rgba(129,176,221,.25) 54%,rgba(181,226,126,.19))!important}.topbar-inner{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;width:100%!important;height:100%!important;padding:0 18px!important}.topbar-nav{display:flex!important;align-items:center!important;gap:22px!important}.topbar-nav--right{justify-content:flex-end!important}.topbar-brand{position:static!important;display:block!important;color:#fff!important;font-size:13px!important;font-weight:850!important;letter-spacing:-.08em!important;transform:none!important}.topbar a{color:rgba(255,255,255,.86)!important;font-size:13px!important}.topbar-theme-toggle{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important}
.page-shared-header .topbar-brand,.page-shared-header .brand,.page-shared-header> a:not(.topbar-brand){font-size:16px!important;font-weight:900!important;letter-spacing:-.09em!important}
.page-shared-header nav a.is-current{padding:8px 12px!important;margin:-8px -12px!important;border-radius:999px!important}
body.is-light-theme .page-shared-header nav a.is-current{background:rgba(17,21,34,.12)!important;box-shadow:inset 0 1px rgba(255,255,255,.72),0 4px 14px rgba(17,21,34,.08)!important;color:#111522!important}
#MainProjects .project-stage,#MainProjects .project-tabs{display:none!important}
.topbar .topbar-brand{font-size:16px!important;font-weight:900!important;letter-spacing:-.09em!important}
.topbar nav a.is-current{padding:8px 12px!important;margin:-8px -12px!important;border-radius:999px!important}
body.is-light-theme .topbar nav a.is-current{background:rgba(17,21,34,.12)!important;box-shadow:inset 0 1px rgba(255,255,255,.72),0 4px 14px rgba(17,21,34,.08)!important;color:#111522!important}
/* Compact About teaser on the home page. */
#contents,#Introduce,#Design,#about .about-heading,#about .profile-grid{display:none!important}#about.about-section{min-height:0!important;padding:130px max(26px,calc((100vw - 1180px)/2)) 112px!important;background:radial-gradient(circle at 80% 20%,rgba(137,112,255,.22),transparent 32%),#090a10!important}.about-feature{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:clamp(42px,7vw,110px)!important;max-width:1180px!important;margin:0 auto!important;align-items:center!important}.about-feature-photo{width:300px!important;height:400px!important;min-height:0!important;margin:0!important;overflow:hidden!important;border-radius:26px!important;background:#e9ebf1!important}.about-feature-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important}.about-feature-copy{max-width:760px!important}.about-feature-index,.project-section-label{color:var(--accent)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.12em!important}.about-feature-copy h2{margin:13px 0 22px!important;color:#fff!important;font-size:clamp(42px,5.3vw,74px)!important;line-height:1.01!important;letter-spacing:-.08em!important}.about-feature-copy>p:not(.about-feature-index){color:rgba(255,255,255,.67)!important;font-size:17px!important;line-height:1.8!important}.btn{position:relative!important;overflow:hidden!important;isolation:isolate!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:0 17px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.45),0 10px 22px rgba(0,0,0,.18)!important;backdrop-filter:blur(12px)!important}.btn:after{content:"";position:absolute;z-index:-1;inset:-80%;border-radius:50%;background:radial-gradient(circle,rgba(205,255,129,.72),rgba(161,201,255,.26) 34%,transparent 66%);transform:scale(.08);transition:transform .5s cubic-bezier(.2,.85,.2,1)}.btn:hover:after,.btn.is-sucked:after{transform:scale(1)!important}.btn.is-sucked{animation:glass-suck .46s cubic-bezier(.2,.9,.18,1)}@keyframes glass-suck{40%{transform:scale(.9)}75%{transform:scale(1.04)}}
/* Dense project wall, with a glass adhesion response on hover. */
#MainProjects.section-light{padding:96px 10px 14px!important;background:radial-gradient(circle at 18% 8%,rgba(111,95,255,.21),transparent 30%),#07080c!important;color:#fff!important}.project-section-label{width:min(1480px,calc(100% - 24px))!important;margin:0 auto 16px!important}.project-gallery{display:grid!important;grid-template-columns:1.18fr .82fr!important;grid-template-rows:minmax(310px,34vw) minmax(250px,27vw)!important;gap:16px!important;width:min(1480px,calc(100% - 12px))!important;max-width:none!important;margin:0 auto!important}.project-gallery-card{position:relative!important;overflow:hidden!important;min-height:0!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:26px!important;background:#111!important;box-shadow:none!important;transform:translate(var(--magnetic-x,0),var(--magnetic-y,0))!important;transition:transform .34s ease,border-radius .42s ease,box-shadow .42s ease!important}.project-gallery-card:nth-child(1){grid-column:1;grid-row:1}.project-gallery-card:nth-child(2){grid-column:2;grid-row:1}.project-gallery-card:nth-child(3){grid-column:1;grid-row:2}.project-gallery-card:nth-child(4){grid-column:2;grid-row:2}.project-gallery-card:hover{border-radius:46px 18px 42px 22px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 22px 58px rgba(66,110,255,.19)!important}.project-gallery-card>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .65s cubic-bezier(.18,.9,.2,1),filter .4s!important}.project-gallery-card:hover>img{transform:scale(1.07)!important;filter:saturate(1.12)!important}.project-gallery-card:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,transparent 34%,rgba(3,5,12,.86))!important}.project-gallery-card .project-card-content{position:absolute!important;z-index:2!important;left:26px!important;right:26px!important;bottom:22px!important;color:#fff!important}.project-gallery-card h3{margin:7px 0 0!important;color:#fff!important;font-size:clamp(27px,3.2vw,47px)!important;letter-spacing:-.08em!important}.project-gallery-card p,.project-gallery-card .project-card-meta{color:rgba(255,255,255,.72)!important}.project-gallery-card .project-card-arrow{position:absolute!important;z-index:3!important;right:20px!important;top:20px!important;width:45px!important;height:45px!important;border:1px solid rgba(255,255,255,.52)!important;border-radius:50%!important;background:rgba(225,239,255,.12)!important;backdrop-filter:blur(12px)!important}.project-tabs,.project-tab-panels{display:none!important}
/* Project detail is a centered sheet; the background page remains visible. */
#projectModal{width:min(1480px,calc(100% - 40px))!important;height:min(862px,calc(100dvh - 48px))!important;max-width:none!important;max-height:none!important;margin:auto!important;padding:0!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:30px!important;background:#090a0e!important;color:#fff!important;box-shadow:0 38px 120px rgba(0,0,0,.62)!important}.project-modal::backdrop{background:rgba(3,5,12,.52)!important;backdrop-filter:blur(10px)!important}#projectModal .modal-inner{display:block!important;height:100%!important;min-height:0!important;padding:0!important;background:#090a0e!important;overflow:auto!important}#projectModal .project-detail-hero{display:none!important}#projectModal .modal-header{position:absolute!important;z-index:3!important;top:0!important;right:0!important;width:42%!important;margin:0!important;padding:58px 48px 26px!important;border:0!important;background:#090a0e!important}#projectModal .modal-kicker,#projectModal .modal-period{color:rgba(255,255,255,.58)!important}#projectModal .modal-title{color:#fff!important;font-size:clamp(38px,4vw,66px)!important;line-height:1!important;letter-spacing:-.08em!important}#projectModal .modal-detail-link{margin-top:18px!important}#projectModal .modal-content-grid{display:grid!important;grid-template-columns:58% 42%!important;min-height:100%!important;padding:0!important;gap:0!important}#projectModal .modal-visual{position:sticky!important;top:0!important;grid-column:1!important;grid-row:1!important;height:100%!important;border:0!important;border-radius:0!important;background:#15171d!important;box-shadow:none!important}#projectModal .modal-visual img{width:100%!important;height:100%!important;object-fit:cover!important}#projectModal .modal-tabs{position:relative!important;z-index:4!important;grid-column:2!important;grid-row:1!important;align-self:start!important;margin-top:235px!important;padding:0 48px 18px!important;background:transparent!important}#projectModal .modal-body{grid-column:2!important;grid-row:1!important;margin:0!important;padding:324px 48px 64px!important;color:rgba(255,255,255,.82)!important}#projectModal .project-screenshots{display:none!important}#projectModal .modal-close{position:absolute!important;z-index:10!important;right:24px!important;top:24px!important;left:auto!important;width:42px!important;height:42px!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:50%!important;color:#fff!important;background:rgba(255,255,255,.08)!important;backdrop-filter:blur(12px)!important}.modal-summary-card{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.12)!important}
#projectModal .modal-header,#projectModal .modal-visual{display:block!important}#projectModal .modal-tabs{display:flex!important}#projectModal .modal-summary-lead{font-size:clamp(22px,2.1vw,31px)!important;line-height:1.38!important}#projectModal .modal-body p{font-size:15px!important;line-height:1.72!important}
#projectModal .modal-inner{overflow:hidden!important;overscroll-behavior:none!important}#projectModal .modal-content-grid{overflow:hidden!important}#projectModal .modal-body,#projectModal .modal-tabs{overflow:hidden!important}
#projectModal[data-project="snapy"] .modal-visual img{object-position:72% center!important}#projectModal[data-project="jipchak"] .modal-visual img{object-position:70% center!important}
#projectModal .modal-tabs{display:none!important}#projectModal .modal-body{padding-top:254px!important}.modal-quick-summary>p{margin:0 0 28px!important;font-size:18px!important;line-height:1.72!important}.modal-quick-summary dl{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:0!important}.modal-quick-summary dl>div{padding-top:16px!important;border-top:1px solid rgba(255,255,255,.14)!important}.modal-quick-summary dt{margin-bottom:7px!important;color:rgba(255,255,255,.52)!important;font-size:12px!important}.modal-quick-summary dd{margin:0!important;color:#fff!important;font-size:14px!important;font-weight:700!important}.project-gallery-card:hover .project-card-arrow{transform:scale(1.13) rotate(-10deg)!important;background:rgba(205,255,129,.28)!important}body.is-light-theme #projectModal .modal-quick-summary>p,body.is-light-theme #projectModal .modal-quick-summary dd{color:#111522!important}body.is-light-theme #projectModal .modal-quick-summary dt{color:rgba(17,21,34,.58)!important}
#projectModal .modal-glass-cursor{position:fixed;z-index:99;top:-10px;left:-10px;width:20px;height:20px;border:1px solid rgba(255,255,255,.86);border-radius:50%;pointer-events:none;opacity:0;background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(164,211,255,.15) 45%,rgba(8,12,22,.18));box-shadow:inset 1px 1px 3px rgba(255,255,255,.8),inset -2px -2px 4px rgba(0,0,0,.24),0 3px 11px rgba(0,0,0,.34);backdrop-filter:blur(4px) saturate(1.7);transform:translate(-50%,-50%);transition:opacity .15s,width .2s,height .2s}#projectModal .modal-glass-cursor.is-visible{opacity:1}
body.is-light-theme{background:#f4f5f8!important;color:#111522!important}body.is-light-theme .topbar{background:rgba(255,255,255,.52)!important;border-color:rgba(17,21,34,.14)!important}body.is-light-theme .topbar a,body.is-light-theme .topbar-brand{color:#10131d!important}body.is-light-theme #about.about-section,body.is-light-theme #MainProjects{background:#f4f5f8!important;color:#111522!important}body.is-light-theme .about-feature-copy h2,body.is-light-theme .about-feature-copy>p:not(.about-feature-index){color:#111522!important}body.is-light-theme .about-feature-copy>p:not(.about-feature-index){color:rgba(17,21,34,.7)!important}body.is-light-theme .btn{color:#111522!important;border-color:rgba(17,21,34,.22)!important;background:rgba(255,255,255,.42)!important}body.is-light-theme .project-section-label{color:#48560e!important}body.is-light-theme #projectModal,body.is-light-theme #projectModal .modal-inner,body.is-light-theme #projectModal .modal-header{background:#fafbff!important;color:#111522!important}body.is-light-theme #projectModal .modal-title{color:#111522!important}body.is-light-theme #projectModal .modal-kicker,body.is-light-theme #projectModal .modal-period,body.is-light-theme #projectModal .modal-body{color:rgba(17,21,34,.7)!important}body.is-light-theme #projectModal .modal-tab{color:#253047!important;background:rgba(17,21,34,.08)!important;border-color:rgba(17,21,34,.12)!important}body.is-light-theme #projectModal .modal-tab.is-active{background:#111522!important;color:#fff!important}
@media(max-width:720px){.topbar{width:calc(100% - 16px)!important;top:8px!important}.topbar-inner{grid-template-columns:1fr auto!important;padding:0 13px!important}.topbar-nav--left a:nth-child(2),.topbar-nav--right>a:not(.topbar-theme-toggle){display:none!important}.topbar-brand{display:none!important}.about-feature{grid-template-columns:1fr!important}.about-feature-photo{width:min(260px,72vw)!important;height:345px!important}.project-gallery{grid-template-columns:1fr!important;grid-template-rows:repeat(4,70vw)!important}.project-gallery-card:nth-child(n){grid-column:1;grid-row:auto}#projectModal{width:calc(100% - 16px)!important;height:calc(100dvh - 16px)!important;border-radius:22px!important}#projectModal .modal-content-grid{grid-template-columns:1fr!important;grid-template-rows:42% auto!important}#projectModal .modal-visual{grid-column:1!important;grid-row:1!important;height:auto!important}#projectModal .modal-header{width:100%!important;padding:28px 26px 14px!important;position:relative!important}#projectModal .modal-tabs{grid-column:1!important;grid-row:2!important;margin-top:0!important;padding:0 26px 14px!important}#projectModal .modal-body{grid-column:1!important;grid-row:2!important;padding:65px 26px 42px!important}.about-feature-copy h2{font-size:48px!important}}

body:not(.is-light-theme) .btn:hover,body:not(.is-light-theme) .btn:hover span,body:not(.is-light-theme) .modal-detail-link:hover,body:not(.is-light-theme) .modal-detail-link:hover span{color:#fff!important}
#projectModal .modal-detail-link{position:relative!important;z-index:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
#projectModal .modal-visual img{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;opacity:1!important}
#projectModal .modal-visual img{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;object-fit:cover!important;object-position:center center!important}
#projectModal .modal-inner,#projectModal .modal-content-grid{width:100%!important;max-width:none!important;margin:0!important}
#projectModal .modal-content-grid{position:relative!important;left:0!important;right:0!important}
#projectModal .modal-visual{left:0!important;margin:0!important;width:100%!important;max-width:none!important}
#projectModal .modal-visual img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
#projectModal .modal-visual img{object-position:center center!important}
#projectModal[data-project="snapy"] .modal-visual img{object-position:center center!important}
#projectModal .modal-project-heading{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 18px!important}
#projectModal .modal-project-icon{display:block!important;width:52px!important;height:52px!important;flex:0 0 52px!important;object-fit:cover!important;border-radius:15px!important;border:1px solid rgba(255,255,255,.24)!important;box-shadow:0 8px 22px rgba(0,0,0,.24)!important}
#projectModal .modal-project-heading .modal-kicker{margin:0!important}
#projectModal .modal-kicker{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
#projectModal .modal-meta-tag{display:inline-flex!important;align-items:center!important;min-height:23px!important;padding:3px 10px!important;border:1px solid transparent!important;border-radius:999px!important;font-size:11px!important;font-weight:600!important;line-height:1!important;letter-spacing:-.02em!important;white-space:nowrap!important}
#projectModal .modal-meta-tag--0{background:rgba(77,157,255,.18)!important;border-color:rgba(113,180,255,.42)!important;color:#9dceff!important}
#projectModal .modal-meta-tag--1{background:rgba(255,145,52,.18)!important;border-color:rgba(255,165,87,.42)!important;color:#ffc18c!important}
#projectModal .modal-meta-tag--2{background:rgba(176,109,255,.18)!important;border-color:rgba(201,151,255,.42)!important;color:#ddb8ff!important}
#projectModal .modal-meta-tag--3{background:rgba(90,210,161,.17)!important;border-color:rgba(111,224,180,.4)!important;color:#9aefc9!important}
#projectModal .modal-meta-tag--ios,
#projectModal .modal-meta-tag--watchos{background:rgba(77,157,255,.18)!important;border-color:rgba(113,180,255,.42)!important;color:#9dceff!important}
#projectModal .modal-meta-tag--musickit,
#projectModal .modal-meta-tag--ai{background:rgba(255,145,52,.18)!important;border-color:rgba(255,165,87,.42)!important;color:#ffc18c!important}
body.is-light-theme #projectModal .modal-meta-tag--0,body.is-light-theme #projectModal .modal-meta-tag--ios,body.is-light-theme #projectModal .modal-meta-tag--watchos{color:#1466ae!important;background:rgba(77,157,255,.13)!important}
body.is-light-theme #projectModal .modal-meta-tag--1,body.is-light-theme #projectModal .modal-meta-tag--musickit,body.is-light-theme #projectModal .modal-meta-tag--ai{color:#a54d08!important;background:rgba(255,145,52,.13)!important}
/* Use the supplied crescent asset for the shared theme control. */
.topbar-theme-toggle{width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent url("./img/moon.png") center/24px 24px no-repeat!important;color:transparent!important;font-size:0!important;line-height:0!important;box-shadow:none!important}
.topbar-theme-toggle::before{content:none!important;display:none!important}
.topbar-theme-toggle::after{content:none!important}
body.is-light-theme .topbar-theme-toggle{background-image:none!important;color:#10131d!important}
body.is-light-theme .topbar-theme-toggle::after{content:"☀"!important;display:block!important;color:currentColor!important;font:400 27px/44px Arial,sans-serif!important;text-align:center!important}

/* 홈 헤더의 좌우 콘텐츠 여백을 줄여 화면 가장자리와 더 가깝게 배치합니다. */
.topbar-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
}

/* 홈 About 소개 문장은 '서비스를'가 한 단어처럼 보이도록 본문 폭을 넓힙니다. */
.about-feature-copy>p:not(.about-feature-index){max-width:760px!important}

/* 모달 프로젝트 링크도 이름과 해당 서비스 아이콘이 함께 보이는 글래스 버튼으로 표시합니다. */
#projectModal .modal-quick-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:0!important;height:42px!important;padding:0 14px!important;border-radius:999px!important;font-size:13px!important;font-weight:600!important}
#projectModal .modal-link-icon{display:block!important;width:16px!important;height:16px!important;object-fit:contain!important}
#projectModal .modal-link-icon--apple{width:17px!important;height:17px!important;font-size:18px!important;line-height:1!important}
#projectModal .modal-link-icon--blog{display:grid!important;place-items:center!important;width:17px!important;height:17px!important;border:0!important;border-radius:0!important;font-size:11px!important;font-weight:700!important;line-height:1!important}
#projectModal .modal-quick-link b{font-size:18px!important;font-weight:400!important;line-height:1!important;transform:translateY(-1px)!important}
#projectModal .modal-link-icon:not(.modal-link-icon--apple):not(.modal-link-icon--blog){filter:brightness(0) invert(1)!important}
body.is-light-theme #projectModal .modal-link-icon:not(.modal-link-icon--apple):not(.modal-link-icon--blog),
body.light #projectModal .modal-link-icon:not(.modal-link-icon--apple):not(.modal-link-icon--blog){filter:brightness(0)!important}

/* Keep the home project label as light and restrained as the Download label. */
.project-section-label,
.about-feature-index {
  color: rgba(255,255,255,.82) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.project-section-label {
  font-size: 22px !important;
}

/* Reduce the oversized gap between the home Download and Sub Projects sections. */
#Download {
  padding-bottom: 4rem !important;
}

#SubProjects {
  padding-top: 64px !important;
}

.topbar {
  border-bottom: 0 !important;
  background: #07080c !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
}

body.is-light-theme .topbar {
  background: #f4f5f8 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
}

body:not(.is-light-theme) .topbar.is-scrolled {
  background: #07080c !important;
}

body.is-light-theme .topbar.is-scrolled {
  background: #f4f5f8 !important;
}

/* At the top of the home page, let the hero video continue behind the header. */
body:not(.is-light-theme) .topbar:not(.is-scrolled) {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Keep stack icons monochrome across both themes. */
body:not(.is-light-theme) .intro-stack-tag img,
body:not(.is-light-theme) .stack-label img {
  filter: brightness(0) invert(1) !important;
}

body.is-light-theme .intro-stack-tag img,
body.is-light-theme .stack-label img {
  filter: brightness(0) !important;
}

body:not(.is-light-theme) .intro-stack-tag img,
body:not(.is-light-theme) .stack-label img,
body:not(.is-light-theme) .stack span img {
  filter: brightness(0) invert(1) !important;
}

body.is-light-theme .intro-stack-tag img,
body.is-light-theme .stack-label img,
body.is-light-theme .stack span img {
  filter: brightness(0) !important;
}

body.is-light-theme .project-section-label,
body.is-light-theme .about-feature-index {
  color: #111522 !important;
}

/* Apply the light theme consistently to the home Download section. */
body.is-light-theme #Download {
  background: #f4f5f8 !important;
  color: #111522 !important;
}

body.is-light-theme #Download .mini-text,
body.is-light-theme #Download .mini-text p,
body.is-light-theme #Download .about-me h2 {
  color: #111522 !important;
}

body.is-light-theme #Download .sub-card {
  background: #fff !important;
  color: #111522 !important;
  border-color: rgba(17,21,34,.1) !important;
  box-shadow: 0 12px 32px rgba(17,21,34,.08) !important;
}

body.is-light-theme #Download .sub-card-title {
  color: #111522 !important;
}

body.is-light-theme #Download .sub-card-desc {
  color: #444 !important;
}

body.is-light-theme #Download .sub-card-tags span {
  background: rgba(17,21,34,.07) !important;
  color: #333 !important;
}

body.is-light-theme .about-detail-trigger,
body.is-light-theme .about-detail-trigger span {
  color: #111522 !important;
}

/* About actions: keep both CTAs consistent while using the supplied theme icons. */
.about-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.about-feature-actions .about-detail-trigger {
  margin-top: 0 !important;
}

.about-download-trigger {
  gap: 8px;
  margin-top: 0 !important;
}

.about-download-icon,
.about-download-trigger img {
  display: block;
  width: 21px;
  height: 21px;
}

.about-download-icon--light {
  display: none !important;
}

.about-download-trigger img {
  object-fit: contain;
}

body.is-light-theme .about-download-icon--dark {
  display: none !important;
}

body.is-light-theme .about-download-icon--light {
  display: block !important;
}

@media (max-width: 520px) {
  .about-feature-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .about-feature-actions .btn {
    min-width: 0;
    padding: 0 12px !important;
    font-size: clamp(13px, 3.7vw, 16px);
    white-space: nowrap;
  }

  .about-download-trigger {
    gap: 5px;
  }

  .about-download-icon,
  .about-download-trigger img {
    width: 18px;
    height: 18px;
  }
}

/* Continuous page surfaces: remove visible color bands between sections. */
html,
body,
#wrap,
body:not(.is-light-theme) #about,
body:not(.is-light-theme) #MainProjects,
body:not(.is-light-theme) #Download,
body:not(.is-light-theme) #SubProjects,
body:not(.is-light-theme) #Introduce,
body:not(.is-light-theme) #Design,
body:not(.is-light-theme) #endpage {
  background: #000 !important;
}

body.is-light-theme,
body.is-light-theme #wrap,
body.is-light-theme #about,
body.is-light-theme #MainProjects,
body.is-light-theme #Download,
body.is-light-theme #SubProjects,
body.is-light-theme #Introduce,
body.is-light-theme #Design,
body.is-light-theme #endpage {
  background: #fff !important;
}

/* Sub Projects follows the active theme instead of inheriting the light card defaults. */
body:not(.is-light-theme) #SubProjects .mini-text,
body:not(.is-light-theme) #SubProjects .about-me h2 {
  color: #fff !important;
}
body:not(.is-light-theme) #SubProjects .sub-card {
  border-color: rgba(255,255,255,.14) !important;
  background: #15171d !important;
  color: #fff !important;
}
body:not(.is-light-theme) #SubProjects .sub-card-title {
  color: #fff !important;
}
body:not(.is-light-theme) #SubProjects .sub-card-desc {
  color: rgba(255,255,255,.68) !important;
}
body:not(.is-light-theme) #SubProjects .sub-card-tags span {
  background: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.82) !important;
}
body:not(.is-light-theme) #SubProjects .sub-card-period {
  color: rgba(255,255,255,.52) !important;
}

body.is-light-theme #SubProjects .mini-text,
body.is-light-theme #SubProjects .about-me h2 {
  color: #111522 !important;
}
body.is-light-theme #SubProjects .sub-card {
  border-color: rgba(0,0,0,.08) !important;
  background: #fff !important;
  color: #111 !important;
}
body.is-light-theme #SubProjects .sub-card-title {
  color: #111 !important;
}
body.is-light-theme #SubProjects .sub-card-desc {
  color: #444 !important;
}
body.is-light-theme #SubProjects .sub-card-tags span {
  background: rgba(0,0,0,.05) !important;
  color: #333 !important;
}
body.is-light-theme #SubProjects .sub-card-period {
  color: #888 !important;
}
#projectModal .modal-subtitle{max-width:520px!important;margin:20px 0 24px!important;color:rgba(255,255,255,.62)!important;font-size:clamp(18px,1.7vw,25px)!important;line-height:1.45!important;letter-spacing:-.045em!important}
#projectModal .modal-period{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
#projectModal .modal-status-badge{display:inline-flex!important;align-items:center!important;padding:4px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.9)!important;color:#17191f!important;font-size:11px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important}
#projectModal .modal-quick-actions{display:flex!important;gap:10px!important;margin-top:30px!important;padding-top:22px!important;border-top:1px solid rgba(255,255,255,.14)!important}
#projectModal .modal-quick-link{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border:1px solid rgba(255,255,255,.36)!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important;color:#fff!important;font-size:20px!important;font-weight:700!important;transition:transform .42s cubic-bezier(.18,.9,.2,1),background .42s ease,border-color .42s ease!important}
#projectModal .modal-quick-link:hover{transform:translateY(-2px) scale(1.06)!important;background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.76)!important}

/* 모달 링크는 텍스트 없이 아이콘만 표시합니다. */
#projectModal .modal-quick-actions{align-items:center!important;gap:10px!important}
#projectModal .modal-quick-link{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;border-radius:50%!important}
#projectModal .modal-quick-link>span:not(.modal-link-icon){display:none!important}
#projectModal .modal-quick-link .modal-link-icon{display:block!important;flex:none!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;object-fit:contain!important}
#projectModal .modal-quick-link .modal-link-icon--apple{font-size:17px!important;line-height:1!important}
#projectModal .modal-quick-link .modal-link-icon--apple{display:grid!important;place-items:center!important;width:17px!important;height:17px!important;line-height:17px!important;text-align:center!important;transform:translate(-1px,2px)!important}
#projectModal .modal-quick-link .modal-link-icon--blog{display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;font-size:11px!important;font-weight:700!important}
#projectModal .modal-close{border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:color .3s ease,transform .3s ease!important}
#projectModal .modal-close:hover{border:0!important;background:transparent!important;transform:none!important}
.detail-link:hover{transform:none!important}
#MainProjects .project-gallery-card,
#MainProjects .project-gallery-card:hover,
#MainProjects .project-gallery-card:focus-visible,
#MainProjects .project-gallery-card:active{transform:none!important}
#MainProjects .project-gallery-card .project-gallery-icon,
#MainProjects .project-gallery-card:hover .project-gallery-icon,
#MainProjects .project-gallery-card:focus-visible .project-gallery-icon,
#MainProjects .project-gallery-card:active .project-gallery-icon,
#MainProjects .project-gallery-card .project-card-arrow,
#MainProjects .project-gallery-card:hover .project-card-arrow{transform:none!important;rotate:none!important;line-height:1!important;text-align:center!important}
#projectModal .modal-header>.modal-period{display:none!important}
#projectModal .modal-quick-summary dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important}
#projectModal .modal-quick-summary dl>div{min-width:0!important}

/* Keep every project arrow as the same compact, centered Akar icon. */
#MainProjects .project-gallery-card .project-gallery-icon,
#MainProjects .project-gallery-card:hover .project-gallery-icon,
#MainProjects .project-gallery-card:focus-visible .project-gallery-icon,
#MainProjects .project-gallery-card:active .project-gallery-icon,
#MainProjects .project-gallery-card .project-card-arrow,
#MainProjects .project-gallery-card:hover .project-card-arrow{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  padding:0!important;
  font-size:0!important;
  line-height:1!important;
  transform:none!important;
  rotate:none!important;
  color:transparent!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.42)!important;
  border-radius:50%!important;
}
#MainProjects .project-gallery-card .project-gallery-icon::before,
#MainProjects .project-gallery-card .project-card-arrow::before{
  content:""!important;
  display:block!important;
  width:22px!important;
  height:22px!important;
  background:url("./img/akar-arrow-white.png") center/contain no-repeat!important;
  mask:none!important;
  -webkit-mask:none!important;
}
body.is-light-theme #MainProjects .project-gallery-card .project-gallery-icon::before,
body.is-light-theme #MainProjects .project-gallery-card .project-card-arrow::before{
  background-image:url("./img/akar-arrow-black.png")!important;
}
#projectModal .modal-quick-summary dt{display:block!important;visibility:visible!important;color:rgba(255,255,255,.52)!important}
#projectModal .modal-quick-summary dd{display:block!important;min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important}
#projectModal .modal-quick-summary dl > div {
  padding-top: 16px !important;
}
#projectModal .modal-quick-summary dt {
  margin-bottom: 7px !important;
  color: rgba(255,255,255,.52) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}
#projectModal .modal-quick-summary dd {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}
body.is-light-theme #projectModal .modal-quick-summary dt {
  color: rgba(17,21,34,.58) !important;
}
body.is-light-theme #projectModal .modal-quick-summary dd {
  color: #111522 !important;
}
#projectModal .modal-quick-summary dt{display:block!important;visibility:visible!important;margin:0 0 7px!important;color:rgba(255,255,255,.58)!important;font-size:11px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:.02em!important}
#projectModal .modal-quick-summary dd{display:block!important;margin:0!important;color:#fff!important;font-size:14px!important;font-weight:700!important;line-height:1.35!important}
body.is-light-theme #projectModal .modal-quick-summary dt{color:rgba(17,21,34,.58)!important}
body.is-light-theme #projectModal .modal-quick-summary dd{color:#111522!important}
#projectModal .modal-quick-summary dl{position:relative!important;z-index:8!important}
#projectModal .modal-quick-summary dl>div{position:relative!important;z-index:8!important}
#projectModal .modal-quick-summary dl>div{padding-top:20px!important;padding-bottom:10px!important}
#projectModal .modal-quick-summary dt{position:relative!important;z-index:9!important;opacity:1!important;visibility:visible!important}
#projectModal .modal-quick-summary dl{margin-top:78px!important}
#projectModal .modal-quick-summary dt{font-size:12px!important}
#projectModal .modal-quick-summary dd{font-size:16px!important;line-height:1.45!important}
@media(max-width:720px){#projectModal .modal-quick-summary dl{margin-top:68px!important}}
#projectModal .modal-quick-link--github svg{display:block!important;width:18px!important;height:18px!important}
#projectModal .modal-quick-link--figma img,
#projectModal .modal-quick-link--demo img{display:block!important;width:19px!important;height:19px!important;object-fit:contain!important}
body.is-light-theme #projectModal .modal-quick-link--figma img,
body.is-light-theme #projectModal .modal-quick-link--demo img{filter:invert(1)!important}
body.is-light-theme #projectModal .modal-subtitle{color:rgba(17,21,34,.7)!important}
body.is-light-theme #projectModal .modal-detail-link,
body.is-light-theme #projectModal .modal-detail-link:hover,
body.is-light-theme #projectModal .modal-detail-link span{color:#111522!important;border-color:rgba(17,21,34,.28)!important;background:rgba(17,21,34,.06)!important;box-shadow:inset 0 1px rgba(255,255,255,.9),0 8px 20px rgba(17,21,34,.12)!important}
body.is-light-theme #projectModal .modal-quick-actions{border-top-color:rgba(17,21,34,.14)!important}
body.is-light-theme #projectModal .modal-quick-link{color:#111522!important;border-color:rgba(17,21,34,.28)!important;background:rgba(17,21,34,.05)!important}
body.is-light-theme #projectModal .modal-quick-link:hover{background:rgba(17,21,34,.1)!important;border-color:rgba(17,21,34,.55)!important}
body.is-light-theme #projectModal .modal-close{color:#111522!important;background:transparent!important;border-color:transparent!important}
body.is-light-theme #projectModal .modal-quick-summary dl>div{border-top-color:rgba(17,21,34,.2)!important}
#projectModal .modal-subtitle{font-size:clamp(15px,1.25vw,18px)!important;line-height:1.55!important;margin-top:14px!important;margin-bottom:20px!important}
.universal-glass-cursor.is-targeting{transition:width .48s cubic-bezier(.18,.9,.2,1),height .48s cubic-bezier(.18,.9,.2,1),left .18s cubic-bezier(.18,.9,.2,1),top .18s cubic-bezier(.18,.9,.2,1),border-radius .22s ease,opacity .16s ease!important}
/* dialog top-layer의 커서는 dialog 좌표계에 맞춰 정렬합니다. */
dialog .universal-glass-cursor{position:absolute!important;z-index:2147483647!important}
/* 모달 버튼은 자기 자신이 이동하지 않고, glass cursor만 실제 버튼 영역을 감쌉니다. */
#projectModal .modal-detail-link:hover,
#projectModal .modal-detail-link.is-sucked,
#projectModal .modal-quick-link:hover,
#projectModal .modal-quick-link.is-sucked{transform:none!important}
#projectModal[data-project="jipchak"] .modal-visual img{object-position:46% center!important}
#home .topbar-theme-toggle,#hero .topbar-theme-toggle,.topbar-theme-toggle{width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;place-items:center!important;color:rgba(255,255,255,.92)!important}
.topbar-theme-toggle::before{content:"☾";display:block;font-size:30px!important;line-height:1;font-family:Arial,sans-serif;font-weight:400!important}
body.is-light-theme .topbar-theme-toggle::before{content:"☀";font-size:28px!important}
body.is-light-theme .topbar-theme-toggle{color:#10131d!important}
body.is-light-theme .project-section-description{color:rgba(17,21,34,.62)!important}
#projectModal .modal-meta-tag{min-height:25px!important;padding:4px 11px!important;font-size:12px!important;font-weight:600!important;letter-spacing:-.025em!important;text-shadow:0 1px 8px rgba(0,0,0,.16)!important}
#projectModal .modal-meta-tag{min-height:27px!important;padding:5px 12px!important;font-size:13px!important;font-weight:600!important;letter-spacing:-.02em!important;line-height:1.05!important;text-shadow:0 1px 5px rgba(0,0,0,.28)!important;box-shadow:inset 0 1px rgba(255,255,255,.16),0 3px 10px rgba(0,0,0,.16)!important}
#projectModal .modal-meta-tag--0,#projectModal .modal-meta-tag--ios,#projectModal .modal-meta-tag--watchos{background:rgba(77,157,255,.32)!important;border-color:rgba(163,211,255,.9)!important;color:#d9efff!important}
#projectModal .modal-meta-tag--1,#projectModal .modal-meta-tag--musickit,#projectModal .modal-meta-tag--ai{background:rgba(255,145,52,.3)!important;border-color:rgba(255,201,139,.9)!important;color:#ffe2c4!important}
#projectModal .modal-meta-tag--2{background:rgba(176,109,255,.25)!important;border-color:rgba(214,171,255,.7)!important;color:#ebd2ff!important}
#projectModal .modal-meta-tag--3{background:rgba(90,210,161,.22)!important;border-color:rgba(132,239,198,.66)!important;color:#b9ffdd!important}
body.is-light-theme #projectModal .modal-meta-tag--0,body.is-light-theme #projectModal .modal-meta-tag--ios,body.is-light-theme #projectModal .modal-meta-tag--watchos{color:#0e62ac!important;background:rgba(77,157,255,.12)!important;border-color:rgba(35,119,194,.38)!important}
body.is-light-theme #projectModal .modal-meta-tag--1,body.is-light-theme #projectModal .modal-meta-tag--musickit,body.is-light-theme #projectModal .modal-meta-tag--ai{color:#a44700!important;background:rgba(255,145,52,.12)!important;border-color:rgba(190,91,0,.38)!important}
body.is-light-theme #projectModal .modal-meta-tag--2{color:#7037ac!important;background:rgba(176,109,255,.12)!important;border-color:rgba(112,55,172,.38)!important}
body.is-light-theme #projectModal .modal-meta-tag--3{color:#087a52!important;background:rgba(90,210,161,.12)!important;border-color:rgba(8,122,82,.38)!important}

/* Final theme icon override: keep the asset visible after legacy theme rules. */
.topbar-theme-toggle{background:transparent url("./img/moon.png") center/24px 24px no-repeat!important;color:transparent!important;font-size:0!important;border:0!important;box-shadow:none!important}
.topbar-theme-toggle::before{content:none!important;display:none!important}
.topbar-theme-toggle::after{content:none!important;display:none!important}
body.is-light-theme .topbar-theme-toggle{background-image:none!important;color:#10131d!important}
body.is-light-theme .topbar-theme-toggle::after{content:"☀"!important;display:block!important;color:currentColor!important;font:400 27px/44px Arial,sans-serif!important;text-align:center!important}

/* 테마 아이콘은 현재 페이지 표시용 원형 배경을 사용하지 않습니다. */
.topbar-theme-toggle.is-current,
body.is-light-theme .topbar-theme-toggle.is-current,
body.is-light-theme .topbar nav a.is-current.topbar-theme-toggle {
  padding: 0 !important;
  margin: 0 0 0 6px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Final mobile overrides must stay after the legacy patch layers above. */
@media (max-width: 720px) {
  .hero-visual { aspect-ratio: 16 / 10; }
  .portfolio-main-img { height: 100%; aspect-ratio: auto; }
  #Download .sub-projects-grid,
  #SubProjects .sub-projects-grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-top: 32px !important;
  }
  #projectModal .modal-inner { overflow-y: auto !important; overflow-x: hidden !important; }
  #projectModal .modal-header { width: 100% !important; padding: 62px 24px 18px !important; }
  #projectModal .modal-content-grid { display: block !important; padding: 0 24px 44px !important; overflow: visible !important; }
  #projectModal .modal-visual { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; margin-bottom: 28px !important; }
  #projectModal .modal-visual img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  #projectModal .modal-body { padding: 0 !important; overflow: visible !important; }
  #projectModal .modal-quick-summary dl { grid-template-columns: 1fr !important; margin-top: 36px !important; }
}
