/* v5: app-showcase portfolio. Light, icon-first, mobile-first. */
:root {
  --bg: #ffffff;
  --card: #f5f5f7;
  --card-hover: #ececf0;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --blue: #0a66e8;
  --radius-ic: 22.37%;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
body.sheet-open { overflow: hidden; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.bar b { font-size: 17px; font-weight: 700; }
.bar nav { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

/* intro */
.intro { padding: 36px 0 20px; }
.intro .wrap { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: center; }
.me { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--card); }
.intro h1 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.intro .lead { margin: 6px 0 0; font-size: 19px; color: var(--ink-2); }
.intro .meta { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intro .acts { grid-column: 2; margin-top: -10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--fill { background: var(--blue); color: #fff; }
.btn--fill:hover { background: #0857c7; }
.btn--line { background: var(--card); color: var(--blue); }
.btn--line:hover { background: var(--card-hover); }
.btn--todo { background: #fff; color: var(--muted); border: 1px dashed #b9b9c0; cursor: default; font-weight: 500; }
.btn--todo small { font-size: 12px; color: #a1a1a8; font-weight: 500; }

/* sections and filters */
.sec { padding: 22px 0 8px; }
.sec h2 { margin: 0 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.sec h2 span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.count { margin: 0 0 8px; font-size: 15px; color: var(--muted); }

/* featured */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: background-color .15s ease, transform .15s ease; }
.fcard:hover { background: var(--card-hover); }
.fcard:active { transform: scale(.99); }
.fcard__shot { height: 170px; overflow: hidden; background: #dfe3ea; }
.fcard__shot img { width: 100%; height: 100%; object-fit: cover; }
.fcard__shot--phones { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 22px 22px 0; background: linear-gradient(180deg, #e6efff, #f5f5f7); }
.fcard__shot--phones img { width: 30%; height: auto; border-radius: 14px 14px 0 0; box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.fcard__body { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 20px 20px; }
.fcard__body .ic { width: 72px; height: 72px; }
.fcard h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.fcard p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.fcard .num { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* icon cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; background: var(--card); border-radius: 18px; text-decoration: none; color: inherit; transition: background-color .15s ease, transform .15s ease; }
.card:hover { background: var(--card-hover); }
.card:active { transform: scale(.985); }
.card .ic { width: 64px; height: 64px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.card p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ic { border-radius: var(--radius-ic); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .08), 0 1px 2px rgb(0 0 0 / .06); object-fit: cover; background: #fff; flex: none; }

/* footer */
.foot { margin-top: 40px; padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* detail sheet */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; }
.sheet.is-open { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .32); }
.sheet__panel { position: absolute; left: 50%; top: 40px; bottom: 40px; width: min(860px, 100% - 48px); transform: translateX(-50%); background: #fff; border-radius: 24px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 80px rgb(0 0 0 / .22); }
.sheet__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink-2); font: 600 20px/1 var(--font); cursor: pointer; z-index: 2; }
.sheet__close:hover { background: var(--card-hover); }
.app { padding: 32px 36px 40px; }
.app[hidden] { display: none; }
.app__head { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px; align-items: center; }
.app__head .ic { width: 128px; height: 128px; }
.app__head h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.app__head .sub { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.app__head .acts { grid-column: 2; margin-top: -8px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0; padding: 14px 0; border-block: 1px solid var(--line); }
.facts div { padding: 0 12px; text-align: center; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.facts dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.shots { display: flex; gap: 12px; margin: 24px -36px 0; padding: 0 36px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 36px; scrollbar-width: thin; }
.shots figure { flex: none; margin: 0; scroll-snap-align: start; }
.shots img, .shots video { display: block; height: 400px; width: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.shots video { height: auto; width: min(640px, calc(100vw - 96px)); background: #111; }
.shots figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 46ch; }
.shots a { text-decoration: none; }
.vid__box { position: relative; }
.vid__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat; }
.vid__play:hover { background-color: rgb(0 0 0 / .7); }
.vid.is-playing .vid__play { display: none; }
.shots .todo { display: grid; place-items: center; width: 260px; height: 400px; border: 1px dashed #b9b9c0; border-radius: 16px; color: var(--muted); font-size: 15px; text-align: center; padding: 20px; background: #fafafa; }
.app h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 800; }
.app p { margin: 0; font-size: 16px; color: var(--ink-2); }
.app ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.app li { margin: 4px 0; }
.app li b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--card); font-size: 14px; color: var(--ink-2); }
.note { margin-top: 10px !important; font-size: 14px !important; color: var(--muted) !important; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .bar nav { gap: 14px; }
  .intro { padding: 28px 0 18px; }
  .intro .wrap { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
  .me { width: 76px; height: 76px; }
  .intro h1 { font-size: 28px; }
  .intro .lead { font-size: 17px; }
  .intro .acts { grid-column: 1 / -1; margin-top: 2px; }
  .intro .btn { padding: 0 16px; }
  .feat { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .fcard { scroll-snap-align: start; }
  .fcard__shot { height: 150px; }
  .fcard__body { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; }
  .fcard__body .ic { width: 60px; height: 60px; }
  .fcard h3 { font-size: 17px; }
  .fcard p { font-size: 14px; }
  .sec { padding: 16px 0 6px; }
  .sec h2 { font-size: 22px; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 8px; padding: 0; background: none; }
  .card:hover { background: none; }
  .card .ic { width: 72px; height: 72px; }
  .card h3 { font-size: 14px; }
  .card p { font-size: 12px; color: var(--muted); }
  .sheet__panel { left: 0; right: 0; top: 24px; bottom: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; }
  .app { padding: 22px 18px 36px; }
  .app__head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  .app__head .ic { width: 96px; height: 96px; }
  .app__head h2 { font-size: 22px; }
  .app__head .sub { font-size: 15px; }
  .app__head .acts { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .facts div:nth-child(3) { border-left: 0; }
  .shots { margin: 20px -18px 0; padding: 0 18px 6px; scroll-padding-inline: 18px; }
  .shots img { height: 340px; }
  .shots video { width: calc(100vw - 52px); }
  .shots .todo { width: 220px; height: 340px; }
}
@media (max-width: 400px) {
  .btn--todo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .fcard { transition: none; }
}
