:root {
  --ink: #27221c;
  --paper: #f4efe6;
  --cream: #fcf9f2;

  --gold: #e1b55c;
  --gold-dark: #bd8c3e;

  --line: rgba(39, 34, 28, 0.16);

  --muted: rgba(39, 34, 28, 0.74);
  --muted-soft: rgba(39, 34, 28, 0.64);

  --header-bg: rgba(244, 239, 230, 0.82);
  --header-bg-scrolled: rgba(244, 239, 230, 0.94);
  --header-border: rgba(39, 34, 28, 0.08);

  --shadow: rgba(39, 34, 28, 0.16);

  --button-dark-bg: rgba(47, 37, 29, 0.88);
}

[data-theme="dark"] {
  --ink: #f3efe8;
  --paper: #171615;
  --cream: #211f1c;

  --gold: #d8ad5a;
  --gold-dark: #c59646;

  --line: rgba(243, 239, 232, 0.14);

  --muted: rgba(243, 239, 232, 0.78);
  --muted-soft: rgba(243, 239, 232, 0.64);

  --header-bg: rgba(23, 22, 21, 0.82);
  --header-bg-scrolled: rgba(23, 22, 21, 0.94);
  --header-border: rgba(243, 239, 232, 0.08);

  --shadow: rgba(0, 0, 0, 0.35);

  --button-dark-bg: #f3efe8;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
  color: var(--ink);
  display: flex;
  height: 96px;
  left: 0;
  padding: 0 clamp(20px, 5vw, 76px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease;
  z-index: 10;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px var(--shadow);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}
.brand span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.brand-mark {
  display: block;
  height: 34px;
  object-fit: contain;
  width: 34px;
}
.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
  margin-left: auto;
}
.nav-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  white-space: nowrap;
}
.nav-link span {
  color: var(--gold-dark);
  font-size: 26px;
}
.nav-link:hover,
.nav-link.active-link {
  color: var(--gold-dark);
}
.header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}
.language-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  width: 40px;
}
.language-link i {
  display: block;
  line-height: 1;
}
.language-link:hover {
  background: var(--cream);
  color: var(--gold-dark);
}
.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  margin-left: 2px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  width: 44px;
}
.theme-toggle:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  justify-content: center;
  min-height: 46px;
  padding: 0 25px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-light {
  background: #fffaf2;
  color: var(--ink);
}
.button-dark {
  background: var(--button-dark-bg);
  color: var(--paper);
}

.hero {
  background: #61442e url("../img/hero-living-room-light.webp") center / cover
    no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px clamp(28px, 8vw, 132px) 38px;
  position: relative;
}

[data-theme="dark"] .hero {
  background-image: url("../img/hero-living-room-dark.webp");
}
.hero::before {
  background:
    linear-gradient(
      to right,
      rgba(18, 14, 10, 0.72) 0%,
      rgba(18, 14, 10, 0.52) 35%,
      rgba(18, 14, 10, 0.18) 65%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(18, 14, 10, 0.35) 0%,
      transparent 28%,
      rgba(18, 14, 10, 0.2) 60%,
      rgba(12, 9, 6, 0.82) 100%
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
[data-theme="dark"] .hero::before {
  background:
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.78) 0%,
      rgba(5, 5, 5, 0.55) 35%,
      rgba(5, 5, 5, 0.2) 65%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.4) 0%,
      transparent 28%,
      rgba(5, 5, 5, 0.25) 60%,
      rgba(5, 5, 5, 0.88) 100%
    );
}
[dir="rtl"] .hero::before,
html[lang="fa"] .hero::before {
  background:
    linear-gradient(
      to left,
      rgba(18, 14, 10, 0.72) 0%,
      rgba(18, 14, 10, 0.52) 35%,
      rgba(18, 14, 10, 0.18) 65%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(18, 14, 10, 0.35) 0%,
      transparent 28%,
      rgba(18, 14, 10, 0.2) 60%,
      rgba(12, 9, 6, 0.82) 100%
    );
}
[dir="rtl"][data-theme="dark"] .hero::before,
html[lang="fa"][data-theme="dark"] .hero::before {
  background:
    linear-gradient(
      to left,
      rgba(5, 5, 5, 0.78) 0%,
      rgba(5, 5, 5, 0.55) 35%,
      rgba(5, 5, 5, 0.2) 65%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.4) 0%,
      transparent 28%,
      rgba(5, 5, 5, 0.25) 60%,
      rgba(5, 5, 5, 0.88) 100%
    );
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-scrim {
  background: radial-gradient(
    circle at 20% 70%,
    rgba(18, 14, 10, 0.45) 0%,
    transparent 65%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
}
[dir="rtl"] .hero-scrim,
html[lang="fa"] .hero-scrim {
  background: radial-gradient(
    circle at 80% 70%,
    rgba(18, 14, 10, 0.45) 0%,
    transparent 65%
  );
}
.hero-content,
.hero-footer {
  position: relative;
  z-index: 1;
}
.hero-content {
  margin-top: auto;
  max-width: 660px;
}
.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--gold);
  margin: 0 0 23px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}
h1 {
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 0.92;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 6px rgba(0, 0, 0, 0.4);
}
h2 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.96;
}
h2 em {
  color: var(--gold-dark);
  font-style: italic;
}
.hero-copy {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.6;
  margin: 30px 0 24px;
  max-width: 430px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.text-link,
.dark-link {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  padding-bottom: 6px;
  text-decoration: none;
}
.hero .text-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 10px 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hero .text-link:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(225, 181, 92, 0.35);
  transform: translateY(-2px);
}
.link-icon {
  display: inline-flex;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-link:hover .link-icon,
.dark-link:hover .link-icon,
.button-dark:hover .link-icon,
.contact-action-button:hover .link-icon {
  transform: translate(2px, -2px);
}
[dir="rtl"] .text-link:hover .link-icon,
[dir="rtl"] .dark-link:hover .link-icon,
[dir="rtl"] .button-dark:hover .link-icon,
[dir="rtl"] .contact-action-button:hover .link-icon,
html[lang="fa"] .text-link:hover .link-icon,
html[lang="fa"] .dark-link:hover .link-icon,
html[lang="fa"] .button-dark:hover .link-icon,
html[lang="fa"] .contact-action-button:hover .link-icon {
  transform: translate(-2px, -2px);
}
.materials-more-link:hover .link-icon {
  transform: translateX(4px);
}
[dir="rtl"] .materials-more-link:hover .link-icon,
html[lang="fa"] .materials-more-link:hover .link-icon {
  transform: translateX(-4px);
}
.hero-footer {
  align-items: end;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin-top: 80px;
  text-transform: uppercase;
}
.hero-footer p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-note {
  text-align: right;
}
.scroll-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  width: 42px;
  animation: scrollFloat 2.6s ease-in-out infinite;
}
.scroll-mark::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  display: block;
  height: 7px;
  margin-top: -3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  width: 7px;
  animation: arrowPulse 2.6s ease-in-out infinite;
}
.scroll-mark:hover {
  animation-play-state: paused;
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(225, 181, 92, 0.6), 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(3px) scale(1.08);
}

@keyframes scrollFloat {
  0%, 100% {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: translateY(7px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

@keyframes arrowPulse {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: rotate(45deg) translate(2px, 2px);
    opacity: 1;
  }
}
.intro {
  background: var(--paper);
  min-height: 100dvh;
  padding: 145px clamp(28px, 8vw, 132px);
  display: flex;
  flex-direction: column;
}
.section-label {
  color: var(--gold-dark);
  margin-bottom: 62px;
}
.intro-grid {
  display: grid;
  gap: 10vw;
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 0.7fr);
  flex: 1;
  align-items: center;
}
.intro-grid p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 490px;
}
.intro-grid .large-copy {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  margin-top: 0;
}
.dark-link {
  margin-top: 24px;
}
.membership {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100dvh;
  transition: background-color 0.25s ease;
}
.membership-image {
  background: url("../img/membership.webp") 72% center / cover no-repeat;
  min-height: 100%;
}
.membership-copy {
  align-self: center;
  padding: 80px clamp(34px, 7vw, 110px);
}
.membership-copy .section-label {
  margin-bottom: 36px;
}
.membership-copy p {
  font-size: 16px;
  line-height: 1.7;
  margin: 30px 0;
  max-width: 360px;
}
.testimonials {
  background: var(--paper);
  min-height: 100dvh;
  padding: 100px clamp(23px, 8vw, 132px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonials .section-label {
  margin-bottom: 20px;
}
.testimonials h2 {
  margin-bottom: 50px;
}
.testimonial-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  width: 100%;
}
.testimonial-card {
  min-height: 430px;
  position: relative;
}
.testimonial-photo {
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 14px;
  height: 355px;
}
.testimonial-card-one .testimonial-photo {
  background-image: url("../img/testimonial-1.webp");
}
.testimonial-card-two .testimonial-photo {
  background-image: url("../img/testimonial-2.webp");
}
.testimonial-card-three .testimonial-photo {
  background-image: url("../img/testimonial-3.webp");
}
.testimonial-card-four .testimonial-photo {
  background-image: url("../img/testimonial-4.webp");
}
.testimonial-quote {
  background: var(--cream);
  border-radius: 14px;
  bottom: 0;
  box-shadow: 0 18px 30px var(--line);
  left: 6%;
  padding: 30px 22px 21px;
  position: absolute;
  right: 6%;
}
.testimonial-avatar {
  align-items: center;
  background: var(--gold);
  border: 5px solid var(--cream);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  width: 54px;
}
.testimonial-quote h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
}
.testimonial-quote p {
  color: var(--muted-soft);
  font-size: 11px;
  margin: 3px 0 15px;
}
.testimonial-quote blockquote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 auto 15px;
  max-width: 260px;
}
.stars {
  color: #ed963d;
  font-size: 13px;
  letter-spacing: 2px;
}
.contact-panel {
  background: var(--cream);
  min-height: 100dvh;
  padding: 100px clamp(23px, 8vw, 132px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-panel .section-label {
  margin-bottom: 28px;
}
.contact-panel-grid {
  align-items: end;
  display: grid;
  gap: 10vw;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.7fr);
}
.contact-panel h2 {
  margin-bottom: 30px;
}
.contact-panel-grid > div:first-child p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 470px;
}
.contact-details {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contact-email {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  gap: 16px;
  padding-bottom: 7px;
}
.contact-email span {
  font-family: var(--sans);
  font-size: 20px;
}
.contact-details p {
  color: var(--muted);
  font-size: 13px;
  margin: 17px 0 28px;
}

.products {
  background: var(--paper);
  padding: 120px clamp(23px, 7vw, 110px) 100px;
  position: relative;
  text-align: center;
}
.products .section-label {
  margin-bottom: 20px;
}
.products h2 {
  margin-bottom: 28px;
}
.product-filters {
  background: var(--cream);
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 72px;
  padding: 5px;
}
.product-filter {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 10px 15px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.product-filter.is-active,
.product-filter:hover {
  background: var(--paper);
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--ink);
}
.product-carousel-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1260px;
  position: relative;
  gap: 16px;
  width: 100%;
}
.product-viewport {
  cursor: grab;
  flex: 1;
  margin: 0;
  max-width: 1120px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 16px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}
.product-viewport::-webkit-scrollbar {
  display: none;
}
.product-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.product-grid {
  display: flex;
  gap: 30px;
  margin: 0;
  will-change: scroll-position;
}
.product-card {
  min-width: 0;
  scroll-snap-align: start;
  text-align: left;
}
[dir="rtl"] .product-card,
html[lang="fa"] .product-card {
  text-align: right;
}
.product-grid .product-card {
  flex: 0 0 calc((100% - 90px) / 4);
}
.product-art::after {
  background: rgba(39, 34, 28, 0.1);
  border-radius: 50%;
  bottom: 16px;
  content: "";
  filter: blur(7px);
  height: 16px;
  position: absolute;
  width: 110px;
}
.product-art {
  align-items: center;
  background-color: #faf9f6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 15px 15px 0 0;
  display: flex;
  height: 230px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Product images */
.product-plug {
  background-image: url("../img/smart-plug.webp");
}

.product-switch {
  background-image: url("../img/smart-switch.webp");
}

.product-dimmer {
  background-image: url("../img/smart-dimmer.webp");
}

.product-light {
  background-image: url("../img/smart-light.webp");
}

.product-strip {
  background-image: url("../img/strip-light.webp");
}

.product-ambient {
  background-image: url("../img/ambient-light.webp");
}
.product-info {
  background: var(--cream);
  border-radius: 0 0 15px 15px;
  padding: 15px 17px 19px;
}
.product-info p {
  color: var(--muted-soft);
  font-size: 12px;
  margin: 0 0 4px;
}
.product-info h3 {
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 4px;
}
.product-rating {
  color: #efa04a;
  font-size: 13px;
  letter-spacing: 1px;
}
.product-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
}
.product-bottom strong {
  color: var(--ink);
  font-size: 16px;
}
.product-bottom button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  font-size: 25px;
  height: 37px;
  justify-content: center;
  line-height: 1;
  width: 37px;
}
.product-arrow {
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 14px var(--shadow);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 48px;
  z-index: 2;
}
.product-arrow:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(225, 181, 92, 0.35);
}
.product-arrow:active:not(:disabled) {
  transform: scale(0.95);
}
.product-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.25;
  transform: none;
  box-shadow: none;
}

.back-to-top {
  align-items: center;
  background: var(--cream);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 50%;
  bottom: 32px;
  box-shadow: 0 8px 24px var(--shadow);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 48px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 32px;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  width: 48px;
  z-index: 99;
}
[dir="rtl"] .back-to-top,
html[lang="fa"] .back-to-top {
  left: 32px;
  right: auto;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(225, 181, 92, 0.4);
}
.back-to-top:active {
  transform: translateY(0) scale(0.96);
}
.site-footer {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 52px clamp(30px, 6vw, 90px);
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  padding: 86px clamp(28px, 10vw, 138px) 34px;
}
.footer-brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-bottom: 25px;
}
.footer-brand-lockup span {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.footer-logo {
  height: 28px;
  object-fit: contain;
  object-position: left center;
  width: 28px;
}
.site-footer p,
.footer-group a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer p {
  margin: 0;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-group h3 {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 2px;
}
.footer-group a {
  transition: color 0.2s ease;
}
.footer-group a:hover,
.footer-legal a:hover {
  color: var(--gold-dark);
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-socials a span,
.footer-socials a i {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  min-width: 14px;
}
.footer-bottom {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 25px;
}
.footer-legal {
  display: flex;
  gap: 35px;
}
.footer-legal a {
  color: var(--muted);
  font-size: 13px;
}
.copyright {
  white-space: nowrap;
}
.menu-toggle,
.mobile-nav {
  display: none;
}
.offline-page {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 60px clamp(28px, 10vw, 138px);
}
.offline-page > img {
  height: 72px;
  margin-bottom: 25px;
  width: 72px;
}
.offline-page h1 {
  margin-bottom: 20px;
}
.offline-page p:not(.eyebrow) {
  font-size: 16px;
  margin: 0 0 30px;
}

[data-theme="dark"] .membership-image {
  filter: brightness(0.78) saturate(0.9);
}

[data-theme="dark"] .footer-brand-lockup .footer-logo {
  filter: brightness(0.92);
}

@media (max-height: 820px) and (min-width: 701px) {
  .hero {
    min-height: 100svh;
    padding-top: 120px;
  }
  .hero-content {
    max-width: 560px;
  }
  h1 {
    font-size: clamp(52px, 5.8vw, 82px);
  }
  .hero-copy {
    margin: 20px 0 16px;
  }
  .hero-footer {
    margin-top: 44px;
  }
}

@media (max-width: 700px) {
  .site-header {
    bottom: auto;
    border-bottom: 1px solid var(--header-border);
    border-top: 0;
    height: 82px;
    padding: 0 20px;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .site-header.scrolled {
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-hidden {
    transform: translateY(-100%);
  }
  .site-nav {
    gap: 10px;
  }
  .brand span {
    font-size: 22px;
  }
  .brand-mark {
    height: 30px;
    width: 30px;
  }
  .desktop-nav {
    display: none;
  }
  .language-link {
    font-size: 19px;
    height: 38px;
    width: 38px;
  }
  .theme-toggle {
    display: inline-flex;
    height: 40px;
    width: 40px;
    font-size: 19px;
  }
  .menu-toggle {
    background: transparent;
    border: 0;
    display: grid;
    gap: 6px;
    padding: 8px 0 8px 8px;
  }
  .menu-toggle span {
    background: var(--ink);
    display: block;
    height: 2px;
    width: 26px;
  }
  .mobile-nav {
    background: var(--paper);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 22px rgba(39, 34, 28, 0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 12px;
    left: 0;
    padding: 30px 24px 32px;
    position: absolute;
    right: 0;
    top: 82px;
    transform: translateY(calc(-100% - 82px));
    transition: transform 0.25s ease;
  }
  .mobile-nav.is-open {
    display: grid;
  }
  .mobile-nav.is-open {
    transform: translateY(0);
  }
  .mobile-nav .nav-link {
    align-items: center;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
  }
  .mobile-nav .nav-link span {
    font-size: 32px;
  }
  .hero {
    background-image: url("../img/landing-phone.webp");
    background-position: center 42%;
    height: 100svh;
    min-height: 100svh;
    padding: 92px 23px 88px;
  }
  h1 {
    font-size: clamp(45px, 13vw, 65px);
  }
  .hero-copy {
    font-size: 13px;
    line-height: 1.45;
    margin: 20px 0 16px;
    max-width: 290px;
  }
  .hero-footer {
    margin-top: 42px;
  }
  .hero-note {
    display: none;
  }
  .intro {
    padding: 82px 23px;
  }
  .section-label {
    margin-bottom: 37px;
  }
  .intro-grid {
    display: block;
  }
  .intro-grid h2 {
    margin-bottom: 45px;
  }
  .intro-grid .large-copy {
    font-size: 24px;
  }
  .membership {
    display: flex;
    flex-direction: column;
  }
  .membership-image {
    min-height: 310px;
  }
  .membership-copy {
    padding: 69px 23px 85px;
  }
  .testimonials {
    padding: 85px 23px 110px;
  }
  .testimonials h2 {
    margin-bottom: 50px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
  .testimonial-card {
    min-height: 400px;
  }
  .contact-panel {
    min-height: 100svh;
    padding: 85px 23px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .contact-panel-grid {
    display: block;
  }
  .contact-panel h2 {
    margin-bottom: 25px;
  }
  .contact-details {
    margin-top: 50px;
  }
  .contact-email {
    font-size: 25px;
  }
  .products {
    padding: 85px 18px 90px;
  }
  .product-filters {
    border-radius: 18px;
    margin-bottom: 46px;
    max-width: 350px;
  }
  .product-filter {
    font-size: 11px;
    padding: 8px 10px;
  }
  .product-grid {
    gap: 20px;
  }
  .product-grid .product-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .product-art {
    height: 170px;
  }
  .product-art span {
    height: 90px;
    width: 55px;
  }
  .product-switch span {
    height: 100px;
    width: 65px;
  }
  .product-dimmer span,
  .product-light span {
    height: 90px;
    width: 90px;
  }
  .product-info {
    padding: 12px;
  }
  .product-info h3 {
    font-size: 13px;
  }
  .product-bottom {
    margin-top: 15px;
  }
  .product-bottom strong {
    font-size: 13px;
  }
  .product-bottom button {
    font-size: 21px;
    height: 32px;
    width: 32px;
  }
  .product-carousel-wrap {
    gap: 0;
  }
  .product-arrow {
    display: none;
  }
  .back-to-top {
    bottom: 20px;
    font-size: 20px;
    height: 44px;
    right: 20px;
    width: 44px;
  }
  [dir="rtl"] .back-to-top,
  html[lang="fa"] .back-to-top {
    left: 20px;
    right: auto;
  }
  .site-footer {
    display: grid;
    gap: 40px 24px;
    grid-template-columns: 1fr 1fr;
    padding: 64px 23px 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-group {
    gap: 10px;
  }
  .footer-bottom {
    align-items: flex-start;
    display: block;
    grid-column: 1 / -1;
  }
  .footer-legal {
    gap: 18px;
    margin-top: 18px;
  }
}

.materials-section {
  background: var(--paper);
  padding: 130px clamp(28px, 8vw, 132px);
  position: relative;
  transition: background-color 0.25s ease;
  overflow: hidden;
}
.materials-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.15fr);
  max-width: 1240px;
  margin: 0 auto;
}
.materials-eyebrow {
  color: var(--gold-dark);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.materials-copy h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  margin-bottom: 28px;
}
.materials-copy h2 em {
  color: var(--gold-dark);
  font-style: italic;
}
.materials-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.materials-more-link {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 14px;
  padding-bottom: 6px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.materials-more-link:hover {
  color: var(--gold-dark);
}
.materials-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 520px;
  position: relative;
  width: 100%;
}
.materials-card {
  background-position: center;
  background-size: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(39, 34, 28, 0.14);
  position: absolute;
}
.materials-card-1 {
  height: 220px;
  left: 0;
  top: 0;
  width: 44%;
  z-index: 2;
  background-image: url("../img/materials-1.webp");
}
.materials-card-2 {
  bottom: 0;
  height: 240px;
  left: 0;
  top: 240px;
  width: 44%;
  z-index: 1;
  background-image: url("../img/materials-2.webp");
}
.materials-card-3 {
  bottom: 0;
  height: 94%;
  right: 0;
  top: 0;
  width: 53%;
  z-index: 3;
  box-shadow: 0 25px 55px rgba(39, 34, 28, 0.2);
  background-image: url("../img/materials-3.webp");
  background-position: center 42%;
}
[data-theme="dark"] .materials-card {
  box-shadow: 0 20px 45px var(--shadow);
}
@media (max-width: 900px) {
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .materials-collage {
    height: 420px;
  }
}
