/* Artifex De Color — bright editorial multi-page site */

:root {
  --ink: #181410;
  --ink-2: #2a221c;
  --cream: #f6efe3;
  --cream-2: #ede3d0;
  --paper: #faf5ea;
  --gold: #c89a4a;
  --gold-2: #e6c17a;
  --gold-deep: #8a6420;
  --terracotta: #c4572a;
  --sage: #5c7a5c;
  --indigo: #3b4c7a;
  --plum: #6b3a5a;
  --line: rgba(24, 20, 16, 0.12);
  --line-light: rgba(24, 20, 16, 0.06);
  --shadow-soft: 0 10px 40px rgba(24, 20, 16, 0.08);
  --shadow-strong: 0 30px 80px rgba(24, 20, 16, 0.18);
  --radius: 20px;
  --radius-lg: 28px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `overflow-x: hidden` on html/body promotes them to a scroll container,
     which on iOS/Safari & Chrome makes them the containing block for any
     position:fixed descendant (drawer, lightbox, FAB) — and clips them.
     `overflow-x: clip` does the same horizontal-scroll suppression but
     does NOT create a containing block. Hidden is kept first as a fallback
     for browsers that don't yet support `clip` (pre-iOS-16, etc.). */
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

.serif { font-family: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif; font-weight: 400; }

/* ==================== PRELOADER ==================== */
/* Editorial pre-loader shown until initArtifexData() resolves. Mirrors the
   site palette + the gold "shimmer" used on the MAZE footer credit. Soft
   blobs float behind a centered serif phrase + indeterminate progress bar. */
.artifex-preloader {
  position: fixed; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  z-index: 1000;
  overflow: hidden;
  animation: ap-fade-in 0.25s ease;
  padding: 24px;
}
.artifex-preloader-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.ap-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  will-change: transform;
}
.ap-blob-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), transparent 70%);
  top: 14%; left: 18%;
  animation: ap-float-a 9s ease-in-out infinite;
}
.ap-blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 70% 60%, var(--gold), transparent 70%);
  bottom: 12%; right: 16%;
  animation: ap-float-b 11s ease-in-out infinite;
}
.ap-blob-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--cream-2), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: ap-pulse 6s ease-in-out infinite;
}
.artifex-preloader-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Animated brand mark.
   - Outer halo softly pulses.
   - A golden arc rotates around the rim (the "tracing" gesture, like a
     trowel making a circular pass over fresh plaster).
   - The whole sphere "breathes" (gentle scale + opacity).
   - Five dome-holes pulse in staggered sequence (light traveling around). */
.ap-orb {
  display: block;
  width: clamp(140px, 32vw, 200px);
  height: clamp(140px, 32vw, 200px);
  filter: drop-shadow(0 12px 28px rgba(138, 100, 32, 0.22));
  opacity: 0;
  animation: ap-rise 0.7s ease 0.05s forwards;
}
.ap-orb-ring {
  transform-origin: 80px 80px;
  animation: ap-spin 2.6s linear infinite;
}
.ap-orb-sphere {
  transform-origin: 80px 80px;
  animation: ap-breathe 3.2s ease-in-out infinite;
}
.ap-halo {
  transform-origin: 80px 80px;
  animation: ap-halo-pulse 3.2s ease-in-out infinite;
}
.ap-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: ap-dot-blink 3s ease-in-out infinite;
}
.ap-dot-1 { animation-delay:  0s; }
.ap-dot-2 { animation-delay: 0.18s; }
.ap-dot-3 { animation-delay: 0.36s; }
.ap-dot-4 { animation-delay: 0.54s; }
.ap-dot-5 { animation-delay: 0.72s; }

.ap-bar {
  width: 200px; height: 2px;
  background: var(--cream-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: ap-rise 0.6s ease 0.25s forwards;
}
.ap-bar-fill {
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  animation: ap-bar-slide 1.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes ap-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ap-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ap-bar-slide {
  0%   { left: -45%; }
  100% { left: 100%; }
}
@keyframes ap-float-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(28px, -22px); }
}
@keyframes ap-float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-26px, 18px); }
}
@keyframes ap-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.35; transform: translate(-50%, -50%) scale(1.18); }
}
@keyframes ap-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
@keyframes ap-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
@keyframes ap-halo-pulse {
  0%, 100% { transform: scale(1);     opacity: 0.85; }
  50%      { transform: scale(1.08);  opacity: 1; }
}
@keyframes ap-dot-blink {
  0%, 60%, 100% { transform: scale(1);   opacity: 1; }
  30%           { transform: scale(0.55); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-blob,
  .ap-orb-ring,
  .ap-orb-sphere,
  .ap-halo,
  .ap-dot,
  .ap-bar-fill { animation: none; }
  .ap-bar-fill { left: 0; right: 0; width: 100%; opacity: 0.7; }
}

/* Real photo rendered inside any swatch container (hero gallery, CTA, etc.) */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px 40px;
  background: rgba(250, 245, 234, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; }
.logo-text {
  display: flex; flex-direction: column;
  font-weight: 700; letter-spacing: 0.05em;
  font-size: 14px; line-height: 1;
}
.logo-a { font-size: 15px; }
.logo-b { font-size: 9px; letter-spacing: 0.15em; color: var(--gold-deep); margin-top: 3px; }

.nav-links {
  display: flex; gap: 4px; justify-content: center;
}
.nav-link {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all 0.2s;
  color: var(--ink-2);
}
.nav-link:hover { background: var(--cream-2); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--paper); }

.nav-lang {
  display: flex; gap: 2px;
  font-size: 17px; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.nav-lang span,
.nav-lang .lang-btn { padding: 10px 16px; color: var(--ink-2); cursor: pointer; background: none; border: 0; font: inherit; letter-spacing: inherit; }
.nav-lang .lang-btn:hover { color: var(--ink); }
.nav-lang .lang-active { background: var(--ink); color: var(--paper); }

.nav-social { display: inline-flex; align-items: center; gap: 6px; }
.nav-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--ink-2); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-social-link svg { width: 24px; height: 24px; }
.nav-social-link:hover { background: var(--cream-2); color: var(--ink); }

.nav-mobile-extras { display: none; }
.nav-social-mobile { gap: 8px; }
.nav-social-mobile .nav-social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 60px 40px 80px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  min-height: calc(100vh - 70px);
  align-items: center;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--gold-2); top: -10%; right: -10%; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--terracotta); opacity: 0.2; bottom: -10%; left: 30%; }
.hero-blob-3 { width: 300px; height: 300px; background: var(--indigo); opacity: 0.15; top: 50%; left: -10%; }

.hero-grid { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 500;
  margin-bottom: 28px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 8px var(--gold-2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-italic { font-style: italic; color: var(--gold-deep); }
.hero-accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--terracotta), var(--gold), var(--terracotta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-ctas { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { background: var(--cream-2); border-color: var(--ink); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'DM Serif Display', serif;
  font-size: 40px; font-weight: 400; line-height: 1;
  color: var(--ink);
}
.hero-stats span {
  font-size: 12px; color: var(--ink-2);
  margin-top: 6px; max-width: 140px;
}

/* Hero gallery */
.hero-gallery {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 12px;
  height: min(600px, 70vh);
}
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.hero-card .swatch { width: 100%; height: 100%; border-radius: inherit; }
.hero-card-0 { grid-column: 1 / 5; grid-row: 1 / 4; }
.hero-card-1 { grid-column: 5 / 7; grid-row: 1 / 3; }
.hero-card-2 { grid-column: 5 / 7; grid-row: 3 / 5; }
.hero-card-3 { grid-column: 1 / 4; grid-row: 4 / 7; }
.hero-card-4 { grid-column: 4 / 7; grid-row: 5 / 7; }

.hero-card-meta {
  position: absolute;
  bottom: 12px; left: 12px;
  color: white;
  display: flex; flex-direction: column;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}
.hero-card-meta span { font-size: 10px; opacity: 0.8; letter-spacing: 0.1em; }
.hero-card-meta strong {
  font-family: 'DM Serif Display', serif;
  font-weight: 400; font-size: 22px;
  line-height: 1;
  margin-top: 4px;
}
.hero-card-meta em { font-size: 11px; opacity: 0.9; margin-top: 4px; font-style: normal; letter-spacing: 0.02em; }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-row {
  display: flex; align-items: center; gap: 40px;
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  letter-spacing: 0.02em;
  padding-right: 60px;
}
.marquee-row .dot-sep { color: var(--gold-2); font-size: 20px; }
@keyframes scroll { to { transform: translateX(-33.333%); } }

/* ---------- MANIFESTO ---------- */
.manifesto {
  padding: 120px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 600;
  color: var(--gold-deep); margin-bottom: 24px;
}
.manifesto-text {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.25;
  text-wrap: balance;
}
.manifesto-text em { color: var(--gold-deep); font-style: italic; }
.manifesto-text .hl {
  background: linear-gradient(120deg, transparent 0%, transparent 20%, var(--gold-2) 20%, var(--gold-2) 80%, transparent 80%);
  padding: 0 4px;
}
.manifesto-text .hl-2 {
  color: var(--terracotta);
  font-style: italic;
}

/* ---------- SECTION ---------- */
.section {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 12px;
}
.eyebrow.light { color: var(--gold-2); }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--paper); }
.section-title em { font-style: italic; color: var(--gold-deep); }

.link-arrow {
  font-size: 14px; font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: all 0.2s;
}
.link-arrow:hover { color: var(--gold-deep); }

/* Product feature row */
.products-feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.product-feature {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.product-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.pf-swatch { aspect-ratio: 4/3; overflow: hidden; }
.pf-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }
.pf-swatch .product-cover,
.ps-swatch .product-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-feature:hover .pf-swatch .product-cover,
.product-small:hover .ps-swatch .product-cover { transform: scale(1.04); }
.pf-body { padding: 24px; }
.pf-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pf-cat {
  font-size: 11px; letter-spacing: 0.15em; font-weight: 600;
  color: var(--gold-deep); text-transform: uppercase;
}
.pf-arrow { font-size: 18px; transition: transform 0.2s; }
.product-feature:hover .pf-arrow { transform: translate(3px, -3px); }
.pf-body h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400; font-size: 32px;
  line-height: 1; margin-bottom: 8px;
}
.pf-body p { font-size: 14px; color: var(--ink-2); }

.products-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.product-small {
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s;
}
.product-small:hover { transform: translateY(-3px); }
.ps-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.ps-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }
.ps-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
}
.ps-effect {
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--gold-deep); text-transform: uppercase;
}

/* ---------- ADVANTAGES ---------- */
.advantages {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}
.advantages::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-deep), transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}
.advantages-inner { max-width: 1400px; margin: 0 auto; position: relative; }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.adv-card {
  background: var(--ink);
  padding: 36px 28px;
  transition: background 0.3s;
}
.adv-card:hover { background: var(--ink-2); }
.adv-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--gold-2);
  margin-bottom: 16px;
  line-height: 1;
}
.adv-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.adv-card p { font-size: 14px; color: rgba(246, 239, 227, 0.7); line-height: 1.5; }

/* ---------- OBJECTS STRIP ---------- */
.obj-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.obj-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.obj-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.obj-year {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--gold-deep);
  line-height: 1;
}
.obj-name {
  font-size: 22px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
}
.obj-type {
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.obj-surface {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gold-deep);
}

/* ---------- CTA ---------- */
.cta {
  max-width: 1400px; margin: 0 auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-content p {
  font-size: 17px; color: var(--ink-2);
  max-width: 440px;
  margin: 20px 0 32px;
}
.cta-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transform: rotate(-3deg);
}
.cta-swatch {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.cta-swatch:nth-child(2) { transform: translateY(20px) rotate(4deg); }
.cta-swatch:nth-child(3) { transform: translateY(-15px); }
.cta-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 40px 24px;
}
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 239, 227, 0.15);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}
.footer-logo span {
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--gold-2);
}
.footer-tag { color: rgba(246, 239, 227, 0.6); font-size: 14px; max-width: 300px; }
.footer-h {
  font-size: 11px; letter-spacing: 0.15em; font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 16px;
}
.footer-grid > div > a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(246, 239, 227, 0.75);
  transition: color 0.2s;
}
.footer-grid > div > a:hover { color: var(--paper); }
.footer-grid > div > p { font-size: 14px; color: rgba(246, 239, 227, 0.75); margin-bottom: 8px; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(246, 239, 227, 0.5);
}
.footer-credit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: 0.04em;
}
.footer-maze {
  position: relative;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-decoration: none;
  background-image: linear-gradient(
    120deg,
    #c89a4a 0%,
    #f4d489 18%,
    #ffffff 32%,
    #f4d489 46%,
    #c89a4a 60%,
    #8a6420 78%,
    #c89a4a 100%
  );
  background-size: 280% 100%;
  background-position: 0% 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: maze-shimmer 9s linear infinite;
  padding: 0 1px;
}
.footer-maze::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: linear-gradient(120deg, var(--gold-2), var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.footer-maze:hover { animation-duration: 3s; }
.footer-maze:hover::after { transform: scaleX(1); }
.footer-maze:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
  border-radius: 2px;
}
@keyframes maze-shimmer {
  0%   { background-position:   0% 0; }
  100% { background-position: -280% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-maze { animation: none; background-position: 30% 0; }
}

/* ---------- CATALOG ---------- */
.catalog { max-width: 1400px; margin: 0 auto; padding: 40px; }
.catalog-hero { padding: 60px 0 40px; }
.catalog-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.page-title em { font-style: italic; color: var(--gold-deep); }
.catalog-lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-bottom: 16px;
}

.catalog-toolbar {
  display: flex; align-items: center;
  gap: 24px; padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 12px; }
.filter-label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.filter-spacer { flex: 1; }

.pills { display: flex; gap: 6px; }
.pill {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  border-radius: 100px;
  background: var(--cream-2);
  color: var(--ink-2);
  transition: all 0.2s;
}
.pill:hover { background: var(--cream); }
.pill.active { background: var(--ink); color: var(--paper); }

.filter-search input {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--cream);
  width: 260px;
  outline: none;
}
.filter-search input:focus { border-color: var(--ink); background: white; }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.view-toggle button {
  padding: 8px 12px;
  color: var(--ink-2);
  transition: all 0.2s;
}
.view-toggle button.active { background: var(--ink); color: var(--paper); }

.results-meta {
  padding: 24px 0;
  font-size: 13px; color: var(--ink-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.cat-swatch {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cat-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }
.cat-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-card:hover .cat-cover { transform: scale(1.04); }
.cat-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 10px;
  background: rgba(250, 245, 234, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cat-body h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400; font-size: 32px;
  line-height: 1;
}
.cat-arrow { font-size: 20px; transition: transform 0.2s; color: var(--ink-2); }
.cat-card:hover .cat-arrow { transform: translate(4px, -4px); color: var(--gold-deep); }
.cat-effect {
  font-size: 11px; letter-spacing: 0.15em; font-weight: 600;
  color: var(--gold-deep); text-transform: uppercase;
  margin-top: 6px;
}
.cat-tag-line {
  font-size: 14px; color: var(--ink-2);
  margin-top: 12px; margin-bottom: 16px;
  flex: 1;
}
.cat-palette {
  display: flex; gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cat-palette span {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

/* List view */
.catalog-list { display: flex; flex-direction: column; }
.cat-row-item {
  display: grid;
  grid-template-columns: 40px 60px 2fr 1fr 120px 100px 20px;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.cat-row-item:hover { background: var(--cream); }
.cat-row-num { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--ink-2); }
.cat-row-swatch { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.cat-row-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }
.cat-row-name h3 { font-family: 'DM Serif Display', serif; font-size: 24px; font-weight: 400; line-height: 1; }
.cat-row-name span { font-size: 13px; color: var(--ink-2); display: block; margin-top: 4px; }
.cat-row-effect { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); }
.cat-row-base { font-size: 12px; color: var(--ink-2); }
.cat-row-palette { display: flex; gap: 3px; }
.cat-row-palette span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.cat-row-arrow { font-size: 18px; color: var(--ink-2); }

.catalog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-2);
  font-size: 16px;
}
.catalog-empty button { margin-top: 16px; }

/* ---------- PRODUCT PAGE ---------- */
.product { max-width: 1400px; margin: 0 auto; padding: 40px; }
.product-breadcrumbs {
  padding: 20px 0;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}
.product-breadcrumbs a:hover { color: var(--gold-deep); }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding: 40px 0 80px;
  align-items: center;
}
.product-num {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.product-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.product-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--gold-deep);
  margin-bottom: 24px;
  line-height: 1.3;
}
.product-desc {
  font-size: 17px; color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
}
.product-story {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  max-width: 500px;
  margin-bottom: 32px;
}
.story-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold-2);
  margin-bottom: 12px;
}
.product-story p {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
}
.product-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.product-visual { position: relative; }
.pv-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--cream-2);
}
.pv-main .swatch { width: 100%; height: 100%; border-radius: 0; }
.pv-cover {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pv-thumbs {
  position: absolute;
  left: -30px; bottom: 60px;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.pv-thumb {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.pv-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px;
  border-radius: 100px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.pv-badge span:first-child {
  background: var(--gold-2); color: var(--ink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px; letter-spacing: 0.05em;
}

.product-specs {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec:nth-child(3n) { border-right: 0; }
.spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec-label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  font-weight: 600;
}
.spec-value {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  line-height: 1.2;
}

/* ==================== PRODUCT GALLERY (editor-uploaded photos) ==================== */
.product-gallery { padding: 60px 0; }
.product-gallery-head { margin-bottom: 28px; }
.product-gallery-head .eyebrow { margin-bottom: 8px; }
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(24, 20, 16, 0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
}
.product-gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(24, 20, 16, 0.2);
}
.product-gallery-tile:hover img { transform: scale(1.05); }
.product-gallery-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(24, 20, 16, 0.55);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.product-gallery-tile:hover .product-gallery-zoom { opacity: 1; }

/* Lightbox */
.product-lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 8, 6, 0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 40px;
  animation: plb-fade 0.2s ease;
}
@keyframes plb-fade { from { opacity: 0; } to { opacity: 1; } }
.plb-img {
  max-width: min(92vw, 1400px);
  max-height: 85vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.plb-close, .plb-nav {
  position: absolute;
  background: rgba(246, 239, 227, 0.12);
  color: var(--paper);
  border: 1px solid rgba(246, 239, 227, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s;
}
.plb-close:hover, .plb-nav:hover { background: rgba(246, 239, 227, 0.25); }
.plb-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.plb-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  padding: 0;
}
.plb-prev { left: 24px; }
.plb-next { right: 24px; }
.plb-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 239, 227, 0.8);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: rgba(24, 20, 16, 0.6);
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px 0;
}
.pnav-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.pnav-card:hover { background: var(--ink); color: var(--paper); }
.pnav-prev { text-align: left; }
.pnav-next { text-align: right; }
.pnav-label { font-size: 12px; letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 12px; }
.pnav-card:hover .pnav-label { color: var(--gold-2); }
.pnav-name { font-family: 'DM Serif Display', serif; font-size: 32px; line-height: 1; }
.pnav-effect { font-size: 12px; letter-spacing: 0.1em; color: var(--gold-deep); margin-top: 6px; text-transform: uppercase; }
.pnav-card:hover .pnav-effect { color: var(--gold-2); }

/* ---------- APPLICATIONS ---------- */
.applications { max-width: 1400px; margin: 0 auto; padding: 40px; }
.page-hero { padding: 60px 0; }
.page-lede { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-top: 24px; line-height: 1.6; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 80px;
}
.app-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); }
.app-card-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 16px;
}
.app-card-swatch {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.app-card-swatch .swatch { width: 100%; height: 100%; border-radius: 0; }
.app-card-body h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 28px; margin-bottom: 10px; line-height: 1.1; }
.app-card-body p { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.app-card-products {
  display: flex; gap: 8px; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  font-size: 13px;
}
.app-card-products span { color: var(--ink-2); }
.app-card-products a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

.apps-compare { padding: 60px 0; }
.compare-table {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1.5fr;
  gap: 20px;
  padding: 16px 24px;
  align-items: center;
}
.compare-head {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.compare-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  font-size: 14px;
}
.compare-row:hover { background: var(--cream); }
.compare-row:last-child { border-bottom: 0; }
.compare-name { display: flex; align-items: center; gap: 12px; font-family: 'DM Serif Display', serif; font-size: 20px; }
.compare-swatch-mini {
  width: 32px; height: 32px; flex: none;
  border-radius: 8px; overflow: hidden;
}
.compare-swatch-mini .swatch { width: 100%; height: 100%; border-radius: 0; }

/* ---------- OBJECTS PAGE ---------- */
.objects-page { max-width: 1400px; margin: 0 auto; padding: 40px; }
.objects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 80px;
}
.obj-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s ease;
  box-shadow: 0 2px 10px rgba(24, 20, 16, 0.08);
}
.obj-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(24, 20, 16, 0.22);
}
.obj-tile-bg { position: absolute; inset: 0; }
.obj-tile-bg .swatch { width: 100%; height: 100%; border-radius: 0; }
.obj-tile-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,20,16,0.75) 0%, rgba(24,20,16,0.15) 55%, transparent 100%);
}
.obj-tile-content {
  position: relative;
  align-self: flex-end;
  padding: 24px 26px 22px;
  color: var(--paper);
  width: 100%;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.obj-tile:hover .obj-tile-content { transform: translateY(-2px); }
.obj-tile-year {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  color: var(--paper);
  background: rgba(24, 20, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  z-index: 1;
}
.obj-tile-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}
.obj-tile-type {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 14px;
  color: var(--gold-2);
}
.obj-tile-surface {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.92;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.obj-tile-surface span {
  color: var(--gold-2);
  letter-spacing: 0.08em;
  font-size: 10.5px;
  text-transform: uppercase;
  margin-right: 6px;
}

.partners { padding: 60px 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.partner-card {
  padding: 28px 16px;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.partner-card:hover { background: var(--ink); color: var(--paper); }
.partner-mark {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.partner-card:hover .partner-mark { color: var(--gold-2); }
.partner-name { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; }

/* ---------- ABOUT PAGE ---------- */
.about { max-width: 1400px; margin: 0 auto; padding: 40px; }
.about-hero { padding: 60px 0; }
.about-lede {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 680px;
  line-height: 1.5;
  margin-top: 28px;
}

.about-story { padding: 60px 0; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.about-story-quote {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}
.about-story-quote .story-mark { color: var(--gold-2); }
.about-story-quote p {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 32px;
}
.about-author strong { display: block; font-size: 16px; font-weight: 600; font-style: normal; }
.about-author span { font-size: 13px; color: var(--gold-2); letter-spacing: 0.05em; }

.about-story-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--ink-2);
}
.about-story-body strong { color: var(--ink); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}
.about-stats .stat {
  background: white;
  padding: 32px 24px;
  text-align: left;
}
.about-stats strong {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.about-stats span {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  display: block;
  letter-spacing: 0.02em;
}

.about-team { padding: 60px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
}
.team-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.team-role { font-size: 13px; color: var(--gold-deep); letter-spacing: 0.05em; text-transform: uppercase; }

.about-developers { padding: 60px 0; border-top: 1px solid var(--line); }
.about-dev-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 24px 0 40px;
}
.about-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.about-dev-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.about-dev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(24, 20, 16, 0.10);
  border-color: var(--gold-2);
}
.about-dev-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.about-dev-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 400;
}
.about-dev-tech-intro {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-style: italic;
}
.about-dev-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-dev-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.about-dev-card li:last-child { margin-bottom: 0; }
.about-dev-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
}
.about-dev-outro {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 20px 28px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-plans { padding: 60px 0; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.plan-card {
  position: relative;
  padding: 30px 28px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.25s;
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold-deep);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.plan-card:hover::before { opacity: 1; }
.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.plan-card-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1;
  color: var(--gold-deep);
}
.plan-card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.plan-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.plan-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.plan-card-tag {
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card { min-height: 0; padding: 26px 22px 22px; }
  .plan-card-head { margin-bottom: 20px; }
  .plan-card-num { font-size: 30px; }
  .plan-card-icon { width: 42px; height: 42px; font-size: 20px; }
  .plan-card h3 { font-size: 22px; }
}

/* ---------- CONTACTS ---------- */
.contacts { max-width: 1400px; margin: 0 auto; padding: 40px; }
.contacts-hero {
  padding: 48px 0 32px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.contacts-hero .page-lede { max-width: 640px; margin: 16px auto 0; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  padding: 40px 0;
  align-items: stretch;
}
.contacts-info {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 28px;
  min-height: 100%;
}
.ci-block {}
.ci-label { font-size: 11px; letter-spacing: 0.15em; color: var(--gold-2); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.ci-value { font-family: 'DM Serif Display', serif; font-size: 22px; line-height: 1.3; display: block; }
a.ci-value:hover { color: var(--gold-2); }

.ci-map {
  flex: 1;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-top: 4px;
}
.ci-map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.ci-socials {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ci-socials a {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 13px;
  transition: background 0.2s;
}
.ci-socials a:hover { background: var(--gold-2); color: var(--ink); }

.contacts-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.form-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 36px; margin-top: 10px; margin-bottom: 24px; line-height: 1; }
.contacts-form label {
  display: block;
  margin-bottom: 16px;
}
.contacts-form label span {
  display: block;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
  margin-bottom: 6px;
}
.contacts-form input,
.contacts-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  outline: none;
  transition: all 0.2s;
}
.contacts-form input:focus,
.contacts-form textarea:focus { border-color: var(--ink); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contacts-form button { margin-top: 8px; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--ink-2); }

.form-success { text-align: center; padding: 40px 20px; }
.success-mark {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: var(--sage); color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.form-success h2 { font-family: 'DM Serif Display', serif; font-size: 32px; font-weight: 400; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); margin-bottom: 24px; }

.contacts-map {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-stub {
  position: relative;
  height: 360px;
  background: linear-gradient(135deg, var(--cream), var(--cream-2));
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24, 20, 16, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 20, 16, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-grid::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold-2) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 40%, var(--gold-2) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, var(--gold-2) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 80%, var(--gold-2) 0 2px, transparent 3px);
  opacity: 0.4;
}
.map-pin {
  position: absolute;
  top: 48%; left: 54%;
  display: flex; align-items: center; gap: 12px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 4px 20px rgba(196, 87, 42, 0.5);
  position: relative;
  z-index: 2;
}
.pin-ring {
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.3;
  animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}
.pin-label {
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.pin-label strong { font-size: 13px; }
.pin-label span { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.map-label {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 { font-family: 'DM Serif Display', serif; font-size: 48px; font-weight: 400; }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  z-index: 1000;
  padding: 20px;
  font-size: 13px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks-panel h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tweak { margin-bottom: 16px; }
.tweak label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  font-weight: 600;
  display: block; margin-bottom: 8px;
}
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.tweak-swatch.active { border-color: var(--ink); }
.tweak-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-pill {
  padding: 6px 10px;
  font-size: 11px; font-weight: 500;
  background: var(--cream);
  border-radius: 100px;
}
.tweak-pill.active { background: var(--ink); color: var(--paper); }

/* Accent color modes */
body.accent-terracotta { --gold-deep: #a43e1a; --gold: #c4572a; --gold-2: #e68c5a; }
body.accent-sage { --gold-deep: #3a4e3a; --gold: #5c7a5c; --gold-2: #8aa88a; }
body.accent-indigo { --gold-deep: #1f2a4d; --gold: #3b4c7a; --gold-2: #6b7cb5; }
body.accent-plum { --gold-deep: #4a2540; --gold: #6b3a5a; --gold-2: #9b6a8a; }

body.bg-ink { --paper: #181410; --cream: #221c16; --cream-2: #2e271f; --ink: #f6efe3; --ink-2: #c9bfae; --line: rgba(246,239,227,0.1); --line-light: rgba(246,239,227,0.06); }
body.bg-ink .btn-primary { background: var(--gold); color: var(--ink); }
body.bg-ink .btn-primary:hover { background: var(--gold-2); }
body.bg-ink .pill { background: rgba(246,239,227,0.08); color: var(--ink); }
body.bg-ink .pill.active { background: var(--gold); color: #181410; }
body.bg-ink .obj-card, body.bg-ink .cat-card, body.bg-ink .product-feature, body.bg-ink .team-card,
body.bg-ink .app-card, body.bg-ink .contacts-form, body.bg-ink .pnav-card, body.bg-ink .partner-card,
body.bg-ink .about-stats .stat, body.bg-ink .compare-table { background: #2e271f; }

/* ---------- ABOUT: split hero + photo band ---------- */
.about-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-hero-copy { min-width: 0; }
.about-hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-band { padding: 40px 0 60px; }
.about-band .eyebrow { margin-bottom: 20px; }
.about-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-band-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 14px 20px; }
  .nav-links { gap: 0; overflow-x: auto; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px; gap: 40px; }
  .hero-gallery { height: 500px; }
  .products-feature, .products-row, .apps-grid, .team-grid, .partners-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-dev-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .product-hero, .catalog-hero-grid, .about-story-grid, .contacts-grid, .cta, .about-hero-split { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid, .about-stats { grid-template-columns: repeat(2, 1fr); }
  .obj-strip, .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3n) { border-right: 1px solid var(--line); }
  .spec:nth-child(2n) { border-right: 0; }
  .objects-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-row-item { grid-template-columns: 30px 50px 1.5fr 1fr 20px; }
  .cat-row-effect, .cat-row-base, .cat-row-palette { display: none; }
  .marquee-row { font-size: 28px; }
  .section { padding: 60px 20px; }
  .advantages { padding: 60px 20px; }
  .manifesto { padding: 60px 20px; }
  .product, .catalog, .about, .contacts, .applications, .objects-page { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 14px; }
  .logo-img { height: 40px; max-width: 170px; }
  .nav-burger { width: 44px; height: 44px; }
  .nav-links { padding: 76px 18px 24px; }
  .hero { padding: 32px 16px 48px; gap: 28px; min-height: 0; }
  .hero-gallery { height: 380px; }
  .hero-title { font-size: clamp(38px, 10.5vw, 60px); margin-bottom: 20px; line-height: 1.05; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; line-height: 1.55; }
  .hero-ctas { gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .section { padding: 44px 16px; }
  .advantages, .manifesto { padding: 44px 16px; }
  .product, .catalog, .about, .contacts, .applications, .objects-page { padding: 16px; }
  .catalog-hero, .page-hero, .about-hero, .contacts-hero { padding: 32px 0 20px; }
  .section-title { font-size: clamp(28px, 7vw, 40px); }
  .page-title { font-size: clamp(34px, 9vw, 56px); }
  .footer { padding: 48px 20px 20px; }
  .footer-grid { gap: 28px; padding-bottom: 28px; }
  .products-feature, .products-row, .apps-grid, .team-grid, .plans-grid, .catalog-grid,
  .obj-strip, .adv-grid, .about-stats, .specs-grid, .objects-grid, .about-dev-grid,
  .product-gallery-grid { grid-template-columns: 1fr; }
  .plb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 22px; }
  .plb-nav { width: 44px; height: 44px; font-size: 26px; }
  .plb-prev { left: 10px; }
  .plb-next { right: 10px; }
  .product-lightbox { padding: 16px; }
  .product-gallery { padding: 40px 0; }
  .about-dev-card { padding: 22px 20px; }
  .obj-tile-name { font-size: 22px; }
  .spec { border-right: 0 !important; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band-grid { grid-template-columns: 1fr; }
  .pnav-card { padding: 16px; }
  .pnav-name { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tweaks-panel { width: calc(100vw - 40px); }
}

/* ==================== QUOTE SYSTEM ==================== */

/* Floating button */
.quote-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  box-shadow: 0 20px 50px rgba(24,20,16,0.3), 0 4px 12px rgba(24,20,16,0.15);
  text-decoration: none;
  transition: all 0.2s ease;
  animation: quote-fab-in 0.3s ease;
}
.quote-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(24,20,16,0.35), 0 6px 16px rgba(24,20,16,0.2);
  background: var(--ink-2);
}
.quote-fab-icon {
  width: 32px; height: 32px;
  background: var(--gold-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.quote-fab-text { display: flex; flex-direction: column; line-height: 1.1; }
.quote-fab-text strong { font-size: 14px; font-weight: 600; }
.quote-fab-text span { font-size: 11px; opacity: 0.7; }
.quote-fab-arrow { margin-left: 4px; opacity: 0.6; font-size: 14px; }
@keyframes quote-fab-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Quote toggle button (on cards, product page) */
.quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: all 0.15s;
  white-space: nowrap;
}
.quote-toggle:hover { background: white; border-color: var(--ink); }
.quote-toggle.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cat-quote-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}
.cat-swatch-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.cat-card-wrap { position: relative; }
.cat-card-wrap:hover .cat-swatch-actions,
.cat-swatch-actions:focus-within { opacity: 1; }
.cat-swatch-actions .quote-toggle.active { opacity: 1; }
.cat-card-wrap:has(.quote-toggle.active) .cat-swatch-actions { opacity: 1; }

/* Quote page */
.quote-page {
  padding: 40px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}
.quote-items { min-width: 0; }
.quote-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.quote-empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-2);
}
.quote-empty p { margin-bottom: 20px; font-size: 15px; }
.quote-list { display: flex; flex-direction: column; gap: 12px; }
.quote-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  transition: box-shadow 0.15s;
}
.quote-item:hover { box-shadow: var(--shadow-soft); }
.quote-item-swatch {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.quote-item-swatch .swatch { width: 100%; height: 100%; }
.quote-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.quote-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.quote-item-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--ink);
}
.quote-item-name:hover { color: var(--gold-deep); }
.quote-item-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
  border: 0;
}
.quote-item-remove:hover { background: #fdecea; color: #a62a1e; }
.quote-item-effect {
  font-size: 13px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quote-item-area {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
}
.quote-item-area label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-item-area label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.7;
}
.quote-item-area input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}
.quote-item-area input:focus { outline: none; border-color: var(--gold); background: white; }
.quote-item-calc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-2);
}
.quote-item-calc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.quote-item-calc strong {
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}
.quote-item-calc-rate {
  font-size: 11px;
  opacity: 0.6;
}
.quote-total {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.quote-total span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.quote-total strong { font-size: 22px; font-family: 'DM Serif Display', serif; font-weight: 400; }

/* Quote form (right column) */
.quote-form {
  background: white;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  position: sticky;
  top: 90px;
}
.quote-form .section-title { margin-bottom: 18px; font-size: 28px; }
.quote-form form { display: flex; flex-direction: column; gap: 12px; }
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-form label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 600;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-family: inherit;
  font-size: 15px;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: none; border-color: var(--gold); background: white; }
.quote-form .btn { margin-top: 8px; justify-content: center; }
.quote-form .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form .form-note {
  font-size: 12px;
  color: var(--ink-2);
  opacity: 0.6;
  margin-top: 8px;
  line-height: 1.5;
}
.quote-form .form-note a { color: var(--gold-deep); text-decoration: underline; }

.form-err {
  background: #fdecea;
  color: #a62a1e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 6px;
}

.quote-success {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.quote-success h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 400;
  margin: 16px 0 12px;
}
.quote-success p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 28px;
  line-height: 1.6;
}
.quote-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== CATALOG IMPROVEMENTS ==================== */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 6px;
  height: 18px;
  background: rgba(24,20,16,0.08);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
}
.pill.active .pill-count {
  background: rgba(246,239,227,0.2);
  color: var(--paper);
}
.filter-group-effects .pills { flex-wrap: wrap; }
.filter-sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-sort select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: white;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.filter-search {
  position: relative;
}
.filter-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  border: 0;
}
.filter-search-clear:hover { background: var(--ink); color: var(--paper); }

.catalog-empty {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 20px;
  max-width: 520px;
  margin: 40px auto;
}
.catalog-empty-mark {
  font-size: 48px;
  color: var(--gold-2);
  margin-bottom: 14px;
  opacity: 0.5;
}
.catalog-empty h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.catalog-empty p {
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cat-row-wrap { display: contents; }
.cat-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 13px;
}

/* ==================== PRODUCT PAGE IMPROVEMENTS ==================== */

.product-calc {
  background: var(--cream);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--line);
}
.product-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.product-calc-rate {
  font-size: 12px;
  background: white;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--ink-2);
  font-weight: 500;
}
.product-calc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}
.product-calc-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 12px 2px 2px;
}
.product-calc-input input {
  flex: 1;
  padding: 12px;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  width: 100%;
}
.product-calc-input input:focus { outline: none; }
.product-calc-input span {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.product-calc-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-calc-row label > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 600;
}
.product-calc-result-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-calc-result-value {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.product-calc-result-hint {
  font-size: 11px;
  color: var(--ink-2);
  opacity: 0.65;
  margin-top: 4px;
}
.product-calc-result-empty {
  color: var(--ink-2);
  opacity: 0.5;
  font-style: italic;
  font-size: 14px;
}

.btn.btn-in-quote {
  background: #e6d4b0;
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn.btn-in-quote:hover { background: var(--gold-2); }

.btn-icon {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover { background: var(--cream-2); border-color: var(--ink-2); }

.product-safety {
  padding: 40px 40px 20px;
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.safety-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.safety-icon {
  font-size: 28px;
  margin-bottom: 10px;
  filter: saturate(0.8);
}
.safety-card h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.safety-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
  .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .quote-form { position: static; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .product-calc-row { grid-template-columns: 1fr; }
  .quote-item { grid-template-columns: 90px 1fr; }
  .quote-item-swatch { aspect-ratio: 1; }
}

@media (max-width: 640px) {
  .quote-fab { bottom: 16px; right: 16px; padding: 10px 14px 10px 10px; }
  .quote-fab-icon { width: 26px; height: 26px; font-size: 12px; }
  .quote-fab-text strong { font-size: 13px; }
  .quote-fab-text span { font-size: 10px; }
  .quote-page { padding: 20px 20px 60px; }
  .safety-grid { grid-template-columns: 1fr; }
  .quote-item-area { grid-template-columns: 1fr; }
  .quote-form { padding: 20px; }
  .quote-form .form-row { grid-template-columns: 1fr; }
  .cat-swatch-actions { opacity: 1; }
  .filter-sort { width: 100%; }
}

/* ==================== LOGO (image) ==================== */
/* Logo sizes scaled up ~30% on top of the earlier +25% bump. Any uploaded
 * PNG/SVG is scaled proportionally via height + auto width +
 * object-fit:contain, so very tall, very wide, or nearly square source
 * files all stay inside the container without distortion. */
.logo-img {
  display: block;
  height: 62px;
  width: auto;
  max-width: 292px;
  object-fit: contain;
  object-position: left center;
}
.nav-logo { display: flex; align-items: center; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-img {
  height: 78px;
  filter: brightness(0) invert(1);
  max-width: 325px;
}
.footer-logo .logo-fallback { color: var(--paper); }

/* ==================== MOBILE NAV + BURGER ==================== */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ==================== PARTNERS GRID ==================== */
.partner-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-height: 140px;
  justify-content: center;
  transition: all 0.2s;
}
.partner-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.partner-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(0.3);
  opacity: 0.85;
  transition: all 0.2s;
}
.partner-card:hover .partner-logo { filter: none; opacity: 1; }
.partner-mark {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--gold-deep);
}
.partner-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.partner-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  opacity: 0.6;
}

/* ==================== LOGOBAR (партнёры и заказчики) ==================== */
.logobar-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}
.logobar-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 48px;
  color: var(--ink);
}
.logobar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}
.logobar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  min-height: 180px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.logobar-cell:hover { background: var(--cream); }
.logobar-logo {
  max-width: 196px;
  max-height: 98px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.logobar-fallback {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-align: center;
}
@media (max-width: 900px) {
  .logobar-section { padding: 60px 20px 80px; }
  .logobar-grid { grid-template-columns: repeat(3, 1fr); }
  .logobar-cell { min-height: 150px; padding: 20px 16px; }
  .logobar-logo { max-width: 154px; max-height: 78px; }
}
@media (max-width: 520px) {
  .logobar-grid { grid-template-columns: repeat(2, 1fr); }
  .logobar-cell { min-height: 130px; padding: 16px 12px; }
}

/* ==================== OBJECT TILES WITH PHOTOS ==================== */
.obj-tile { position: relative; overflow: hidden; }
.obj-tile.has-photo .obj-tile-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.obj-tile.has-photo:hover .obj-tile-bg img {
  transform: scale(1.06);
}
.obj-tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.obj-tile.has-photo .obj-tile-content * { color: var(--paper); }

.obj-card-photo {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--cream);
}
.obj-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.obj-card-clickable { cursor: pointer; }
.obj-card-clickable:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}
.obj-card-clickable:hover .obj-card-photo img { transform: scale(1.05); }
.obj-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.obj-card-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.obj-card-clickable:hover .obj-card-zoom,
.obj-card-clickable:focus-visible .obj-card-zoom { opacity: 1; }

/* ==================== OBJECT DETAIL PAGE ==================== */
.object-detail { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.object-hero { padding: 40px 0 32px; position: relative; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
.object-hero .eyebrow {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.object-cover {
  margin: 0 0 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.object-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--cream);
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
}
.object-cover-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.object-cover-btn:hover img { transform: scale(1.03); }
.object-cover-badge {
  position: absolute;
  bottom: 18px; right: 18px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.object-info { padding: 0 0 80px; }
.object-info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}
.object-info-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.object-info-body p:last-child { margin-bottom: 0; }
.object-facts {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.object-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.object-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.object-fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.object-fact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.object-gallery { padding: 0 0 80px; }
.object-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.object-gallery-tile {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.object-gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.object-gallery-tile:hover { transform: translateY(-2px); }
.object-gallery-tile:hover img { transform: scale(1.05); }
.object-gallery-tile:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}

.object-cta {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 80px;
}
.object-cta p {
  max-width: 640px;
  margin: 16px auto 32px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}
.object-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .object-detail { padding: 0 20px; }
  .object-info-grid { grid-template-columns: 1fr; gap: 28px; }
  .object-cover-btn { aspect-ratio: 4/3; }
  .object-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .object-cta { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .object-gallery-grid { grid-template-columns: 1fr; }
}

/* ==================== LIGHTBOX ==================== */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lb-fade 0.18s ease-out;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-content img {
  max-width: min(1400px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}
.lightbox-counter { color: rgba(255, 255, 255, 0.55); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  font-size: 28px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 36px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 720px) {
  .lightbox-backdrop { padding: 16px; }
  .lightbox-content img { max-height: 76vh; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Objects filters */
.objects-filters {
  display: flex;
  gap: 20px;
  padding: 20px 40px;
  align-items: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  background: var(--cream);
}
.objects-filters .filter-spacer { flex: 1; }

/* ==================== ABOUT: MILESTONES (HORIZONTAL TIMELINE) ==================== */
.about-milestones { padding: 60px 40px; }
.timeline-h {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  padding: 8px 0 24px;
}
/* Gold hairline through the icon row — fades at both ends so it never
 * clashes with the first/last card. */
.tl-h-line {
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold) 8%,
    var(--gold) 92%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}
.tl-h-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2px;
  min-width: 0;
}
.tl-h-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(201, 161, 98, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tl-h-item:hover .tl-h-icon {
  background: var(--gold);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(201, 161, 98, 0.28);
}
.tl-h-year {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.tl-h-title {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--ink);
}
.tl-h-desc {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 auto;
}

/* ==================== ABOUT: TEAM PHOTOS ==================== */
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  display: block;
}

/* ==================== CONTACTS ENHANCEMENTS ==================== */
.contacts-banner {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin-bottom: 20px;
}
.contacts-banner img { width: 100%; height: 100%; object-fit: cover; }
.contacts-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(250,245,234,0.2) 60%, var(--paper) 100%);
}

.contacts-reach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 0 0 48px;
}
.reach-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
  min-height: 180px;
  justify-content: center;
}
.reach-card:hover {
  box-shadow: 0 10px 28px rgba(24, 20, 16, 0.08);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.reach-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.reach-card:hover .reach-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.reach-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 600;
}
.reach-value {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}

/* FAQ */
.contacts-faq { padding: 40px 40px 60px; max-width: 900px; margin: 0 auto; }
.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item.open { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.faq-q {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.faq-q:hover { background: var(--cream); }
.faq-toggle {
  font-size: 24px;
  color: var(--gold-deep);
  font-family: 'DM Serif Display', serif;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}
.faq-a {
  padding: 0 22px 22px;
  color: var(--ink-2);
  line-height: 1.6;
  animation: faq-open 0.2s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Map iframe */
.map-iframe {
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: 24px;
  display: block;
}

/* ==================== RESPONSIVE for new elements ==================== */
@media (max-width: 1100px) {
  .contacts-reach { padding: 0 0 32px; gap: 14px; }
  .about-milestones { padding: 40px 20px; }
  .contacts-faq { padding: 30px 20px 40px; }
  .timeline-h { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
  .tl-h-icon { width: 60px; height: 60px; font-size: 22px; }
  .tl-h-year { font-size: 20px; }
  .tl-h-title { font-size: 14px; }
  .tl-h-line { top: 32px; }
  .map-iframe { height: 340px; }
}

@media (max-width: 900px) {
  /* Switch to flex on mobile so the burger sits on the right reliably */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    /* IMPORTANT: drop backdrop-filter on mobile. Per CSS Filter Effects spec,
       any element with `backdrop-filter` (or `filter`, `transform`, etc.)
       becomes the containing block for ALL position:fixed descendants. With
       it on, the .nav-links drawer (top:0; right:0; bottom:0) was being
       clipped to the ~70px header strip — that's why the menu rendered as a
       tiny floating box. Solid paper background instead. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
  .nav-right { margin-left: auto; gap: 8px; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 120; }

  /* Drawer slides in from the right */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 88px 20px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 110;
    box-shadow: -10px 0 40px rgba(24, 20, 16, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links-open { transform: translateX(0); }
  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Backdrop behind drawer */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 20, 16, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 105;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }

  .nav-lang { display: none; }
  .nav-social { display: none; }
  .nav-mobile-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .nav-mobile-extras .nav-lang.nav-lang-mobile { display: flex; }
  .nav-mobile-extras .nav-social-mobile { display: inline-flex; }
  .nav-lang-mobile .lang-btn { padding: 10px 16px; font-size: 13px; }
  .logo-img { height: 44px; max-width: 200px; }
  .objects-filters { padding: 16px 20px; gap: 12px; }
  .contacts-banner { height: 180px; border-radius: 0 0 16px 16px; }
}

/* Lock body scroll while the drawer is open. `clip` (with hidden fallback)
   stops scroll without making body a containing block, which would clip the
   drawer / overlay / lightbox children. */
body.nav-open {
  overflow: hidden;
  overflow: clip;
  touch-action: none;
}
.nav-overlay { display: none; }
@media (max-width: 900px) {
  .nav-overlay { display: block; }
}

@media (max-width: 640px) {
  .contacts-reach { grid-template-columns: 1fr 1fr; padding: 0 0 24px; gap: 12px; }
  .reach-card { padding: 18px 12px; min-height: 150px; }
  .reach-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 6px; }
  .reach-value { font-size: 15px; }
  .timeline-h { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .tl-h-line { display: none; }
  .tl-h-icon { width: 58px; height: 58px; font-size: 22px; margin-bottom: 10px; }
  .tl-h-year { font-size: 22px; }
  .tl-h-title { font-size: 15px; }
  .tl-h-desc { font-size: 12.5px; }
  .partner-card { min-height: 110px; padding: 14px 12px; }
  .partner-mark { width: 44px; height: 44px; font-size: 14px; }
  .faq-q { padding: 16px 18px; font-size: 14px; }
  .faq-a { padding: 0 18px 18px; font-size: 14px; }
}

/* ==================== ABOUT · PROBLEM + MVV ==================== */
.about-problem { padding: 60px 0; border-top: 1px solid var(--line); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.problem-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(24, 20, 16, 0.08); }
.problem-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  font-size: 22px;
  margin-bottom: 18px;
}
.problem-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.problem-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ==================== ABOUT · UzBuild 2019 achievement ==================== */
.about-achievement {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.achievement-head {
  margin-bottom: 28px;
}
.achievement-head .eyebrow { color: var(--gold-deep); margin-bottom: 8px; }
.achievement-head .section-title { margin: 0; }
.achievement-body {
  margin-bottom: 40px;
}
.achievement-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.achievement-body p:last-child { margin-bottom: 0; }

.achievement-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.achievement-photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 2px 10px rgba(24, 20, 16, 0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
  cursor: zoom-in;
}
.achievement-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(24, 20, 16, 0.18);
}
.achievement-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.achievement-photo:hover img { transform: scale(1.05); }

.about-mvv { padding: 60px 0; border-top: 1px solid var(--line); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  align-items: stretch;
}
.mvv-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24, 20, 16, 0.08); }

/* Gold-bordered icon, identical on every card */
.mvv-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(201, 161, 98, 0.4);
  color: var(--gold-deep);
  font-size: 22px;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.mvv-label {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 16px;
  line-height: 1.2;
}
.mvv-card > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* Values list — uniform typography, gold dot bullets */
.mvv-values ul { list-style: none; padding: 0; margin: 0; }
.mvv-values li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.mvv-values li:first-child { padding-top: 0; }
.mvv-values li:last-child { border-bottom: 0; padding-bottom: 0; }
.mvv-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
}
.mvv-values li:first-child::before { top: 8px; }
.mvv-bullet { display: none; }
.mvv-values li strong {
  display: block;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.mvv-desc { display: block; font-size: 13.5px; color: var(--ink-2); }

/* ==================== HOME · NUMBERS + PARTNER CTA ==================== */
.home-numbers {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 40px;
}
.home-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}
.home-number {
  background: white;
  padding: 36px 28px;
}
.home-number strong {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  display: block;
  color: var(--ink);
}
.home-number span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.advantages .adv-icon {
  font-size: 28px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(246, 239, 227, 0.08);
  border: 1px solid rgba(246, 239, 227, 0.18);
  border-radius: 50%;
  margin-bottom: 16px;
}
.advantages-more { margin-top: 36px; display: flex; justify-content: center; }
.btn-ghost.on-ink { border-color: rgba(246, 239, 227, 0.35); color: var(--paper); }
.btn-ghost.on-ink:hover { background: var(--paper); color: var(--ink); }

.home-partner-cta {
  max-width: 1400px; margin: 0 auto;
  padding: 40px;
}
.home-partner-cta-inner {
  background: linear-gradient(135deg, var(--cream) 0%, #ead7b1 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-partner-cta-inner::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.home-partner-cta-inner .eyebrow,
.home-partner-cta-inner .section-title,
.home-partner-cta-inner p { position: relative; z-index: 1; }
.home-partner-cta-inner .section-title { margin: 10px 0 14px; }
.home-partner-cta-inner p { max-width: 620px; margin: 0 auto 28px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.home-partner-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ==================== /advantages ==================== */
.advantages-page { max-width: 1400px; margin: 0 auto; padding: 40px; }
.adv-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 80px;
}
.adv-page-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.adv-page-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(24, 20, 16, 0.1); }
.adv-page-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.adv-page-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--gold-deep);
  line-height: 1;
}
.adv-page-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.adv-page-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.adv-page-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.adv-page-card ul { list-style: none; padding: 0; margin: 0; }
.adv-page-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.adv-page-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* ==================== /production ==================== */
.production-page { max-width: 1400px; margin: 0 auto; padding: 40px; }
.prod-intro { padding: 24px 0 8px; }
.prod-intro p { max-width: 920px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }

.prod-nums { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 40px; }
.prod-nums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
}
.prod-num-card { background: white; padding: 32px 26px; }
.prod-num-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.prod-num-card strong {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  display: block;
}
.prod-num-card span { font-size: 13px; color: var(--ink-2); margin-top: 10px; display: block; line-height: 1.45; }

.prod-team { padding: 40px 0; border-top: 1px solid var(--line); }
.prod-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.prod-team-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex; align-items: center; gap: 14px;
}
.prod-team-icon { font-size: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prod-team-card p { font-size: 14.5px; color: var(--ink); line-height: 1.4; margin: 0; }

.prod-lab { padding: 40px 0; border-top: 1px solid var(--line); }
.prod-lab-intro { font-size: 15px; color: var(--ink-2); margin: 16px 0 24px; max-width: 820px; }
.prod-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.prod-lab-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; align-items: center; gap: 14px;
}
.prod-lab-icon { font-size: 22px; width: 40px; height: 40px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prod-lab-card p { font-size: 14px; color: var(--ink); line-height: 1.4; margin: 0; }
.prod-lab-note {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-style: italic;
  color: var(--ink-2);
  font-size: 14.5px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prod-qa { padding: 40px 0 80px; border-top: 1px solid var(--line); }
.prod-qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.prod-qa-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.prod-qa-step {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--gold-2);
  background: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.prod-qa-card h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
}
.prod-qa-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.prod-qa-note {
  margin-top: 28px;
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: var(--gold-deep);
}

/* ==================== /partnership ==================== */
.partnership-page { max-width: 1400px; margin: 0 auto; padding: 40px; }
.partnership-intro { padding: 24px 0 16px; }
.partnership-intro p { max-width: 920px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }

.partnership-formats { padding: 40px 0 30px; border-top: 1px solid var(--line); margin-top: 24px; }
.partnership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.partnership-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partnership-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(24, 20, 16, 0.1); }
.partnership-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.partnership-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.partnership-lede { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.partnership-card ul { list-style: none; padding: 0; margin: 0; }
.partnership-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.partnership-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-2);
}

.partnership-cta { padding: 40px 0 80px; }
.partnership-cta-inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.partnership-cta-inner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--paper);
}
.partnership-cta-inner p { color: rgba(246, 239, 227, 0.8); margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ==================== RESPONSIVE OVERRIDES (new sections) ==================== */
@media (max-width: 1100px) {
  .problem-grid, .mvv-grid, .partnership-grid, .adv-grid-page,
  .prod-qa-grid, .achievement-gallery { grid-template-columns: repeat(2, 1fr); }
  .home-numbers-grid, .prod-nums-grid { grid-template-columns: repeat(2, 1fr); }
  .home-partner-cta-inner { padding: 44px 28px; }
  .partnership-cta-inner { padding: 44px 28px; }
}
@media (max-width: 640px) {
  .problem-grid, .mvv-grid, .partnership-grid, .adv-grid-page,
  .prod-qa-grid, .home-numbers-grid, .prod-nums-grid,
  .achievement-gallery { grid-template-columns: 1fr; }
  .about-achievement { padding: 48px 0; }
  .home-numbers, .home-partner-cta,
  .advantages-page, .production-page, .partnership-page { padding: 16px; }
  .home-number strong { font-size: 42px; }
  .adv-page-num { font-size: 28px; }
  .home-partner-cta-inner, .partnership-cta-inner { padding: 36px 22px; }
}

/* ==================== INSIGHTS ==================== */
.insights-page { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.insights-hero { padding: 48px 0 28px; max-width: 760px; }
.insights-hero .eyebrow { color: var(--gold-deep); }

.insight-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0 28px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.insight-tabs::-webkit-scrollbar { display: none; }
.insight-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.insight-tab:hover { background: var(--cream-2); color: var(--ink); }
.insight-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.insight-tab:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.insights-grid-wrap { padding: 36px 0 100px; }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.insights-grid:first-child { margin-top: 0; }
.insights-empty {
  padding: 60px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-2);
  font-size: 16px;
}
.insights-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* card */
.insight-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.25s;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.insight-card:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}
.insight-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--cream);
  overflow: hidden;
}
.insight-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.insight-card:hover .insight-card-cover img { transform: scale(1.04); }
.insight-card-cover-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.insight-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.insight-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin: 4px 0 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.insight-card:hover .insight-card-title { color: var(--gold-deep); }
.insight-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  margin-top: auto;
  padding-top: 6px;
}

/* category tag */
.insight-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
  width: fit-content;
}
.insight-tag-projects    { background: rgba(138, 100, 32, 0.12); color: var(--gold-deep); }
.insight-tag-materials   { background: rgba(24, 20, 16, 0.08);  color: var(--ink); }
.insight-tag-news        { background: rgba(138, 100, 32, 0.18); color: var(--gold-deep); }
.insight-tag-inspiration { background: rgba(138, 100, 32, 0.06); color: var(--gold-deep); }

/* detail page */
.insight-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}
.insight-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  margin: 8px 0 28px;
}
.insight-crumbs a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.insight-crumbs a:hover { color: var(--ink); }
.insight-crumbs > span[aria-hidden="true"] { color: var(--line); }
.insight-crumb-current {
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 360px;
}

.insight-header { max-width: 760px; margin: 0 auto 36px; }
.insight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.insight-meta-dot { color: var(--line); }
.insight-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.insight-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.insight-cover {
  margin: 0 0 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}
.insight-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.insight-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.insight-body p { margin: 0 0 22px; }
.insight-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin: 44px 0 16px;
  color: var(--ink);
}
.insight-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin: 36px 0 14px;
  color: var(--ink);
}
.insight-body h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 32px 0 10px;
  color: var(--ink);
  text-transform: uppercase;
}
.insight-body ul, .insight-body ol {
  padding-left: 24px;
  margin: 0 0 22px;
}
.insight-body li { margin-bottom: 8px; }
.insight-body blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--gold-deep);
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.insight-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.insight-body a:hover { color: var(--ink); }
.insight-body strong { font-weight: 600; }
.insight-body em { font-style: italic; }
.insight-body .md-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.insight-body .md-figure img {
  width: 100%; height: auto; display: block;
}
.insight-body .md-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--cream-2);
  text-align: center;
}
.insight-body .md-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px auto;
  max-width: 120px;
}
.insight-body .md-gallery {
  display: grid;
  gap: 16px;
  margin: 36px 0;
  /* gallery should escape the 720px reading column for breathing room */
  width: calc(100vw - 80px);
  max-width: 1100px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.insight-body .md-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.insight-body .md-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.insight-body .md-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.insight-body .md-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.insight-body .md-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.insight-body .md-gallery-item:hover img { transform: scale(1.03); }
.insight-body .md-gallery-item figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--cream-2);
  text-align: center;
}

/* Partner-project badge on the card cover */
.insight-card-cover { isolation: isolate; }
.insight-card-partner {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 12px;
  background: rgba(24, 20, 16, 0.78);
  color: var(--paper);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.06em;
  z-index: 1;
}
.insight-card-partner-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.insight-card-partner strong {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* External CTA block at the end of the article */
.insight-external-cta {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 56px 40px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}
.insight-external-cta-logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: brightness(0) invert(1);
}
.insight-external-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--paper);
}
.insight-external-cta p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(246, 245, 234, 0.75);
  font-size: 16px;
  line-height: 1.55;
}
.insight-external-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.insight-external-cta .btn-primary {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--paper);
}
.insight-external-cta .btn-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.insight-external-cta .btn-ghost {
  border-color: rgba(246, 245, 234, 0.4);
  color: var(--paper);
}
.insight-external-cta .btn-ghost:hover {
  background: rgba(246, 245, 234, 0.1);
  border-color: var(--paper);
  color: var(--paper);
}
.insight-external-cta .ext-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.95em;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .insight-body .md-gallery {
    width: 100%;
    left: 0;
    transform: none;
    margin: 28px 0;
  }
  .insight-body .md-gallery-cols-2,
  .insight-body .md-gallery-cols-3,
  .insight-body .md-gallery-cols-4 { grid-template-columns: 1fr; }
  .insight-external-cta { padding: 40px 22px; margin-top: 48px; }
  .insight-external-cta-logo { max-width: 160px; max-height: 60px; }
  .insight-card-partner { top: 10px; right: 10px; padding: 6px 10px; }
  .insight-card-partner strong { font-size: 12px; }
}

.insight-tags-row {
  max-width: 720px;
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.insight-tag-chip {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 999px;
}

.insight-author {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.insight-author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.insight-author-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insight-author-info { display: flex; flex-direction: column; gap: 2px; }
.insight-author-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.insight-author-name { font-weight: 600; font-size: 15px; }
.insight-author-role { font-size: 13px; color: var(--ink-2); }

.insight-related { margin-top: 80px; }
.insight-related .insights-grid { margin-top: 24px; }

.insight-cta {
  margin-top: 80px;
  padding: 56px 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.insight-cta .section-title { margin-bottom: 24px; }
.insight-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* home teaser */
.home-insights .insights-grid { margin-top: 24px; }

/* responsive */
@media (max-width: 1100px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 720px) {
  .insights-page { padding: 0 20px; }
  .insight-detail { padding: 16px 20px 60px; }
  .insights-grid { grid-template-columns: 1fr; gap: 18px; }
  .insight-tabs { gap: 4px; padding-bottom: 18px; }
  .insight-tab { font-size: 13px; padding: 7px 12px; }
  .insight-card-title { font-size: 19px; }
  .insight-body { font-size: 17px; line-height: 1.7; }
  .insight-body h2 { font-size: 26px; margin-top: 36px; }
  .insight-body h3 { font-size: 21px; }
  .insight-body blockquote { font-size: 19px; padding-left: 18px; }
  .insight-cta { padding: 40px 20px; }
  .insight-author { flex-direction: column; align-items: flex-start; text-align: left; }
}
