/* =============================================
   DOSHI COSMETICS — PURITO-style Design System
   Pure white · Serif type · Maximum breathing room
   ============================================= */

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

:root {
  /* PURITO-style: stark white, near-black, zero color noise */
  --white:   #FFFFFF;
  --off:     #F7F6F4;       /* 아주 살짝 따뜻한 흰색 */
  --black:   #111111;
  --ink:     #1C1C1C;
  --gray-1:  #3A3A3A;
  --gray-2:  #6B6B6B;
  --gray-3:  #A0A0A0;
  --gray-4:  #D8D6D2;
  --gray-5:  #EEECE9;
  --tech:    #1C2436;       /* pip AI 다크 네이비 */
  --tech-mid:#2D4A6A;

  --serif:   'Cormorant Garamond', 'Georgia', serif;
  --sans:    'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  --max:     1280px;
  --hh:      68px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  z-index: 200;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gray-4);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s, filter 0.4s;
}
.header.is-scrolled .header-logo img {
  filter: brightness(0);
}
.header-logo:hover img { opacity: 0.55; }

.header-nav {
  display: flex;
  gap: 40px;
}
.header-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: opacity 0.25s, color 0.4s;
}
.header.is-scrolled .header-nav a {
  color: var(--ink);
}
.header-nav a:hover { opacity: 0.55; }

/* 언어 전환 버튼 */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switch {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 5px 12px;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.4s;
  white-space: nowrap;
}
.lang-switch:hover {
  background: rgba(255,255,255,0.15);
}
.header.is-scrolled .lang-switch {
  color: var(--ink);
  border-color: var(--gray-4);
}
.header.is-scrolled .lang-switch:hover {
  background: var(--off);
}
.mobile-lang-link {
  margin-top: 16px;
  font-size: 11px !important;
  color: var(--gray-3) !important;
  letter-spacing: 0.12em;
}

.header-burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.9);
  transition: 0.3s var(--ease);
}
.header.is-scrolled .header-burger span {
  background: var(--ink);
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 24px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-2);
  line-height: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.mobile-nav-link {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* 유튜브 배경 */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-yt-wrap {
  position: absolute;
  /* 16:9 비율 유지하며 풀커버 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 역산 */
}
#ytPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.40) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: calc(var(--hh) + 100px) 48px 80px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.hero-overline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--sans);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
  margin-bottom: 20px;
  word-break: keep-all;
}
.hero-headline em {
  font-style: normal;
  font-weight: 300;
}

.hero-en {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.10em;
  font-weight: 300;
  margin-bottom: 56px;
  word-break: keep-all;
}

.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 6px;
  transition: border-color 0.3s, gap 0.3s;
}
.hero-scroll-cta:hover {
  border-bottom-color: rgba(255,255,255,0.9);
  gap: 14px;
}

/* Marquee ticker — PURITO 스타일 */
.hero-marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--gray-4);
  overflow: hidden;
  padding: 14px 0;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-weight: 400;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 140px 0;
  background: var(--white);
}
.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.about-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-4);
}
.about-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.about-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: sticky;
  top: calc(var(--hh) + 40px);
}
.about-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-1);
  font-weight: 300;
  margin-bottom: 24px;
}
.about-body-text {
  font-size: 14px;
  line-height: 2;
  color: var(--gray-2);
  font-weight: 300;
  margin-bottom: 0;
}
.about-body-text + .about-body-text {
  margin-top: 20px;
}
.nowrap {
  white-space: nowrap;
}
.about-line {
  width: 48px;
  height: 1px;
  background: var(--gray-4);
  margin: 40px 0;
}
.about-figures {
  display: flex;
  gap: 52px;
}
.figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.figure-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.figure-desc {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-3);
}

/* =============================================
   BRANDS INTRO
   ============================================= */
.brands-intro {
  background: var(--off);
  padding: 80px 0;
  border-top: 1px solid var(--gray-4);
  border-bottom: 1px solid var(--gray-4);
}
.brands-intro-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: baseline;
  gap: 48px;
}
.brands-intro-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.brands-intro-copy {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* =============================================
   BRAND SECTION — shared
   ============================================= */
.brand-section {
  position: relative;
  padding: 120px 0 80px;
  background: var(--white);
  overflow: hidden;
}
.brand-section-alt { background: var(--off); }

.brand-number-bg {
  position: absolute;
  top: 20px;
  right: 48px;
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 300;
  color: var(--gray-4);
  line-height: 1;
  pointer-events: none;
  opacity: 0.6;
  user-select: none;
}

.brand-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.brand-wrap-reverse { direction: rtl; }
.brand-wrap-reverse > * { direction: ltr; }

.brand-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-3);
  border: 1px solid var(--gray-4);
  padding: 5px 12px;
  margin-bottom: 32px;
  border-radius: 1px;
}
.brand-tag-tech {
  color: var(--tech-mid);
  border-color: rgba(45,74,106,0.3);
}

.brand-logo-area {
  margin-bottom: 36px;
}
.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
}

/* pip AI 텍스트 로고 */
.pip-logo-text {
  font-size: 40px;
  font-weight: 800;
  color: var(--tech);
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: var(--sans);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.pip-ai-tag {
  font-size: 13px;
  font-weight: 600;
  background: var(--tech);
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.brand-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.brand-heading em {
  font-style: italic;
}
.brand-heading-en {
  font-size: 13px;
  color: var(--gray-3);
  letter-spacing: 0.04em;
  font-weight: 300;
  font-style: italic;
}

/* ---- Brand right col ---- */
.brand-belief-block {
  padding-top: 16px;
}
.belief-marker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-4);
}
.belief-quote {
  font-style: normal;
  margin-bottom: 36px;
}
.belief-quote p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--gray-1);
  font-weight: 300;
  margin-bottom: 20px;
}
.belief-quote p:last-child { margin-bottom: 0; }

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-tags span {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-2);
  background: var(--gray-5);
  padding: 6px 14px;
  border-radius: 1px;
}
.brand-tags-tech span {
  color: var(--tech-mid);
  background: rgba(28,36,54,0.06);
}

/* Brand visual strip — 하단 가로 라인 */
.brand-visual-strip {
  margin-top: 80px;
  padding: 20px 48px;
  border-top: 1px solid var(--gray-4);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
  padding: 20px 48px;
}
.strip-text {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.strip-divider {
  color: var(--gray-4);
}

/* =============================================
   PHILOSOPHY
   ============================================= */
.philosophy {
  padding: 140px 0;
  background: var(--ink);
}
.philosophy-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.philosophy-header {
  text-align: center;
  margin-bottom: 100px;
}
.philosophy-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 28px;
}
.philosophy-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.philosophy-subtitle {
  font-size: 14px;
  color: var(--gray-3);
  letter-spacing: 0.06em;
  font-style: italic;
  font-weight: 300;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.philo-item {
  padding: 52px 40px;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s var(--ease);
}
.philo-item:last-child {
  border-right: 1px solid rgba(255,255,255,0.08);
}
.philo-item:hover { background: rgba(255,255,255,0.03); }

.philo-num {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}
.philo-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.philo-desc {
  font-size: 13px;
  line-height: 1.95;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 140px 0;
  background: var(--white);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 28px;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.contact-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-2);
  font-weight: 300;
}
.contact-list {
  list-style: none;
  border-top: 1px solid var(--gray-4);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-4);
}
.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.contact-item a,
.contact-item span {
  font-size: 15px;
  color: var(--ink);
  font-weight: 300;
  transition: opacity 0.25s;
}
.contact-item a:hover { opacity: 0.5; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--off);
  border-top: 1px solid var(--gray-4);
  padding: 60px 0 48px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.footer-logo {
  height: 22px;
  width: auto;
  filter: brightness(0);
  opacity: 0.65;
}
.footer-brands-col { text-align: right; }
.footer-brands-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 12px;
}
.footer-brands-list {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-end;
}
.footer-brand-logo {
  height: 18px;
  width: auto;
  filter: brightness(0);
  opacity: 0.45;
}
.footer-pip-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-2);
  letter-spacing: -0.02em;
}
.footer-pip-logo strong { font-weight: 900; }

.footer-divider {
  height: 1px;
  background: var(--gray-4);
  margin-bottom: 36px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-company {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 8px;
}
.footer-address {
  font-size: 12px;
  color: var(--gray-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0;
  word-break: keep-all;
}
.footer-copy {
  font-size: 11px;
  color: var(--gray-3);
  font-weight: 300;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal.in-view {
  opacity: 1;
  transform: none;
}
.js-reveal.d1 { transition-delay: 0.1s; }
.js-reveal.d2 { transition-delay: 0.2s; }
.js-reveal.d3 { transition-delay: 0.3s; }
.js-reveal.d4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .header-wrap { padding: 0 32px; }
  .about-inner,
  .brand-wrap,
  .brands-intro-inner,
  .philosophy-inner,
  .contact-inner,
  .footer-inner { padding: 0 32px; }
  .brand-number-bg { right: 32px; font-size: 140px; }
  .about-body { grid-template-columns: 1fr; gap: 48px; }
  .about-headline { position: static; }
  .brand-visual-strip { padding: 20px 32px; }
}

@media (max-width: 768px) {
  :root { --hh: 60px; }

  .header-wrap { padding: 0 24px; }
  .header-nav { display: none; }
  .header-burger { display: flex; }

  .hero-text { padding: calc(var(--hh) + 60px) 24px 60px; }

  .about { padding: 80px 0; }
  .about-inner,
  .brand-wrap,
  .brands-intro-inner,
  .philosophy-inner,
  .contact-inner,
  .footer-inner { padding: 0 24px; }

  .brands-intro { padding: 52px 0; }
  .brands-intro-inner { flex-direction: column; gap: 12px; }

  .brand-section { padding: 80px 0 60px; }
  .brand-number-bg { font-size: 100px; top: 12px; right: 24px; opacity: 0.4; }
  .brand-wrap { grid-template-columns: 1fr; gap: 52px; }
  .brand-wrap-reverse { direction: ltr; }
  .brand-visual-strip { padding: 16px 24px; margin-top: 52px; }

  .philosophy { padding: 80px 0; }
  .philosophy-header { margin-bottom: 60px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philo-item {
    border-left: none;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 36px 0;
  }

  .contact { padding: 80px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 52px; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-brands-col { text-align: left; }
  .footer-brands-list { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-dot { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; letter-spacing: -0.01em; }
  .about-headline { font-size: 36px; }
  .about-figures { gap: 36px; }
  .footer-address { font-size: 11px; }
}
