/* ============================================================
   Components — header, hero, sections, product, footer
   ============================================================ */

/* ---------- Overlap mark : 퍼플·세이지 두 면의 겹침 ---------- */

.overlap {
  position: relative;
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.overlap span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.overlap span:first-child {
  background: var(--purple-core);
  transform: translateX(-16%);
}
.overlap span:last-child {
  background: var(--sage-core);
  transform: translateX(16%);
}
.section--paper .overlap span { mix-blend-mode: multiply; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-500);
}

.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brandmark small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--fg-300);
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  font-size: 0.92rem;
  color: var(--fg-200);
}
.nav a { position: relative; padding-block: 0.4rem; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--purple-lift);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

@media (min-width: 900px) {
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brandmark { justify-self: start; white-space: nowrap; }
  .nav { display: flex; }
  .header__actions { justify-self: end; }
}

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.language-link {
  padding: 0.55rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-300);
  transition: color 0.3s var(--ease);
}
.language-link:hover { color: var(--purple-lift); }

/* ---------- Store state : 죽은 버튼을 만들지 않는다 ---------- */

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink-400);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--fg-200);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.store-chip:hover { border-color: var(--purple-lift); color: var(--fg-100); }

.store-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-core);
}

[data-commerce="off"] .store-chip--live { display: none; }
[data-commerce="on"] .store-chip--preview { display: none; }

.store-chip--live {
  background: var(--purple-core);
  border-color: var(--purple-core);
  color: #fff;
  font-weight: 600;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem 0.2rem;
}
.menu-btn span {
  width: 22px; height: 1px;
  background: var(--fg-100);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) { .menu-btn { display: none; } }

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-900);
  padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.drawer ul { display: grid; gap: var(--s-2); }
.drawer__foot { color: var(--fg-300); font-size: var(--t-small); }

@media (min-width: 900px) { .drawer { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--s-5));
  padding-bottom: var(--s-5);
  overflow: hidden;
}

@media (max-width: 899px) {
  .hero { min-height: 84svh; }
}

.hero__grid { width: 100%; row-gap: var(--s-4); }

.hero__copy { grid-column: 1 / span 7; }
.hero__meta {
  grid-column: 9 / span 4;
  align-self: end;
  display: grid;
  gap: var(--s-2);
}

@media (max-width: 899px) {
  .hero__copy { grid-column: 1 / -1; }
  .hero__meta { grid-column: 1 / -1; }
}

.hero__eyebrow { margin-bottom: var(--s-3); }

.hero__title { margin-bottom: var(--s-3); }
.hero__title em {
  font-style: normal;
  color: var(--purple-lift);
}

.hero__sub { max-width: 34ch; margin-bottom: var(--s-3); }

.hero__line {
  display: grid;
  gap: 0.35rem;
  padding-top: var(--s-2);
  border-top: 1px solid var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--fg-300);
}
.hero__line strong { color: var(--fg-100); font-weight: 500; }

/* 생성 이미지 대신 CSS로 만든 추상 배경 — 사실 사진으로 오인될 수 없다 */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__field::before,
.hero__field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 26s var(--ease) infinite alternate;
}
.hero__field::before {
  width: min(58vw, 720px);
  aspect-ratio: 1;
  right: -8vw;
  top: -12vh;
  background: radial-gradient(circle at 50% 50%, var(--purple-core), transparent 68%);
}
.hero__field::after {
  width: min(48vw, 620px);
  aspect-ratio: 1;
  right: 12vw;
  top: 6vh;
  background: radial-gradient(circle at 50% 50%, var(--sage-core), transparent 66%);
  opacity: 0.32;
  animation-delay: -9s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__field::before, .hero__field::after { animation: none; }
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  color: var(--fg-400);
}

/* ---------- Principle : 한 화면 한 메시지 ---------- */

.principle {
  display: grid;
  align-content: center;
  min-height: 78svh;
  padding-block: var(--s-6);
  border-top: 1px solid var(--ink-500);
}
.principle__grid { row-gap: var(--s-3); }
.principle__no { grid-column: 1 / span 2; }
.principle__title { grid-column: 3 / span 6; }
.principle__note { grid-column: 9 / span 4; align-self: end; }

@media (max-width: 899px) {
  .principle { min-height: auto; }
  .principle__no,
  .principle__title,
  .principle__note { grid-column: 1 / -1; }
}

/* ---------- Product ---------- */

.products { display: grid; gap: 1px; background: var(--ink-500); margin-top: var(--s-4); }

@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

.product {
  position: relative;
  background: var(--ink-900);
  padding: var(--s-4) clamp(1.25rem, 2.2vw, 2rem) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 22rem;
  transition: background 0.4s var(--ease);
}
.product:hover { background: var(--ink-800); }

.product__plane {
  width: 100%;
  height: 108px;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.product__plane i {
  position: absolute;
  width: 62%;
  height: 190%;
  top: -45%;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.product__plane i:first-child { left: 4%; background: var(--purple-core); }
.product__plane i:last-child { left: 34%; background: var(--sage-core); }

.product--rak .product__plane i:first-child { background: var(--sage-core); }
.product--rak .product__plane i:last-child { background: var(--purple-deep); }

.product__name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.product__type { color: var(--fg-300); font-size: var(--t-small); }

.spec {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  padding-top: var(--s-2);
  border-top: 1px solid var(--ink-500);
  font-size: var(--t-small);
}
.spec div { display: flex; justify-content: space-between; gap: 1rem; }
.spec dt { color: var(--fg-400); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.spec dd { color: var(--fg-200); }
.spec dd[data-state="tbd"] { color: var(--fg-400); font-style: italic; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-lift);
}
.status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage-core);
}

/* ---------- Process ---------- */

.steps { margin-top: var(--s-4); display: grid; gap: 1px; background: var(--paper-300); }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--paper-100);
  padding: var(--s-4) clamp(1.25rem, 2.2vw, 2rem);
  display: grid;
  gap: var(--s-2);
  align-content: start;
}
.step__no {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  color: var(--purple-deep);
}
.step h3 { color: var(--ink-900); }
.step p { color: #45423a; }

/* ---------- Place / Heritage ---------- */

.place__grid { row-gap: var(--s-4); }
.place__lead { grid-column: 1 / span 5; }
.place__facts { grid-column: 7 / span 6; display: grid; gap: 1px; background: var(--ink-500); }

@media (max-width: 899px) {
  .place__lead, .place__facts { grid-column: 1 / -1; }
}

.fact {
  background: var(--ink-900);
  padding: var(--s-3) 0 var(--s-3) var(--s-3);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s-2);
  align-items: baseline;
}
.fact dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--fg-400); text-transform: uppercase; }
.fact dd { color: var(--fg-200); }

@media (max-width: 599px) {
  .fact { grid-template-columns: 1fr; gap: 0.35rem; padding-left: var(--s-2); }
}

/* ---------- Shot placeholder : 촬영 예정 자리 ---------- */

.shot {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: var(--s-4) var(--s-3);
  border: 1px dashed var(--ink-400);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.018) 10px 20px
    );
  text-align: center;
  min-height: 14rem;
}
.shot span { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.14em; color: var(--fg-400); text-transform: uppercase; }
.shot p { color: var(--fg-300); font-size: var(--t-small); max-width: 32ch; }
.section--paper .shot { border-color: var(--paper-300); background: none; }
.section--paper .shot span, .section--paper .shot p { color: #7a7466; }

/* ---------- Paths ---------- */

.paths { margin-top: var(--s-4); display: grid; gap: 1px; background: var(--ink-500); }

@media (min-width: 780px) { .paths { grid-template-columns: repeat(3, 1fr); } }

.path {
  background: var(--ink-900);
  padding: var(--s-4) clamp(1.25rem, 2.2vw, 2rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 15rem;
  transition: background 0.4s var(--ease);
}
a.path:hover { background: var(--ink-700); }

.path__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--purple-lift);
}
.path__go[data-state="tbd"] { color: var(--fg-400); }

/* ---------- Closing ---------- */

.closing__title { grid-column: 1 / span 8; }
.closing__side { grid-column: 10 / span 3; align-self: end; }

@media (max-width: 899px) {
  .closing__title, .closing__side { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--ink-500);
  padding-block: var(--s-5) var(--s-4);
  font-size: var(--t-small);
  color: var(--fg-300);
}
.footer__grid { row-gap: var(--s-4); }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 0.6rem; align-content: start; }
.footer__cols { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.footer__cols h4 { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.14em; color: var(--fg-400); text-transform: uppercase; font-weight: 500; margin-bottom: 0.75rem; }
.footer__cols li { margin-bottom: 0.4rem; }
.footer__legal { grid-column: 1 / -1; padding-top: var(--s-3); border-top: 1px solid var(--ink-500); color: var(--fg-400); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

@media (max-width: 899px) {
  .footer__brand, .footer__cols { grid-column: 1 / -1; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Inline link ---------- */

.link {
  border-bottom: 1px solid var(--signal-line);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.link:hover { border-color: var(--purple-lift); }

/* ---------- Notice ---------- */

.notice {
  display: grid;
  gap: 0.5rem;
  padding: var(--s-3);
  border-left: 2px solid var(--purple-core);
  background: var(--ink-800);
  color: var(--fg-200);
  font-size: var(--t-small);
}

/* ---------- Sub page ---------- */

.subhero {
  padding-top: calc(var(--header-h) + var(--s-6));
  padding-bottom: var(--s-5);
}
.subhero__grid { row-gap: var(--s-3); }
.subhero__title { grid-column: 1 / span 8; }
.subhero__side { grid-column: 10 / span 3; align-self: end; }

@media (max-width: 899px) {
  .subhero__title, .subhero__side { grid-column: 1 / -1; }
}

.form {
  display: grid;
  gap: var(--s-3);
  max-width: 46rem;
  margin-top: var(--s-4);
}
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.12em; color: var(--fg-300); text-transform: uppercase; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink-800);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius);
  color: var(--fg-100);
  font: inherit;
  font-size: 0.95rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--purple-lift); outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: var(--purple-core);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  justify-self: start;
  transition: background 0.3s var(--ease);
}
.btn:hover { background: var(--purple-deep); }

.btn--ghost {
  background: none;
  border: 1px solid var(--ink-400);
  color: var(--fg-100);
}
.btn--ghost:hover { background: var(--ink-700); border-color: var(--purple-lift); }
