/* ============================================================
   De Sisti — Global Stylesheet
   ============================================================ */

/* 1. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* Disable text selection and image interaction */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* Re-enable selection on form inputs */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

body {
  font-family: var(--font-sans);
  background: var(--parchment-50);
  color: var(--ink-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* 2. Custom Properties
   ============================================================ */
:root {
  --ink-950: #111111;
  --ink-800: #2A2A2A;
  --parchment-50: #F7F5F2;
  --bronze-600: #8C8C8C;
  --sand-200: #E6E0D8;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --shadow-luxe: 0 10px 30px rgba(17,17,17,0.08);
  --shadow-card: 0 18px 45px rgba(0,0,0,0.32);
  --shadow-hero: 0 30px 80px rgba(0,0,0,0.45);

  --radius-sm: 0.75rem;   /* 12px */
  --radius-md: 1rem;      /* 16px */
  --radius-lg: 1.5rem;    /* 24px */
  --radius-xl: 1.875rem;  /* 30px */

  --header-h: 64px;
}

/* 3. Typography
   ============================================================ */
.font-display { font-family: var(--font-display); }

/* 4. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section {
  padding-block: 3rem;
}
@media (min-width: 640px) { .section { padding-block: 4rem; } }

.section-tight { padding-block: 0 3rem; }
@media (min-width: 640px) { .section-tight { padding-block: 0 4rem; } }

/* 5. Header
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  border-bottom: 1px solid;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
#site-header.theme-dark {
  background: rgba(17,17,17,0.90);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .ds-logo { transition: none; }

/* Light header — original colours (no overrides needed) */

/* Dark header — only the dark fills (letters, stems, ® symbol) go white.
   Yellow (.ds0) and orange (.ds2) circles keep their colours. */
.theme-dark .site-logo .ds1,
.theme-dark .site-logo .ds3 { fill: #ffffff !important; }
.theme-dark .site-logo .ds5 { fill: #ffffff !important; }
/* The stroke on the yellow/orange circles was dark; lighten it on dark bg */
.theme-dark .site-logo .ds0 { stroke: rgba(255,255,255,0.35) !important; }
.theme-dark .site-logo .ds2 { stroke: rgba(255,255,255,0.35) !important; }

/* Desktop Nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .site-nav { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.theme-dark  .nav-link { color: rgba(255,255,255,0.80); }
.theme-dark  .nav-link:hover { color: #fff; }
.theme-dark  .nav-link.active { color: #fff; }

/* Products dropdown trigger */
.nav-products-wrap { position: relative; }
.nav-products-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.theme-dark  .nav-products-btn { color: rgba(255,255,255,0.80); }
.theme-dark  .nav-products-btn:hover { color: #fff; }
.nav-products-btn .chevron {
  width: 16px; height: 16px;
  transition: transform 0.2s;
  display: block;
}
.nav-products-btn.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.products-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 1rem);
  width: 980px;
  border-radius: var(--radius-xl);
  border: 1px solid;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  animation: fade-in 0.15s ease, scale-in 0.15s ease;
  z-index: 100;
}
.products-dropdown.open { display: block; }
.theme-dark  .products-dropdown { border-color: rgba(255,255,255,0.10); background: rgba(17,17,17,0.97); }

/* Dropdown — image preview redesign */
.dropdown-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 340px;
}
.dropdown-lists {
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}
.dropdown-section {}
.dropdown-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.theme-dark  .dropdown-section-label { color: var(--bronze-600); }

.dropdown-section-divider { height: 1px; margin: 0.25rem 0; }
.theme-dark  .dropdown-section-divider { background: rgba(255,255,255,0.07); }

.dropdown-list { display: flex; flex-direction: column; gap: 0; }
.dropdown-list-link {
  display: block;
  font-size: 0.875rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s, padding-left 0.12s;
}
.theme-dark  .dropdown-list-link { color: rgba(255,255,255,0.72); }
.theme-dark  .dropdown-list-link:hover,
.theme-dark  .dropdown-list-link.is-active { background: rgba(255,255,255,0.07); color: #fff; padding-left: 0.9rem; }

/* Right image panel */
.dropdown-preview {
  position: relative;
  overflow: hidden;
  border-radius: 0 var(--radius-xl) 0 0;
}
.theme-dark  .dropdown-preview { background: #0d0d0d; }

.dropdown-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.25s, transform 0.35s;
  opacity: 0.7;
}
.dropdown-preview-img--active { opacity: 1; transform: scale(1.03); }

.dropdown-preview-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 100%);
}
.dropdown-preview-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  min-height: 1.5rem;
}
.dropdown-preview-cta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.60);
  margin-top: 0.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.dropdown-preview:hover .dropdown-preview-cta { opacity: 1; }

.dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.theme-dark  .dropdown-label { color: rgba(255,255,255,0.70); }

.dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid;
  padding: 1rem 1.5rem;
}
.theme-dark  .dropdown-footer { border-color: rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); }

.dropdown-footer-text { font-size: 0.875rem; }
.theme-dark  .dropdown-footer-text { color: rgba(255,255,255,0.70); }

.dropdown-footer-link {
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.2s;
}
.theme-dark  .dropdown-footer-link { color: #fff; }
.dropdown-footer-link:hover { opacity: 0.7; }

/* Hamburger button */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid;
  transition: background 0.2s, border-color 0.2s;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.theme-dark  .menu-btn { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.10); color: #fff; }
.menu-btn svg { width: 20px; height: 20px; }

/* Mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.40);
}
.mobile-overlay.open { display: block; }

.mobile-menu {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 50;
  border-top: 1px solid;
  animation: fade-in 0.15s ease;
}
.mobile-menu.open { display: block; }
.theme-dark  .mobile-menu { border-color: rgba(255,255,255,0.10); background: var(--ink-950); }

.mobile-menu-inner {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
}
.theme-dark  .mobile-nav-link { color: rgba(255,255,255,0.80); }
.theme-dark  .mobile-nav-link:hover, .theme-dark  .mobile-nav-link.active { background: rgba(255,255,255,0.10); color: #fff; }

/* 6. Footer
   ============================================================ */
#site-footer {
  background: #0a0a0a;
  color: #fff;
  border-top: 1px solid rgba(140,140,140,0.35);
}

/* Top accent line */
#site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze-600), transparent);
  opacity: 0.6;
}

/* Brand row — logo + tagline + email CTA */
.footer-brand-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 3rem 2.5rem;
}
@media (min-width: 768px) {
  .footer-brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.footer-logo-wrap { display: flex; align-items: center; gap: 1rem; }
.footer-logo-wrap .ds1, .footer-logo-wrap .ds3 { fill: #ffffff !important; }
.footer-logo-wrap .ds5 { fill: #ffffff !important; }
.footer-logo-wrap .ds0 { stroke: rgba(255,255,255,0.25) !important; }
.footer-logo-wrap .ds2 { stroke: rgba(255,255,255,0.25) !important; }

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  font-style: italic;
  letter-spacing: 0.01em;
}

.footer-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(140,140,140,0.45);
  background: rgba(140,140,140,0.08);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bronze-600);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-email-cta:hover { background: rgba(140,140,140,0.18); border-color: var(--bronze-600); color: #d0d0d0; }

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Nav grid */
.footer-nav-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  padding-block: 2.5rem;
}
@media (min-width: 768px)  { .footer-nav-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-nav-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-600);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }
.footer-link-primary {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  transition: color 0.2s;
}
.footer-link-primary:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-contact-item a:hover { color: #fff; }
.footer-contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-bottom-right { font-size: 0.8125rem; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social-btn:hover {
  background: rgba(140,140,140,0.18);
  border-color: rgba(140,140,140,0.50);
  color: #d0d0d0;
}

/* 7. Badges & Buttons
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding-inline: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--ink-800);
  text-transform: uppercase;
}
.badge-dark {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.90; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #fff;
  color: var(--ink-950);
}
.btn-primary-dark {
  background: var(--ink-950);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--sand-200);
  color: var(--ink-800);
}
.btn-secondary:hover { background: #fff; color: var(--ink-950); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.15); }

/* 8. Cards
   ============================================================ */
.card-dark {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-card);
}
.card-dark:hover {
  transform: translateY(-2px);
}
.card-dark:hover  { background: rgba(255,255,255,0.08); }

/* Product/Project cards */
.product-card, .project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, background 0.15s, box-shadow 0.2s;
}
.product-card .card-img, .project-card .card-img {
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
}
.product-card .card-img img, .project-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img img,
.project-card:hover .card-img img { transform: scale(1.03); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body .card-sum { flex: 1; }
.card-body .card-cta { margin-top: auto; padding-top: 0.75rem; }
@media (min-width: 640px) { .card-body { padding: 1.5rem; } }

.card-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.card-name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .card-name { font-size: 1.375rem; } }
.card-sum { margin-top: 0.5rem; font-size: 0.875rem; }
.card-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.card-dark .card-cat  { color: rgba(255,255,255,0.60); }
.card-dark .card-name { color: #fff; }
.card-dark .card-sum  { color: rgba(255,255,255,0.70); }
.card-dark .card-cta  { color: #fff; }

/* Project card meta row */
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-meta-sector { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.card-meta-loc { font-size: 0.75rem; }
.card-dark  .card-meta-sector, .card-dark  .card-meta-loc { color: rgba(255,255,255,0.60); }

/* 9. Hero Sections
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid;
}
.hero-dark  { background: var(--ink-950); color: #fff; border-color: rgba(255,255,255,0.10); }

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-dark  .hero-bg img { opacity: 0.70; }

.hero-bg-gradient-dark {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.30), rgba(17,17,17,0.70), rgba(17,17,17,1));
}
.hero-bg-gradient-light {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(247,245,242,0.60), rgba(247,245,242,1), rgba(247,245,242,1));
}

.hero-content {
  position: relative;
  padding-block: 3rem;
}
@media (min-width: 640px) { .hero-content { padding-block: 5rem; } }

/* 10. Hero grid (home two-col)
   ============================================================ */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-dark  .hero-title { color: #fff; }
.hero-title .muted { opacity: 0.70; }

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.0625rem; } }
.hero-dark  .hero-subtitle { color: rgba(255,255,255,0.75); }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-stat {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
}
.hero-stat-key {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-stat-val {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
}

/* Hero image card */
.hero-img-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-hero);
}
.hero-img-card-inner {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.hero-img-card-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  padding: 1rem 1.5rem;
}
.hero-img-card-label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.60); }
.hero-img-card-title { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; }
.hero-img-card-link { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.90); transition: color 0.2s; }
.hero-img-card-link:hover { color: #fff; }

/* 11. Section Headers
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-desc { margin-top: 0.5rem; font-size: 0.875rem; max-width: 40rem; }
.section-link { font-size: 0.875rem; transition: opacity 0.2s; white-space: nowrap; }
.theme-dark  .section-title { color: #fff; }
.theme-dark  .section-desc  { color: rgba(255,255,255,0.70); }
.theme-dark  .section-link  { color: rgba(255,255,255,0.70); }
.theme-dark  .section-link:hover { color: #fff; }

/* 12. Grids
   ============================================================ */
.grid-4 { display: grid; gap: 1rem; align-items: stretch; }
.grid-3 { display: grid; gap: 1rem; align-items: stretch; }
.grid-2 { display: grid; gap: 1rem; align-items: stretch; }
.grid-4 > *, .grid-3 > *, .grid-2 > * { display: flex; flex-direction: column; }
.grid-4 > * > *, .grid-3 > * > *, .grid-2 > * > * { flex: 1; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* 13. Feature Cards (Why De Sisti / Capabilities)
   ============================================================ */
.feat-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: transform 0.2s, background 0.15s;
}
.feat-card:hover { transform: translateY(-2px); }
.feat-card-dark {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-card);
}
.feat-card-dark:hover { background: rgba(255,255,255,0.08); }
.feat-icon {
  width: 20px; height: 20px;
  color: var(--bronze-600);
}
.feat-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.feat-text { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.70); }

/* 14. Company Summary (light section)
   ============================================================ */

/* 15. Filter Buttons
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
/* dark filters */
.filters-dark .filter-btn {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.80);
}
.filters-dark .filter-btn:hover, .filters-dark .filter-btn.active {
  border-color: var(--bronze-600);
  background: rgba(255,255,255,0.10);
  color: #fff;
}
/* light filters */

/* 16. About page
   ============================================================ */
.about-story-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-story-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.about-story-img {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-hero);
}
.about-story-img-inner { aspect-ratio: 16/11; overflow: hidden; }
@media (min-width: 1024px) { .about-story-img, .about-story-img-inner { aspect-ratio: unset; height: 100%; } }
.about-story-img-inner img { width: 100%; height: 100%; object-fit: cover; }

.about-story-text {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.about-story-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.about-story-text p { margin-top: 0.75rem; font-size: 0.9375rem; color: rgba(255,255,255,0.70); line-height: 1.7; }
.about-story-text em { color: var(--bronze-600); font-style: italic; }

/* Values grid */
.about-values-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .about-values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-values-grid { grid-template-columns: repeat(3, 1fr); } }

.about-value-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 1.75rem 2rem;
  transition: background 0.2s, border-color 0.2s;
}
.about-value-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(140,140,140,0.30); }

.about-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(140,140,140,0.12);
  border: 1px solid rgba(140,140,140,0.25);
  color: var(--bronze-600);
  margin-bottom: 1.25rem;
}
.about-value-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.625rem;
}
.about-value-text { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* Mission block */
.about-mission {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(140,140,140,0.30);
  background: rgba(140,140,140,0.06);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
.about-mission-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-600);
  margin-bottom: 1.25rem;
}
.about-mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
  font-style: italic;
}
.about-mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.credentials-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.credentials-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.credentials-icon-wrap {
  margin-top: 0.125rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem;
  flex-shrink: 0;
}
.credentials-icon-wrap svg { width: 20px; height: 20px; color: #fff; }
.credentials-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.credentials-desc { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.70); max-width: 40rem; }
.credentials-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) { .credentials-grid { grid-template-columns: 1fr 1fr; } }
.credential-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.70);
}

/* 17. Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

.contact-info-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.contact-info-inner { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-icon-wrap {
  margin-top: 0.125rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem;
  flex-shrink: 0;
}
.contact-icon-wrap svg { width: 20px; height: 20px; color: #fff; }
.contact-info-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.60); }
.contact-info-val { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.70); }
.contact-info-val a { color: #fff; transition: opacity 0.2s; }
.contact-info-val a:hover { opacity: 0.80; }
.contact-info-note { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.60); }

.contact-form-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-hero);
}
.contact-form-img { aspect-ratio: 16/6; overflow: hidden; }
.contact-form-img img { width: 100%; height: 100%; object-fit: cover; }
.contact-form-body { padding: 1.5rem; }
@media (min-width: 640px) { .contact-form-body { padding: 2rem; } }

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-form-desc { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.70); }

.form-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.60); }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input { height: 2.75rem; padding-inline: 1rem; }
.form-textarea { padding: 0.75rem 1rem; resize: none; }
.form-input:focus, .form-textarea:focus {
  border-color: var(--bronze-600);
  box-shadow: 0 0 0 2px rgba(140,140,140,0.25);
}

.form-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
.form-footer-note { font-size: 0.75rem; color: rgba(255,255,255,0.70); }
.form-footer-note a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.20); transition: text-decoration-color 0.2s; }
.form-footer-note a:hover { text-decoration-color: var(--bronze-600); }

/* 18. Product Detail
   ============================================================ */
.product-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.product-hero-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .product-hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
    min-height: calc(100vh - var(--header-h) - 10rem);
  }
}

.product-breadcrumb { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-800); }
.product-breadcrumb a:hover { color: var(--ink-950); }
.product-breadcrumb .sep { margin-inline: 0.5rem; }

.product-main-img {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  box-shadow: var(--shadow-luxe);
}
.product-main-img-inner { position: relative; height: 420px; overflow: hidden; }
@media (min-width: 640px) { .product-main-img-inner { height: 520px; } }
@media (min-width: 1024px) { .product-main-img-inner { height: 640px; } }
.product-main-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.product-main-img-inner model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }

.product-jumps {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-jumps::-webkit-scrollbar { display: none; }
.product-jump {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-800);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.product-jump:hover { background: #fff; color: var(--ink-950); }

.product-detail-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .product-detail-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.product-detail-grid > div:last-child { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.bg-ink .detail-section-title { color: #fff; }

.gallery-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  box-shadow: var(--shadow-luxe);
}
.gallery-item-inner { aspect-ratio: 4/3; overflow: hidden; }
.gallery-item-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover .gallery-item-inner img { transform: scale(1.03); }

/* Variants grid */
.variants-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .variants-grid { grid-template-columns: 1fr 1fr; } }

.variant-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  padding: 1.5rem;
  box-shadow: var(--shadow-luxe);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.variant-card:hover { background: #fff; }
.variant-card.active {
  border-color: var(--ink-950);
  background: #fff;
  box-shadow: 0 18px 45px rgba(17,17,17,0.12);
}
.variant-subtitle { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-800); }
.variant-name { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.variant-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-800); }
.variant-highlights { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.variant-highlight { font-size: 0.875rem; color: var(--ink-800); }

/* Features list */
.features-list { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .features-list { grid-template-columns: 1fr 1fr; } }
.feature-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ink-800);
}

/* Specs table */
.specs-table {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  box-shadow: var(--shadow-luxe);
}
.specs-table-header {
  display: grid;
  gap: 0.5rem;
  border-bottom: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.70);
  padding: 1.25rem;
}
@media (min-width: 640px) { .specs-table-header { grid-template-columns: 1fr 2fr; } }
.specs-table-head { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-800); }
.specs-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--sand-200);
}
@media (min-width: 640px) { .specs-row { grid-template-columns: 1fr 2fr; } }
.specs-row:last-child { border-bottom: none; }
.specs-label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-800); }
.specs-value { font-size: 0.875rem; color: var(--ink-950); white-space: pre-line; }

/* Downloads sidebar */
.downloads-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  padding: 1.5rem;
  box-shadow: var(--shadow-luxe);
}
.downloads-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.downloads-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.download-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.download-icon-wrap {
  margin-top: 0.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.70);
  padding: 0.5rem;
  flex-shrink: 0;
}
.download-icon-wrap svg { width: 16px; height: 16px; color: var(--ink-950); }
.download-label { font-size: 0.875rem; font-weight: 500; color: var(--ink-950); }
.download-note { font-size: 0.75rem; color: var(--ink-800); }

/* Related products */
.related-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.related-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.related-desc { margin-top: 0.375rem; font-size: 0.875rem; color: var(--ink-800); }
.related-link { font-size: 0.875rem; color: var(--ink-800); transition: color 0.2s; white-space: nowrap; }
.related-link:hover { color: var(--ink-950); }
.related-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  background: rgba(255,255,255,0.60);
  padding: 1.5rem;
  box-shadow: var(--shadow-luxe);
  transition: transform 0.2s, background 0.15s;
}
.related-card:hover { transform: translateY(-2px); background: #fff; }
.related-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-800); }
.related-card-name { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.related-card-sum { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-800); }
.related-card-cta { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--ink-950); }

/* 19. Project Detail
   ============================================================ */
.project-hero-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-hero);
  margin-top: 2rem;
}
.project-hero-img-inner { aspect-ratio: 16/9; overflow: hidden; }
.project-hero-img-inner img { width: 100%; height: 100%; object-fit: cover; }

.project-body-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .project-body-grid { grid-template-columns: 2fr 1fr; } }

.project-gallery-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .project-gallery-grid { grid-template-columns: 1fr 1fr; } }

.project-products-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.project-products-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; }
.project-products-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.project-product-link {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  transition: background 0.15s, color 0.15s;
}
.project-product-link:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* 20. Sales Network / Map
   ============================================================ */
.map-section { background: var(--ink-950); }
.map-wrapper {
  width: 100%;
  height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
@media (min-width: 640px)  { .map-wrapper { height: 680px; } }
@media (min-width: 1024px) { .map-wrapper { height: 820px; } }
#distributor-map { width: 100%; height: 100%; }

/* Leaflet overrides */
.leaflet-container { background: #0d0d0d !important; }
.leaflet-tile { filter: brightness(0.8) saturate(0.5) hue-rotate(200deg); }
.map-popup {
  background: var(--ink-950);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: #fff;
  min-width: 160px;
}
.map-popup-name { font-weight: 700; font-size: 0.875rem; }
.map-popup-territory { font-size: 0.8125rem; color: rgba(255,255,255,0.70); margin-top: 0.25rem; }
.map-popup-email { margin-top: 0.5rem; font-size: 0.8125rem; }
.map-popup-email a { color: var(--bronze-600); }

/* 21. Not Found
   ============================================================ */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 22. Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .anim-fade-up   { animation: fade-up  0.65s cubic-bezier(0.22,1,0.36,1) both; }
  .anim-fade-in   { animation: fade-in  0.50s ease both; }
  .anim-scale-in  { animation: scale-in 0.50s ease both; }
  .anim-ken-burns { animation: ken-burns 9s ease-in-out alternate infinite; }
  .anim-page-in   { animation: page-in  0.45s ease both; }
}
.delay-1 { animation-delay: 90ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 230ms; }
.delay-4 { animation-delay: 300ms; }

/* Reveal (scroll-triggered) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 23. Dark variants for product-detail components
   ============================================================ */

/* Product breadcrumb dark */
.product-breadcrumb-dark { color: rgba(255,255,255,0.55); }
.product-breadcrumb-dark a { color: rgba(255,255,255,0.55); }
.product-breadcrumb-dark a:hover { color: #fff; }
.product-breadcrumb-dark .sep { color: rgba(255,255,255,0.30); }

/* Product main image dark — frameless, model floats */
.product-main-img-dark {
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
.product-main-img-dark .product-main-img-inner {
  overflow: visible;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center, rgba(140,140,140,0.12) 0%, transparent 70%);
}

/* Section anchor titles dark */
.section-title-dark {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  color: #fff;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  margin-bottom: 1rem;
}

/* Jump links dark — target individual link items inside the container */
.product-jump-dark .product-jump {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
}
.product-jump-dark .product-jump:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Gallery dark */
.gallery-item-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* Variant cards dark */
.variant-card-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.variant-card-dark:hover { background: rgba(255,255,255,0.08); }
.variant-card-dark.active {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.20);
}
.variant-card-dark .variant-subtitle { color: rgba(255,255,255,0.55); }
.variant-card-dark .variant-name     { color: #fff; }
.variant-card-dark .variant-desc     { color: rgba(255,255,255,0.70); }
.variant-card-dark .variant-highlight { color: rgba(255,255,255,0.70); }

/* Feature items dark */
.feature-item-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
}

/* Specs table dark */
.specs-table-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.specs-table-dark .specs-table-header {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.specs-table-dark .specs-table-head { color: rgba(255,255,255,0.55); }
.specs-table-dark .specs-row        { border-color: rgba(255,255,255,0.07); }
.specs-table-dark .specs-label      { color: rgba(255,255,255,0.55); }
.specs-table-dark .specs-value      { color: rgba(255,255,255,0.90); }

/* Downloads dark */
.downloads-card-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.downloads-card-dark .downloads-title     { color: #fff; }
.downloads-card-dark .download-label     { color: rgba(255,255,255,0.90); }
.downloads-card-dark .download-note      { color: rgba(255,255,255,0.55); }
.downloads-card-dark .download-icon-wrap {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}
.downloads-card-dark .download-icon-wrap svg { color: #fff; }

/* Related cards dark */
.related-card-dark {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.related-card-dark:hover { background: rgba(255,255,255,0.08); }
.related-card-dark .related-card-cat  { color: rgba(255,255,255,0.55); }
.related-card-dark .related-card-name { color: #fff; }
.related-card-dark .related-card-sum  { color: rgba(255,255,255,0.70); }
.related-card-dark .related-card-cta  { color: #fff; }

/* Company summary dark */
.company-summary-dark {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.company-summary-dark h2   { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.company-summary-dark p    { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.70); }
.company-summary-dark a    { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.20); transition: text-decoration-color 0.2s; }
.company-summary-dark a:hover { text-decoration-color: var(--bronze-600); }

/* 24. Events
   ============================================================ */
.event-project-card .card-img { position: relative; }

.event-date-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  min-width: 58px; text-align: center;
}
.event-date-badge-day {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; line-height: 1;
  color: #fff; letter-spacing: -0.02em;
}
.event-date-badge-month {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-top: 0.2rem;
}

/* 25. Global Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 0;
}
::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}
::-webkit-scrollbar-corner {
  background: #0a0a0a;
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2e2e2e #0a0a0a;
}

/* 26. Utility overrides
   ============================================================ */
.bg-ink     { background: var(--ink-950); }
.text-white { color: #fff; }
.text-ink   { color: var(--ink-950); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Arrow icon SVG inline helper */
.icon-sm { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* Model-viewer */
model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
}
