:root {
  --ivory: #fbf7ee;
  --cream: #f4eadb;
  --champagne: #caa86a;
  --gold: #a47c38;
  --ink: #211d18;
  --muted: #7b7166;
  --line: rgba(75, 59, 39, .14);
  --shadow: 0 30px 90px rgba(84, 63, 38, .14);
  --ease: cubic-bezier(.21, .76, .28, .98);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.98) 0 10%, transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(221,188,133,.28), transparent 32%),
    linear-gradient(135deg, #fffaf1 0%, #f3e7d5 42%, #e9dfd2 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 18%, transparent 82%, rgba(255,255,255,.14));
  z-index: 2;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
#pearl-field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(222,183,112,.16) 45%, transparent 70%); transform: translate(-50%, -50%); z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .45; }
.nav, main, .footer { position: relative; z-index: 3; }
.nav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 32px)); height: 64px; padding: 0 12px 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(75,59,39,.18); border-radius: 999px; background: rgba(255, 250, 240, .86); backdrop-filter: blur(22px); box-shadow: 0 20px 55px rgba(98, 72, 38, .1); z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .22em; font-size: 13px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 20%, #fff 0 8%, #d7b978 11%, #917044 78%); letter-spacing: 0; font-family: Georgia, serif; font-style: italic; }
.nav-links { display: flex; gap: 26px; color: var(--muted); font-size: 13px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta, .btn { border: 0; border-radius: 999px; padding: 12px 20px; background: #211d18; color: #fff; box-shadow: 0 14px 35px rgba(33, 29, 24, .18); }
.hero { min-height: 100vh; padding: 150px clamp(22px, 5vw, 78px) 72px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr); align-items: center; gap: clamp(32px, 7vw, 96px); }
.eyebrow { margin: 0 0 18px; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 8vw, 126px); line-height: .9; letter-spacing: -.07em; font-weight: 400; }
h1 span { display: block; }
.hero-text { width: min(600px, 100%); color: #4f4438; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(33,29,24,.22); }
.btn.ghost { background: rgba(255,255,255,.52); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span, .filter { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: rgba(255,255,255,.42); color: var(--muted); font-size: 12px; backdrop-filter: blur(12px); }
.hero-art { min-height: 580px; display: grid; place-items: center; perspective: 1200px; }
.orbital-card { width: min(560px, 86vw); aspect-ratio: 4/5; position: relative; border-radius: 42% 42% 32% 32%; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(240,224,198,.36)); border: 1px solid rgba(255,255,255,.82); box-shadow: var(--shadow), inset 0 0 90px rgba(255,255,255,.85); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out; }
.orbital-card::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 120deg, transparent, rgba(255,255,255,.9), transparent, rgba(214,177,107,.34), transparent); animation: sweep 11s linear infinite; }
.halo { position: absolute; inset: 14%; border: 1px solid rgba(164,124,56,.22); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 70px rgba(255,255,255,.85); }
.pearl { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff 0 8%, #fbf8ef 20%, #dbcbb5 68%, #9f8e7a 100%); box-shadow: inset -18px -18px 28px rgba(120,99,78,.12), 0 18px 45px rgba(122,93,56,.18); }
.pearl-a { width: 158px; height: 158px; left: 12%; top: 17%; animation: float 7s var(--ease) infinite alternate; }
.pearl-b { width: 96px; height: 96px; right: 18%; top: 24%; animation: float 8s var(--ease) infinite alternate-reverse; }
.pearl-c { width: 122px; height: 122px; right: 22%; bottom: 21%; animation: float 6.6s var(--ease) infinite alternate; }
.jewel-ring { position: absolute; width: 180px; height: 180px; left: 22%; bottom: 18%; border: 18px solid rgba(197,155,78,.78); border-radius: 50%; box-shadow: inset 0 0 22px rgba(255,255,255,.65), 0 24px 60px rgba(94,70,40,.18); }
.jewel-drop { position: absolute; width: 4px; height: 220px; right: 32%; top: 18%; background: linear-gradient(#caa86a, transparent); transform: rotate(15deg); transform-origin: top; }
.caption-card { position: absolute; left: 28px; right: 28px; bottom: 26px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(255,255,255,.52); backdrop-filter: blur(18px); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.caption-card strong { color: var(--ink); font-family: Georgia, serif; font-weight: 400; }
.scroll-note { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.spell-strip { width: min(1120px, calc(100vw - 36px)); margin: -18px auto 90px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: rgba(255,255,255,.44); backdrop-filter: blur(20px); }
.spell-strip div { padding: 24px; border-right: 1px solid var(--line); }
.spell-strip div:last-child { border-right: 0; }
.spell-strip strong { display: block; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.spell-strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section { padding: 90px clamp(22px, 5vw, 78px); }
.section-head { width: min(820px, 100%); margin-bottom: 34px; }
.section-head.narrow { width: min(620px, 100%); }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 400; margin-bottom: 20px; }
.section-head p, .atelier-copy p { color: var(--muted); line-height: 1.85; font-size: 17px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter { transition: all .35s var(--ease); }
.filter.active, .filter:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-height: 470px; padding: 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 34px; background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(244,234,219,.45)); box-shadow: 0 18px 60px rgba(94,70,40,.09); overflow: hidden; transform-style: preserve-3d; transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .45s var(--ease); }
.product-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 34px 90px rgba(94,70,40,.16); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0 35%, rgba(255,255,255,.65), transparent 64%); transform: translateX(-120%); transition: transform .8s var(--ease); pointer-events: none; }
.product-card:hover::after { transform: translateX(120%); }
.product-visual { height: 290px; border-radius: 26px; display: grid; place-items: center; background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.9), rgba(232,218,194,.45) 45%, rgba(214,190,151,.12)); }
.svg-jewel { width: 78%; max-height: 230px; filter: drop-shadow(0 25px 24px rgba(95,75,48,.18)); }
.product-meta { padding: 18px 4px 0; }
.product-kicker { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.product-title { margin: 8px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.product-desc { color: var(--muted); line-height: 1.6; font-size: 13px; min-height: 42px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.price { font-family: Georgia, serif; font-size: 22px; }
.add { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.62); }
.add:hover { background: var(--ink); color: #fff; }
.product-card.hide { opacity: 0; transform: scale(.96); pointer-events: none; position: absolute; }
.atelier { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.atelier-visual { min-height: 520px; border-radius: 42px; border: 1px solid rgba(255,255,255,.72); background: radial-gradient(circle at 45% 26%, rgba(255,255,255,.95), rgba(241,223,194,.38) 42%, rgba(189,151,88,.12)); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.material-stack { width: min(420px, 86%); display: grid; gap: 14px; transform: rotate(-4deg); }
.material-stack span { padding: 22px 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: rgba(255,255,255,.48); backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(93,69,36,.08); transform: translateX(calc(var(--i) * 18px)); font-family: Georgia, serif; font-size: clamp(22px, 3vw, 34px); color: rgba(33,29,24,.82); }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--muted); line-height: 1.7; }
.feature-list span { color: var(--gold); font-family: Georgia, serif; }
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ritual-card { min-height: 300px; padding: 28px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.44); box-shadow: 0 20px 70px rgba(94,70,40,.08); transition: transform .45s var(--ease), background .45s var(--ease); }
.ritual-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.7); }
.ritual-card span { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.ritual-card h3 { margin: 70px 0 14px; font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.ritual-card p { color: var(--muted); line-height: 1.7; }
.appointment { width: min(1120px, calc(100vw - 36px)); margin: 70px auto 100px; padding: clamp(28px, 6vw, 72px); border-radius: 42px; border: 1px solid rgba(255,255,255,.72); background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(235,216,184,.42)); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr .8fr; gap: 34px; align-items: center; }
.mini-form { display: grid; gap: 12px; }
.mini-form input, .mini-form select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: rgba(255,255,255,.62); color: var(--ink); outline: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px clamp(22px, 5vw, 78px) 44px; color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 12px 18px; border-radius: 999px; color: #fff; background: rgba(33,29,24,.9); transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-reveal] { opacity: 1; transform: translateY(0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.nav[data-reveal] { transform: translateX(-50%); }
.motion-ready [data-reveal]:not(.visible) { opacity: 0; transform: translateY(24px); }
.motion-ready .hero [data-reveal]:not(.visible) { opacity: 1; transform: translateY(0); }
.motion-ready .nav[data-reveal]:not(.visible) { opacity: 1; transform: translateX(-50%); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }
.nav[data-reveal].visible { transform: translateX(-50%); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes float { to { transform: translate3d(10px, -22px, 30px); } }
@media (max-width: 960px) {
  .nav { top: 10px; height: auto; border-radius: 24px; padding: 12px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 126px; }
  .hero-art { min-height: 420px; }
  .spell-strip, .product-grid, .atelier, .ritual-grid, .appointment { grid-template-columns: 1fr; }
  .spell-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-grid { position: relative; }
  .product-card { min-height: auto; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-actions { flex-direction: column; }
  .btn, .nav-cta { width: 100%; }
  .caption-card { flex-direction: column; }
  .section { padding: 70px 18px; }
  .product-visual { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  #pearl-field, .cursor-glow { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* final PM polish: keep hero caption away from the sculpted mask edge */
.caption-card {
  left: clamp(54px, 5vw, 78px);
  right: clamp(54px, 5vw, 78px);
  bottom: 34px;
  padding: 16px 18px;
  align-items: center;
}
.caption-card strong { white-space: nowrap; }
@media (max-width: 700px) {
  .caption-card {
    left: 24px;
    right: 24px;
    bottom: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .caption-card strong { white-space: normal; }
}
