:root {
  --bg: #EDEAE3;
  --bg-warm: #E5E0D5;
  --bg-dark: #1F1B16;
  --bg-soft: #F4F1EA;
  --text: #1F1B16;
  --text-2: #5C564C;
  --text-3: #8C8475;
  --olive: #5F5A3F;
  --rust: #8C4A2C;
  --rust-bright: #B5612E;
  --hairline: #D2CBBC;
  --hairline-soft: #E0DAC9;
  --white: #FFFFFF;

  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container: 1280px;
  --gutter: 64px;
  --gutter-tight: 32px;
  --grid-gap: 96px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================
 TYPOGRAPHY
 ============================================ */
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}

.eyebrow-muted {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.display-xl {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display-l {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-m {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.display-s {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.lead {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.body-l {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 400;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.body-s {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

/* ============================================
 LAYOUT PRIMITIVES
 ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-tight {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad {
  padding-block: 160px;
}

.section-pad-sm {
  padding-block: 120px;
}

/* ============================================
 SIGNATURE — PEBBLE MOSAIC PATTERN
 ============================================ */
.mosaic-pattern {
  --dot: var(--olive);
  --dot-alt: var(--rust);
  background-image:
    radial-gradient(circle at 20% 30%, var(--dot) 4px, transparent 4.5px),
    radial-gradient(circle at 75% 20%, var(--dot-alt) 3px, transparent 3.5px),
    radial-gradient(circle at 50% 55%, var(--dot) 5px, transparent 5.5px),
    radial-gradient(circle at 15% 75%, var(--dot-alt) 4px, transparent 4.5px),
    radial-gradient(circle at 80% 80%, var(--dot) 3.5px, transparent 4px),
    radial-gradient(circle at 35% 90%, var(--dot) 3px, transparent 3.5px),
    radial-gradient(circle at 90% 50%, var(--dot-alt) 4.5px, transparent 5px),
    radial-gradient(circle at 5% 50%, var(--dot) 3.5px, transparent 4px);
  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: 0.12;
}

.mosaic-divider {
  height: 1px;
  background: var(--hairline);
  position: relative;
}

.mosaic-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 16px;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 50%, var(--olive) 3px, transparent 3.5px),
    radial-gradient(circle at 30% 50%, var(--rust) 4px, transparent 4.5px),
    radial-gradient(circle at 50% 50%, var(--olive) 3.5px, transparent 4px),
    radial-gradient(circle at 70% 50%, var(--rust) 3px, transparent 3.5px),
    radial-gradient(circle at 88% 50%, var(--olive) 4px, transparent 4.5px);
}

/* ============================================
 BUTTONS
 ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.btn-inverse {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.btn-inverse:hover {
  background: transparent;
  color: var(--bg);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

.btn-outline-inverse:hover {
  background: var(--bg);
  color: var(--text);
}

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease;
}

.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn:hover .arrow {
  transform: translateX(6px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
  gap: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.mobile-cta {
  display: none;
}

/* ============================================
 HEADER
 ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237, 234, 227, 0.85);
  backdrop-filter: blur(20px);
  z-index: -1;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-logo {
  height: 72px;
  width: auto;
  overflow: visible;
}

.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

nav {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

nav a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--rust);
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -1px;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-trigger::after {
  transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(12px);
  background: var(--bg-soft);
  border: 1px solid var(--hairline-soft);
  padding: 16px 20px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 30px rgba(31, 27, 22, 0.08);
  z-index: 10;
}

/* Hover bridge to bridge the vertical gap between trigger and menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding: 2px 0;
}

.dropdown-menu a::after {
  display: none;
  /* hide any decorative underlines */
}

.dropdown-menu a:hover {
  color: var(--rust);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-switch .lang-btn {
  color: var(--text-3);
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-switch .lang-btn.active {
  color: var(--text);
  font-weight: 600;
}

.lang-switch .lang-btn:hover {
  color: var(--rust);
}

.lang-switch .lang-divider {
  color: var(--hairline);
  user-select: none;
}

/* ============================================
 HERO
 ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at top left, rgba(140, 74, 44, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(95, 90, 63, 0.15) 0%, transparent 55%),
    linear-gradient(165deg, #1F1B16 0%, #2A241C 45%, #1A1612 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(237, 234, 227, 0.08) 2px, transparent 2.5px),
    radial-gradient(circle at 28% 18%, rgba(140, 74, 44, 0.12) 3px, transparent 3.5px),
    radial-gradient(circle at 52% 28%, rgba(237, 234, 227, 0.06) 2.5px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(95, 90, 63, 0.1) 2.5px, transparent 3px),
    radial-gradient(circle at 15% 55%, rgba(140, 74, 44, 0.08) 3px, transparent 3.5px),
    radial-gradient(circle at 42% 62%, rgba(237, 234, 227, 0.05) 2px, transparent 2.5px),
    radial-gradient(circle at 68% 58%, rgba(95, 90, 63, 0.09) 2.5px, transparent 3px),
    radial-gradient(circle at 88% 70%, rgba(237, 234, 227, 0.06) 2px, transparent 2.5px),
    radial-gradient(circle at 22% 88%, rgba(140, 74, 44, 0.07) 3px, transparent 3.5px),
    radial-gradient(circle at 55% 92%, rgba(237, 234, 227, 0.04) 2px, transparent 2.5px),
    radial-gradient(circle at 82% 88%, rgba(95, 90, 63, 0.08) 2.5px, transparent 3px);
  background-size: 220px 220px;
  opacity: 0.7;
}

.hero-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  width: 100%;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(237, 234, 227, 0.25);
  padding-left: 24px;
  min-height: 60vh;
}

.hero-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  letter-spacing: 0.1em;
  color: rgba(237, 234, 227, 0.5);
  line-height: 1;
}

.hero-marker {
  width: 32px;
  height: 32px;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(237, 234, 227, 0.7) 2px, transparent 2.5px),
    radial-gradient(circle at 70% 25%, rgba(237, 234, 227, 0.6) 2.5px, transparent 3px),
    radial-gradient(circle at 50% 60%, rgba(237, 234, 227, 0.8) 3px, transparent 3.5px),
    radial-gradient(circle at 25% 80%, rgba(237, 234, 227, 0.6) 2px, transparent 2.5px),
    radial-gradient(circle at 75% 75%, rgba(237, 234, 227, 0.7) 2.5px, transparent 3px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  color: var(--bg);
  padding-left: var(--gutter);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-left: 2px solid var(--rust);
  padding-left: 24px;
  opacity: 0.95;
}

.hero-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-dark);
}

.hero-image-caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-image-caption .caption {
  color: rgba(237, 234, 227, 0.5);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-image-caption .value {
  color: var(--bg);
  font-family: var(--display);
  font-size: 16px;
}

.hero-eyebrow {
  color: rgba(237, 234, 227, 0.7);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(237, 234, 227, 0.5);
}

.hero-title {
  margin-bottom: 32px;
  color: var(--bg);
}

.hero-title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--rust-bright);
  font-weight: 400;
}

.hero-lead {
  color: rgba(237, 234, 227, 0.85);
  max-width: 620px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: 48px;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: flex;
  gap: 64px;
  color: rgba(237, 234, 227, 0.7);
}

.hero-meta-item .caption {
  color: rgba(237, 234, 227, 0.55);
  margin-bottom: 6px;
}

.hero-meta-item .value {
  font-family: var(--display);
  font-size: 20px;
  color: var(--bg);
  font-weight: 400;
}

/* ============================================
 ORIGIN / HERITAGE
 ============================================ */
.origin {
  padding-block: 180px 160px;
  position: relative;
}

.origin-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--grid-gap);
  align-items: start;
}

.origin-text {
  padding-top: 24px;
}

.origin-text .eyebrow {
  margin-bottom: 28px;
  display: block;
}

.origin-title {
  margin-bottom: 40px;
}

.origin-title em {
  font-style: italic;
  color: var(--rust);
}

.origin-body p {
  margin-bottom: 20px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

.origin-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 400;
  font-size: 72px;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--text);
}

.origin-figure {
  position: relative;
  padding-top: 32px;
}

.origin-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-image: url('../../assets/images/factory-floor.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.origin-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 27, 22, 0.1), rgba(31, 27, 22, 0.45));
}

.origin-image::after {
  content: 'PEBBLE MOSAIC — FACTORY DETAIL';
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(237, 234, 227, 0.55);
  font-weight: 500;
}

.origin-image-caption {
  position: absolute;
  bottom: -24px;
  left: 32px;
  background: var(--bg);
  padding: 16px 24px;
  border-left: 2px solid var(--rust);
}

.origin-image-caption .caption {
  color: var(--text-3);
}

.origin-image-caption .place {
  font-family: var(--display);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.stats-bar {
  margin-top: 120px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat .stat-num {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: 56px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stat .stat-num em {
  font-style: italic;
  color: var(--rust);
  font-size: 36px;
  vertical-align: super;
}

.stat .stat-label {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

/* ============================================
 COLLECTIONS
 ============================================ */
.collections {
  padding-block: 160px;
  background: var(--bg-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 80px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.section-head-title {
  max-width: 600px;
}

.section-head-side {
  text-align: right;
  max-width: 380px;
}

.collections-grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  width: 100%;
}

.collection-card-split {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.collection-card-split:hover {
  transform: translateY(-6px);
  border-color: var(--hairline);
  box-shadow: 0 20px 48px rgba(31, 27, 22, 0.05);
}

.collection-img-split {
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.collection-img-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31, 27, 22, 0.15));
}

.stone-collection-bg {
  background-image: url('../../assets/images/stone-collection.png');
}

.wood-collection-bg {
  background-image: url('../../assets/images/wood-collection.png');
}

.collection-meta-split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.collection-name-split {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}

.collection-no-split {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.collection-desc-split {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.collection-submaterials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.submaterial-tag {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(95, 90, 63, 0.08);
  padding: 6px 12px;
}

.collection-link-split {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.collection-link-split .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease;
}

.collection-link-split .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.collection-card-split:hover .collection-link-split .arrow {
  transform: translateX(6px);
}

/* ============================================
 FACTORY (DARK SECTION)
 ============================================ */
.factory {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: 200px;
  position: relative;
  overflow: hidden;
}

.factory::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25% 30%, var(--bg) 3px, transparent 3.5px),
    radial-gradient(circle at 60% 25%, var(--bg) 4px, transparent 4.5px),
    radial-gradient(circle at 75% 55%, var(--bg) 3px, transparent 3.5px),
    radial-gradient(circle at 40% 65%, var(--bg) 5px, transparent 5.5px),
    radial-gradient(circle at 85% 80%, var(--bg) 3px, transparent 3.5px),
    radial-gradient(circle at 20% 85%, var(--bg) 4px, transparent 4.5px);
  background-size: 100px 100px;
}

.factory-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--grid-gap);
  align-items: center;
  position: relative;
}

.factory-image {
  aspect-ratio: 5/6;
  background-image: url('../../assets/images/mosaic-assembly.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.factory-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 27, 22, 0.1), rgba(31, 27, 22, 0.45));
}

.factory-image-mark {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(31, 27, 22, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  color: var(--bg);
  font-family: var(--display);
  font-size: 14px;
  border-left: 2px solid var(--rust);
}

.factory-content .eyebrow {
  color: var(--rust-bright);
  display: block;
  margin-bottom: 24px;
}

.factory-title {
  color: var(--bg);
  margin-bottom: 40px;
}

.factory-title em {
  font-style: italic;
  color: var(--rust-bright);
}

.factory-text {
  color: rgba(237, 234, 227, 0.75);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 520px;
}

.factory-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-bottom: 48px;
}

.principle {
  border-top: 1px solid rgba(237, 234, 227, 0.2);
  padding-top: 20px;
}

.principle-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--rust-bright);
  margin-bottom: 8px;
  font-weight: 400;
}

.principle-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--bg);
  margin-bottom: 8px;
  font-weight: 400;
}

.principle-desc {
  font-size: 13px;
  color: rgba(237, 234, 227, 0.6);
  line-height: 1.5;
}

/* ============================================
 APPLICATIONS
 ============================================ */
.applications {
  padding-block: 160px;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.app-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s;
}

.app-card:hover {
  transform: translateY(-4px);
}

.app-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.app-card:hover .app-card-image {
  transform: scale(1.04);
}

.app-card-info {
  margin-top: 20px;
  padding-right: 16px;
}

.app-card-name {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 400;
}

.app-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.app-card-meta .pipe {
  color: var(--hairline);
}

.app-card.large {
  grid-column: span 7;
}

.app-card.large .app-card-image {
  aspect-ratio: 16/11;
}

.app-card.medium {
  grid-column: span 5;
}

.app-card.medium .app-card-image {
  aspect-ratio: 5/6;
}

.app-card.small {
  grid-column: span 4;
}

.app-card.small .app-card-image {
  aspect-ratio: 4/5;
}

.app-1 .app-card-image {
  background:
    radial-gradient(circle at 25% 30%, #B5A88F 10px, transparent 12px),
    radial-gradient(circle at 65% 25%, #8C7B5E 9px, transparent 11px),
    radial-gradient(circle at 80% 55%, #A89878 10px, transparent 12px),
    radial-gradient(circle at 30% 65%, #9C8D6F 9px, transparent 11px),
    radial-gradient(circle at 60% 80%, #B5A88F 8px, transparent 10px),
    radial-gradient(circle at 15% 85%, #6B5A40 9px, transparent 11px),
    linear-gradient(135deg, #C5B89E 0%, #A89878 100%);
  background-size: 70px 70px, 70px 70px, 70px 70px, 70px 70px, 70px 70px, 70px 70px, 100% 100%;
  position: relative;
}

.app-1 .app-card-image::after {
  content: 'PEBBLE MOSAIC';
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(31, 27, 22, 0.5);
  font-weight: 600;
}

.app-2 .app-card-image {
  background:
    linear-gradient(135deg, transparent 25%, rgba(140, 130, 110, 0.5) 27%, transparent 30%),
    linear-gradient(75deg, transparent 50%, rgba(95, 85, 65, 0.4) 52%, transparent 55%),
    linear-gradient(165deg, transparent 60%, rgba(160, 145, 120, 0.5) 62%, transparent 65%),
    linear-gradient(45deg, transparent 75%, rgba(110, 100, 80, 0.4) 77%, transparent 80%),
    linear-gradient(155deg, #E0D8C8 0%, #C5B89E 100%);
  position: relative;
}

.app-2 .app-card-image::after {
  content: 'TUMBLED MARBLE';
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(31, 27, 22, 0.5);
  font-weight: 600;
}

.app-3 .app-card-image {
  background:
    linear-gradient(90deg, #6B5944 0 5%, #8C7858 5% 7%, #6B5944 7% 12%, #A89270 12% 14%, #6B5944 14% 18%, #9C8568 18% 22%, #6B5944 22% 28%, #B59A78 28% 30%, #6B5944 30% 36%, #8C7858 36% 38%, #6B5944 38% 44%, #A89270 44% 46%, #6B5944 46% 52%, #B59A78 52% 54%, #6B5944 54% 60%, #9C8568 60% 64%, #6B5944 64% 70%, #8C7858 70% 72%, #6B5944 72% 78%, #A89270 78% 80%, #6B5944 80% 86%, #B59A78 86% 88%, #6B5944 88% 94%, #8C7858 94% 96%, #6B5944 96% 100%);
  position: relative;
}

.app-3 .app-card-image::after {
  content: 'FOSSIL WOOD';
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(237, 234, 227, 0.8);
  font-weight: 600;
}

.app-4 .app-card-image {
  background:
    radial-gradient(ellipse at 30% 40%, #B5A892 70px, transparent 100px),
    radial-gradient(ellipse at 70% 30%, #A09078 90px, transparent 120px),
    radial-gradient(ellipse at 50% 75%, #C8BBA3 80px, transparent 110px),
    radial-gradient(ellipse at 20% 80%, #948870 95px, transparent 125px),
    linear-gradient(135deg, #B0A38A 0%, #948770 100%);
  position: relative;
}

.app-4 .app-card-image::after {
  content: 'NATURAL STONE';
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(31, 27, 22, 0.55);
  font-weight: 600;
}

.app-5 .app-card-image {
  background:
    radial-gradient(circle at 20% 25%, #A89878 6px, transparent 7.5px),
    radial-gradient(circle at 55% 20%, #B5A88F 7px, transparent 8.5px),
    radial-gradient(circle at 80% 35%, #9C8D6F 6px, transparent 7.5px),
    radial-gradient(circle at 30% 55%, #B5A88F 7px, transparent 8.5px),
    radial-gradient(circle at 65% 65%, #A89878 6px, transparent 7.5px),
    radial-gradient(circle at 15% 80%, #6B5A40 6px, transparent 7.5px),
    radial-gradient(circle at 50% 85%, #8C7B5E 7px, transparent 8.5px),
    linear-gradient(135deg, #BFB29A 0%, #A39575 100%);
  background-size: 50px 50px, 50px 50px, 50px 50px, 50px 50px, 50px 50px, 50px 50px, 50px 50px, 100% 100%;
  position: relative;
}

.app-5 .app-card-image::after {
  content: 'MOSAIC';
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(31, 27, 22, 0.55);
  font-weight: 600;
}

.applications-footer {
  margin-top: 80px;
  text-align: center;
}

/* ============================================
 DISTRIBUTORS / MAP
 ============================================ */
.distributors {
  background: var(--bg-warm);
  padding-block: 160px;
  position: relative;
  overflow: hidden;
}

.distributors-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--grid-gap);
  align-items: center;
}

.distributors-text .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.distributors-title {
  margin-bottom: 32px;
}

.distributors-title em {
  font-style: italic;
  color: var(--rust);
}

.distributors-desc {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.distributors-list {
  margin-bottom: 40px;
}

.distributor-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 16px;
}

.distributor-item:first-child {
  border-top: 1px solid var(--hairline);
}

.distributor-region {
  font-family: var(--display);
  font-size: 13px;
  color: var(--rust);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.distributor-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.distributor-loc {
  font-size: 12px;
  color: var(--text-3);
}

.map-container {
  position: relative;
  aspect-ratio: 16/10;
}

.map-svg {
  width: 100%;
  height: 100%;
}

/* ============================================
 DUAL CTA — ARCHITECTS + DISTRIBUTOR
 ============================================ */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dual-cta-panel {
  padding: 140px 96px;
  position: relative;
}

.dual-cta-architects {
  background: var(--bg-soft);
}

.dual-cta-distributor {
  background: var(--bg-dark);
  color: var(--bg);
}

.dual-cta-panel .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.dual-cta-distributor .eyebrow {
  color: var(--rust-bright);
}

.dual-cta-title {
  margin-bottom: 24px;
  max-width: 380px;
}

.dual-cta-title em {
  font-style: italic;
}

.dual-cta-architects .dual-cta-title em {
  color: var(--rust);
}

.dual-cta-distributor .dual-cta-title {
  color: var(--bg);
}

.dual-cta-distributor .dual-cta-title em {
  color: var(--rust-bright);
}

.dual-cta-text {
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.dual-cta-architects .dual-cta-text {
  color: var(--text-2);
}

.dual-cta-distributor .dual-cta-text {
  color: rgba(237, 234, 227, 0.7);
}

.dual-cta-resource {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.dual-cta-architects .resource-item {
  flex: 1;
}

.resource-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--rust);
  font-weight: 300;
  margin-bottom: 4px;
}

.resource-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ============================================
 FOOTER
 ============================================ */
footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: 96px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-brand-name {
  font-family: var(--display);
  font-size: 28px;
  color: var(--bg);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(237, 234, 227, 0.6);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 280px;
}

.footer-address {
  font-size: 13px;
  color: rgba(237, 234, 227, 0.5);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-bright);
  font-weight: 500;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(237, 234, 227, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--rust-bright);
}

.footer-newsletter input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237, 234, 227, 0.3);
  padding: 12px 0;
  color: var(--bg);
  font-family: var(--body);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
}

.footer-newsletter input::placeholder {
  color: rgba(237, 234, 227, 0.4);
}

.footer-newsletter input:focus {
  border-color: var(--rust-bright);
}

.footer-newsletter button {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(237, 234, 227, 0.3);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.footer-newsletter button:hover {
  background: var(--rust-bright);
  border-color: var(--rust-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(237, 234, 227, 0.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(237, 234, 227, 0.4);
}

.footer-legal {
  display: flex;
  gap: 32px;
}

.footer-legal a:hover {
  color: var(--rust-bright);
}

/* ============================================
 RESPONSIVE
 ============================================ */
@media (min-width: 1920px) {
  :root {
    --container: 1520px;
    --gutter: 80px;
    --grid-gap: 88px;
  }
}

@media (max-width: 1919px) {
  :root {
    --container: 1320px;
    --gutter: 64px;
    --grid-gap: 72px;
  }

  .brand-logo {
    height: 66px;
  }

  .header-inner {
    gap: 24px;
  }

  nav {
    gap: 32px;
  }

  .display-xl {
    font-size: clamp(40px, 4.8vw, 76px);
  }

  .display-l {
    font-size: clamp(32px, 3.4vw, 48px);
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero-sidebar {
    min-height: 55vh;
  }

  .hero-eyebrow {
    margin-bottom: 24px;
  }

  .hero-lead {
    margin-bottom: 36px;
  }

  .hero-meta {
    bottom: 36px;
  }
}

@media (max-width: 1599px) {
  :root {
    --container: 1240px;
    --gutter: 40px;
    --grid-gap: 60px;
  }

  .brand-logo {
    height: 62px;
  }

  .header-inner {
    gap: 20px;
  }

  .display-xl {
    font-size: clamp(38px, 4.5vw, 56px);
  }

  .display-l {
    font-size: clamp(30px, 3.2vw, 44px);
  }

  nav {
    gap: 28px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero-sidebar {
    min-height: 50vh;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero-lead {
    margin-bottom: 32px;
    font-size: 18px;
  }

  .hero-meta {
    bottom: 32px;
  }
}

@media (max-width: 1365px) {
  :root {
    --container: 1140px;
    --gutter: 32px;
    --grid-gap: 48px;
  }

  .brand-logo {
    height: 54px;
  }

  nav {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }

  .origin-grid,
  .factory-inner,
  .distributors-inner,
  .dual-cta {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .dual-cta-panel {
    padding: 80px 32px;
  }

  .collections-grid-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  nav {
    position: fixed;
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: stretch;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    overflow-y: auto;
    padding-block: 80px;
  }

  nav.is-open {
    transform: translateY(0);
  }

  nav a {
    font-size: 20px;
    color: var(--text);
  }

  /* Mobile Dropdown Overrides */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .dropdown-trigger::after {
    display: none;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 12px 0 0 0 !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    transition: none !important;
  }

  .dropdown-menu a {
    font-size: 16px;
    color: var(--text-2);
    padding: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .desktop-cta {
    display: none;
  }

  .mobile-cta {
    display: inline-flex;
    margin-top: 16px;
    font-size: 13px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 32px;
  }

  .brand-logo {
    height: 58px;
  }

  .hero-sidebar {
    display: none;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 160px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-image-wrapper {
    display: none;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 32px;
    gap: 12px;
    justify-content: space-between;
  }

  .hero-meta-item .value {
    font-size: 16px;
  }

  .hero-meta-item .caption {
    font-size: 10px;
    margin-bottom: 4px;
  }

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

  .app-card.large,
  .app-card.medium,
  .app-card.small {
    grid-column: span 1;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .brand-logo {
    height: 48px;
  }

  .section-pad,
  .applications,
  .collections,
  .distributors,
  .origin {
    padding-block: 96px;
  }

  .collections-grid-split {
    grid-template-columns: 1fr;
  }

  .factory {
    padding-block: 96px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head-side {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
 CHATBOT WIDGET
 ============================================ */
.chatbot-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  font-family: var(--body);
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(31, 27, 22, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chatbot-toggle:hover {
  background: var(--rust);
  transform: scale(1.05);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.chatbot-toggle .close-icon {
  width: 20px;
  height: 20px;
}

.chatbot-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--rust-bright);
  border-radius: 50%;
  border: 2px solid var(--text);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(181, 97, 46, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(181, 97, 46, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(181, 97, 46, 0);
  }
}

.chatbot-tooltip {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 12px 32px rgba(31, 27, 22, 0.1);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: start;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chatbot-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.chatbot-tooltip span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 500;
}

.tooltip-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.tooltip-close:hover {
  color: var(--text);
}

.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(31, 27, 22, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-widget.is-open .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(237, 234, 227, 0.1);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
}

.chat-avatar svg {
  width: 28px;
  height: 28px;
}

.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  border: 1.5px solid var(--bg-dark);
}

.chat-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.chat-status {
  font-size: 11px;
  color: rgba(237, 234, 227, 0.5);
  display: block;
}

.chat-close {
  background: transparent;
  border: none;
  color: rgba(237, 234, 227, 0.6);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.chat-close:hover {
  color: var(--bg);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 3px;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
}

.message-content {
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.bot-message {
  align-self: flex-start;
}

.bot-message .message-content {
  background: var(--white);
  color: var(--text);
  border-radius: 0 14px 14px 14px;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 2px 8px rgba(31, 27, 22, 0.02);
}

.user-message {
  align-self: flex-end;
}

.user-message .message-content {
  background: var(--rust);
  color: var(--white);
  border-radius: 14px 14px 0 14px;
}

.message-time {
  font-size: 10px;
  color: var(--text-3);
  padding: 0 4px;
}

.user-message .message-time {
  align-self: flex-end;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  align-self: flex-start;
}

.quick-reply-btn {
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(31, 27, 22, 0.02);
}

.quick-reply-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: var(--bg-soft);
}

.chat-input-area {
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid var(--hairline-soft);
  background: var(--bg-soft);
  padding: 10px 16px;
  border-radius: 24px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--rust);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(140, 74, 44, 0.08);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chat-send-btn:hover {
  background: var(--rust);
  color: var(--white);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  transform: translateX(1px);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: 0 14px 14px 14px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(31, 27, 22, 0.02);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 500px) {
  .chat-window {
    width: calc(100vw - 32px);
    right: -16px;
    height: 480px;
  }
}