/* =============================================================
   K-BEAUTY in Europe — Editorial Luxe
   Landing page styles
   ============================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* K-Beauty Glow Week — soft pastel palette (peach · blush · lilac ·
     periwinkle) with a vivid blue accent, from the campaign key visual.
     Variable names kept from the previous theme; only values changed. */
  --ivory:      #faf5f6;   /* page background — blush white */
  --ivory-2:    #f0eaf8;   /* alt sections — soft lilac */
  --cream:      #fffdff;   /* cards — near white */
  --ink:        #231d33;   /* text — cool deep indigo-charcoal */
  --ink-soft:   #57506e;
  --ink-faint:  #8e87a1;
  --wine:       #1f5fe0;   /* PRIMARY accent — vivid blue */
  --wine-deep:  #1546b6;   /* darker blue — hover / footer bg */
  --gold:       #9d84dc;   /* secondary accent — orchid/lilac (hairlines) */
  --gold-soft:  #cfc1ee;
  --line:       #eaddf0;   /* hairline — soft pink-lilac */
  --line-soft:  #f3edf8;

  /* pastel gradients */
  --grad-hero:  linear-gradient(118deg, #fdd7c6 0%, #f6c0c8 32%, #dcc2ec 66%, #aeade6 100%);
  --grad-soft:  linear-gradient(135deg, #faf1f4 0%, #f0eaf8 100%);

  --serif: "Lora", "Noto Serif KR", Georgia, serif;
  --sans:  "Hanken Grotesk", "Noto Sans KR", system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.75rem, 5vw, 4.5rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 245, 246, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brandmark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brandmark b { font-weight: 600; }
.brandmark span { color: var(--wine); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--wine);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--wine); }
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 40px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
}
.lang-switch button {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.lang-switch button.active { background: var(--wine); color: #fff; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 4vw, 3.2rem);
  padding: 8.5rem clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 18% 6%, rgba(251,202,183,0.60), transparent 64%),
    radial-gradient(42% 55% at 82% 10%, rgba(240,176,178,0.45), transparent 66%),
    radial-gradient(55% 60% at 88% 98%, rgba(169,168,226,0.52), transparent 68%),
    radial-gradient(45% 55% at 10% 95%, rgba(214,201,240,0.40), transparent 68%);
}

.hero-copy { position: relative; z-index: 2; max-width: 880px; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 1.5rem; opacity: 0; animation: rise 0.9s var(--ease) 0.1s forwards; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero-title .l1 { display: block; opacity: 0; animation: rise 1s var(--ease) 0.2s forwards; }
.hero-title .l2 {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
  opacity: 0;
  animation: rise 1s var(--ease) 0.34s forwards;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 auto 0.4rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.64s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,95,224,0.30); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.hero-meta {
  display: flex;
  gap: 2.2rem;
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: rise 1s var(--ease) 0.8s forwards;
}
.hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Hero visual — poster/logo, centered below the copy */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.4s forwards;
}
.hero-visual .hero-meta {
  margin-top: 0;
  gap: 0.8rem 1.6rem;
  flex-wrap: wrap;
}
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold);
  padding: 14px;
  background: var(--cream);
  box-shadow: 28px 28px 0 -2px rgba(157,132,220,0.10), 0 30px 60px rgba(35,29,51,0.12);
}
.hero-frame .frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ivory-2);
}
.hero-frame .frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 20s linear infinite;
}
.hero-frame .frame img:nth-child(1) { animation-delay: 0s; }
.hero-frame .frame img:nth-child(2) { animation-delay: 5s; }
.hero-frame .frame img:nth-child(3) { animation-delay: 10s; }
.hero-frame .frame img:nth-child(4) { animation-delay: 15s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  22%  { opacity: 1; transform: scale(1.0); }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-frame .vlabel {
  position: absolute;
  top: 50%; right: -2.2rem;
  transform: rotate(90deg);
  transform-origin: center;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
/* poster variant — single landscape key visual, centered, natural ratio */
.hero-frame--poster {
  aspect-ratio: auto;
  padding: 12px;
  width: 100%;
  max-width: 1000px;
  border-color: var(--gold-soft);
  box-shadow: 0 26px 64px rgba(35,29,51,0.16);
}
.hero-frame--poster img {
  width: 100%;
  height: auto;
  display: block;
}

/* event date & venue (in the hero copy, under the lead) */
.hero-event {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.6rem;
  margin: 1.7rem 0 0;
  text-align: left;
  opacity: 0;
  animation: rise 1s var(--ease) 0.58s forwards;
}
.hero-event li { display: flex; align-items: center; gap: 0.85rem; }
.hero-event .he-ic {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  color: var(--wine);
}
.hero-event .he-ic svg { width: 18px; height: 18px; }
.hero-event .he-label {
  display: block;
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.18rem;
}
.hero-event .he-val {
  display: block;
  font-size: 1rem; color: var(--ink); font-weight: 500; line-height: 1.35;
}
/* host mark — top-right of the header, separate from brand content */
.nav-host { display: flex; align-items: center; }
.nav-host img {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brandmark { font-size: 1.1rem; }
  .nav-host img { height: 28px; }
}
@media (max-width: 400px) {
  .brandmark { font-size: 0.98rem; gap: 0.35rem; }
  .nav-host img { height: 24px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section scaffold ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--alt { background: var(--ivory-2); }
.section--ink { background: var(--ink); color: var(--ivory); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.section--ink .eyebrow { color: var(--gold-soft); }
.section--ink .eyebrow::before { background: var(--gold-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.mission-body {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
}
.stats { display: grid; gap: 1.6rem; }
.stat { border-top: 1px solid var(--line); padding-top: 1rem; display: flex; align-items: baseline; gap: 1.2rem; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--wine);
  line-height: 1;
  min-width: 2.5ch;
}
.stat-l { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Brands ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.brand-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  /* no transform on hover — keeps the row stable (no jitter) */
  transition: box-shadow 0.7s ease, border-color 0.7s ease;
}
.brand-card:hover {
  box-shadow: 0 18px 42px rgba(35,29,51,0.14);
  border-color: var(--gold);
}
/* logo tile — white to match the white-background CI logos */
.brand-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line-soft);
}
.brand-figure img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 1s ease;
  will-change: transform;
  backface-visibility: hidden;
}
/* banner variant — full-bleed brand key visual */
.brand-figure--banner {
  padding: 0;
  background: var(--ivory-2);
}
.brand-figure--banner img {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center;
}
.brand-card:hover .brand-figure img { transform: scale(1.03); }
.brand-body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  background: var(--ivory);
}
.brand-cat {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--wine);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-product { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; flex: 1; }
.brand-company { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.brand-count {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.5rem;
  flex: 1;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine);
  margin-top: 0.7rem;
}
/* arrow stays put on hover (no movement) */
.brand-link .arr { transition: none; }

/* ---------- Why (dark) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.why-item { padding-top: 1.4rem; border-top: 1px solid rgba(205,176,131,0.4); }
.why-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 1rem;
}
.why-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; margin-bottom: 0.7rem; }
.why-desc { font-size: 0.92rem; color: rgba(247,241,232,0.72); line-height: 1.65; }

/* ---------- Partnership ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.partner-body { font-size: 1.05rem; color: var(--ink-soft); margin-top: 1.6rem; max-width: 34em; }
.partner-aside-meta { margin-top: 2.4rem; display: grid; gap: 1.2rem; }
.partner-aside-meta .line { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; color: var(--ink-soft); }
.partner-aside-meta .line svg { width: 18px; height: 18px; color: var(--wine); flex: none; }

.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 24px 50px rgba(33,26,22,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.1rem;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--wine); }
.field select { cursor: pointer; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(110,30,42,0.07);
  border-left: 3px solid var(--wine);
  font-size: 0.9rem;
  color: var(--wine-deep);
}
.form-success.show { display: flex; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-deep); color: var(--ivory); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,241,232,0.16);
}
.footer-brand { font-family: var(--serif); font-size: 1.8rem; }
.footer-brand span { font-style: italic; color: var(--gold-soft); }
.footer-tagline { margin-top: 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.72); max-width: 26em; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: rgba(247,241,232,0.78); margin-bottom: 0.6rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.78rem; color: rgba(247,241,232,0.55); letter-spacing: 0.04em; }

/* minimal centered footer */
.footer-min { text-align: center; max-width: 680px; margin: 0 auto; }
.footer-min .footer-brand { font-family: var(--serif); font-size: 1.9rem; }
.footer-min .footer-tagline { margin: 0.8rem auto 0; max-width: 30em; }
.footer-rule { width: 60px; height: 1px; background: rgba(207,193,238,0.55); margin: 1.8rem auto; }
.footer-org { font-size: 0.82rem; color: rgba(255,255,255,0.62); letter-spacing: 0.03em; }
.footer-org a { color: var(--gold-soft); transition: color 0.25s var(--ease); }
.footer-org a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 7.5rem; }
  .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--ivory);
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    box-shadow: 0 12px 24px rgba(33,26,22,0.1);
  }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: none; border: none; cursor: pointer; padding: 0.4rem;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); }
  .brand-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.1rem); }
  /* stack date & venue, left-aligned on phones */
  .hero-event {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.9rem;
    width: 100%;
  }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
