:root { --blue: #82b5e6; --cream: #fff1d3; --ink: #49362e; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  overflow: hidden; color: var(--ink);
  background-color: var(--blue);
  background-image: url("../assets/home/generated/home-blue-paper-texture-seamless-v1.png");
  background-position: center; background-size: cover; background-repeat: no-repeat;
  font-family: "Courier New", Courier, monospace;
}
button, a { -webkit-tap-highlight-color: transparent; }
body[data-scene="home"] .slide-hint { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-shell { position: fixed; inset: 0; overflow: hidden; background: transparent; }
.stage {
  position: absolute; top: 50%; left: 50%; width: 1672px; height: 941px; overflow: hidden; isolation: isolate;
  background: transparent; transform: translate(-50%, -50%) scale(var(--stage-scale, .7)); transform-origin: center;
}
.house-cluster {
  position: absolute; z-index: 2; inset: 0; width: 1672px; height: 941px;
  transform: translate(0, 0) scale(1); transform-origin: left top;
}
.house-art {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
  user-select: none; pointer-events: none; animation: concept-arrive 1050ms cubic-bezier(.16, 1, .3, 1) both;
}
.chimney-smoke {
  position: absolute; z-index: 3; top: 8px; left: 115px; display: block; width: 215px; height: 110px;
  object-fit: contain; pointer-events: none; user-select: none;
  filter: drop-shadow(2px 5px 4px rgb(52 29 22 / 16%));
  animation: concept-arrive 1050ms cubic-bezier(.16, 1, .3, 1) both;
}
.scrap-layer, .scrap-label, .soobin-avatar, .music-player {
  position: absolute; z-index: 18; display: block; object-fit: contain; pointer-events: none; user-select: none;
  filter: drop-shadow(2px 6px 5px rgb(52 29 22 / 20%));
}
.title-art { height: auto; animation: label-in 720ms cubic-bezier(.16, 1, .3, 1) 160ms both; }
.title-happy { top: 28px; left: 1035px; width: 370px; }
.title-soobin-day { top: 126px; left: 985px; width: 650px; }
.title-portrait { display: none; }
.title-rays { position: absolute; z-index: 17; display: block; width: 86px; height: 92px; pointer-events: none; }
.title-rays i {
  position: absolute; display: block; width: 10px; height: 44px; border-radius: 999px;
  background: #fff0cf; box-shadow: 1px 3px 2px rgb(73 54 46 / 16%);
}
.title-rays i:nth-child(1) { top: 36px; left: 9px; transform: rotate(-42deg); }
.title-rays i:nth-child(2) { top: 13px; left: 37px; transform: rotate(-19deg); }
.title-rays i:nth-child(3) { top: 4px; left: 70px; transform: rotate(8deg); }
.title-rays-left { top: 68px; left: 910px; }
.title-rays-right { top: 38px; left: 1490px; transform: scaleX(-1); }
.date-art { top: 304px; left: 1138px; width: 330px; height: 110px; transform: rotate(.8deg); animation: label-in 720ms cubic-bezier(.16, 1, .3, 1) 300ms both; }
.ourhome-label { top: 400px; left: 1115px; width: 350px; height: 116px; transform: rotate(-2deg); animation: label-in 720ms cubic-bezier(.16, 1, .3, 1) 380ms both; }
.boy-label { top: 347px; left: 393px; width: 300px; height: 92px; transform: rotate(-1.2deg); animation: label-in 720ms cubic-bezier(.16, 1, .3, 1) 430ms both; }
.leader-label { top: 472px; left: 744px; width: 310px; height: 92px; transform: rotate(.7deg); animation: label-in 720ms cubic-bezier(.16, 1, .3, 1) 530ms both; }
.soobin-avatar {
  z-index: 10; top: 535px; left: 1240px; width: 220px; height: 284px; transform: rotate(-2deg);
  filter: drop-shadow(5px 12px 9px rgb(55 32 27 / 25%)); animation: avatar-in 950ms cubic-bezier(.16, 1, .3, 1) 620ms both;
}
.flower-art { z-index: 13; top: 500px; left: 1500px; width: 132px; height: 180px; transform: rotate(4deg); animation: object-in 820ms cubic-bezier(.16, 1, .3, 1) 680ms both; }
.music-player {
  z-index: 19; right: 18px; bottom: 20px; width: 225px; height: 151px; transform: rotate(2.5deg);
  filter: drop-shadow(4px 10px 8px rgb(45 28 26 / 26%)); animation: object-in 820ms cubic-bezier(.16, 1, .3, 1) 720ms both;
}
.doodle { z-index: 7; filter: none; opacity: .96; }
.doodle-note { top: 410px; left: 1510px; width: 58px; height: 82px; transform: rotate(-8deg); }
.doodle-sparkle-right { top: 690px; left: 1485px; width: 58px; height: 62px; transform: rotate(7deg); }
.portal {
  position: absolute; z-index: 12; overflow: visible; border-radius: 22px;
  transition: opacity 240ms ease, filter 240ms ease, transform 320ms ease;
}
.portal-boy { top: 178px; left: 335px; width: 350px; height: 225px; }
.portal-leader { top: 314px; left: 700px; width: 380px; height: 230px; }
.portal-performer { top: 448px; left: 225px; width: 385px; height: 260px; }
.portal-ending { top: 548px; left: 630px; width: 420px; height: 255px; }
.window-reveal {
  position: absolute; z-index: 2; inset: 0; border-radius: 22px; opacity: 0; overflow: hidden; pointer-events: none;
  background-image: url("../assets/home/generated/house-concept-b-stacked-v1.png");
  background-repeat: no-repeat; background-size: 1672px 941px;
  clip-path: inset(0 49% 0 49%);
  transition: clip-path 720ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease;
  filter: drop-shadow(0 10px 8px rgb(55 32 27 / 30%));
}
.portal-boy .window-reveal { background-position: -335px -178px; }
.portal-leader .window-reveal { background-position: -700px -314px; }
.portal-performer .window-reveal { background-position: -225px -448px; }
.portal-ending .window-reveal { background-position: -630px -548px; }
.portal.is-open .window-reveal {
  opacity: 1;
  clip-path: inset(0);
}
.window-link {
  position: absolute; z-index: 4; inset: 0; display: block; border-radius: 22px; pointer-events: none; opacity: 0;
  transition: opacity 220ms ease, filter 240ms ease, transform 260ms ease;
}
.portal.is-open .window-link { opacity: 1; }
.portal.is-ready .window-link { pointer-events: auto; }
.portal.is-open .window-link:hover {
  filter: drop-shadow(0 0 18px rgb(255 226 131 / 88%)); transform: scale(1.025);
}
.portal.is-open .window-link:focus-visible { outline: 5px solid rgb(255 226 131 / 88%); outline-offset: 5px; }
.window-trigger {
  position: absolute; z-index: 5; inset: 0; padding: 0; border: 0; border-radius: 22px; background: transparent;
  cursor: pointer; touch-action: pan-y;
}
.window-trigger:focus-visible { outline: 5px solid rgb(255 226 131 / 88%); outline-offset: 5px; }
.portal.is-ready .window-trigger { pointer-events: none; }
.stage.is-focusing .portal:not(.is-selected), .stage.is-focusing .scrap-layer, .stage.is-focusing .scrap-label, .stage.is-focusing .soobin-avatar, .stage.is-focusing .music-player { opacity: .28; filter: blur(1px); }
.stage.is-focusing .portal.is-selected { z-index: 30; transform: scale(1.055); }
body.is-leaving .stage { animation: page-exit 240ms ease-in both; }
@keyframes concept-arrive { from { opacity: 0; transform: translateX(-28px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes label-in { from { opacity: 0; transform: translateY(18px) rotate(-4deg) scale(.86); } to { opacity: 1; } }
@keyframes avatar-in { from { opacity: 0; transform: translateY(28px) rotate(-5deg) scale(.82); } to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); } }
@keyframes object-in { from { opacity: 0; transform: translateY(22px) rotate(6deg) scale(.84); } to { opacity: 1; transform: translateY(0) rotate(2.5deg) scale(1); } }
@keyframes page-exit { to { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--stage-scale) * .975)); filter: blur(3px); } }
.stage.is-portrait { width: 720px; height: 1280px; }
.stage.is-portrait .house-cluster { transform: translate(-8px, 400px) scale(.61); }
.stage.is-portrait .title-desktop { display: none; }
.stage.is-portrait .title-rays { display: none; }
.stage.is-portrait .title-portrait { display: block; top: 34px; left: 20px; width: 680px; height: 222px; }
.stage.is-portrait .date-art { top: 218px; left: 210px; width: 300px; height: 100px; }
.stage.is-portrait .ourhome-label { top: 306px; left: 180px; width: 360px; height: 120px; }
.stage.is-portrait .soobin-avatar { top: 955px; left: 55px; width: 210px; height: 273px; }
.stage.is-portrait .flower-art { top: 945px; left: 530px; width: 132px; height: 180px; }
.stage.is-portrait .music-player { right: 26px; bottom: 28px; width: 230px; height: 155px; }
.stage.is-portrait .doodle-note { top: 1080px; left: 320px; width: 56px; height: 78px; }
.stage.is-portrait .doodle-sparkle-right { top: 1000px; left: 395px; width: 56px; height: 60px; }
@media (prefers-reduced-motion: reduce) {
  .house-art, .chimney-smoke, .scrap-layer, .scrap-label, .soobin-avatar, .music-player, body.is-leaving .stage { animation: none !important; }
  .window-reveal, .window-link, .portal { transition: none !important; }
}
