/* The Foldfolio font faces and motion styles stay in index.html.
   Only Korean glyphs use StudyPanda Sans from the existing homepage. */
@font-face { font-family: 'StudyPanda Korean'; src: url('/assets/studypanda/fonts/StudyPandaKoreanFullMedium.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+1100-11FF,U+3130-318F,U+AC00-D7AF; }
@font-face { font-family: 'StudyPanda Korean'; src: url('/assets/studypanda/fonts/StudyPandaKoreanFullBold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; unicode-range: U+1100-11FF,U+3130-318F,U+AC00-D7AF; }
@font-face { font-family: 'StudyPanda Clock'; src: url('/assets/studypanda/fonts/Geist-Clock-200.ttf') format('truetype'); font-weight: 200; font-display: swap; unicode-range: U+0030-003A; }
:root { --sp-ink: #111; --sp-sage: #C3CBB7; }
html { scroll-behavior: smooth; }
/* Existing /homepage pages opt in to cross-document transitions. */
@view-transition { navigation: auto; }
body { margin: 0; color: var(--sp-ink); }
#main { min-height: 100svh; }
.sp-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(#f3f5f0e8, #f3f5f000); }
.sp-brand { font: 900 25px/1 'Sofia Sans Extra Condensed', sans-serif; letter-spacing: -.5px; color: inherit; text-decoration: none; }
.sp-nav { display: flex; align-items: center; gap: 28px; }
.sp-nav a { font: 500 12px/1.4 'Geist', 'StudyPanda Korean', 'Malgun Gothic', sans-serif; text-decoration: none; color: inherit; white-space: nowrap; position: relative; padding: 9px 0; }
.sp-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.sp-nav a:hover::after, .sp-nav a[aria-current='page']::after { transform: scaleX(1); }
a:focus-visible { outline: 2px solid #5A6450; outline-offset: 5px; }
.sp-skip { position: fixed; top: -80px; left: 20px; z-index: 101; padding: 10px 16px; background: #111; color: white; font: 14px 'StudyPanda Korean', sans-serif; }
.sp-skip:focus { top: 12px; }
/* Korean headings need wrapping; the original English display faces are kept. */
.framer-text { word-break: keep-all; overflow-wrap: anywhere; }
[data-framer-name='Title'] { white-space: normal !important; }
/* Original portfolio cards fill a photograph. PDF covers must remain readable. */
.framer-10b1033 { background: #edf0e9; }
.framer-10b1033 img { object-fit: contain !important; padding: 32px; }
.sp-footer { max-width: 1000px; margin: 0 auto; padding: 30px 28px 44px; border-top: 1px solid #1112; font: 400 11px/1.9 'Geist', 'StudyPanda Korean', 'Malgun Gothic', sans-serif; color: #62675d; }
.sp-footer a { color: inherit; }
.sp-footer p { margin: 0; }
.sp-noscript { max-width: 800px; padding: 100px 28px; margin: auto; font-family: 'Geist', 'StudyPanda Korean', sans-serif; }
@media (max-width: 700px) {
  .sp-header { height: 72px; padding: 12px 18px; gap: 8px; flex-wrap: wrap; align-content: center; background: #f3f5f0ed; }
  .sp-brand { font-size: 23px; }
  .sp-nav { gap: 18px; }
  .sp-nav a { font-size: 10px; padding: 6px 0; }
  .framer-10b1033 img { padding: 18px; }
  .sp-footer { margin: 0 18px; padding: 24px 0 32px; font-size: 10px; }
}
@media (max-width: 370px) { .sp-header { height: 80px; } .sp-nav { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sp-nav a::after { transition: none; } }

/* iPhone Duo reference: asymmetric closed shell, a corner camera, and metal depth. */
.duo-device { --duo-frost: 0; --duo-front: 110%; --duo-progress: 0; transform-style: preserve-3d; }
.duo-leaf { isolation: auto; }
.duo-metal-slice { position: absolute; inset: 0; pointer-events: none; }
.duo-metal-face { box-shadow: inset 0 1px 1px #ffffffe0, inset 0 -2px 2px #20291dcc, inset 0 0 0 1px #e8ecdf, 0 0 0 .65px #404b35 !important; }
.duo-hinge { position: absolute; left: -5px; top: 8px; bottom: 8px; width: 8px; border-radius: 4px; transform: translateZ(-6px); background: linear-gradient(90deg,#495440,#d9dfd0 25%,#828e75 47%,#f1f4eb 61%,#4b5742); box-shadow: -1px 0 1px #28322070; pointer-events: none; }
.duo-hinge-horizontal { left: 8px; right: 8px; top: -5px; bottom: auto; width: auto; height: 8px; background: linear-gradient(#495440,#d9dfd0 25%,#828e75 47%,#f1f4eb 61%,#4b5742); }
.duo-display-content { position: absolute; inset: 0; overflow: hidden; transform: translateZ(0); }
.duo-glass, .duo-edge-shade { display: none; position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0; }
.duo-device[data-duo-folding='true'] .duo-glass, .duo-device[data-duo-folding='true'] .duo-edge-shade { display: block; }
.duo-glass { background: #f5f6f212; mask-image: linear-gradient(to right,transparent calc(var(--duo-front) - 28%),#000 calc(var(--duo-front) + 34%)); -webkit-mask-image: linear-gradient(to right,transparent calc(var(--duo-front) - 28%),#000 calc(var(--duo-front) + 34%)); backdrop-filter: blur(7px) saturate(.9); -webkit-backdrop-filter: blur(7px) saturate(.9); }
.duo-edge-shade { background: linear-gradient(to right,transparent calc(var(--duo-front) - 34%),#444c4210 calc(var(--duo-front) + 8%),#303a322b 100%); box-shadow: inset -14px 0 20px -18px #1d271e60; }
.duo-camera { position: absolute; z-index: 12; top: 19px; right: 19px; width: 23px; height: 23px; border-radius: 50%; background: radial-gradient(circle at 40% 35%,#29302c,#080b0a 47%,#010302 70%); box-shadow: 0 0 0 1.5px #161c18, inset 0 1px 2px #555d59, 0 1px 2px #ffffffb3; pointer-events: none; }
.duo-camera span { position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#526c69 0%,#182623 34%,#090f13 72%); box-shadow: inset 0 0 1px #64716b; }
.duo-home-indicator { position: absolute; z-index: 13; width: 25%; height: 4px; bottom: 8px; left: 37.5%; border-radius: 999px; background: #222b26; opacity: .78; pointer-events: none; }
.duo-cover-display > .duo-home-indicator { background: #fff; box-shadow: 0 1px 5px #0002; opacity: .95; }
/* Full-screen wallpaper and the reference's slender white lock-screen typography. */
.duo-lock { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; font-family: 'Geist', 'StudyPanda Korean', sans-serif; }
.duo-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.duo-lock-tint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,#44514d55 0%,#59635d38 21%,transparent 44%,transparent 76%,#5b625326 100%); }
.duo-lock-clock { position: absolute; top: 33px; left: 0; right: 0; text-align: center; text-shadow: 0 1px 8px #3340322a; }
.duo-date { font: 500 16px/1.4 'Geist', sans-serif; letter-spacing: -.3px; }
.duo-clock { display: block; width: max-content; margin: -3px auto 0; font: 200 164px/.99 'StudyPanda Clock', 'Geist', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -8px; transform: scaleX(.65); transform-origin: center; }
.duo-slogan { margin: 9px 0 0; color: #414b40; text-shadow: 0 1px 5px #fff9; font: 500 13px/1.5 'Geist', 'StudyPanda Korean', sans-serif; letter-spacing: -.35px; }
.duo-wireless { position: absolute; top: 57px; right: 16px; width: 29px; height: 29px; filter: drop-shadow(0 1px 3px #43513c35); }
.duo-wireless svg { display: block; width: 100%; height: 100%; }
.duo-notifications { position: absolute; left: 24px; right: 24px; bottom: 148px; display: flex; flex-direction: column; gap: 8px; }
.duo-notification { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 10px 12px; color: #161a15; text-decoration: none; background: #fff; border-radius: 19px; box-shadow: 0 4px 20px #38453012, inset 0 0 0 1px #ffffff; }
.duo-app-icon { flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: #f0f2eb; }
.duo-app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.48); transform-origin: 50% 36%; }
.duo-notification-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.duo-notification-text strong { font-size: 13px; font-weight: 500; line-height: 1.3; }
.duo-notification-text > span { font-size: 10px; line-height: 1.3; }
.duo-lock-controls { position: absolute; right: 18px; bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.duo-lock-control { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg,#bcc2b7ba,#949f895a); border: 1px solid #ffffff85; box-shadow: inset 0 1px 2px #ffffff80,0 2px 8px #33432c16; }
.duo-lock-control svg { width: 25px; height: 25px; }
.duo-unfold-hint { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); padding: 7px 13px; color: #525b4f; background: #ffffffa8; border-radius: 99px; font: 500 12px/1 'Geist',sans-serif; white-space: nowrap; }
.duo-lock-compact .duo-wallpaper { object-position: center 54%; }
.duo-lock-compact .duo-lock-clock { top: 17px; }
.duo-lock-compact .duo-date { font-size: 12px; }
.duo-lock-compact .duo-clock { font-size: 88px; letter-spacing: -4px; line-height: .98; }
.duo-lock-compact .duo-slogan { font-size: 10px; margin-top: 4px; }
.duo-lock-compact .duo-wireless { top: 41px; right: 12px; width: 22px; height: 22px; }
.duo-lock-compact .duo-notifications { left: 15px; right: 15px; bottom: 104px; }
.duo-lock-compact .duo-notification { min-height: 53px; padding: 8px 10px; border-radius: 16px; }
.duo-lock-compact .duo-app-icon { flex-basis: 35px; width: 35px; height: 35px; }
.duo-lock-compact .duo-notification-text strong { font-size: 11px; }
.duo-lock-compact .duo-notification-text > span { font-size: 9px; }
.duo-lock-compact .duo-lock-controls { right: 14px; bottom: 22px; gap: 7px; }
.duo-lock-compact .duo-lock-control { width: 32px; height: 32px; }
.duo-lock-compact .duo-lock-control svg { width: 19px; height: 19px; }
.duo-lock-compact .duo-unfold-hint { bottom: 26px; font-size: 10px; }
@media (max-width: 700px) {
  .duo-camera { width: 17px; height: 17px; top: 13px; right: 14px; }
  .duo-camera span { inset: 5px; }
  .duo-home-indicator { bottom: 6px; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-device .duo-glass, .duo-device .duo-edge-shade { display: none; }
}

/* Move the screen and shell as one stable surface, including the idle float. */
.duo-intro-rig { transform: translate3d(0,0,0); }
.duo-entering { will-change: transform, opacity; }
.duo-float { --duo-float-amplitude: 3px; animation: duo-float 6s ease-in-out infinite; will-change: transform; }
@keyframes duo-float { 0%,100% { transform: translate3d(0,calc(0px - var(--duo-float-amplitude)),0); } 50% { transform: translate3d(0,var(--duo-float-amplitude),0); } }
.duo-cover .duo-display { transform: translateZ(.01px); will-change: transform; }
.duo-screen-flow { will-change: transform; }
.duo-notification-text strong { font-size: 14px; }
.duo-notification-text > span { font-size: 11.5px; }
.duo-lock-compact .duo-notification-text strong { font-size: 12px; }
.duo-lock-compact .duo-notification-text > span { font-size: 10.5px; }
.duo-lock-compact .duo-slogan { font-size: 12px; }
/* Reuse one content tree across the whole flat display: no center seam or twin raster edges. */
.duo-device[data-duo-flat='true'] .duo-left { visibility: hidden !important; }
.duo-device[data-duo-flat='true'] .duo-right { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.duo-device[data-duo-flat='true'] .duo-right > .duo-metal-face,
.duo-device[data-duo-flat='true'] .duo-right > .duo-metal-slice { border-radius: var(--duo-radius) !important; }
.duo-device[data-duo-flat='true'] .duo-right > .duo-bezel { inset: var(--duo-rim) !important; border-radius: calc(var(--duo-radius) - var(--duo-rim)) !important; }
.duo-device[data-duo-flat='true'] .duo-right > .duo-display { inset: var(--duo-inset) !important; border-radius: calc(var(--duo-radius) - var(--duo-inset)) !important; }
.duo-device[data-duo-flat='true'] .duo-right .duo-screen-flow { left: 0 !important; }
.duo-device[data-duo-flat='true'] .duo-right .duo-status { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .duo-float { animation: none; } }
