/* 메인 홈 스타일 — 폰 런처 히어로 + 대표작 + 전체 작품 목록 (공통 뼈대는 base.css) */

/* Hero: the portfolio as a phone home screen */
.hero { background: var(--gradient-hero); }
.stage { min-height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(32px, 4vw, 64px); padding-top: 90px; padding-bottom: 50px; }
.say h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); letter-spacing: -0.05em; line-height: 1.06; margin: 0 0 20px; font-weight: 850; }
.say p { font-size: 1.12rem; color: var(--text); margin: 0 0 28px; }
.side { align-self: end; padding-bottom: 70px; color: var(--text); font-weight: 600; line-height: 1.8; }
.side b { color: var(--ink); }

.phone { width: 390px; height: 800px; border-radius: 56px; padding: 12px; background: var(--phone); box-shadow: var(--shadow-phone); }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; color: var(--white); display: flex; flex-direction: column;
  background: var(--gradient-wallpaper); }
.status { display: flex; justify-content: space-between; padding: 16px 30px 0; font-weight: 700; font-size: 0.9rem; }
.widget { margin: 20px 20px 4px; padding: 16px 18px; border-radius: 24px; background: color-mix(in srgb, var(--white) 16%, transparent); backdrop-filter: blur(16px); display: flex; justify-content: space-between; align-items: end; }
.widget .lbl { font-size: 0.85rem; font-weight: 600; opacity: 0.9; }
.widget .big { font-size: 2.6rem; font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.widget .big small { font-size: 1rem; opacity: 0.75; font-weight: 700; }
.widget .who { text-align: right; font-weight: 800; font-size: 1.05rem; }
.widget .who span { display: block; font-size: 0.78rem; opacity: 0.85; font-weight: 600; }

.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 14px 16px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--white); font: inherit; cursor: pointer; padding: 0; animation: pop 0.5s backwards cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.app span { font-size: 0.74rem; font-weight: 600; max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--shadow-text); }
.app:hover .ic { transform: translateY(-3px); }
.app:active .ic { transform: scale(0.9); }
.folder .ic { background: color-mix(in srgb, var(--white) 22%, transparent); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: stretch; gap: 4px; padding: 10px; }
.folder .ic i { border-radius: 4px; background: var(--c); }
.dock { margin: auto 14px 14px; display: flex; justify-content: space-around; padding: 12px; border-radius: 30px; background: color-mix(in srgb, var(--white) 20%, transparent); backdrop-filter: blur(18px); }
.dock a { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; text-decoration: none; }
.dock svg { width: 28px; height: 28px; }
.dock .d-kakao { background: var(--kakao); color: var(--kakao-ink); }
.dock .d-mail { background: var(--white); color: var(--blue); }
.dock .d-me { background: var(--ink); color: var(--white); }

/* App sheet */
.sheet { position: absolute; inset: 0; z-index: 5; display: grid; align-items: end; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
.sheet.open { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
.sheet .card { background: var(--white); color: var(--ink); border-radius: 30px 30px 0 0; padding: 10px 20px 24px; transform: translateY(100%); transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1); max-height: 88%; overflow: auto; }
.sheet.open .card { transform: none; }
.grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; border: 0; padding: 0; cursor: pointer; }
.sheet img { width: 100%; height: auto; border-radius: 14px; display: block; aspect-ratio: 1100 / 773; object-fit: cover; object-position: top; background: var(--c); }
.sheet .head { display: flex; gap: 12px; align-items: center; margin: 14px 0 4px; }
.sheet .head .ic { width: 48px; height: 48px; font-size: 1.15rem; border-radius: 14px; flex: none; }
.sheet h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; }
.sheet .host { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.sheet .pain { font-weight: 800; color: var(--c); margin: 10px 0 4px; }
.sheet p.d { font-size: 0.93rem; color: var(--text); margin: 0 0 16px; }
.sheet .acts { display: grid; gap: 8px; }
.sheet .old { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.sheet .old .ic { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; flex: none; }
.sheet .old b { display: block; font-size: 1rem; }
.sheet .old span { font-size: 0.85rem; color: var(--muted); }

/* Sections */
.sec { padding: clamp(64px, 10vw, 120px) 0 0; }
.sec h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.1; margin: 0 0 10px; }
.sec .sub { color: var(--muted); margin: 0 0 clamp(32px, 5vw, 56px); font-size: 1.08rem; max-width: 40em; }

.feat { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(56px, 8vw, 100px); }
.feat:nth-child(even) .shot { order: 2; }
.shot { display: block; border-radius: 24px; background: var(--c); padding: clamp(14px, 2.4vw, 28px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-shot); }
.feat .host { display: inline-flex; align-items: center; font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.feat .host .dot { animation: none; }
.feat h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.045em; margin: 8px 0 12px; line-height: 1.05; }
.feat .pain { font-size: 1.15rem; font-weight: 800; color: var(--c); margin: 0 0 10px; }
.feat p.d { color: var(--text); margin: 0 0 18px; }
.feat ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text); font-size: 0.95rem; }
.feat li { display: flex; gap: 10px; }
.feat li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: 0.62em; }
.feat .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { font: inherit; font-weight: 700; border: 0; background: var(--white); color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.index { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 18px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.15s; }
.row .th { width: 76px; height: auto; aspect-ratio: 1100 / 773; border-radius: 8px; background: var(--c); object-fit: cover; object-position: top; display: block; }
.row strong { font-size: 1.2rem; letter-spacing: -0.03em; display: block; line-height: 1.3; }
.row small { color: var(--muted); font-weight: 600; }
.row .p { color: var(--muted); }
.row .st { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.row .st.on { color: var(--live-ink); }
a.row:hover { background: var(--hover); }

.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc article { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: inset 0 0 0 1.5px var(--line); }
.svc h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.03em; }
.svc p { margin: 0 0 12px; color: var(--text); font-size: 0.95rem; }
.svc .eg { color: var(--muted); font-size: 0.88rem; margin: 0; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.why h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.03em; }
.why p { margin: 0; color: var(--text); }
.why em { font-style: normal; font-weight: 800; color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 64px); border-top: 2px solid var(--ink); }
.stats div { padding: 20px 4px 0; }
.stats b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; }
.stats span { color: var(--muted); font-weight: 600; }

@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; padding: 72px 0 0; gap: 0; min-height: 0; }
  .say { padding: 12px clamp(16px, 5vw, 56px) 24px; }
  .say h1 { font-size: clamp(2.2rem, 8.6vw, 3.2rem); }
  .say p { font-size: 1rem; margin-bottom: 0; }
  .say .btn, .side { display: none; }
  .phone { width: 100%; height: auto; min-height: 100svh; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .screen { border-radius: 0; min-height: 100svh; }
  .sheet { position: fixed; }
  .sheet .card { max-height: 86svh; max-width: 560px; width: 100%; margin: 0 auto; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .feat { grid-template-columns: 1fr; }
  .feat:nth-child(even) .shot { order: 0; }
  .row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; }
  .row .th { width: 64px; }
  .row .p { display: none; }
  .svc, .why { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .app, .dot { animation: none; }
  .sheet, .sheet .card { transition: none; }
}
