/* =========================================================
   LIGNUM — Wood Archive House
   모바일 기준 + PC(900px 이상) 가로 이미지
   ========================================================= */

:root {
  --paper: #F3EEE3;
  --paper-2: #EAE3D4;
  --ink: #1E2B24;
  --ink-soft: #34403A;
  --brass: #8E6F36;
  --night: #1C241F;

  --line: rgba(30, 43, 36, .16);
  --card: rgba(243, 238, 227, .6);
  --glass: rgba(243, 238, 227, .62);
  --glass-blur: blur(10px);
  --max: 480px;
  --gutter: 22px;
  --header-h: 60px;

  --font-en: "Cormorant Garamond", "Noto Serif KR", "Noto Serif Thai", serif;
  --font-ko: "Noto Serif KR", "Noto Serif Thai", "Cormorant Garamond", serif;

  /* 본문 크기 */
  --fs-body: 17px;
  --fs-small: 15.5px;
  --lh-body: 1.75;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body.clearancePage {
  margin: 0;
  font-family: var(--font-ko);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

#afterGate {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

#afterGate img {
  display: block;
  width: 100%;
  height: auto;
  color: transparent;
  font-size: 0;
}

#afterGate img[hidden] {
  display: none;
}

p, h1, h2, h3, blockquote, figure, dl, dd {
  margin: 0;
}

a {
  color: inherit;
}

/* ── 공통 요소 ── */
.label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.label--brass {
  color: var(--brass);
}

.rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brass);
}

.sectionTitle {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.12;
}

.sectionTitle--ko {
  font-family: var(--font-ko);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.lead {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.italic {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-soft);
}

.icon {
  width: 34px;
  height: 34px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 스크롤 fade-up ── */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── 언어 선택 게이트 ── */
.langGate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background: rgba(12, 16, 14, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 1.1s ease, backdrop-filter 1.1s ease;
}

.langGate[hidden] {
  display: none;
}

.langGate.is-shown {
  opacity: 1;
}

.langGate.is-leaving {
  opacity: 0;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  pointer-events: none;
}

.langGateInner {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.langGateInner .rule {
  margin: 0 auto 18px;
  background: #C9A96A;
}

.langGateLabel {
  margin-bottom: 30px;
  font-size: 14px;
  color: #C9A96A;
}

.langGateList {
  display: grid;
  gap: 14px;
}

.langOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 0 26px;
  border: 1px solid rgba(243, 238, 227, .4);
  border-radius: 3px;
  background: rgba(243, 238, 227, .08);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.langOption:hover,
.langOption:focus-visible {
  outline: none;
  border-color: #C9A96A;
  background: rgba(243, 238, 227, .16);
}

.langOption.is-picked {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.langName {
  font-family: var(--font-ko);
  font-size: 25px;
  font-weight: 600;
}

.langCode {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .24em;
  color: #C9A96A;
}

/* ── 헤더 ── */
.siteHeader {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  height: var(--header-h);
  padding: 0 var(--gutter);
  transform: translateX(-50%);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}

.siteHeader.is-scrolled {
  background: rgba(243, 238, 227, .96);
  border-bottom-color: var(--line);
}

.wordmark {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .32em;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.siteHeader.is-past-hero .wordmark {
  opacity: 1;
  visibility: visible;
}

.menuToggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menuToggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .35s ease, top .35s ease;
}

.menuToggle span:first-child { top: 17px; }
.menuToggle span:last-child  { top: 25px; }

.menuToggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menuToggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ── 전체화면 메뉴 ── */
.siteMenu {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: var(--header-h) var(--gutter) 40px;
  background: var(--paper);
  opacity: 0;
  transition: opacity .4s ease;
}

.siteMenu[hidden] {
  display: none;
}

.siteMenu.is-open {
  opacity: 1;
}

.siteMenuList {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.siteMenuList a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 600;
  text-decoration: none;
}

.siteMenuLang {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.siteMenuLang button {
  padding: 10px 12px;
  border: 0;
  background: none;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--ink-soft);
  cursor: pointer;
}

.siteMenuLang button[aria-current="true"] {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ── 1. Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#afterGate .hero__img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 18% top;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(transparent, var(--paper) 62%);
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 104px;
}

.hero__title {
  margin-top: 18px;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
}

.hero__text {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero__scroll .label {
  font-size: 11px;
  margin-right: -.24em;
}

.hero__scrollLine {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(30, 43, 36, .18);
}

.hero__scrollLine::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: scrollLine 2.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -40%; }
  100% { top: 100%; }
}

/* ── 2. The Insight ── */
.insight {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter);
  text-align: center;
  color: var(--paper);
}

#afterGate .insight__img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.insight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 36, 31, .78);
}

.insight__body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.insight .label--brass {
  color: #D2B477;
}

.insight__title {
  margin-top: 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
}

.insight__text {
  margin-top: 22px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(243, 238, 227, .94);
}

.insight__quote {
  display: inline-block;
  margin-top: 34px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid #D2B477;
  text-align: left;
  font-family: var(--font-ko);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--paper);
}

.insight__foot {
  margin-top: 48px;
  font-size: 11px;
  color: rgba(243, 238, 227, .75);
}

/* ── 3. Why LIGNUM ── */
.why {
  position: relative;
  padding: 96px var(--gutter);
}

#afterGate .why__bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}

.why__inner {
  position: relative;
}

.why .sectionTitle {
  margin-top: 18px;
}

.why .lead {
  margin-top: 16px;
}

.whyList {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.whyCard {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}

.whyCard__text {
  position: relative;
  z-index: 1;
  padding: 24px 32% 24px 22px;
}

.whyCard.is-noImage .whyCard__text {
  padding-right: 22px;
}

.whyCard__num {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brass);
}

.whyCard__title {
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.whyCard__desc {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-soft);
}

#afterGate .whyCard__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
  mask-image: linear-gradient(to right, transparent, #000 60%);
}

/* ── 4. Spaces ── */
.spaces {
  display: grid;
  gap: 40px;
  padding: 40px 0 72px;
}

.space {
  position: relative;
}

/* 상자 없이 좌측 하단, 크고 굵게 */
.space figcaption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  font-family: var(--font-en), var(--font-ko);
  font-size: clamp(32px, 9.5vw, 42px);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.12;
  color: var(--ink);
  text-shadow:
    0 0 10px rgba(243, 238, 227, .95),
    0 0 22px rgba(243, 238, 227, .9),
    0 0 3px rgba(243, 238, 227, 1);
}

/* ── 5. Archive ── */
.archive {
  display: grid;
  gap: 64px;
  padding-bottom: 96px;
  background: var(--paper-2);
}

.product {
  position: relative;
}

.product__img {
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

/* 글을 이미지 하단(병 아래 크림 영역) 위에 겹침 */
.product__body {
  position: relative;
  margin-top: calc(min(100vw, 480px) * -.62);
  padding: 40px var(--gutter) 0;
}

.product__body::before,
.contact__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(234, 227, 212, 0), rgba(234, 227, 212, .94) 56px, var(--paper-2) 40%);
}

.product__body,
.contact__body {
  z-index: 0;
}

.product__title {
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
}

.product__desc {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.spec {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.spec__row {
  display: grid;
  grid-template-columns: 78px 1px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec__row::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  background: rgba(142, 111, 54, .55);
}

.spec__row dt {
  grid-column: 1;
  grid-row: 1;
  font-size: 12px;
  color: var(--brass);
}

.spec__row dd {
  grid-column: 3;
  grid-row: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.product .italic {
  margin-top: 24px;
}

/* ── 6. Bespoke ── */
.bespoke {
  position: relative;
  padding: 96px 14px;
}

#afterGate .bespoke__img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.bespoke__panel {
  position: relative;
  padding: 44px 18px 40px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(243, 238, 227, .5);
  border-radius: 4px;
}

.bespoke .sectionTitle {
  margin-top: 16px;
}

.bespoke__text {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

/* 모바일: 아이콘 왼쪽 + 글 오른쪽 가로 카드 (3열은 PC에서) */
.serviceGrid {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  text-align: left;
}

.serviceCard {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(251, 248, 241, .5);
}

.serviceCard .icon {
  grid-row: span 2;
}

.serviceCard__title {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.serviceCard__desc {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-soft);
}

.bespoke .italic {
  margin-top: 30px;
}

/* ── 7. Contact ── */
.contact {
  position: relative;
}

.contact__img {
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.contact__body {
  position: relative;
  margin-top: calc(min(100vw, 480px) * -.66);
  padding: 40px var(--gutter) 88px;
}

.contact__body::before {
  background: linear-gradient(rgba(243, 238, 227, 0), rgba(243, 238, 227, .94) 56px, var(--paper) 40%);
}

.contact .sectionTitle {
  margin-top: 14px;
}

.contact__text {
  margin-top: 18px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.pillBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

.pillBtn:hover,
.pillBtn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.pillBtn__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.contact__divider {
  display: none;
  width: 1px;
  height: 60px;
  background: var(--line);
}

.contact__person {
  font-family: var(--font-en);
  line-height: 1.4;
}

.contact__name {
  font-size: 19px;
  font-weight: 700;
}

.contact__role {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact__tel {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

/* ── Footer ── */
.siteFooter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px var(--gutter) 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.siteFooter__copy {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

/* ── 태국어: 줄 간격 여유 ── */
html[lang="th"] .hero__text,
html[lang="th"] .lead,
html[lang="th"] .insight__text,
html[lang="th"] .product__desc,
html[lang="th"] .bespoke__text,
html[lang="th"] .contact__text {
  line-height: 1.9;
}

/* ── 모션 줄이기 ── */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scrollLine::after {
    animation: none;
    top: 30%;
  }

  .langGate,
  .siteMenu,
  .siteHeader,
  .wordmark {
    transition: none;
  }
}

/* =========================================================
   PC (900px 이상) — 가로 이미지(1672×941) 적용
   ========================================================= */
@media (min-width: 900px) {
  :root {
    --gutter: 56px;
    --header-h: 76px;
    --fs-body: 19px;
    --fs-small: 16px;
  }

  #afterGate,
  .siteHeader {
    max-width: none;
  }

  .wordmark {
    font-size: 24px;
  }

  .siteMenuList a {
    font-size: 48px;
  }

  .sectionTitle {
    font-size: 54px;
  }

  .sectionTitle--ko {
    font-size: 36px;
  }

  /* Hero */
  #afterGate .hero__img {
    object-position: center;
  }

  .hero::after {
    top: 0;
    height: auto;
    background:
      linear-gradient(transparent 55%, var(--paper) 100%),
      radial-gradient(ellipse 58% 48% at 0% 74%, rgba(243, 238, 227, .95) 0, rgba(243, 238, 227, .8) 45%, rgba(243, 238, 227, 0) 100%);
  }

  .contact__divider {
    display: block;
  }

  .hero__body {
    max-width: 700px;
    padding-bottom: 120px;
  }

  .hero__title {
    font-size: 72px;
  }

  /* Insight */
  .insight__body {
    max-width: 720px;
    margin: 0 auto;
  }

  .insight__title {
    font-size: 40px;
  }

  .insight__quote {
    font-size: 22px;
  }

  /* Why */
  .why {
    padding: 140px var(--gutter);
  }

  .why__inner {
    max-width: 1160px;
    margin: 0 auto;
  }

  .whyList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
  }

  .whyCard__title {
    font-size: 27px;
  }

  /* Spaces */
  .spaces {
    gap: 72px;
    padding: 80px 0 120px;
  }

  .space figcaption {
    left: var(--gutter);
    bottom: 44px;
    font-size: clamp(48px, 4.4vw, 72px);
  }

  /* Archive */
  .archive {
    gap: 120px;
    padding-bottom: 140px;
  }

  /* PC: 가로 이미지 위 좌측 하단에 반투명 패널로 글 겹침 */
  .product__img,
  .contact__img {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .product__body,
  .contact__body {
    position: absolute;
    left: var(--gutter);
    bottom: 56px;
    width: min(560px, 44vw);
    margin: 0;
    padding: 40px 44px;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--line);
    border-radius: 3px;
  }

  .product:nth-child(even) .product__body {
    left: auto;
    right: var(--gutter);
  }

  .product__body::before,
  .contact__body::before {
    display: none;
  }

  .product__title {
    font-size: 56px;
  }

  .spec__row dd {
    font-size: 18px;
  }

  /* Bespoke */
  .bespoke {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px var(--gutter);
  }

  .bespoke__panel {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 56px 56px;
  }

  .serviceGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 44px;
    text-align: center;
  }

  .serviceCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 18px 26px;
  }

  .serviceCard__title {
    margin-top: 14px;
  }

  .serviceCard__desc {
    margin-top: 8px;
  }

  /* Contact */
  .contact__body {
    width: min(620px, 48vw);
  }
}
