:root {
  --ink: #141312;
  --ink-soft: #5f5550;
  --paper: #f6f0e8;
  --pearl: #fffaf3;
  --white: #ffffff;
  --line: #d9cfc2;
  --wine: #7d1f2d;
  --wine-dark: #521620;
  --brass: #c99646;
  --rose: #e8b9aa;
  --forest: #164f45;
  --sage: #dfe7de;
  --shadow: 0 24px 54px rgba(20, 19, 18, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 48px;
  background: rgba(255, 250, 243, 0.92);
  border-bottom: 1px solid rgba(20, 19, 18, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 19, 18, 0.22);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--wine);
}

.menu-toggle {
  display: inline-flex;
  flex: 0 0 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2px 0;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 88px 48px 86px;
  background-image: url("assets/perfume-hero.jpg");
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 19, 18, 0.84) 0%, rgba(20, 19, 18, 0.62) 38%, rgba(20, 19, 18, 0.16) 72%),
    linear-gradient(0deg, rgba(20, 19, 18, 0.32), rgba(20, 19, 18, 0.02));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #f4d4a5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 22px;
  font-size: 66px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 40px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.32;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--wine-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

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

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--forest);
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--wine);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--forest);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
}

.hero-stats div {
  min-width: 118px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stats dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 600;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.section,
.section-band {
  padding: 88px 48px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-muted {
  background: var(--sage);
}

.intro {
  background: var(--pearl);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.intro-grid p:last-child,
.editorial-copy p,
.service-card p,
.case-card p,
.process-list p,
.contact-copy {
  color: var(--ink-soft);
}

.intro-grid p:last-child {
  margin: 36px 0 0;
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading.split > div:first-child {
  max-width: 720px;
}

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

.service-card,
.case-card,
.contact-form {
  border: 1px solid rgba(20, 19, 18, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 430px;
  padding: 22px;
}

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

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0e8de;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card.featured {
  background: #181412;
  color: var(--white);
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.74);
}

.product-card.featured .text-link {
  color: #f1c57d;
}

.product-card.featured .product-family {
  color: #f1c57d !important;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rose);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.product-visual::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(38px, -24px);
}

.bottle {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 116px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px 14px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 42%, rgba(20, 19, 18, 0.2)),
    rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 40px rgba(20, 19, 18, 0.22);
}

.bottle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 36px;
  height: 28px;
  border-radius: 6px 6px 2px 2px;
  background: var(--brass);
  transform: translateX(-50%);
}

.bottle::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.bottle-rose {
  background:
    linear-gradient(135deg, rgba(125, 31, 45, 0.58), rgba(232, 185, 170, 0.8)),
    var(--rose);
}

.bottle-amber {
  background:
    linear-gradient(135deg, rgba(82, 22, 32, 0.72), rgba(201, 150, 70, 0.78)),
    var(--brass);
}

.bottle-wood {
  background:
    linear-gradient(135deg, rgba(22, 79, 69, 0.82), rgba(223, 231, 222, 0.8)),
    var(--forest);
}

.product-family {
  margin-bottom: 8px;
  color: var(--wine) !important;
  font-size: 13px;
  font-weight: 800;
}

.editorial {
  background: #ece2d6;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: 62px;
  align-items: center;
}

.editorial-image {
  min-height: 520px;
  border-radius: 8px;
  background-image: url("assets/perfume-gold.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.editorial-copy {
  max-width: 560px;
}

.editorial-copy p {
  margin: 20px 0 28px;
  font-size: 18px;
}

.section-photo {
  background: var(--pearl);
}

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

.gallery-card {
  margin: 0;
  border: 1px solid rgba(20, 19, 18, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  background: #f0e8de;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 21px;
  font-weight: 600;
}

.case-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.case-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.case-tab.active {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.case-card {
  display: none;
  min-height: 260px;
  padding: 28px;
}

.case-card.is-visible {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-card::before {
  content: "";
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--wine), var(--brass));
}

.case-tag {
  margin-bottom: 10px;
  color: var(--forest) !important;
  font-size: 14px;
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 3px solid var(--line);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--wine);
  color: var(--white);
  font-weight: 900;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(22, 79, 69, 0.92), rgba(20, 19, 18, 0.96)),
    var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 60px;
  align-items: start;
}

.contact-copy {
  max-width: 540px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--pearl);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 48px;
  color: var(--ink-soft);
  background: var(--pearl);
}

.site-footer p {
  margin: 0;
}

@media (min-width: 721px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 28px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 32px;
  }

  .hero,
  .section,
  .section-band {
    padding-left: 28px;
    padding-right: 28px;
  }

  .intro-grid,
  .editorial-grid,
  .contact-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-grid,
  .case-grid,
  .gallery-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .case-card {
    min-height: auto;
  }

  .editorial-image {
    min-height: 420px;
  }

  .gallery-card figcaption {
    font-size: 18px;
    padding: 14px 16px 16px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
    padding: 0 78px 0 18px;
    width: 100vw;
    max-width: 100vw;
  }

  .brand {
    font-size: 15px;
  }

  .menu-toggle {
    flex: 0 0 42px;
    display: inline-flex;
    position: absolute;
    top: 11px;
    right: 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    border-color: var(--ink);
  }

  .menu-toggle span {
    width: 16px;
    margin: 2px 0;
    background: var(--paper);
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(255, 250, 243, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 75svh;
    padding: 70px 18px 72px;
    background-position: 62% center;
    width: 100vw;
    max-width: 100vw;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(20, 19, 18, 0.88), rgba(20, 19, 18, 0.38));
  }

  .hero-content {
    width: min(100%, calc(100vw - 36px));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-copy,
  .intro-grid p:last-child,
  .editorial-copy p,
  .contact-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats div {
    min-width: 94px;
  }

  .hero-stats dt {
    font-size: 25px;
  }

  .section,
  .section-band {
    padding: 66px 18px;
  }

  .service-card,
  .contact-form,
  .case-card {
    padding: 22px;
  }

  .product-visual {
    min-height: 165px;
  }

  .editorial-image {
    min-height: 360px;
  }

  .gallery-card figcaption {
    font-size: 17px;
  }

  .case-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
