/* ═══════════════════════════════════════════════════════════
   Syed Moinuddin 포트폴리오 클론 — 원본 계산값 기반 스타일
   (기획서 §2 디자인 토큰 / §4 애니메이션 명세 그대로)
   ═══════════════════════════════════════════════════════════ */

/* ── 폰트 (원본과 동일: Syne 400-800, Mona Sans 200-800 + 폭축) ── */
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: block;
}
/* 원본 Mona Sans는 좁은 컷(≈75% 폭) — wdth 축 가변 폰트로 재현 */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-var-wdth.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 125%;
  font-display: swap;
}
:root { --mona-stretch: 79%; }

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ── 토큰 ── */
:root {
  --bg: #0E1016;
  --bg-deep: #07070A;
  --card: #212531;
  --cream: #E4DED7;
  --cream-80: rgba(228, 222, 215, 0.8);
  --cream-30: rgba(228, 222, 215, 0.3);
  --white: #FFFFFF;
  --muted: #95979D;
  --beam-from: #FFAA40;
  --beam-to: #9C40FF;
  --syne: "Syne", sans-serif;
  --mona: "Mona Sans", sans-serif;
  --container: 1140px;
  --gutter: 63px;
}

/* ── 리셋/전역 ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overscroll-behavior: none; }
body {
  font-family: var(--syne);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--bg);
  scroll-behavior: smooth;
  overscroll-behavior: none;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* 커스텀 스크롤바 (원본: track #0E1016 / thumb #212531) */
body { scrollbar-width: thin; scrollbar-color: var(--card) var(--bg); }
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--card); border-radius: 8px; }

.container { max-width: var(--container); margin: 0 auto; }

/* ═══════════ 프리로더 ═══════════ */
.preloader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  height: 100vh; overflow: hidden;
}
.texts-container {
  width: 500px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  gap: 5px; overflow: hidden;
  font-size: 20px; font-weight: 800; color: var(--cream);
}
.texts-container span { display: inline-block; }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative; z-index: 10;
  height: 85vh;
  padding-top: 101px;
  background: url("../assets/hero.jpg") center / cover no-repeat;
}
@media (min-width: 640px) { .hero { height: 100vh; } }

.hero-nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 40px var(--gutter) 0;
}
.book-btn {
  border: 2px solid var(--cream); border-radius: 6px;
  padding: 8px 16px;
  font-size: 16px; font-weight: 600; color: var(--cream);
}
.nav-links { display: flex; gap: 56px; padding-top: 6px; }
.nav-links a { font-size: 16px; font-weight: 700; color: var(--cream); }

.hero-center {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.hero-name {
  font-family: var(--mona);
  font-stretch: var(--mona-stretch);
  font-weight: 800;
  font-size: 96px; line-height: 0.8em;
  color: var(--cream);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  max-width: 820px;
}
.hero-name .word-mask {
  display: inline-block; overflow: hidden;
  padding-top: 4px;
  margin-right: -8px;
}
.hero-name .word { display: inline-block; will-change: transform; }
.hero-name .word-jake { font-size: 0.34em; font-weight: 700; margin-left: 0.06em; }
.hero-name .word-mask + .word-mask { margin-top: -14px; }

@media (min-width: 1024px) {
  .hero-name { font-size: 215px; line-height: 0.85em; }
  .hero-name .word-mask { margin-right: -36px; }
  .hero-name .word-mask + .word-mask { margin-top: -24px; }
}

.avatar-wrap {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -260px; /* 원본(-146px)은 이름 두 번째 줄을 가렸다 — 이름이 안 가리도록 아바타를 이름 아래로 내림 (사용자 지시) */
  width: 245px; height: 245px;
  border-radius: 32px; overflow: hidden;
  z-index: 2;
}
.avatar { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.avatar-wrap:hover .avatar { filter: grayscale(0); }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 40px;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--gutter);
}
.hero-bio { max-width: 400px; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--cream); }
.hero-bio a { text-decoration: underline; text-underline-offset: 3px; }
.hero-tagline { max-width: 420px; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--cream); }
@media (max-width: 1023px) { .hero-tagline { display: none; } }
@media (max-width: 640px) {
  .hero-bio { font-size: 16px; max-width: 350px; }
}

/* ═══════════ About ═══════════ */
.about { position: relative; z-index: 10; padding: 80px 0 20px; overflow: hidden; }


.i-build {
  font-size: 40px; font-weight: 700;
  line-height: 0.9; letter-spacing: -0.05em;
  color: var(--cream);
  margin-bottom: 40px;
}
@media (min-width: 640px) { .i-build { font-size: 45px; } }
@media (min-width: 768px) { .i-build { font-size: 60px; margin-bottom: 64px; } }
@media (min-width: 1024px) { .i-build { font-size: 80px; } }
.i-build .sw-word { margin-right: 14px; }

.about-columns { display: flex; justify-content: space-between; }
.about-bio { flex: 0 1 717px; max-width: 717px; }
.about-bio p { font-size: 16px; font-weight: 500; line-height: 1.625; letter-spacing: 0.6px; color: var(--cream); margin-bottom: 39px; }
.about-bio p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .about-bio p { font-size: 24px; } }

.about-skills { width: 342px; flex-shrink: 0; padding-top: 0; }
.skill-block { margin-bottom: 32px; }
.skill-block:last-child { margin-bottom: 0; }
.skill-title { font-size: 20px; font-weight: 700; letter-spacing: 0.45px; line-height: 1.8; color: var(--cream); }
.skill-list { font-size: 18px; font-weight: 400; letter-spacing: 0.45px; line-height: 1.5; color: rgba(228, 222, 216, 0.8); }
@media (max-width: 1023px) {
  .about-columns { flex-direction: column; gap: 48px; }
  .about-skills { width: 100%; }
  .skill-title { font-size: 30px; }
}

/* ── Spotify marquee ── */
.songs-band { position: relative; height: 194px; margin-top: 44px; }
.marquee-track {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  display: flex; align-items: center;
  gap: 11px;
  width: max-content; height: 194px;
  animation: marquee 20s linear infinite;
  will-change: left;
}
.marquee-track:hover, .animate:hover { animation-play-state: paused; }
@keyframes marquee { from { left: 0; } to { left: -2529px; } }
.song { display: block; flex: 0 0 auto; width: 270px; }
.song img { width: 270px; height: 190px; object-fit: cover; border-radius: 8px; }
.songs-note {
  margin: 48px auto 0; max-width: 520px; text-align: center; text-transform: uppercase;
  font-size: 14px; font-weight: 700; line-height: 1.65; letter-spacing: 0.02em; color: var(--cream);
}

/* ═══════════ 섹션 대형 타이틀 공통 ═══════════ */
.section-title {
  font-family: var(--mona);
  font-stretch: 73%;
  font-size: 96px; font-weight: 800; line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
}
@media (min-width: 1024px) { .section-title { font-size: 155px; } }
.section-title .sw-word { margin-right: 0.05em; }
.section-title .sw-word:last-child { margin-right: 0; }

/* ═══════════ Projects ═══════════ */
.projects { position: relative; z-index: 10; padding: 160px 0 136px; overflow: hidden; }
.section-sub {
  margin: 16px auto 0; max-width: 545px;
  text-align: center; text-transform: uppercase;
  font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--cream);
}

.cards { max-width: var(--container); margin: 196px auto 0; display: flex; flex-direction: column; gap: 24px; }
.card {
  position: relative; z-index: 10;
  width: 100%; height: 550px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
}
@media (min-width: 640px) { .card { height: 500px; } }

/* 보더 빔 (원본: offset-path rect + 주황→퍼플 그라디언트 100px 광점) */
.beam-layer {
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; overflow: hidden;
  pointer-events: none;
}
.beam {
  position: absolute; top: 50%; left: 50%;
  width: 100px; aspect-ratio: 1; flex: none;
  background: linear-gradient(to left, var(--beam-from), var(--beam-to), transparent);
  offset-path: rect(0px auto auto 0px round 100px);
  offset-distance: 0%;
  animation: beam 6s linear infinite;
}
@keyframes beam { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.beam-layer::after {
  /* 빔이 테두리 2px 링으로만 보이도록 내부를 카드색으로 덮음 */
  content: ""; position: absolute; inset: 2px;
  background: var(--card); border-radius: 22px;
}

.card-inner { position: relative; z-index: 10; height: 100%; padding: 40px 56px; }
.card-text { max-width: 480px; padding-top: 168px; }
.card-title { font-size: 40px; font-weight: 700; line-height: 1; color: var(--white); }
@media (min-width: 768px) { .card-title { font-size: 44px; } }
@media (min-width: 1024px) { .card-title { font-size: 48px; max-width: 450px; } }
.card-desc { margin-top: 16px; width: 90%; max-width: 412px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--muted); }
/* 원본 측정값: desc 폭 412px(=90%×458), 이미지는 카드 가장자리 flush.
   클론 카드(1140px)는 원본(≈1152px)보다 약간 좁으므로 이미지가 불투명한
   생성 이미지일 때 텍스트와 겹치지 않도록 이 수치를 그대로 맞춘다. */
.card-tags { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 28px; }
.card-tags span { font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--cream); letter-spacing: 0.02em; }

.card-icons { position: absolute; top: 40px; left: 56px; display: flex; gap: 22px; }
.icon-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); color: #0E1016;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 30px; height: 30px; }

.card-media { position: absolute; right: 0; top: 50%; transform: translateY(-42%); width: 626px; }
.card-media img { width: 626px; height: auto; }
.card-inner.reverse .card-text { margin-left: auto; max-width: 412px; }
.card-inner.reverse .card-media { right: auto; left: 0; }
.card-inner.reverse .card-icons { left: auto; right: 56px; }
@media (max-width: 1023px) {
  .card { height: auto; }
  .card-inner { padding: 24px; }
  .card-text { padding-top: 120px; }
  .card-icons { top: 24px; left: 24px; }
  .card-media { position: static; transform: none; width: 100%; margin-top: 24px; }
  .card-inner.reverse .card-icons { right: 24px; }
}

/* ═══════════ Partner / Cal ═══════════ */
.partner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 32px 32px;
  overflow: hidden;
}
.partner-title { font-size: 30px; line-height: 1.2; font-weight: 700; text-transform: uppercase; color: var(--cream); text-align: center; }
.partner-title .font-jakarta { font-family: "Plus Jakarta Sans", var(--syne); }
.partner-p { margin-top: 16px; font-size: 16px; font-weight: 500; color: var(--cream-80); text-align: center; }
.partner-p + .partner-p { margin-top: 6px; }
.cal-frame { width: 100%; max-width: 1217px; margin-top: 28px; height: 600px; }
.cal-frame iframe { width: 100%; height: 560px; border: 0; border-radius: 8px; display: block; }

/* SeolGA CTA (cal.com iframe 대체) */
.partner-cta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 560px;
  border: 1px solid rgba(228, 222, 215, 0.16); border-radius: 8px;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(156, 64, 255, 0.14), transparent 70%),
    radial-gradient(50% 70% at 50% 0%, rgba(255, 170, 64, 0.08), transparent 70%),
    var(--bg-deep);
  font-family: var(--syne); font-size: 26px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--cream); text-align: center;
  transition: border-color 0.4s ease;
}
.partner-cta svg { width: 28px; height: 28px; flex: 0 0 auto; transition: transform 0.4s ease; }
.partner-cta:hover { border-color: rgba(255, 170, 64, 0.45); }
.partner-cta:hover svg { transform: translateX(8px); }
@media (max-width: 640px) {
  .partner-cta { height: 320px; font-size: 19px; padding: 0 24px; }
  .partner-cta svg { width: 22px; height: 22px; }
}

/* ═══════════ Testimonials ═══════════ */
.testimonials { position: relative; z-index: 10; padding: 80px 0 96px; overflow: hidden; }
.testimonials-sub {
  margin: 40px auto 0; max-width: 520px;
  text-align: center; text-transform: uppercase;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6;
  color: var(--cream);
}
.testi-grid {
  max-width: var(--container); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1023px) { .testi-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  position: relative; height: 393px;
  border: 1px solid var(--cream-30); border-radius: 23px;
  padding: 24px 31px;
}
.testi-card .hatch { width: 51px; height: 8px; margin-bottom: 39px; opacity: 0.9; }
.testi-quote { font-size: 18px; font-weight: 500; letter-spacing: 0.45px; line-height: 1.625; color: var(--cream); }
.testi-name {
  position: absolute; left: 31px; bottom: 51px;
  font-size: 23px; font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.46056px; line-height: 0.9;
  color: var(--cream);
  width: 176px;
}
.testi-role { position: absolute; left: 31px; bottom: 22px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ═══════════ Let's Talk ═══════════ */
.lets-talk {
  position: relative; z-index: 10;
  height: 648px;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
}
.talk-title { display: flex; justify-content: center; margin-top: 26px; }
.talk-word {
  display: inline-block;
  font-family: var(--mona); font-weight: 800;
  font-stretch: 73%;
  font-size: 390px; line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.talk-row {
  margin: 78px var(--gutter) 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.talk-q {
  max-width: 460px; text-transform: uppercase;
  font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em;
  color: var(--cream);
}
.talk-cta { margin-top: 24px; text-transform: uppercase; font-size: 14px; font-weight: 700; color: var(--cream); }
.talk-cta a { text-decoration: underline; text-underline-offset: 3px; }
.talk-right { display: flex; gap: 28px; padding-top: 12px; }
.talk-right a { font-size: 20px; font-weight: 700; color: var(--cream); }

/* ═══════════ Footer ═══════════ */
.footer {
  height: 72px;
  border-top: 3px solid var(--cream-30);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter);
  text-transform: uppercase;
}
.foot-left, .foot-right { font-family: var(--mona); font-stretch: var(--mona-stretch); font-size: 14px; font-weight: 700; color: var(--cream); }
.foot-left .year { font-family: var(--syne); font-weight: 700; font-size: 15px; }
.foot-right a { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════ 모바일 공통 ═══════════ */
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .hero-nav { padding-top: 24px; }
  .book-btn { display: none; }
  .nav-links { gap: 24px; }
  .hero-center { margin-top: 80px; }
  .hero-name .word-jake { display: block; font-size: 40px; line-height: 1.1; margin: 10px 0 0; }
  .avatar-wrap { display: block; position: static; margin: 36px auto 0; transform: none; width: 200px; height: 200px; }
  .hero-bottom { position: static; margin-top: 56px; padding-bottom: 32px; }
  .hero { height: auto; min-height: 85vh; padding-top: 80px; padding-bottom: 24px; }
  .talk-word { font-size: 21vw; }
  .talk-row { flex-direction: column; gap: 32px; }
  .footer { height: auto; padding: 16px var(--gutter); flex-direction: column; gap: 8px; }
}

/* JS 실패 대비: split 마크업이 안 만들어졌으면 원문 그대로 보이게 */
.split-words, .split-words * { }
.no-js-visible { opacity: 1 !important; transform: none !important; }
