@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root{
  --bg:#f3f0ea;
  --paper:#faf8f4;
  --ink:#22201d;
  --muted:#746f68;
  --line:#d8d1c8;
  --accent:#5d4a73;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Noto Sans KR',sans-serif;
}
a{color:inherit;text-decoration:none}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 5vw;
  background:rgba(243,240,234,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(216,209,200,.75);
}
.brand{font-family:'Playfair Display',serif;letter-spacing:.14em;font-size:18px}
nav{display:flex;gap:24px;font-size:12px;letter-spacing:.08em}
nav a:hover{opacity:.55}

.hero{
  min-height:82vh;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:4vw;
  align-items:center;
  padding:8vw 7vw;
}
.eyebrow{
  font-size:11px;
  letter-spacing:.18em;
  color:var(--muted);
  margin-bottom:18px;
}
h1,h2,h3,p{margin-top:0}
h1{
  font-family:'Playfair Display','Noto Sans KR',serif;
  font-size:clamp(42px,5.5vw,84px);
  line-height:1.06;
  font-weight:500;
  letter-spacing:-.03em;
  margin-bottom:24px;
}
h2{
  font-family:'Playfair Display','Noto Sans KR',serif;
  font-size:clamp(32px,4vw,58px);
  font-weight:500;
  margin-bottom:12px;
}
.sub{max-width:560px;line-height:1.8;color:var(--muted)}
.hero-actions{display:flex;gap:12px;margin-top:34px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 22px;border:1px solid var(--ink);
  font-size:13px;
}
.btn.primary{background:var(--ink);color:white}
.btn.ghost{background:transparent}

.hero-card{display:flex;justify-content:center}
.poster{
  aspect-ratio:4/5;
  width:min(420px,80%);
  border:1px solid #cfc6bc;
  background:
    linear-gradient(rgba(30,25,20,.08),rgba(30,25,20,.14)),
    radial-gradient(circle at 35% 20%,#e1d7cc 0 15%,transparent 16%),
    linear-gradient(145deg,#b6aaa0,#e6ddd1 48%,#7e726a);
  padding:28px;
  display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:0 18px 50px rgba(50,40,32,.12);
}
.poster span,.poster small{font-size:11px;letter-spacing:.16em}
.poster strong{font-family:'Playfair Display',serif;font-size:34px;font-weight:500;max-width:240px}

.section{padding:8vw 7vw;border-top:1px solid var(--line)}
.section-head{max-width:720px;margin-bottom:48px}
.section-head p:last-child{color:var(--muted);line-height:1.8}

.work-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.work-card{margin:0}
.thumb{
  aspect-ratio:4/5;
  margin-bottom:16px;
  background-size:cover;
  border:1px solid #d5cec5;
}
.t1{background:linear-gradient(145deg,#ddd6cf,#aa9f95)}
.t2{background:linear-gradient(145deg,#c8bba8,#eee4d8)}
.t3{background:linear-gradient(145deg,#d7d1c8,#91877f)}
.t4{background:linear-gradient(145deg,#e9dfd1,#bcae9e)}
.t5{background:linear-gradient(145deg,#eadbdc,#c9b3b8)}
.product-no{font-size:10px;letter-spacing:.16em;color:var(--muted);margin:0 0 6px}
.work-card h3{font-family:'Playfair Display','Noto Sans KR',serif;font-weight:500;margin-bottom:6px}
.work-card p{font-size:13px;color:var(--muted);line-height:1.6}

.finder-section{background:var(--paper)}
.quiz-shell{
  max-width:820px;
  background:white;
  border:1px solid var(--line);
  padding:34px;
}
.progress-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:9px}
.progress{height:3px;background:#ece7e1;margin-bottom:38px}
#progressBar{height:100%;width:16.66%;background:var(--accent);transition:.3s}
.question-title{font-size:28px;font-weight:500;margin-bottom:24px;line-height:1.45}
.options{display:grid;gap:10px}
.option{
  text-align:left;
  background:#faf9f7;
  border:1px solid #ddd6ce;
  padding:18px 20px;
  cursor:pointer;
  font:inherit;
  transition:.2s;
}
.option:hover{border-color:var(--accent);transform:translateY(-1px)}
.quiz-nav{margin-top:24px}
.back{
  background:none;border:0;padding:0;color:var(--muted);cursor:pointer;
}
.hidden{display:none}
.result h3{
  font-family:'Playfair Display','Noto Sans KR',serif;
  font-size:40px;font-weight:500;margin-bottom:12px
}
.result-card{
  background:#f4f0eb;border:1px solid var(--line);padding:28px;margin:28px 0
}
.result-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.tag{border:1px solid #cfc5ba;padding:7px 10px;font-size:12px;border-radius:99px}
.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.result-grid div{background:#fff;border:1px solid var(--line);padding:18px}
.result-grid small{display:block;color:var(--muted);margin-bottom:6px}

.split{display:grid;grid-template-columns:.8fr 1.2fr;gap:6vw}
.guide-list{display:grid}
.guide-list div{
  display:grid;grid-template-columns:60px 1fr;
  padding:20px 0;border-bottom:1px solid var(--line)
}
.guide-list b{font-family:'Playfair Display',serif;font-weight:500}
.guide-list span{line-height:1.7}

.faq-list{max-width:860px}
details{border-top:1px solid var(--line);padding:18px 0}
details:last-child{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:500}
details p{color:var(--muted);line-height:1.8;margin:14px 0 0}

footer{
  display:flex;justify-content:space-between;align-items:flex-end;
  padding:48px 7vw 60px;background:#201e1c;color:#f5f1ea
}
footer strong{font-family:'Playfair Display',serif;letter-spacing:.16em}
footer p{margin:8px 0 0;color:#bdb5ac;font-size:12px}

@media(max-width:900px){
  nav{display:none}
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:70px}
  .hero-card{margin-top:24px}
  .work-grid{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
}
@media(max-width:600px){
  .topbar{padding:16px 20px}
  .hero,.section{padding:68px 20px}
  .hero h1{font-size:46px}
  .poster{width:90%}
  .work-grid{grid-template-columns:1fr}
  .quiz-shell{padding:22px}
  .question-title{font-size:22px}
  .result-grid{grid-template-columns:1fr}
  footer{padding:38px 20px;flex-direction:column;align-items:flex-start;gap:28px}
}

.nowrap{white-space:nowrap}
@media(max-width:1200px){.work-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.work-grid{grid-template-columns:1fr 1fr}.nowrap{white-space:normal}}

.result-number{font-size:11px;letter-spacing:.18em;color:var(--muted);margin-bottom:10px}
.result-subtitle{font-size:18px;color:var(--muted);line-height:1.7;max-width:650px}
.result-grid .wide{grid-column:1/-1}
.second-pick{border-top:1px solid var(--line);padding-top:22px;margin-top:28px}
.second-pick small{display:block;color:var(--muted);margin-bottom:7px}
.second-pick strong{display:block;margin-bottom:8px}
.second-pick p{color:var(--muted);line-height:1.7;margin:0}

.hero-image-wrap{
  margin:0;
  width:min(720px,100%);
  position:relative;
}
.hero-image{
  width:100%;
  aspect-ratio:16/10;
  display:block;
  object-fit:cover;
  border:1px solid var(--line);
  box-shadow:0 24px 70px rgba(46,38,31,.14);
}
.hero-image-wrap figcaption{
  margin-top:10px;
  font-size:10px;
  letter-spacing:.16em;
  color:var(--muted);
  text-align:right;
}

.work-card{
  display:flex;
  flex-direction:column;
}
.thumb-link{
  display:block;
  overflow:hidden;
  margin-bottom:16px;
  border:1px solid #d5cec5;
  background:#e8e3dc;
}
.thumb-img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  transition:transform .45s ease, filter .45s ease;
}
.thumb-link:hover .thumb-img{
  transform:scale(1.025);
  filter:brightness(.96);
}
.work-card > p:not(.product-no){
  min-height:64px;
}
.shop-link{
  display:inline-block;
  width:max-content;
  margin-top:auto;
  padding-top:12px;
  border-bottom:1px solid var(--ink);
  font-size:12px;
  letter-spacing:.02em;
}
.shop-link:hover{opacity:.55}

.result-image{
  width:100%;
  max-width:560px;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  margin:26px 0;
  border:1px solid var(--line);
}

/* V3.1 — top logo serif refinement */
.topbar .brand{
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: .16em;
}

/* V3.2 — hero balance refinement */
.hero{
  grid-template-columns:.82fr 1.18fr;
  gap:3.2vw;
}

.hero h1{
  font-size:clamp(46px,4.9vw,78px);
  line-height:1.03;
  max-width:760px;
}

.hero-card{
  justify-content:flex-end;
}

.hero-image-wrap{
  width:min(820px,100%);
}

.hero-image{
  aspect-ratio:16/9;
  object-fit:cover;
}

@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:clamp(42px,8vw,62px);
  }

  .hero-image-wrap{
    width:100%;
  }
}

/* V3.3 — hero title size/spacing refinement */
.hero h1{
  font-size: clamp(40px, 4.3vw, 68px);
  line-height: 1.16;
  margin-top: 18px;
  margin-bottom: 34px;
  letter-spacing: -0.03em;
}

@media(max-width:900px){
  .hero h1{
    font-size: clamp(38px, 7vw, 56px);
    line-height: 1.14;
    margin-top: 14px;
    margin-bottom: 28px;
  }
}

/* V3.4 — Pretendard typography */
@font-face{
  font-family:'Pretendard';
  src:url('assets/fonts/Pretendard-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:'Pretendard';
  src:url('assets/fonts/Pretendard-Bold.ttf') format('truetype');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

/* Korean/body typography */
body,
button,
input,
textarea,
select,
.work-card p,
.section-head p,
.guide-list span,
details,
summary,
.result,
.sub{
  font-family:'Pretendard', sans-serif;
  font-weight:400;
}

/* Emphasized Korean headings */
.hero h1,
.section-head h2,
.question-title,
.result h3,
.split h2{
  font-family:'Pretendard', sans-serif;
  font-weight:700;
}

/* Keep English brand/logo in serif */
.topbar .brand{
  font-family:Georgia, 'Times New Roman', serif;
  font-weight:400;
}

/* Keep selected English/editorial labels serif where intended */
.work-card h3{
  font-family:'Pretendard', sans-serif;
  font-weight:700;
}

/* V3.5 — Match logo font to English menu font */
.topbar .brand{
  font-family:'Noto Sans KR', sans-serif;
  font-weight:400;
  letter-spacing:.16em;
}

/* V3.6 — JANHYANG logo in Athelas */
@font-face{
  font-family:'Athelas Custom';
  src:url('assets/fonts/athelas-regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

.topbar .brand{
  font-family:'Athelas Custom', Georgia, serif;
  font-weight:400;
  letter-spacing:.12em;
}

/* V3.7 — enlarge main hero image */
.hero{
  grid-template-columns: .72fr 1.28fr;
  gap: 2.2vw;
  align-items: center;
}

.hero-card{
  justify-content: flex-end;
}

.hero-image-wrap{
  width: min(980px, 100%);
}

.hero-image{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-image-wrap{
    width: 100%;
  }
}

/* V3.8 — hero title resize + Pretendard SemiBold */
@font-face{
  font-family:'Pretendard SemiBold Custom';
  src:url('assets/fonts/Pretendard-SemiBold.ttf') format('truetype');
  font-weight:600;
  font-style:normal;
  font-display:swap;
}

.hero h1{
  font-family:'Pretendard SemiBold Custom', 'Pretendard', sans-serif;
  font-weight:600;
  font-size:clamp(30px, 3.1vw, 46px);
  line-height:1.28;
  margin-top:20px;
  margin-bottom:30px;
  letter-spacing:-0.025em;
  max-width:540px;
}

.hero .sub{
  font-size:14px;
  line-height:1.85;
}

@media (max-width: 900px){
  .hero h1{
    font-size:clamp(28px, 5.8vw, 40px);
    line-height:1.26;
    margin-top:16px;
    margin-bottom:24px;
    max-width:100%;
  }

  .hero .sub{
    font-size:13.5px;
  }
}

/* V3.9 — Moving Poster section typography */
.moving-poster-title{
  font-family:'Pretendard SemiBold Custom', 'Pretendard', sans-serif;
  font-weight:600;
  letter-spacing:-0.025em;
}

.work-card > p:not(.product-no){
  line-height:1.75;
  word-break:keep-all;
}

/* V3.10 — moving poster title weight refinement */
@font-face{
  font-family:'Pretendard Medium Custom';
  src:url('assets/fonts/Pretendard-Medium.ttf') format('truetype');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

.moving-poster-title{
  font-family:'Pretendard Medium Custom', 'Pretendard', sans-serif;
  font-weight:500;
}

/* V3.11 — MOVING POSTER title to Pretendard Regular */
.moving-poster-title{
  font-family:'Pretendard', sans-serif;
  font-weight:400;
}

/* V3.12 — hero slideshow with 3 dissolve images */
.hero-image-wrap{
  position:relative;
}

.hero-slideshow{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid var(--line);
  background:#ddd6ce;
}

.hero-slideshow .hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  animation:heroDissolve 18s ease-in-out infinite;
  will-change:opacity, transform;
}

.hero-slideshow .slide-1{ animation-delay:0s; }
.hero-slideshow .slide-2{ animation-delay:6s; }
.hero-slideshow .slide-3{ animation-delay:12s; }

@keyframes heroDissolve{
  0%   { opacity:0; transform:scale(1); }
  6%   { opacity:1; transform:scale(1.01); }
  27%  { opacity:1; transform:scale(1.015); }
  33%  { opacity:0; transform:scale(1.02); }
  100% { opacity:0; transform:scale(1.02); }
}

/* remove duplicate border on image itself inside slideshow */
.hero-slideshow .hero-image{
  border:0;
}

/* V3.13 — calmer dissolve + subtle zoom */
.hero-slideshow .hero-image{
  animation-duration:27s;
  animation-timing-function:ease-in-out;
}

.hero-slideshow .slide-1{ animation-delay:0s; }
.hero-slideshow .slide-2{ animation-delay:9s; }
.hero-slideshow .slide-3{ animation-delay:18s; }

@keyframes heroDissolve{
  0%   { opacity:0; transform:scale(1.00); }
  7%   { opacity:1; transform:scale(1.01); }
  26%  { opacity:1; transform:scale(1.025); }
  33%  { opacity:0; transform:scale(1.035); }
  100% { opacity:0; transform:scale(1.035); }
}

/* V3.14 — true cross-dissolve: images always overlap, no background gap */
.hero-slideshow .hero-image{
  animation-duration:24s;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
  opacity:0;
}

.hero-slideshow .slide-1{ animation-delay:-2s; }
.hero-slideshow .slide-2{ animation-delay:6s; }
.hero-slideshow .slide-3{ animation-delay:14s; }

@keyframes heroDissolve{
  0%   { opacity:0; transform:scale(1.00); }
  5%   { opacity:1; transform:scale(1.008); }
  33%  { opacity:1; transform:scale(1.025); }
  38%  { opacity:0; transform:scale(1.035); }
  100% { opacity:0; transform:scale(1.035); }
}

/* V3.15 — faster hero slideshow */
.hero-slideshow .hero-image{
  animation-duration:15s;
}

.hero-slideshow .slide-1{ animation-delay:-1s; }
.hero-slideshow .slide-2{ animation-delay:4s; }
.hero-slideshow .slide-3{ animation-delay:9s; }

@keyframes heroDissolve{
  0%   { opacity:0; transform:scale(1.00); }
  7%   { opacity:1; transform:scale(1.008); }
  29%  { opacity:1; transform:scale(1.02); }
  36%  { opacity:0; transform:scale(1.03); }
  100% { opacity:0; transform:scale(1.03); }
}

/* V3.16 — center align SELECTED WORK and FIND MY FILM section headers */
#work .section-head,
#finder .section-head{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

#work .section-head p,
#finder .section-head p{
  margin-left:auto;
  margin-right:auto;
}

#work .eyebrow,
#finder .eyebrow{
  text-align:center;
}

#work .moving-poster-title,
#finder h2{
  text-align:center;
}

/* V3.17 — center the FIND MY FILM quiz box */
#finder .quiz-shell{
  margin-left:auto;
  margin-right:auto;
}

/* V3.18 — production time guide refinement */
.guide-production-time span{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}

.guide-production-time span > strong{
  font-family:'Pretendard', sans-serif;
  font-weight:600;
  margin-bottom:2px;
}

.guide-production-time span > small{
  display:flex;
  align-items:baseline;
  gap:8px;
  font-family:'Pretendard', sans-serif;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}

.guide-production-time span > small em{
  font-style:normal;
  font-weight:600;
  color:var(--ink);
}

@media(max-width:600px){
  .guide-production-time span > small{
    font-size:13px;
  }
}

/* V3.19 — guide detail note */
.guide-note{
  grid-column:2;
  margin:20px 0 0;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-family:'Pretendard', sans-serif;
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
}

@media(max-width:900px){
  .guide-note{
    grid-column:1;
  }
}

/* V3.21 — expanded FAQ */
#faq .section-head{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

#faq .section-head p{
  margin-left:auto;
  margin-right:auto;
}

.faq-list{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}

.faq-list details{
  padding:20px 0;
}

.faq-list summary{
  font-family:'Pretendard', sans-serif;
  font-weight:600;
  font-size:16px;
  line-height:1.6;
}

.faq-list details p{
  font-family:'Pretendard', sans-serif;
  font-size:14px;
  line-height:1.85;
  word-break:keep-all;
  max-width:900px;
}
