:root {
  color-scheme: light;
  --paper: #eeeae4;
  --paper-soft: #f7f4ef;
  --ink: #241f20;
  --muted: #71696a;
  --line: #cfc6c2;
  --rose: #9e5366;
  --plum: #2b1e26;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-display: Georgia, "Songti SC", "Noto Serif CJK SC", "Microsoft YaHei UI", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100dvh; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--font-body); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.shell { width: min(1420px, calc(100% - 56px)); margin-inline: auto; }
.section { padding-block: clamp(104px, 12vw, 176px); }
.micro-label { margin-bottom: 18px; color: var(--rose); font-size: 10px; font-weight: 760; letter-spacing: .18em; text-transform: uppercase; }

.beauty-header { position: sticky; top: 0; z-index: 30; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px max(28px, calc((100vw - 1420px) / 2)); border-bottom: 1px solid rgb(108 94 96 / .18); background: rgb(238 234 228 / .88); backdrop-filter: blur(20px) saturate(120%); }
.beauty-header.is-scrolled { box-shadow: 0 16px 44px rgb(73 55 59 / .08); }
.beauty-brand { width: fit-content; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.beauty-brand strong { font-family: var(--font-display); font-size: 16px; font-weight: 400; letter-spacing: .08em; }
.beauty-mark { width: 18px; height: 26px; border-radius: 50% 50% 46% 46%; background: linear-gradient(155deg, #e5c7ce, #a84f68 64%, #54313c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65); }
.beauty-header nav { display: flex; gap: 30px; }
.beauty-header nav a { color: var(--muted); font-size: 12px; font-weight: 680; text-decoration: none; }
.beauty-header nav a:hover { color: var(--rose); }
.directory-link { justify-self: end; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 720; text-decoration: none; }

.beauty-hero { min-height: calc(100dvh - 72px); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding: clamp(56px, 7vw, 100px) max(28px, calc((100vw - 1420px) / 2)); }
.hero-word { position: absolute; left: -.03em; top: -.08em; z-index: -2; color: #e3deda; font-family: var(--font-display); font-size: clamp(170px, 25vw, 390px); line-height: .8; letter-spacing: -.09em; pointer-events: none; }
.hero-copy { grid-column: 1 / 6; position: relative; z-index: 3; padding-bottom: clamp(40px, 5vw, 80px); }
.hero-copy h1 { max-width: 7.5ch; margin-bottom: 28px; font-family: var(--font-display); font-size: clamp(62px, 7vw, 108px); font-weight: 400; line-height: .88; letter-spacing: -.08em; }
.hero-copy h1 em { color: var(--rose); font-weight: 400; }
.hero-copy > p:not(.micro-label) { max-width: 31ch; margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.beauty-button { min-height: 50px; width: fit-content; display: inline-flex; align-items: center; padding: 0 22px; border: 1px solid var(--ink); color: var(--paper-soft); background: var(--ink); text-decoration: none; font-size: 13px; font-weight: 720; transition: transform .22s ease, background .22s ease; }
.beauty-button:hover { transform: translateY(-2px); background: var(--rose); }
.hero-visual { grid-column: 6 / 13; min-height: min(74dvh, 850px); position: relative; z-index: 1; margin-left: -4vw; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.hero-visual img { object-position: center; filter: saturate(.72) contrast(.95); }
.hero-formula { grid-column: 8 / 11; align-self: end; position: relative; z-index: 4; display: grid; gap: 7px; margin: 0 0 5vw -6vw; padding: 24px; border: 1px solid rgb(255 255 255 / .65); background: rgb(247 244 239 / .78); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgb(69 45 53 / .16); }
.hero-formula span, .hero-formula p { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.hero-formula strong { font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.hero-formula p { margin: 0; }
.hero-insert { grid-column: 11 / 13; align-self: start; position: relative; z-index: 4; aspect-ratio: 1; margin: 5vw 0 0 -3vw; border: 10px solid var(--paper-soft); box-shadow: 0 20px 60px rgb(64 43 50 / .15); transform: rotate(4deg); }

.beauty-manifesto { border-bottom: 1px solid var(--line); }
.manifesto-line { margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -.065em; }
.manifesto-offset { margin-left: 14vw; color: var(--rose); }
.manifesto-note { display: flex; justify-content: flex-end; gap: 30px; margin-top: 50px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.ingredients { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); align-items: end; gap: clamp(50px, 8vw, 120px); }
.ingredient-visual { min-height: 720px; }
.ingredient-visual img { filter: saturate(.72); }
.ingredient-visual figcaption { min-height: 44px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ingredient-copy { padding-bottom: 44px; }
.ingredient-copy h2, .formula-copy h2, .collection-heading h2, .routine h2 { margin-bottom: 26px; font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 76px); font-weight: 400; line-height: .95; letter-spacing: -.065em; }
.ingredient-copy > p:not(.micro-label), .formula-copy > p:not(.micro-label) { margin-bottom: 32px; color: var(--muted); line-height: 1.75; }
.ingredient-data { margin: 0; border-top: 1px solid var(--line); }
.ingredient-data div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ingredient-data dt { margin-bottom: 6px; font-weight: 720; }
.ingredient-data dd { margin: 0; color: var(--muted); font-size: 12px; }

.formula-section { color: #eee9e6; background: var(--plum); }
.formula-layout { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 110px); align-items: center; }
.formula-copy > p:not(.micro-label) { color: #bcb0b5; }
.formula-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #54434b; }
.formula-steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 17px 0; border-bottom: 1px solid #54434b; }
.formula-steps li span { color: #b77a8a; font-size: 10px; }
.formula-steps li strong { font-size: 13px; }
.formula-steps li small { color: #9f9298; }
.formula-visual { min-height: 650px; }
.formula-visual img { filter: saturate(.62) contrast(.9); }
.formula-metrics { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -70px; border: 1px solid #5b4851; background: rgb(43 30 38 / .88); backdrop-filter: blur(18px); }
.formula-metrics div { display: grid; gap: 7px; padding: 24px; border-right: 1px solid #5b4851; }
.formula-metrics div:last-child { border-right: 0; }
.formula-metrics strong { font-family: var(--font-display); font-size: 32px; font-weight: 400; }
.formula-metrics span { color: #a89a9f; font-size: 9px; letter-spacing: .1em; }

.collection-heading { max-width: 800px; margin-bottom: clamp(54px, 8vw, 100px); }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.product-card { grid-column: span 5; }
.product-card-large { grid-column: span 7; }
.product-card-offset { grid-column: 7 / 12; margin-top: -18vw; }
.product-media { min-height: 560px; background: #e1dbd5; }
.product-card-large .product-media { min-height: 760px; }
.product-media img { filter: saturate(.7); transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .3s ease; }
.product-card:hover .product-media img { transform: scale(1.025); filter: saturate(.9); }
.product-info { padding: 22px 2px 38px; border-bottom: 1px solid var(--line); }
.product-info span { color: var(--rose); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.product-info h3 { margin: 22px 0 10px; font-family: var(--font-display); font-size: 35px; font-weight: 400; letter-spacing: -.05em; }
.product-info p { margin: 0; color: var(--muted); font-size: 13px; }

.routine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(400px, 6fr); gap: clamp(60px, 10vw, 150px); border-top: 1px solid var(--line); }
.routine ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routine li { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.routine li span { color: var(--rose); font-size: 10px; }
.routine li strong { font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.routine li p { margin: 0; color: var(--muted); font-size: 12px; }

.beauty-footer { min-height: 180px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.beauty-footer div { display: grid; gap: 7px; }
.beauty-footer strong { font-family: var(--font-display); font-weight: 400; letter-spacing: .08em; }
.beauty-footer span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.beauty-footer a { color: var(--rose); font-size: 13px; font-weight: 720; text-underline-offset: 6px; }

.media { position: relative; overflow: hidden; }
.media.is-loading::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, #ded8d2 20%, #eee9e4 45%, #ded8d2 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.media.is-loading img { opacity: 0; }
.media.is-error::after { content: attr(data-error); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); background: #e1dbd6; text-align: center; }
@keyframes shimmer { to { background-position: -220% 0; } }
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid rgb(158 83 102 / .55); outline-offset: 3px; }

@media (max-width: 980px) {
  .beauty-hero { grid-template-columns: 1fr; align-items: start; padding-inline: 0; padding-top: 54px; }
  .hero-word { top: 20px; font-size: 32vw; }
  .hero-copy { grid-column: 1; z-index: 4; padding: 50px 28px 44px; }
  .hero-visual { grid-column: 1; min-height: 70dvh; margin: 0; clip-path: none; }
  .hero-formula { grid-column: 1; width: min(360px, calc(100% - 56px)); margin: -110px 28px 32px auto; }
  .hero-insert { display: none; }
  .ingredients, .formula-layout, .routine { grid-template-columns: 1fr; }
  .ingredient-visual { min-height: 600px; }
  .ingredient-copy { max-width: 720px; padding-bottom: 0; }
  .formula-metrics { grid-column: 1; margin-top: -50px; }
  .product-card, .product-card-large { grid-column: span 6; }
  .product-card-offset { grid-column: 4 / 10; margin-top: 0; }
}

@media (max-width: 767px) {
  .shell { width: min(100% - 30px, 680px); }
  .section { padding-block: 94px; }
  .beauty-header { min-height: 64px; grid-template-columns: 1fr auto; padding: 10px 15px; }
  .beauty-header nav { display: none; }
  .beauty-brand strong { font-size: 13px; }
  .beauty-mark { width: 15px; height: 22px; }
  .beauty-hero { min-height: calc(100dvh - 64px); }
  .hero-copy { padding: 30px 15px 42px; }
  .hero-copy h1 { max-width: 8ch; font-size: clamp(52px, 15vw, 72px); }
  .hero-copy > p:not(.micro-label) { font-size: 16px; }
  .hero-visual { min-height: 62dvh; }
  .hero-formula { width: calc(100% - 30px); margin: -82px 15px 24px; }
  .manifesto-line { font-size: clamp(40px, 11vw, 56px); }
  .manifesto-offset { margin-left: 0; }
  .manifesto-note { justify-content: flex-start; flex-wrap: wrap; gap: 12px 22px; }
  .ingredient-visual { min-height: 480px; }
  .ingredient-copy h2, .formula-copy h2, .collection-heading h2, .routine h2 { font-size: clamp(40px, 11vw, 56px); }
  .formula-visual { min-height: 520px; }
  .formula-metrics { margin-top: -30px; }
  .formula-metrics div { padding: 16px 12px; }
  .formula-metrics strong { font-size: 25px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card-large, .product-card-offset { grid-column: auto; margin-top: 0; }
  .product-media, .product-card-large .product-media { min-height: 520px; }
  .routine { gap: 48px; }
  .routine li { grid-template-columns: 55px 1fr; }
  .routine li p { grid-column: 2; }
  .beauty-footer { min-height: 160px; align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: clamp(48px, 14.6vw, 57px); }
  .directory-link { font-size: 11px; }
  .formula-steps li { grid-template-columns: 28px 1fr; }
  .formula-steps li small { grid-column: 2; }
  .formula-metrics span { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .beauty-header { background: var(--paper); backdrop-filter: none; }
  .hero-formula, .formula-metrics { backdrop-filter: none; }
}
