:root {
  --lacquer: #211c19;
  --carbon: #342e2a;
  --silk: #f7f7f4;
  --porcelain: #e8ebe5;
  --pewter: #8f948b;
  --thread: #c9b98d;
  --antique-gold: #b79a5a;
  --oxblood: #5a211e;
  --paper: #fbfbf8;
  --ink: var(--lacquer);
  --muted: #6f716a;
  --line: rgba(33, 28, 25, 0.12);
  --line-strong: rgba(33, 28, 25, 0.24);
  --panel: rgba(255, 253, 248, 0.74);
  --panel-solid: #fffdf8;
  --dark: #171410;
  --dark-soft: #27221d;
  --shadow: 0 24px 70px rgba(33, 28, 25, 0.1);
  --shadow-soft: 0 14px 38px rgba(33, 28, 25, 0.08);
  --gutter: clamp(1.1rem, 5vw, 5.6rem);
  --section-y: clamp(4.8rem, 8vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(33, 28, 25, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(33, 28, 25, 0.018) 1px, transparent 1px),
    var(--silk);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family: "Times New Roman", "Songti SC", "SimSun", serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 185, 141, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(232, 235, 229, 0.44));
}

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

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

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

button {
  cursor: pointer;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 2px;
  background: var(--thread);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr minmax(6rem, 8rem);
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(33, 28, 25, 0.1);
  background: rgba(247, 247, 244, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  backdrop-filter: blur(24px) saturate(1.08);
  transform: translateZ(0);
  transition: min-height 360ms var(--ease), background 360ms var(--ease), box-shadow 360ms var(--ease);
}

.site-header.is-compact {
  min-height: 54px;
  background: rgba(247, 247, 244, 0.92);
  box-shadow: 0 14px 34px rgba(33, 28, 25, 0.08);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: clamp(7.4rem, 9vw, 9.2rem);
  aspect-ratio: 640 / 119;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 3rem);
  color: rgba(33, 28, 25, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.main-nav a {
  position: relative;
  padding: 0.55rem 0;
  line-height: 1;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--thread);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}

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

.login-button,
.primary-link,
.secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}

.login-button {
  justify-self: end;
  width: 6.2rem;
  min-height: 2rem;
  color: var(--lacquer);
  background: rgba(255, 253, 248, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.primary-link {
  padding: 0.82rem 1.42rem;
  background: var(--lacquer);
  color: var(--silk);
  font-size: 0.86rem;
}

.secondary-link,
.text-link {
  padding: 0.8rem 1.2rem;
  background: rgba(255, 253, 248, 0.22);
  color: var(--lacquer);
  font-size: 0.86rem;
}

.text-link {
  min-height: 2.1rem;
  padding: 0.58rem 0.95rem;
}

.login-button:hover,
.primary-link:hover,
.secondary-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.section-band,
.page-hero,
.appointment-hero {
  position: relative;
  padding: var(--section-y) var(--gutter);
}

.dark-band {
  background: var(--dark);
  color: var(--silk);
}

.section-en,
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--antique-gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.6rem;
  max-width: 1240px;
  margin: 0 auto 2.2rem;
}

.section-heading h2,
.philosophy-section h2,
.beauty-copy h2,
.about-copy h2,
.video-copy h2,
.closing-cta h2,
.appointment-side h2,
.appointment-form h2,
.product-picker h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.55rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.16;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 68px var(--gutter) 0;
  overflow: hidden;
  color: var(--silk);
  background: var(--dark);
}

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

.hero-slider::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(23, 20, 16, 0.7), rgba(23, 20, 16, 0.2) 56%, rgba(23, 20, 16, 0.42)),
    linear-gradient(180deg, rgba(23, 20, 16, 0.14), rgba(23, 20, 16, 0.42));
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 24s infinite;
}

.hero-slider img:nth-child(2) {
  animation-delay: 8s;
}

.hero-slider img:nth-child(3) {
  animation-delay: 16s;
}

@keyframes heroFade {
  0%, 36%, 100% { opacity: 0; }
  6%, 30% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 52rem;
  padding-bottom: 7vh;
}

.hero-content h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.hero-content p:not(.eyebrow) {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: rgba(247, 247, 244, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-actions .secondary-link {
  border-color: rgba(247, 247, 244, 0.56);
  color: var(--silk);
}

.philosophy-section {
  display: grid;
  place-items: center;
  min-height: 32rem;
  text-align: center;
}

.philosophy-section h2 {
  max-width: 64rem;
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
  line-height: 1.5;
}

.philosophy-section span {
  display: block;
  width: 6rem;
  height: 1px;
  margin-top: 1.8rem;
  background: var(--thread);
}

.craft-grid,
.series-grid,
.service-grid,
.process-grid,
.collection-grid {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  gap: 1rem;
}

.craft-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-grid,
.gallery-series-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-section .series-grid {
  max-width: none;
}

@media (min-width: 1500px) {
  .series-section .series-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.service-grid,
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.craft-card,
.series-card,
.collection-card,
.service-card,
.process-card,
.appointment-side,
.appointment-form,
.product-picker,
.selected-panel,
.contact-mini,
.detail-copy,
.login-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  backdrop-filter: blur(18px) saturate(1.05);
}

.craft-card,
.series-card,
.service-card,
.process-card,
.web-product-card,
.product-option,
.detail-image-frame {
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}

.craft-card:hover,
.series-card:hover,
.service-card:hover,
.process-card:hover,
.web-product-card:hover,
.product-option:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 185, 141, 0.52);
  box-shadow: var(--shadow-soft);
}

.dark-band .craft-card,
.dark-band .process-card {
  border-color: rgba(247, 247, 244, 0.14);
  background: rgba(255, 253, 248, 0.06);
}

.craft-card img,
.collection-card img {
  width: 100%;
  height: clamp(20rem, 31vw, 27rem);
  object-fit: cover;
  object-position: top;
}

.series-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.45;
  object-fit: cover;
  object-position: center top;
}

.craft-card div,
.series-card div,
.collection-card h2,
.collection-card p {
  padding: 1.15rem;
}

.craft-card h3,
.series-card h3,
.collection-card h2,
.service-card h3,
.process-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}

.craft-card p,
.series-card p,
.collection-card p,
.service-card p,
.process-card p,
.about-copy p,
.beauty-copy p,
.studio-copy p,
.appointment-hero-copy p,
.appointment-side p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.dark-band .craft-card p,
.dark-band .beauty-copy p {
  color: rgba(247, 247, 244, 0.72);
}

.craft-card span {
  display: block;
  margin-top: 0.55rem;
  color: rgba(33, 28, 25, 0.74);
}

.dark-band .craft-card span {
  color: rgba(247, 247, 244, 0.78);
}

.series-card {
  min-height: 0;
  background: var(--dark);
}

.series-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--silk);
  background: linear-gradient(180deg, transparent, rgba(23, 20, 16, 0.82));
}

.series-card p {
  max-width: 19rem;
  color: rgba(247, 247, 244, 0.76);
}

.beauty-section,
.studio-video-section,
.about-section,
.studio-hero,
.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.beauty-section,
.studio-video-section,
.about-section {
  padding-inline: var(--gutter);
}

.beauty-marquee,
.beauty-image img,
.about-images img,
.studio-hero-media img,
.studio-player-wrap {
  width: 100%;
  object-fit: cover;
}

.beauty-image img {
  height: clamp(28rem, 54vw, 46rem);
  object-position: top;
}

.beauty-marquee {
  overflow: hidden;
  border: 1px solid rgba(247, 247, 244, 0.14);
  background: rgba(255, 253, 248, 0.06);
}

.beauty-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 1rem;
  animation: beauty-scroll 42s linear infinite;
}

.beauty-track img {
  flex: 0 0 auto;
  width: clamp(13rem, 20vw, 20rem);
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  object-position: center top;
}

.beauty-marquee:hover .beauty-track {
  animation-play-state: paused;
}

@keyframes beauty-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.studio-video-section {
  background: linear-gradient(180deg, var(--porcelain), var(--silk));
}

.studio-player-wrap,
.studio-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}

.studio-player-wrap {
  aspect-ratio: 16 / 9;
}

.studio-player,
.plyr,
.plyr__video-wrapper,
.plyr video {
  width: 100%;
  height: 100%;
}

.plyr__video-wrapper video {
  object-fit: cover;
}

.plyr__control--overlaid {
  top: 50%;
  left: 50%;
  background: rgba(33, 28, 25, 0.82) !important;
  transform: translate(-50%, -50%);
}

.plyr--full-ui input[type="range"] {
  color: var(--thread);
}

.service-card,
.process-card {
  min-height: 14rem;
  padding: 1.25rem;
}

.service-card span,
.process-card span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--antique-gold);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  height: 20rem;
  object-fit: cover;
  object-position: top;
}

.about-images img:first-child {
  grid-row: span 2;
  height: 41rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1fr) minmax(14rem, 1fr);
  gap: 2rem;
  padding: 3.4rem var(--gutter);
  border-top: 1px solid rgba(247, 247, 244, 0.12);
  background: var(--dark);
  color: var(--silk);
}

.site-footer h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.32em;
}

.footer-logo {
  display: block;
  width: clamp(8rem, 12vw, 10.5rem);
  height: auto;
  margin: 0 0 0.9rem;
  filter: invert(1);
  opacity: 0.96;
}

.site-footer p,
.footer-contact span {
  color: rgba(247, 247, 244, 0.62);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-links a {
  color: rgba(247, 247, 244, 0.78);
}

.page-hero,
.appointment-hero,
.login-page {
  min-height: 48svh;
  padding-top: 9rem;
}

.gallery-hero,
.appointment-hero {
  background: linear-gradient(180deg, rgba(232, 235, 229, 0.94), rgba(247, 247, 244, 0.76));
}

.page-hero h1,
.appointment-hero h1,
.studio-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
}

.page-hero span,
.appointment-hero p,
.studio-copy span {
  display: block;
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.gallery-series-panel {
  display: grid;
  gap: 1rem;
  padding: 0 var(--gutter) 5rem;
}

.web-products-page {
  padding: 0 var(--gutter) 5rem;
}

.products-toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 0;
  background: rgba(247, 247, 244, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.series-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.series-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.52);
  padding: 0.58rem 0.85rem;
  color: var(--muted);
}

.series-tabs button.active {
  border-color: var(--lacquer);
  background: var(--lacquer);
  color: var(--silk);
}

.products-toolbar input,
.picker-head input,
.appointment-form input,
.appointment-form select,
.appointment-form textarea,
.login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.88);
  padding: 0.84rem 0.9rem;
  color: var(--ink);
  outline: none;
}

.products-toolbar input:focus,
.picker-head input:focus,
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus,
.login-panel input:focus {
  border-color: var(--thread);
  box-shadow: 0 0 0 3px rgba(201, 185, 141, 0.18);
}

.web-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.web-product-card {
  display: grid;
  min-width: 0;
  background: var(--panel-solid);
}

.web-product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.web-product-card div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 7.4rem;
  padding: 1rem;
}

.web-product-card span {
  color: var(--pewter);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.web-product-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.35;
}

.product-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: clamp(1.5rem, 5vw, 4.8rem);
  align-items: start;
  min-height: 100svh;
  padding: 7.5rem var(--gutter) 5rem;
}

.detail-topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.detail-gallery {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.detail-image-frame {
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  padding: clamp(0.6rem, 1.6vw, 1.2rem);
  box-shadow: var(--shadow-soft);
}

.detail-image-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-copy {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.15rem, 2.8vw, 2.4rem);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
}

.detail-divider {
  height: 1px;
  background: var(--line);
}

.detail-copy section {
  display: grid;
  gap: 0.35rem;
}

.detail-copy h2 {
  margin: 0;
  color: var(--pewter);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.studio-hero {
  min-height: 100svh;
  padding: 7rem var(--gutter) 4rem;
  background: linear-gradient(180deg, var(--porcelain), var(--silk));
}

.studio-hero-media {
  aspect-ratio: 16 / 10;
}

.craft-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.craft-detail img {
  width: 100%;
  height: 32rem;
  object-fit: cover;
  object-position: top;
}

.service-appointment-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
  padding: 0 var(--gutter) 5rem;
}

.appointment-side {
  position: sticky;
  top: 6rem;
  padding: 1.45rem;
  box-shadow: var(--shadow);
}

.contact-mini,
.selected-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.64);
}

.appointment-form {
  padding: clamp(1.2rem, 2.8vw, 2rem);
  box-shadow: var(--shadow);
}

.form-heading,
.picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.appointment-form label,
.full-field {
  display: grid;
  gap: 0.45rem;
}

.appointment-form label span,
.slot-panel > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.slot-panel {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.slot-list button {
  display: grid;
  gap: 0.25rem;
  min-height: 4rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  padding: 0.65rem;
}

.slot-list button.active {
  border-color: var(--thread);
  background: rgba(201, 185, 141, 0.18);
}

.slot-list button:disabled {
  cursor: not-allowed;
  color: #aaa;
}

.slot-list span {
  color: var(--muted);
  font-size: 0.75rem;
}

.appointment-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.submit-appointment,
.login-panel button[type="submit"] {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--lacquer);
  background: var(--lacquer);
  color: var(--silk);
}

.submit-appointment:disabled,
.login-panel button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-message,
[data-login-message],
[data-password-message],
.password-hint {
  color: var(--muted);
  line-height: 1.6;
}

.is-error {
  color: #9d2b23 !important;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 6rem 1rem 4rem;
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.94), rgba(247, 247, 244, 0.62)),
    url("assets/login-bg.jpg") center / cover;
}

.login-panel {
  display: grid;
  gap: 0.95rem;
  width: min(100%, 26rem);
  padding: clamp(1.25rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

@media (min-width: 641px) {
  .hero-content h1,
  .page-hero h1,
  .appointment-hero h1,
  .studio-copy h1,
  .video-copy h2 {
    white-space: nowrap;
  }
}

.login-panel.is-hidden,
.is-hidden {
  display: none !important;
}

.login-panel label {
  display: grid;
  gap: 0.4rem;
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.login-meta label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.login-meta input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  height: 1rem;
  padding: 0;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--antique-gold);
  padding: 0;
}

.loading-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 3rem 1fr 3rem;
    grid-template-rows: 2.2rem;
    align-items: center;
    min-height: 3rem;
    padding: 0.4rem 0.85rem;
    overflow: visible;
    transition: box-shadow 320ms var(--ease), background 320ms var(--ease);
  }

  .site-header.is-compact {
    min-height: 3rem;
  }

  .site-header::after {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0.85rem;
    right: 0.85rem;
    height: 14rem;
    border: 1px solid var(--line);
    content: "";
    background: rgba(247, 247, 244, 0.96);
    box-shadow: 0 18px 42px rgba(33, 28, 25, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 260ms var(--ease), transform 320ms var(--ease);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }

  .site-header.is-menu-open::after {
    opacity: 1;
    transform: translateY(0);
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7.8rem;
    aspect-ratio: 640 / 119;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    position: relative;
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .menu-toggle span {
    position: absolute;
    left: 0.25rem;
    width: 1.45rem;
    height: 1px;
    background: var(--ink);
    transition: top 260ms var(--ease), transform 260ms var(--ease);
  }

  .menu-toggle span:first-child {
    top: 0.82rem;
  }

  .menu-toggle span:last-child {
    top: 1.32rem;
  }

  .site-header.is-menu-open .menu-toggle span:first-child {
    top: 1.07rem;
    transform: rotate(38deg);
  }

  .site-header.is-menu-open .menu-toggle span:last-child {
    top: 1.07rem;
    transform: rotate(-38deg);
  }

  .main-nav,
  .login-button {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    justify-self: stretch;
    width: auto;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 320ms var(--ease), opacity 240ms var(--ease), padding 320ms var(--ease), margin 320ms var(--ease);
  }

  .main-nav {
    top: calc(100% + 0.45rem);
    display: grid;
    gap: 0;
    font-size: 0.76rem;
  }

  .login-button {
    top: calc(100% + 11.55rem);
  }

  .main-nav a {
    padding: 0.62rem 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .site-header.is-menu-open .main-nav {
    max-height: 11rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.is-menu-open .login-button {
    min-height: 2.1rem;
    max-height: 2.45rem;
    padding: 0.55rem 1rem;
    border-width: 1px;
    background: rgba(33, 28, 25, 0.05);
    opacity: 1;
    pointer-events: auto;
  }

  .craft-grid,
  .series-grid,
  .gallery-series-panel,
  .collection-grid,
  .service-grid,
  .process-grid,
  .product-grid,
  .web-product-grid,
  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beauty-section,
  .studio-video-section,
  .about-section,
  .studio-hero,
  .appointment-layout,
  .service-appointment-layout,
  .product-detail-page {
    grid-template-columns: 1fr;
  }

  .appointment-side,
  .detail-copy {
    position: static;
  }

  .products-toolbar {
    top: 3.25rem;
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-band,
  .page-hero,
  .appointment-hero,
  .login-page {
    padding-inline: 1rem;
  }

  .hero-section {
    padding-inline: 1rem;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .page-hero h1,
  .appointment-hero h1,
  .studio-copy h1 {
    font-size: 2.15rem;
  }

  .hero-actions,
  .section-heading,
  .form-heading,
  .picker-head {
    align-items: stretch;
    flex-direction: column;
  }

  .craft-grid,
  .series-grid,
  .gallery-series-panel,
  .collection-grid,
  .service-grid,
  .process-grid,
  .product-grid,
  .web-product-grid,
  .slot-list,
  .form-grid,
  .craft-detail {
    grid-template-columns: 1fr;
  }

  .craft-card img,
  .series-card img,
  .collection-card img,
  .craft-detail img {
    height: 22rem;
  }

  .about-images,
  .about-images img:first-child {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-images img,
  .about-images img:first-child {
    height: 22rem;
  }

  .service-appointment-layout,
  .web-products-page,
  .product-detail-page {
    padding-inline: 1rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
