/**
 * 포트폴리오 전역 CSS
 * - 히어로 한글: Pretendard
 * - 나머지(카츠왕과 같음): Paperozi / Paperlogy
 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-hero: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-body: "Paperozi", sans-serif;
  --font-en: "Paperozi", sans-serif;
  --font-display: "Paperozi", sans-serif;
  --color-primary-border-hover: rgba(195, 192, 255, 0.45);
}

html,
body,
input,
textarea,
button,
select,
label,
p,
li,
h1,
h2,
h3 {
  font-family: var(--font-body);
}

h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

#hero,
#hero p,
#hero span,
#hero a,
#hero .font-label-caps,
#hero .hero-sub {
  font-family: var(--font-hero);
}

#hero svg .drawing-text {
  font-family: "Paperozi", var(--font-hero);
}

/* 라벨·배지·폼 라벨 등 한글 UI — Pretendard (Stitch 기본은 JetBrains Mono) */
.font-label-caps,
.text-label-caps {
  font-family: var(--font-body) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#hero .font-label-caps,
#hero .text-label-caps,
#hero .hero-sub {
  font-family: var(--font-hero) !important;
}

/* 영문 소요소만 Paperozi — 작은 글 3, 조금 큰 영문 5 (히어로 제목 제외) */
.en {
  font-family: var(--font-en);
}

.en.text-\[10px\],
.en.text-xs,
.en.text-sm,
.tag-en,
.stack-en {
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* 스택: 아이콘·글자 원크기, 칸만 내용 너비로 가운데 정렬 */
#stack .stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
#stack .glass-card {
  flex: 0 0 auto;
  width: 7.25rem;
  padding: 1.5rem 0.7rem 1.25rem;
  box-sizing: border-box;
}
#stack .stack-en {
  white-space: nowrap;
}
#stack .stack-icon-logo {
  font-size: 2.75rem;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
}

.en.text-base,
.en.text-lg {
  font-weight: 500;
}

/* Stitch 히어로 stagger 영문 */
.stagger-reveal .en {
  font-family: var(--font-en);
  font-weight: 500;
}

/* SVG 드로잉 헤드라인 — 한 줄 For Your Success (좁은 viewBox로 폰에서도 크게) */
.hero-draw-svg {
  overflow: visible;
}
svg .drawing-text.draw-text-style {
  font-family: var(--font-en), var(--font-body);
  font-size: 72px;
  font-weight: 600;
}

/* 히어로 풀배경 */
.hero-photo {
  background: url("/portfolio-stitch/assets/hero-bg-03.jpg?v=20260916-hero03") center/cover no-repeat;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero-photo-veil {
  background:
    linear-gradient(180deg, rgba(18, 19, 21, 0.42) 0%, rgba(18, 19, 21, 0.62) 48%, rgba(18, 19, 21, 0.92) 100%),
    radial-gradient(ellipse at 50% 38%, rgba(18, 19, 21, 0.15), rgba(18, 19, 21, 0.7));
}
@keyframes heroKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.24) translate3d(-4%, -3.2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; transform: none; }
  .hero-video { display: none; }
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid rgba(227, 226, 227, 0.16);
  color: #e3e2e3;
}
.lang-btn--on {
  background: #c3c0ff;
  color: #1a1733;
  border-color: transparent;
}

/* 히어로 서브 — 제목과 대비 (2줄, 모바일 더 큼) */
.hero-sub {
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 500;
  color: #e3e2e3;
}
@media (min-width: 768px) {
  .hero-sub {
    font-size: 1.375rem;
    line-height: 1.7;
  }
}

.work-shot {
  position: relative;
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work-shot-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 13, 15, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-shot-veil span {
  color: #e3e2e3;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(227, 226, 227, 0.35);
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
}
@media (hover: hover) {
  .portfolio-card:hover .work-shot-veil {
    opacity: 1;
  }
}

.process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .process-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.process-item {
  text-align: center;
  padding: 1.25rem 0.9rem;
}
.process-item .num {
  display: block;
  color: #c3c0ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

/* 한 섹션 · 세 줄 · 줄마다 풀블리드 배경 */
#experience.offer-block {
  background: #121315;
  padding: 0 0 2.5rem;
  scroll-margin-top: 4.5rem;
}
#work,
#process,
#contact {
  scroll-margin-top: 4.5rem;
}
.offer-intro {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.25rem 1.25rem 2rem;
  text-align: center;
}
.offer-intro h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.03em;
}
@media (min-width: 768px) {
  .offer-intro h2 {
    font-size: 1.65rem;
  }
}
.offer-rows {
  display: flex;
  flex-direction: column;
}
.offer-row {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .offer-row {
    min-height: 40rem;
  }
}
.offer-row-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.offer-row-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 21, 0.86) 0%, rgba(18, 19, 21, 0.58) 48%, rgba(18, 19, 21, 0.38) 100%);
}
.offer-row--flip .offer-row-veil {
  background:
    linear-gradient(270deg, rgba(18, 19, 21, 0.86) 0%, rgba(18, 19, 21, 0.58) 48%, rgba(18, 19, 21, 0.38) 100%);
}
.offer-row-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.offer-copy {
  max-width: 32rem;
  padding: 0;
  border: none;
  background: none;
}
.offer-row--flip .offer-copy {
  margin-left: auto;
}
.offer-kicker {
  display: inline-block;
  color: #c3c0ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.offer-copy h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin: 0.55rem 0 0.9rem;
}
@media (min-width: 768px) {
  .offer-copy h3 {
    font-size: 1.7rem;
  }
}
.offer-accent {
  color: #c3c0ff;
}
.offer-copy p {
  color: rgba(227, 226, 227, 0.78);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 0.35rem;
}
.offer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.offer-live {
  color: #c3c0ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.offer-live:hover {
  text-decoration: underline;
}

/* 작업물 카드 hover (Stitch .interactive-card 인라인 스타일은 덮어쓰지 않음) */
@media (hover: hover) {
  .portfolio-card,
  #work .glass-card,
  #work .group.rounded-2xl {
    transition:
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .portfolio-card:hover,
  #work .glass-card:hover,
  #work .group.rounded-2xl:hover {
    transform: scale(1.05) !important;
    border-color: var(--color-primary-border-hover) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 12px 40px rgba(99, 91, 255, 0.12);
  }
}

.contact-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
}
.contact-submit {
  flex: 1 1 auto;
  min-width: 0;
}
.contact-kakao {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 0.95rem;
  border-radius: 0.75rem;
  background: #fae100;
  color: #3c1e1e;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.contact-kakao:hover {
  filter: brightness(0.96);
}

.site-footer {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.footer-biz {
  margin: 0;
  padding: 0;
  color: rgba(227, 226, 227, 0.45);
  font-size: 0.72rem;
  line-height: 1.55;
  font-weight: 400;
}

