/* ==========================================================================
   qwer.pw — QWER project hub
   The ivLis STUDIO design language (ivlis.kr): white page, flat colours, bold Pretendard type,
   Toss-style pills and cards, springy motion. A small landing that points to each QWER thing.
   ========================================================================== */

:root {
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b; --grey900: #191f28;
  --blue50: #e8f3ff; --blue100: #c9e2ff; --blue300: #64a8ff; --blue500: #3182f6; --blue550: #2170e8; --blue700: #1b64da;
  --green50: #e9f9f1; --green500: #03b26c; --green700: #027a4a;
  --yellow500: #ffc342; --mint: #3fd3a8;

  --f: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --gutter: clamp(20px, 5vw, 72px); --maxw: 1080px;
  --r-xl: 32px; --r-l: 24px;
  --shadow-l: 0 34px 80px rgba(2, 32, 71, .17);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); --bounce: cubic-bezier(.34, 1.8, .64, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.05, 0.173, 0.335, 0.51 10%, 0.676, 0.821, 0.938, 1.025 20%, 1.083, 1.115, 1.126, 1.122 30%, 1.108, 1.088, 1.066, 1.045 40%, 1.026, 1.01, 0.999, 0.991 50%, 0.986, 0.984, 0.984, 0.986 60%, 0.988, 0.991, 0.994, 0.996 70%, 0.998, 1, 1.001, 1.002 80%, 1.002, 1.001, 1);
    --bounce: linear(0, 0.041, 0.15, 0.305, 0.485 8.3%, 0.671, 0.848, 1.002, 1.126 16.7%, 1.217, 1.273, 1.296, 1.292 25%, 1.265, 1.223, 1.171, 1.115 33.3%, 1.062, 1.013, 0.973, 0.943 41.7%, 0.923, 0.913, 0.912, 0.918 50%, 0.929, 0.944, 0.96, 0.977 58.3%, 0.992, 1.004, 1.014, 1.021 66.7%, 1.025, 1.026, 1.025, 1.022 75%, 1.018, 1.013, 1.008, 1.004 83.3%, 1, 0.997, 0.994, 0.993 91.7%, 0.992, 0.993, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; color: var(--grey900); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; overflow-x: clip; }
body { min-height: 100vh; min-height: 100dvh; font-family: var(--f); font-size: 17px; line-height: 1.6; word-break: keep-all; -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
::selection { background: var(--blue100); color: var(--grey900); }
:focus-visible { outline: 3px solid var(--blue300); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 12px; background: var(--grey900); color: #fff; font-weight: 700; transition: top .3s var(--ease-out); }
.skip:focus { top: calc(16px + var(--sat)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { flex: 1; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: calc(48px + var(--sat)) var(--gutter) 40px; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- brand mark */
.mark { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.mark__logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grey900); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.mark__txt { font-size: 20px; letter-spacing: -.03em; }
.mark__txt b { font-weight: 800; }
.mark__txt span { color: var(--grey600); font-weight: 600; }

/* ---------------------------------------------------------------- hero copy */
.hero { margin: clamp(40px, 9vh, 96px) 0 clamp(32px, 5vh, 56px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--grey100); color: var(--grey800); font-size: 15px; font-weight: 700; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue500); }
.hero__title { margin: 20px 0 18px; font-size: clamp(52px, 9vw, 128px); font-weight: 800; line-height: .98; letter-spacing: -.05em; }
.js .hero__title .w { display: inline-block; animation: wordIn 1s var(--bounce) both; animation-delay: var(--d, 0s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%) scale(.6) rotate(-6deg); } }
.hero__title .pop { position: relative; z-index: 0; padding: 0 .1em; }
.hero__title .pop::before { content: ''; position: absolute; z-index: -1; inset: .08em -.02em .04em; border-radius: .22em; background: var(--yellow500); transform: rotate(-3deg); }
.hero__sub { max-width: 30em; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--grey700); line-height: 1.5; }

/* ---------------------------------------------------------------- project cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.js .card { opacity: 0; transform: translateY(30px) scale(.97); animation: cardIn .9s var(--spring) forwards; animation-delay: var(--d, 0s); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: clamp(26px, 3vw, 38px); border-radius: var(--r-xl); background: var(--grey100); overflow: hidden; transition: transform .6s var(--bounce), box-shadow .3s, background-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card:active { transform: translateY(-1px) scale(.99); transition-duration: .12s; }
.card--blue { background: var(--blue550); color: #fff; }
.card--dark { background: var(--grey900); color: #fff; }
.card__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; margin-bottom: auto; }
.card--plain .card__ic { background: #fff; color: var(--grey900); }
.card__ic svg { width: 30px; height: 30px; }
.card__label { margin-top: 24px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .8; }
.card__title { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.card__desc { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--grey700); }
.card--blue .card__desc, .card--dark .card__desc { color: rgba(255, 255, 255, .85); }
.card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.card__go svg { width: 20px; height: 20px; transition: transform .6s var(--bounce); }
.card:hover .card__go svg { transform: translateX(4px); }
.card__badge { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--grey900); font-size: 12px; font-weight: 800; }
.card--blue .card__badge { background: #fff; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 28px var(--gutter) calc(36px + var(--sab)); border-top: 1px solid var(--grey200); font-size: 14px; color: var(--grey600); }
.foot__in { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.foot__links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--grey900); }

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .card, .js .hero__title .w { opacity: 1; transform: none; animation: none; }
}
