/* ===== Fandora 繁朵拉 ===== */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --color-primary-light: #B49DF0;
  --color-primary-dark: #6B4EC7;
  --color-primary-tint: #FFFFFF;

  --ink: #1e1b26;
  --muted: #6d6879;
  --line: #e8e4f0;
  --wash: #f7f5fc;

  --serif: "Cormorant", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--color-primary-tint);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.label {
  display: inline-block;
  font-family: var(--sans); font-weight: 400; font-size: 11px;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--color-primary-dark);
}
.it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.rule { width: 48px; height: 1px; background: var(--color-primary-light); border: 0; margin: 28px 0; }
.center .rule, .rule.center { margin-inline: auto; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 34px;
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid var(--color-primary-dark);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn-solid { background: var(--color-primary-dark); color: #fff; }
.btn-solid:hover { background: #5a3fb3; border-color: #5a3fb3; }
.btn-line { color: var(--color-primary-dark); }
.btn-line:hover { background: var(--color-primary-dark); color: #fff; }
.btn-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-white:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-primary-dark);
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .4s ease;
}
.link:hover { background-size: 40% 1px; }
.link::after { content: "→"; letter-spacing: 0; transition: transform .3s; }
.link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 46px; width: auto; }
.logo span { font-family: var(--serif); font-size: 15px; letter-spacing: .5em; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); line-height: 1; }
.nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; }
.nav a {
  position: relative; font-size: 13px; letter-spacing: .14em; color: var(--ink); padding: 6px 0; font-weight: 400;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--color-primary-dark); transform: scaleX(0); transition: transform .35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--color-primary-dark); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 880px) {
  :root { --header: 68px; }
  .logo img { height: 38px; }
  .logo span { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
    background: #fff; border-top: 1px solid var(--line); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; padding: 24px var(--gutter); }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 20px 0; font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }
  .nav a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(64px, 10vw, 128px) 0 0; }
.hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 300; margin: 26px 0 0; letter-spacing: .02em; }
.hero h1 em { font-style: italic; color: var(--color-primary-dark); }
.hero .it { font-size: clamp(18px, 2vw, 24px); margin-top: 14px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.vitrine {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  margin-top: clamp(40px, 6vw, 72px);
  padding-inline: clamp(0px, 2vw, 24px);
}
.vitrine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.vitrine figure { margin: 0; }
.vitrine figure:hover img { transform: translateY(-10px); }
.vitrine figcaption { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); margin-top: -4px; }
@media (max-width: 760px) {
  .vitrine { grid-template-columns: repeat(3, 1fr); }
  .vitrine figure:nth-child(n+4) { display: none; }
  .vitrine figcaption { font-size: 13px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section.tight { padding-top: 0; }
.head { max-width: 640px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 18px; }
.head .it { font-size: 20px; margin-top: 8px; }
.head p.body { color: var(--muted); margin-top: 22px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }

/* about / statement */
.statement { border-top: 1px solid var(--line); }
.statement .grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(32px, 6vw, 96px); }
.statement blockquote {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6;
}
.statement blockquote strong { font-weight: 500; color: var(--color-primary-dark); }
.statement .en { margin-top: 28px; font-size: 19px; line-height: 1.7; max-width: 46em; }
@media (max-width: 880px) { .statement .grid { grid-template-columns: 1fr; } }

/* three disciplines */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.trio article { display: flex; flex-direction: column; }
.frame { position: relative; overflow: hidden; background: var(--wash); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a:hover .frame img, article:hover .frame img { transform: scale(1.04); }
.trio .frame { aspect-ratio: 4 / 5; }
.trio .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--color-primary-light); margin-top: 28px; }
.trio h3 { font-size: 30px; margin-top: 6px; }
.trio h3 small { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin-top: 4px; }
.trio p { color: var(--muted); margin-top: 16px; font-size: 15px; flex: 1; }
.trio .link { margin-top: 28px; align-self: flex-start; }
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; gap: 64px; } .trio .frame { aspect-ratio: 4 / 3; } }

/* collection grid */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px clamp(20px, 2.4vw, 32px); }
.products.three { grid-template-columns: repeat(3, 1fr); }
.product .frame { aspect-ratio: 1; }
.product .frame.white { background: #fff; }
.product .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.product .placeholder img { width: 34%; height: auto; opacity: .22; transform: none !important; }
.product h3 { font-size: 24px; margin-top: 22px; }
.product .en { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--color-primary-dark); margin-top: 2px; }
.product p { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.75; }
.product p + p { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 15px; }
@media (max-width: 1024px) { .products, .products.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products, .products.three { grid-template-columns: 1fr; } }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .frame { aspect-ratio: 4 / 5; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .split .frame { aspect-ratio: 4 / 3; } }

.services { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.services .n { font-family: var(--serif); font-style: italic; color: var(--color-primary-light); font-size: 18px; }
.services b { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.services .it { display: block; font-size: 16px; margin-top: 2px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.duo .frame { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); }
.duo .frame img { object-fit: contain; padding: 10%; }
.duo figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.duo figure { margin: 0; }

/* contact band */
.band { background: var(--color-primary-dark); color: #fff; }
.band .label { color: rgba(255,255,255,.75); }
.band .it { color: rgba(255,255,255,.72); }
.band .rule { background: rgba(255,255,255,.5); }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: end; }
.contact h2 { font-size: clamp(40px, 5vw, 64px); margin-top: 18px; font-weight: 300; }
.contact p.body { color: rgba(255,255,255,.88); margin-top: 22px; max-width: 30em; }
.contact .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.contact dl { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.contact dl div { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.22); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact dt { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.85); padding-top: 6px; }
.contact dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.contact dd a:hover { opacity: .75; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } .contact dl div { grid-template-columns: 1fr; gap: 4px; } }

/* footer */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--line); }
.footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer .top img { height: 64px; width: auto; }
.footer .top p { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 26em; }
.footer h4 { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--color-primary-dark); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--color-primary-dark); }
.footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 760px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- cakes page ---------- */
.page-head { text-align: center; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 300; margin-top: 22px; }
.page-head p { max-width: 600px; margin: 0 auto; color: var(--muted); }
.page-head p.it { margin-top: 12px; font-size: 18px; line-height: 1.6; }

.tabs { position: sticky; top: var(--header); z-index: 40; background: rgba(255,255,255,.96); border-block: 1px solid var(--line); }
.tabs ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px); overflow-x: auto; scrollbar-width: none; max-width: var(--wrap); }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: 18px 0; white-space: nowrap; font-size: 13px; letter-spacing: .16em; color: var(--muted); position: relative; transition: color .3s; }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--color-primary-dark); transform: scaleX(0); transition: transform .35s; }
.tabs a:hover, .tabs a.active { color: var(--color-primary-dark); }
.tabs a.active::after { transform: scaleX(1); }
@media (max-width: 600px) { .tabs ul { justify-content: flex-start; } }

.category { padding-top: clamp(72px, 9vw, 120px); scroll-margin-top: calc(var(--header) + 60px); }
.category-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.category-head .n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--color-primary-light); }
.category-head h2 { font-size: clamp(32px, 3.6vw, 44px); }
.category-head .it { font-size: 20px; }
.category-head .count { margin-left: auto; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 300; margin-top: 18px; }
.cta p { margin: 20px auto 0; max-width: 34em; color: rgba(255,255,255,.8); }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
