:root {
  --ink: #211b17;
  --ink-soft: #5f554e;
  --cream: #f7f2eb;
  --cream-deep: #eee5d9;
  --gold: #a98150;
  --gold-light: #cfb28e;
  --line: rgba(77, 59, 44, 0.16);
  --night: #171412;
  --night-soft: #2a231f;
  --white: #fffdf9;
  --serif: Didot, "Bodoni 72", "Times New Roman", serif;
  --cn: "Songti SC", STSong, "SimSun", "Noto Serif CJK SC", serif;
  --shadow: 0 20px 48px rgba(37, 29, 23, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--cn);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
}

.section {
  padding: 108px 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 25px 0;
  color: var(--white);
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  padding: 16px 0;
  background: rgba(247, 242, 235, 0.94);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

body.nav-open .site-header {
  background: var(--night);
  color: var(--white);
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--serif);
}

.brand span {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.23em;
  line-height: 1;
}

.brand .brand-cn {
  font-family: var(--cn);
  font-size: 26px;
  letter-spacing: 0.3em;
}

.brand small {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.36em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.nav-links a {
  position: relative;
  padding-bottom: 8px;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-action {
  min-width: 116px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 253, 249, 0.46);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled .nav-action {
  border-color: var(--gold);
}

.nav-action:hover {
  border-color: var(--gold-light);
  background: rgba(169, 129, 80, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  margin: 8px 0;
  background: currentColor;
  transition: transform 0.28s ease;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image::before,
.hero-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.hero-image::before {
  background: linear-gradient(90deg, rgba(18, 15, 13, 0.86) 0%, rgba(18, 15, 13, 0.62) 40%, rgba(18, 15, 13, 0.12) 76%);
}

.hero-image::after {
  background: linear-gradient(0deg, rgba(18, 15, 13, 0.42), transparent 34%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: slowZoom 13s ease-out forwards;
}

@keyframes slowZoom {
  from {
    transform: scale(1.055);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-content h1 {
  max-width: 600px;
  margin: 0 0 24px;
  font-family: var(--cn);
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.32;
}

.hero-content h1 span {
  display: block;
}

.hero-copy {
  max-width: 420px;
  margin: 0 0 46px;
  color: rgba(255, 253, 249, 0.76);
  font-size: 16px;
  letter-spacing: 0.13em;
  line-height: 2.2;
}

.hero-actions {
  display: flex;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 36px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.18em;
  transition: color 0.28s ease, border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: #ba9464;
}

.button-ghost {
  border-color: rgba(255, 253, 249, 0.5);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(207, 178, 142, 0.11);
}

.hero-detail {
  position: absolute;
  right: 48px;
  bottom: 47px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 253, 249, 0.6);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.hero-detail .line {
  width: 56px;
  height: 1px;
  background: var(--gold-light);
}

.scroll-cue {
  position: absolute;
  bottom: 45px;
  left: 50%;
  z-index: 2;
  display: block;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.2);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--gold-light);
  animation: scrollLine 1.9s infinite ease-in-out;
}

@keyframes scrollLine {
  from {
    transform: translateY(-28px);
  }
  to {
    transform: translateY(54px);
  }
}

.collection {
  background: var(--cream);
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2,
.craft-content h2,
.appointment-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.09em;
  line-height: 2.15;
}

.collection-toolbar {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-bottom: 50px;
}

.filter {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: #766a62;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.filter::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.filter.active {
  color: var(--ink);
}

.filter.active::after {
  transform: scaleX(1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.82;
  background: var(--cream-deep);
}

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

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.favorite {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(33, 27, 23, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.76);
}

.favorite span::before,
.favorite span::after {
  position: absolute;
  top: 20px;
  left: 13px;
  width: 17px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.favorite span::after {
  transform: rotate(90deg);
}

.favorite.is-saved span::after {
  opacity: 0;
}

.product-info {
  padding: 27px 7px 0;
}

.product-info p {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.24em;
}

.product-info h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.product-bottom a {
  flex-shrink: 0;
  color: var(--gold);
}

.craft {
  background: #efe7dc;
}

.craft-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.93fr) minmax(340px, 1fr);
  align-items: center;
  gap: 88px;
}

.craft-visual {
  position: relative;
  padding-bottom: 44px;
}

.craft-visual img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  object-position: 70% center;
}

.craft-note {
  position: absolute;
  right: -26px;
  bottom: 0;
  padding: 26px 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.craft-note strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.craft-note span {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.craft-content > p:not(.eyebrow) {
  margin: 0 0 42px;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2.25;
}

.craft-values {
  display: flex;
  gap: 34px;
  padding: 28px 0 39px;
  border-top: 1px solid var(--line);
}

.craft-values div {
  flex: 1;
}

.craft-values strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.craft-values span {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.text-link::after {
  width: 52px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 0.3s ease;
}

.text-link:hover::after {
  width: 72px;
}

.maison {
  background: var(--cream);
}

.quote {
  max-width: 890px;
  margin: 0 auto 85px;
  text-align: center;
}

.quote p {
  margin: 0 0 34px;
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.75;
}

.quote span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  padding: 50px 45px 12px 0;
}

.service + .service {
  padding-left: 45px;
  border-left: 1px solid var(--line);
}

.service span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
}

.service h3 {
  margin: 32px 0 19px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.09em;
  line-height: 2.1;
}

.appointment {
  padding: 104px 0;
  background: var(--night);
  color: var(--white);
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.83fr 1fr;
  align-items: start;
  gap: 86px;
}

.appointment-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 253, 249, 0.68);
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 2.25;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 24px;
}

.appointment-form label {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: rgba(255, 253, 249, 0.68);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.appointment-form .wide {
  grid-column: 1 / -1;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
  min-height: 55px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  letter-spacing: 0.08em;
  transition: border-color 0.25s ease;
}

.appointment-form input::placeholder {
  color: rgba(255, 253, 249, 0.35);
}

.appointment-form select option {
  background: var(--night);
}

.appointment-form input:focus,
.appointment-form select:focus {
  border-color: var(--gold-light);
}

.appointment-form .button {
  margin-top: 18px;
  border: 0;
}

.form-status {
  min-height: 22px;
  margin: -12px 0 0;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer {
  padding: 45px 0;
  background: #100e0c;
  color: rgba(255, 253, 249, 0.56);
}

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

.footer-brand span {
  color: var(--white);
  font-size: 25px;
}

.footer-brand .brand-cn {
  font-size: 23px;
}

.footer-links {
  display: flex;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.17em;
}

.footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.hero .reveal:nth-child(4) {
  transition-delay: 0.28s;
}

@media (max-width: 1040px) {
  .container {
    width: min(100% - 52px, 880px);
  }

  .nav {
    gap: 26px;
  }

  .nav-links {
    gap: 22px;
  }

  .craft-grid,
  .appointment-grid {
    gap: 54px;
  }

  .craft-values {
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 76px 0;
  }

  .site-header {
    padding: 18px 0;
  }

  .brand span {
    font-size: 27px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    margin: 0;
    background: var(--night);
    color: var(--white);
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

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

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 740px;
  }

  .hero-image::before {
    background: linear-gradient(0deg, rgba(18, 15, 13, 0.86), rgba(18, 15, 13, 0.3) 90%);
  }

  .hero-image img {
    object-position: 69% center;
  }

  .hero-content {
    align-self: end;
    padding-top: 0;
    padding-bottom: 102px;
  }

  .hero-copy {
    margin-bottom: 34px;
  }

  .hero-detail {
    display: none;
  }

  .scroll-cue {
    right: 28px;
    bottom: 33px;
    left: auto;
  }

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

  .product-card:last-child {
    grid-column: span 2;
    width: calc(50% - 14px);
    margin: 0 auto;
  }

  .craft-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .craft-visual {
    max-width: 540px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service,
  .service + .service {
    padding: 34px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .quote {
    margin-bottom: 50px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .container {
    width: calc(100% - 38px);
  }

  .hero {
    min-height: 690px;
  }

  .hero-content h1 {
    font-size: clamp(39px, 12vw, 48px);
    letter-spacing: 0.1em;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 2;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .collection-toolbar {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 43px;
  }

  .product-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .craft-note {
    right: 14px;
    padding: 20px 24px;
  }

  .craft-values {
    flex-direction: column;
  }

  .quote p {
    font-size: 25px;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
