/* =========================================================================
   d'compose site — local styles
   Built on /colors_and_type.css tokens. Achromatic, square, slow.
   ========================================================================= */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-stretch: 75%;
}

/* Scrollbar — kept neutral */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mist); }
.dark ::-webkit-scrollbar-thumb { background: var(--slate); }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* =========================================================================
   GLOBAL HEADER — d'compose nav
   Always visible: fixed at top, transparent over dark hero, then picks up a
   soft Paper-tinted backdrop once the user scrolls past the first viewport.
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 48px;
  background: transparent;
  transition: background 300ms var(--ease), color 300ms var(--ease),
              backdrop-filter 300ms var(--ease), padding 300ms var(--ease);
}
.nav.on-dark { color: var(--paper); }

/* Once the page has scrolled past ~80% of viewport (App sets this on <body>),
   thicken the bar with a translucent Paper backdrop + ink text. This wins over
   any .on-dark class so the same nav stays readable above stone/paper sections. */
body[data-scrolled="true"] .nav {
  background: rgba(244, 244, 242, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink) !important;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body[data-scrolled="true"] .nav .brand-mark em { color: var(--mid-gray); }
.nav-left  { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 28px; justify-content: flex-end; }

.brand-mark {
  font-family: var(--font-latin);
  font-stretch: 75%;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.02em;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}
.brand-mark .apos { display: inline-block; transform: translateY(-0.05em); padding-right: 2px; }
.brand-mark em { font-style: normal; color: var(--mid-gray); }

.nav-menu { display: flex; gap: 28px; }
.nav-link {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  background: none; border: 0; padding: 4px 0;
  font-stretch: 75%;
  font-weight: 400;
  transition: opacity 200ms var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.nav-link .arr { display: inline-block; margin-left: 4px; transform: translateY(-1px); }

.nav-locale { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; cursor: pointer; }
.nav-locale .sel { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.surface-dark  { background: var(--carbon-black); color: var(--paper); }
.surface-paper { background: var(--paper); color: var(--ink); }
/* Warm concrete grey — used to break a long paper stretch and to ease the
   transition from a Carbon Black surface above. Text stays ink-black. */
.surface-stone { background: #BFBDB7; color: var(--ink); }
.surface-stone .hanging-label { opacity: 0.65; }
.surface-stone .kicker-kr,
.surface-stone .display-kr { color: var(--ink); }

/* Hanging label — sits in left margin (vertical-rl on desktop) */
.section {
  position: relative;
  padding: clamp(64px, 12vh, 144px) clamp(24px, 6vw, 96px);
}
.section.deep   { padding-top: clamp(96px, 16vh, 200px); padding-bottom: clamp(96px, 16vh, 200px); }
.section.full   { min-height: 100vh; display: flex; flex-direction: column; }
.section-inner  { max-width: 1280px; margin: 0 auto; width: 100%; }

.hanging-label {
  position: absolute;
  top: clamp(64px, 12vh, 144px);
  left: clamp(24px, 4vw, 64px);
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
  writing-mode: horizontal-tb;
  font-weight: 400;
  font-stretch: 75%;
}
@media (min-width: 1100px) {
  .hanging-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    top: clamp(96px, 16vh, 180px);
    left: clamp(32px, 3vw, 56px);
    letter-spacing: 0.35em;
  }
  .hanging-label .dot { display: block; height: 24px; }
}

/* Roman numeral that hangs above titles */
.roman {
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-stretch: 75%;
  font-weight: 300;
  opacity: 0.55;
  margin-bottom: 32px;
  display: block;
}

/* =========================================================================
   DISPLAY TYPE — English as visual asset, Korean as breath
   ========================================================================= */
.display-en {
  font-family: var(--font-latin);
  font-stretch: 75%;
  font-weight: 300;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  text-transform: lowercase;
}
.display-en.giant { font-size: clamp(96px, 18vw, 280px); }
.display-en .apos { color: inherit; opacity: 0.7; }
.display-en .breath {
  display: inline-block;
  width: 0.6ch;
  position: relative;
}
.display-en .breath::before {
  content: "·";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.4em;
  opacity: 0.4;
}

.display-kr {
  font-family: var(--font-kr);
  font-stretch: normal;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.display-kr.small { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; letter-spacing: 0.01em; }

.kicker-kr {
  font-family: var(--font-kr);
  font-stretch: normal;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.01em;
  line-height: 1.65;
  opacity: 0.7;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-stretch: 75%;
  font-weight: 400;
  opacity: 0.55;
}

/* Asymmetric line treatment — each <span class="ln"> gets a staggered indent */
.poem .ln { display: block; }
.poem .ln.i1 { padding-left: 0; }
.poem .ln.i2 { padding-left: clamp(24px, 6vw, 96px); }
.poem .ln.i3 { padding-left: clamp(48px, 12vw, 192px); }
.poem .ln + .ln { margin-top: 0.05em; }

/* =========================================================================
   BUTTONS — square, ink-filled, slow
   ========================================================================= */
.btn {
  font-family: var(--font-latin);
  font-weight: 400;
  font-stretch: 75%;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 200ms var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translate(1px, 1px); }
.btn.outline { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn.outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn.outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.large { padding: 22px 36px; font-size: 13px; }
.btn .arr { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn .arr.up-right { transform: rotate(-45deg); }
.btn:hover .arr.up-right { transform: rotate(-45deg) translateX(3px); }

/* Underlined link */
.link-u {
  font-family: var(--font-latin);
  font-stretch: 75%;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  background: none; border: 0; padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: text-decoration-thickness 200ms var(--ease);
}
.link-u:hover { text-decoration-thickness: 2px; }

/* =========================================================================
   PLACEHOLDER IMAGE BLOCKS — neutral grey-tone
   ========================================================================= */
.imgbox {
  background: var(--paper-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.surface-dark .imgbox { background: #181818; }
.imgbox::after {
  content: attr(data-label);
  font-family: var(--font-latin);
  font-stretch: 75%;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mid-gray);
  position: absolute;
  bottom: 16px;
  left: 16px;
}
/* Subtle frame-corner ticks */
.imgbox > .corner {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--mid-gray);
  opacity: 0.4;
}
.imgbox > .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.imgbox > .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.imgbox > .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.imgbox > .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* =========================================================================
   LINEUP NEXT — product photo cards mirror the home coming-soon set
   ========================================================================= */
.lineup-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lineup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1) contrast(1.02);
  user-select: none;
  -webkit-user-drag: none;
}
.lineup-photo-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; }

/* =========================================================================
   PRODUCT § PROMISE / § 3 STEPS — soft photo backdrop on Paper
   The Paper veil sits at high opacity so the photo reads as a ghosted
   underlayer, not a hero. Text legibility stays the priority.
   ========================================================================= */
.bg-photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  user-select: none;
  -webkit-user-drag: none;
}
/* PROMISE — backdrop drifts to the right (subject is there). Strong Paper
   veil on the left reads under the centered display copy. */
.promise-frame .bg-photo-wrap img { object-position: right center; }
.promise-frame .bg-photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(244,244,242,0.96) 0%,
      rgba(244,244,242,0.86) 35%,
      rgba(244,244,242,0.55) 65%,
      rgba(244,244,242,0.45) 100%),
    linear-gradient(180deg,
      rgba(244,244,242,0.0) 0%,
      rgba(244,244,242,0.25) 100%);
}

/* 3 STEPS — vertical pour photo. Subject sits dead-center, so use a top→bottom
   Paper veil that lets the photo breathe through the middle band. */
.steps-frame .bg-photo-wrap img { object-position: center; }
.steps-frame .bg-photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(244,244,242,0.92) 0%,
      rgba(244,244,242,0.62) 28%,
      rgba(244,244,242,0.55) 65%,
      rgba(244,244,242,0.96) 100%);
}
.steps-frame .section-inner { position: relative; z-index: 1; }
.promise-frame .section-inner { position: relative; z-index: 1; }

/* CARE — moody glass-bottle photo. The image is darker than the other two,
   so the Paper veil sits even higher to keep the section readable. The bottles
   read as a subtle wet-glass texture behind the care cards. */
.care-frame .bg-photo-wrap img {
  object-position: center;
  filter: grayscale(1) contrast(1.1) brightness(1.35);
}
.care-frame .bg-photo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(244,244,242,0.96) 0%,
      rgba(244,244,242,0.78) 30%,
      rgba(244,244,242,0.72) 60%,
      rgba(244,244,242,0.92) 100%);
}
.care-frame .section-inner { position: relative; z-index: 1; }

/* =========================================================================
   HOME COMING SOON — unified product photo cards
   ========================================================================= */
.coming-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  /* Neutralise stray colour casts (e.g. the blue flatlay) so the three
     photos read as one editorial set on the achromatic d'compose system. */
  filter: grayscale(1) contrast(1.02);
}
.coming-fallback {
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   HOME PHILOSOPHY — full-bleed image slot + reading veil
   ========================================================================= */
.philosophy-frame { background: var(--carbon-black); }
.philosophy-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: grayscale(0.15) brightness(0.72) contrast(1.05);
}
.philosophy-veil {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8,8,10,0.50) 0%,
      rgba(8,8,10,0.20) 30%,
      rgba(8,8,10,0.25) 65%,
      rgba(8,8,10,0.70) 100%),
    linear-gradient(95deg,
      rgba(8,8,10,0.55) 0%,
      rgba(8,8,10,0.20) 28%,
      rgba(8,8,10,0.0) 55%);
}

/* =========================================================================
   HOME HERO — photo + editorial overlay
   ========================================================================= */
.hero-frame { background: var(--carbon-black); }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Reading veil — fades the LEFT third so display type stays legible.
   The image's own "Step into the Spotlight" slogan lives in the bottom-right,
   so we deliberately keep that quadrant untouched. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(8,8,10,0.78) 0%,
      rgba(8,8,10,0.55) 22%,
      rgba(8,8,10,0.25) 42%,
      rgba(8,8,10,0) 58%),
    linear-gradient(180deg,
      rgba(8,8,10,0.35) 0%,
      rgba(8,8,10,0) 28%,
      rgba(8,8,10,0) 70%,
      rgba(8,8,10,0.25) 100%);
  pointer-events: none;
}
/* On small screens the slogan in the image is harder to keep clean — apply
   a flatter scrim across the whole frame instead of a left-only gradient. */
@media (max-width: 720px) {
  .hero-veil {
    background:
      linear-gradient(180deg,
        rgba(8,8,10,0.55) 0%,
        rgba(8,8,10,0.35) 40%,
        rgba(8,8,10,0.25) 70%,
        rgba(8,8,10,0.55) 100%);
  }
  .hero-photo { object-position: 75% center; }
}

/* CSS shower hero — abstract light pour, no real image (kept as fallback) */
.shower-light {
  position: absolute;
  inset: 0;
  background: var(--carbon-black);
  overflow: hidden;
}
.shower-light::before {
  content: "";
  position: absolute;
  top: -20%;
  right: 18%;
  width: 36%;
  height: 140%;
  background: radial-gradient(closest-side at 50% 30%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 35%, rgba(255,255,255,0) 70%);
  transform: rotate(8deg);
  pointer-events: none;
}
.shower-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 6px);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}
.shower-light .drips {
  position: absolute;
  top: -10%;
  right: 24%;
  width: 20%;
  height: 110%;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 1px, transparent 1px, transparent 14px);
  filter: blur(0.3px);
  opacity: 0.55;
  pointer-events: none;
}
.shower-light .tile {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}

/* Philosophy panel — abstract rain-window CSS scene */
.rain-window {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}
.rain-window::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(180,190,200,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #1c1d20 0%, #0e0e10 100%);
}
.rain-window::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(95deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 8px);
  opacity: 0.7;
}

/* =========================================================================
   FADE-IN ON SCROLL
   ========================================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }
.fade-up.delay-4 { transition-delay: 320ms; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  padding: clamp(64px, 10vh, 120px) clamp(24px, 6vw, 96px) 32px;
  border-top: 1px solid #222;
}
.foot.on-paper { border-top: 1px solid var(--mist); }
.foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.foot-display { font-family: var(--font-latin); font-stretch: 75%; font-weight: 300; font-size: clamp(48px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.foot-display .apos { opacity: 0.6; }
.foot-h { font-family: var(--font-latin); font-stretch: 75%; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.5; margin: 0 0 16px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; }
.foot-col a { color: inherit; text-decoration: none; opacity: 0.75; cursor: pointer; }
.foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid currentColor;
  border-color: rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.45;
  font-family: var(--font-latin);
  font-stretch: 75%;
  flex-wrap: wrap;
  gap: 24px;
}
.foot.on-paper .foot-base { border-color: var(--mist); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; padding: 18px 24px; }
  .nav-menu { display: none; }
  .nav-right { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* =========================================================================
   TWEAKS PANEL OVERRIDES — tighten the starter to brand voice
   ========================================================================= */
.tweaks-fab,
.tweaks-panel {
  font-family: var(--font-latin) !important;
  font-stretch: 75% !important;
  border-radius: 0 !important;
}
