:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7fbfb;
  --text-main: #0e1f22;
  --text-sub: #55686c;
  --line: rgba(18, 62, 71, 0.08);
  --primary: #123e47; /* Dark Teal */
  --accent: #e7f2f4;
  --heading-font: "Cormorant Garamond", "Noto Serif KR", serif;
  --body-font: "Inter", "Noto Sans KR", sans-serif;
  --display-font: "Cormorant Garamond", serif;
  --container: 1200px;
  --side-pad: 48px;
  --tablet-pad: 36px;
  --mobile-pad: 20px;
  --desktop-section-pad: 96px;
  --mobile-section-pad: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 20px rgba(18, 62, 71, 0.03);
  --shadow-card: 0 10px 30px rgba(18, 62, 71, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

button,
input,
select {
  font: inherit;
  background: none;
  border: none;
}

.shell {
  width: min(calc(100% - (var(--side-pad) * 2)), var(--container));
  margin: 0 auto;
}

/* --- Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-shell-dewmuse {
  display: flex;
  flex-direction: column;
  padding: 24px 0 16px;
  position: relative;
}

.header-row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  align-items: center;
  margin-bottom: 18px;
}

.header-promo {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.brand {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-align: center;
}

.header-utility {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-sub);
}

.header-utility a:hover {
  color: var(--primary);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  width: 100%;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.is-current {
  color: var(--primary);
}

.site-nav a.is-current::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: currentColor;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 640px;
  background-color: #d5e0e9; /* Match the left edge of the image to blend seamlessly */
  display: flex;
  align-items: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-shell {
  width: min(calc(100% - (var(--side-pad) * 2)), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Keep content above background elements */
}

.hero-image-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain ensures the bottle and flower are NEVER cut off! */
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

.hero-copy {
  max-width: 460px;
}

.hero-copy h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-body {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0; /* Sharp corners */
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.button--primary {
  background: var(--primary);
  color: white;
}

.button--primary:hover {
  background: #0b262c;
  transform: translateY(-1px);
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-visual img {
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.page-hero {
  padding: 84px 0 40px;
  background:
    radial-gradient(circle at top left, rgba(231, 242, 244, 0.9), transparent 44%),
    linear-gradient(180deg, #fbfefe 0%, #f5fbfc 100%);
}

.page-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 48px;
  align-items: end;
}

.page-hero__body {
  max-width: 620px;
}

.page-hero__body h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 4vw, 4.3rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 22px;
}

.page-hero__body p {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 54ch;
}

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.page-hero__card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 62, 71, 0.08);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.page-hero__card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.page-hero__card p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.7;
}

.collection-panels__grid,
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-panel,
.journal-card {
  padding: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.collection-panel h3,
.journal-card h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 16px;
}

.collection-panel p,
.journal-card p {
  color: var(--text-sub);
  margin-bottom: 18px;
}

.collection-panel span,
.journal-card span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 10px;
}

/* --- Section Layouts --- */
.section {
  padding: var(--desktop-section-pad) 0;
}

.section-sidebar {
  width: 100%;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 24px;
}

.link-underline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
}

.link-underline:hover {
  color: var(--text-sub);
  border-color: var(--text-sub);
}

/* --- Bestsellers Section --- */
.bestsellers-shell,
.rituals-shell {
  display: grid;
  grid-template-columns: 3.2fr 8.8fr;
  gap: 56px;
  align-items: start;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fbfb;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: border-color 0.3s ease;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
  border-color: var(--primary);
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

/* Precise crops to isolate cream jar and show unique products */
.product-card__image--serum img {
  object-fit: cover;
  object-position: center;
}

.product-card__image--cream img {
  width: 185%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 92% center;
}

.product-card__image--essence img {
  object-fit: cover;
  object-position: center;
}

.product-card__image--spf img {
  object-fit: cover;
  object-position: center;
}

.step-card__image--cream img {
  width: 185%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 92% center;
}

/* Floating Award Badge */
.award-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #c9a66b;
  color: #ab8646;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}

.product-card__info {
  margin-top: 16px;
  text-align: center;
}

.product-card__info h3 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.price {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* --- Rituals Section --- */
.steps-container {
  width: 100%;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fbfb;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}

.step-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.step-card__info {
  position: relative;
  padding-left: 28px;
}

.step-num {
  position: absolute;
  top: -2px;
  left: 0;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--primary);
}

.step-card__info h3 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-card__info p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.step-arrow {
  font-size: 1.4rem;
  color: var(--text-sub);
  opacity: 0.6;
  margin-top: 80px; /* Aligns with center of 180px square image */
  align-self: flex-start;
}

/* --- Ingredient Philosophy --- */
.ingredients-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 84px;
  align-items: center;
}

.ingredients-visual {
  display: flex;
  justify-content: center;
}

.circle-image-frame {
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.circle-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ingredients-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 34px;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.icon-svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.icon-item span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.35;
}

/* --- Our Story Section --- */
.story-shell {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 84px;
  align-items: center;
}

.story-body {
  color: var(--text-sub);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.story-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.story-visual img {
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

/* --- Trust Banner --- */
.trust-banner {
  background: #f7fbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.trust-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.trust-text span {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* --- Deep Footer --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 80px 0 48px;
}

.footer-shell-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1.2fr) 2.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.52rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-sub);
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-main);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer-col nav {
  display: grid;
  gap: 12px;
}

.footer-col nav a {
  font-size: 0.86rem;
  color: var(--text-sub);
}

.footer-col nav a:hover {
  color: var(--primary);
}

.footer-col--subscribe p {
  font-size: 0.86rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 8px;
}

.subscribe-form input {
  width: 100%;
  font-size: 0.86rem;
  color: var(--text-main);
}

.subscribe-form input::placeholder {
  color: var(--text-sub);
  opacity: 0.7;
}

.subscribe-form input:focus {
  outline: none;
}

.subscribe-form button {
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  :root {
    --side-pad: var(--tablet-pad);
  }

  .hero {
    flex-direction: column;
    padding: 64px 0 0;
    align-items: flex-start;
  }

  .hero-shell {
    width: 100%;
    margin-bottom: 32px;
  }

  .hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6 / 1;
    display: block;
    margin-top: 24px;
  }

  .hero-image-container img {
    object-position: center bottom;
  }

  .bestsellers-shell,
  .rituals-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .step-arrow {
    display: none; /* Hide arrows on wrap grid */
  }

  .ingredients-shell,
  .story-shell {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .page-hero__shell,
  .collection-panels__grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-shell-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-col--brand,
  .footer-col--subscribe {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --side-pad: var(--mobile-pad);
  }

  .section {
    padding: var(--mobile-section-pad) 0;
  }

  .main-header-shell {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 0;
  }

  .brand {
    font-size: 1.62rem;
    margin-bottom: 0;
  }

  .header-row-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .header-promo {
    text-align: center;
    margin-bottom: 4px;
  }

  .header-utility {
    justify-content: center;
    width: 100%;
    gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    margin: 8px auto 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: var(--mobile-pad);
    right: var(--mobile-pad);
    display: grid;
    gap: 12px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .trust-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-shell-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--brand,
  .footer-col--subscribe {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
