:root {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #19181e;
  background: #faf9f6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  --ink: #19181e;
  --purple: #6435ee;
  --pink: #ff49a5;
  --lime: #d5ff45;
  --mint: #7cf1cd;
  --peach: #ffb685;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
p { word-break: keep-all; line-height: 1.8; }
img { display: block; max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
::selection { background: var(--lime); color: var(--ink); }
.page-shell { width: min(1160px, calc(100% - 80px)); margin: auto; }
.skip { position: fixed; left: 18px; top: -80px; background: var(--lime); padding: 14px 18px; z-index: 20; }
.skip:focus { top: 14px; }
header { height: 88px; border-bottom: 1px solid #19181e25; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 31px; font-weight: 850; letter-spacing: -1.7px; }
.brand-period { color: var(--purple); }
.brand-symbol { width: 67px; height: 42px; flex-shrink: 0; object-fit: contain; }
nav { display: flex; align-items: center; gap: 38px; font-size: 15.5px; font-weight: 650; letter-spacing: -.3px; }
.nav-link { padding: 6px 2px; color: var(--ink); transition: color .18s ease; }
.nav-link:hover { color: var(--purple); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--ink); border-radius: 99px; padding: 2px; background: #fff; box-shadow: 2px 2px 0 var(--ink); font-size: 11.5px; font-weight: 750; letter-spacing: 0; }
.lang-option { padding: 4px 9px; border-radius: 99px; color: #6e6875; line-height: 1.2; transition: background .18s ease, color .18s ease; }
.lang-option:hover { color: var(--ink); }
.lang-option.active { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); }
.contact-link { border: 1px solid var(--ink); border-radius: 99px; padding: 12px 18px; background: var(--ink); color: white; transition: background .2s, color .2s; }
.contact-link span { margin-left: 16px; }
.contact-link:hover { background: var(--lime); color: var(--ink); }
.intro { padding: 36px 0 32px; position: relative; }
.eyebrow { display: flex; gap: 9px; align-items: center; font-size: 10px; letter-spacing: 1.7px; font-weight: 650; margin-bottom: 18px; color: #615c6a; }
.eyebrow > span { width: 8px; height: 8px; background: var(--pink); border: 1px solid var(--ink); transform: rotate(-12deg); }
h1 { font-size: clamp(38px, 4.8vw, 70px); font-weight: 800; line-height: 1.23; letter-spacing: -3.7px; word-break: keep-all; white-space: nowrap; }
.intro-lead { white-space: nowrap; }
.intro-accent { display: inline-block; white-space: nowrap; color: var(--purple); position: relative; isolation: isolate; }
.intro-accent::after { content: ""; position: absolute; left: -2px; right: -5px; bottom: 2px; height: .23em; background: var(--lime); transform: rotate(-1deg); z-index: -1; }
.intro-asterisk { display: inline-block; color: var(--pink); font-size: .7em; vertical-align: baseline; margin-left: 16px; margin-top: 0; font-weight: 400; }
.projects-header { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #19181e25; padding: 16px 0; }
.projects-header h2 { font-size: 18px; font-weight: 750; letter-spacing: -.5px; display: flex; gap: 10px; align-items: center; }
.projects-header h2 > span { font-size: 10px; border: 1px solid var(--ink); border-radius: 99px; padding: 3px 8px; background: var(--ink); color: var(--lime); letter-spacing: 0; font-weight: 600; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden; background: #fff; transition: transform .22s ease, box-shadow .22s ease; box-shadow: 0 3px 0 #19181e; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 0 var(--ink); }
.project-visual { position: relative; height: 286px; overflow: hidden; border-bottom: 1.5px solid var(--ink); isolation: isolate; }
.toe-visual { background: var(--mint); }
.immy-visual { background: var(--purple); color: white; }
.shashak-visual { background: var(--peach); color: var(--ink); }
.visual-top, .visual-bottom { position: absolute; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.visual-top { top: 18px; font-size: 9px; letter-spacing: 1.4px; font-weight: 650; }
.platform-pill { font-size: 10px; letter-spacing: 0; color: var(--ink); padding: 5px 10px; background: #fff; border: 1px solid var(--ink); border-radius: 99px; font-weight: 600; }
.immy-visual .platform-pill { background: var(--lime); }
.shashak-visual .platform-pill { background: #fff9f0; }
.visual-bottom { bottom: 18px; font-size: 8px; letter-spacing: 1.1px; }
.visual-bottom > span:last-child { font-size: 10px; letter-spacing: 0; }
.app-icon { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%) rotate(-7deg); z-index: 3; border-radius: 26px; box-shadow: 5px 6px 0 #19181e; overflow: hidden; border: 3px solid white; transition: transform .3s ease; }
.app-icon picture, .app-icon img { display: block; height: 100%; width: 100%; object-fit: cover; }
.toe-card:hover .app-icon { transform: translate(-50%, -54%) rotate(-3deg); }
.immy-card:hover .app-icon { transform: translate(-50%, -54%) rotate(3deg); }
.shashak-card:hover .app-icon { transform: translate(-50%, -54%) rotate(-2deg); }
.toe-orbit, .shashak-orbit { position: absolute; width: 224px; height: 224px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #193f333d; border-radius: 50%; }
.toe-orbit:after, .shashak-orbit:after { content: ""; position: absolute; inset: 20px; border: 1px solid #193f332d; border-radius: 50%; }
.shashak-orbit { border-color: rgba(84, 42, 14, 0.22); }
.shashak-orbit:after { border-color: rgba(84, 42, 14, 0.14); }
.study-note { position: absolute; z-index: 2; display: grid; grid-template-columns: 20px 1fr; align-items: center; column-gap: 5px; background: var(--pink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 11px; padding: 9px 12px; font-size: 13.5px; font-weight: 750; letter-spacing: -.4px; line-height: 1.25; }
.study-note > span { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; font-size: 19px; font-weight: 400; }
.study-note small { font-size: 7px; letter-spacing: 0.8px; margin-top: 3px; font-weight: 600; }
.listening-note { left: 16px; top: 64px; transform: rotate(-8deg); }
.reading-note { right: 14px; bottom: 50px; transform: rotate(8deg); background: var(--lime); }
.toe-spark, .shashak-spark { position: absolute; color: #194838; }
.shashak-spark { color: #6e320c; }
.spark-one, .spark-acorn-one { font-size: 28px; top: 58px; right: 54px; transform: rotate(10deg); }
.spark-two, .spark-acorn-two { font-size: 36px; bottom: 52px; left: 54px; line-height: 1; }
.immy-icon { transform: translate(-50%, -50%) rotate(7deg); }
.shashak-icon { transform: translate(-50%, -50%) rotate(-5deg); }
.map-path { position: absolute; width: 100%; height: 100%; inset: 0; opacity: .6; }
.map-path path { stroke: #e7ddff; stroke-width: 2; }
.map-path circle { fill: #e7ddff; }
.place-pill, .routine-pill { position: absolute; display: flex; align-items: center; gap: 6px; z-index: 2; border-radius: 99px; background: #fff; border: 1.5px solid var(--ink); padding: 8px 13px; font-size: 11.5px; font-weight: 650; letter-spacing: -.3px; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.place-mood, .routine-today { left: 16px; top: 66px; transform: rotate(-8deg); }
.place-pin, .routine-reward { right: 14px; bottom: 50px; background: var(--lime); transform: rotate(6deg); }
.immy-spark { position: absolute; right: 54px; top: 58px; font-size: 32px; color: var(--pink); }
.project-copy { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.project-name { display: flex; align-items: center; justify-content: space-between; }
.project-name h3 { font-size: 29px; font-weight: 800; letter-spacing: -1.2px; }
.project-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); background: var(--lime); font-size: 21px; font-weight: 400; transition: transform .2s; }
.immy-card .project-arrow { background: var(--pink); }
.shashak-card .project-arrow { background: var(--peach); }
.project-card:hover .project-arrow { transform: rotate(8deg); }
.project-subtitle { font-size: 14.5px; font-weight: 650; margin-top: 8px; letter-spacing: -.3px; }
.project-description { font-size: 12.5px; color: #6e6875; margin-top: 6px; line-height: 1.8; flex: 1; }
.project-bottom { border-top: 1px solid #19181e1a; padding-top: 14px; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags > span { font-size: 10px; color: #295844; background: #e0faef; padding: 5px 8px; border-radius: 5px; line-height: 1.4; }
.immy-card .tags > span { color: #5934ad; background: #f0e9ff; }
.shashak-card .tags > span { color: #7a3b10; background: #fff0e3; }
.project-cta { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 650; white-space: nowrap; }
footer { border-top: 1px solid #19181e25; margin-top: 36px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 11px; color: #6e6875; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
footer a { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
footer a:hover { color: var(--purple); }
#projects { scroll-margin-top: 26px; }
@media (min-width: 1450px) { .intro { padding-top: 44px; } }
@media (max-width: 1080px) {
  .page-shell { width: calc(100% - 56px); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-visual { height: 280px; }
  .app-icon { width: 108px; height: 108px; border-radius: 25px; }
}
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  header { height: 72px; }
  .brand { font-size: 24px; gap: 8px; letter-spacing: -1.4px; }
  .brand-symbol { width: 50px; height: 32px; }
  nav { gap: 11px; font-size: 11px; }
  .lang-switch { font-size: 9.5px; padding: 1.5px; box-shadow: 1.5px 1.5px 0 var(--ink); }
  .lang-option { padding: 2.5px 6px; }
  .contact-link { padding: 10px 13px; }
  .contact-link span { margin-left: 8px; }
  .intro { padding: 28px 0 26px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 16px; }
  h1 { font-size: clamp(34px, 7.6vw, 50px); letter-spacing: -2.2px; white-space: normal; }
  .intro-asterisk { font-size: .7em; margin-left: 10px; margin-top: 0; }
  .projects-header { padding-block: 15px; }
  .projects-header h2 { font-size: 16px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-visual { height: 290px; }
  .visual-top, .visual-bottom { left: 22px; right: 22px; }
  .app-icon { width: 118px; height: 118px; border-radius: 28px; }
  .listening-note { left: 22px; top: 96px; font-size: 14px; }
  .reading-note { right: 20px; bottom: 52px; font-size: 14px; }
  .place-mood { left: 24px; top: 86px; font-size: 12px; }
  .routine-today { left: 16px; top: 56px; font-size: 11.5px; }
  .place-pin, .routine-reward { right: 20px; bottom: 50px; font-size: 12px; }
  .spark-one, .spark-acorn-one { right: 68px; }
  .spark-two, .spark-acorn-two { left: 70px; }
  .immy-spark { right: 64px; }
  .project-copy { padding: 18px 24px; }
  .project-name h3 { font-size: 30px; }
  .project-subtitle { font-size: 14px; }
  .project-description { font-size: 12px; }
  .project-bottom { align-items: center; flex-wrap: nowrap; }
  .project-cta { font-size: 10px; }
  .tags > span { font-size: 9px; }
  footer { margin-top: 26px; min-height: 76px; justify-content: space-between; gap: 12px; font-size: 10px; }
  footer a { gap: 6px; }
}
@media (max-width: 380px) {
  .page-shell { width: calc(100% - 32px); }
  .brand { font-size: 21px; gap: 6px; letter-spacing: -1.2px; }
  .brand-symbol { width: 42px; height: 27px; }
  nav { gap: 8px; font-size: 10px; }
  .lang-switch { font-size: 9px; padding: 1px; }
  .lang-option { padding: 2px 5px; }
  .project-copy { padding: 18px 20px; }
  .project-visual { height: 270px; }
  .app-icon { width: 110px; height: 110px; }
  .listening-note { left: 14px; font-size: 13px; padding: 9px; }
  .reading-note { right: 13px; font-size: 13px; padding: 9px; }
  .place-mood, .routine-today { left: 16px; font-size: 11px; }
  .place-pin, .routine-reward { right: 14px; font-size: 11px; }
  .project-bottom { gap: 8px; }
  .tags { gap: 5px; }
  .tags > span { font-size: 8px; padding: 5px 7px; }
  .intro-asterisk { margin-left: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .project-card:hover, .project-card:hover .project-arrow { transform: none; }
  .toe-card:hover .app-icon { transform: translate(-50%, -50%) rotate(-7deg); }
  .immy-card:hover .app-icon { transform: translate(-50%, -50%) rotate(7deg); }
  .shashak-card:hover .app-icon { transform: translate(-50%, -50%) rotate(-5deg); }
}

/* English typography adjustments */
:lang(en) p { word-break: normal; line-height: 1.72; }
:lang(en) h1 { font-size: clamp(32px, 4.1vw, 58px); letter-spacing: -2px; line-height: 1.2; white-space: normal; }
@media (max-width: 700px) {
  :lang(en) h1 { font-size: clamp(27px, 6.8vw, 42px); letter-spacing: -1.4px; }
  :lang(en) .routine-today, :lang(en) .place-mood { left: 16px; top: 56px; font-size: 11px; }
  :lang(en) .routine-reward, :lang(en) .place-pin { right: 16px; bottom: 48px; font-size: 11px; }
}

/* FAQ and error page, using the existing palette. */
.faq { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.section-label { color: var(--purple); font-size: 10px; letter-spacing: 1.5px; font-weight: 750; margin-bottom: 12px; }
.faq h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -1px; line-height: 1.4; word-break: keep-all; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.faq details { border-bottom: 1px solid var(--ink); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.6; }
.faq summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
.faq details p { max-width: 780px; margin-top: 12px; font-size: 14px; }
.faq details p a { text-decoration: underline; overflow-wrap: anywhere; }
.not-found { min-height: 100dvh; padding-block: 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.not-found h1 { white-space: normal; font-size: clamp(30px, 5vw, 54px); letter-spacing: -1.5px; }
.not-found .section-label { margin: 16px 0 0; }
@media (max-width: 700px) {
  .faq { margin-top: 32px; padding-top: 24px; }
}
