/* === Leistenmacher — Premium Design System === */

:root {
  --bg-dark: #0a0a0a;
  --bg-dark-soft: #141414;
  --bg-light: #faf9f7;
  --bg-card: #f0efe9;
  --ink-dark: #0a0a0a;
  --ink-light: #faf9f7;
  --ink-muted: #666666;
  --accent: #a67c52;
  --accent-light: #c9a882;
  --accent-dark: #8a6541;
  --line-light: rgba(250, 249, 247, 0.12);
  --line-dark: rgba(10, 10, 10, 0.1);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --container: min(1200px, 90vw);
  --sidebar-w: 90px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-dark);
  background: var(--bg-light);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
body.loading { cursor: wait; }

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; display: block; }

.container { width: var(--container); margin-inline: auto; }

/* === Typography === */
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 540px;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* === Sidebar Navigation === */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-dark);
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  z-index: 100;
}

.sidebar-logo {
  margin-bottom: 2.5rem;
}

.sidebar-logo svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  width: 100%;
  padding: 0 0.75rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 249, 247, 0.5);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sidebar-nav a:hover {
  color: var(--ink-light);
  background: rgba(250, 249, 247, 0.05);
}

.sidebar-nav a.router-link-active {
  color: var(--accent);
  background: rgba(166, 124, 82, 0.1);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.sidebar-lang {
  font-size: 0.7rem;
  color: rgba(250, 249, 247, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--bg-dark);
  border: 1px solid var(--line-light);
  color: var(--ink-light);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-dark-soft);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

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

.mobile-menu-header svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.mobile-menu-close {
  background: none;
  border: 1px solid var(--line-light);
  color: var(--ink-light);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.mobile-menu-close:hover {
  background: rgba(250, 249, 247, 0.05);
  transform: rotate(90deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  transform: translateX(-30px);
  opacity: 0;
  transition: color 0.2s, padding-left 0.2s, transform 0.4s ease, opacity 0.4s ease;
}

.mobile-menu.open .mobile-menu-links a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-links a:nth-child(5) { transition-delay: 0.35s; }

.mobile-menu-links a:hover,
.mobile-menu-links a.router-link-active {
  color: var(--accent);
  padding-left: 0.5rem;
}

@media (max-width: 1023px) {
  .sidebar { display: none; }
  .menu-toggle { display: flex; }
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: var(--sidebar-w);
  }
}

/* === Sections === */
.section-dark {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 6rem 0;
}

.section-dark .ink-muted,
.section-dark .section-lead,
.section-dark p { color: rgba(250, 249, 247, 0.65); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ink-light); }

.section-light {
  background: var(--bg-light);
  color: var(--ink-dark);
  padding: 6rem 0;
}

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 1rem; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--ink-light);
}

.three-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.three-hero canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.three-hero .hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 6rem;
  pointer-events: none;
  max-width: 600px;
}

.three-hero .hero-content > * {
  pointer-events: auto;
}

.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content .lead { margin-bottom: 2rem; color: rgba(250, 249, 247, 0.7); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* Page Hero (Subpages) */
.page-hero {
  padding: 8rem 0 5rem;
  background: var(--bg-dark);
  color: var(--ink-light);
}

.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 600px; color: rgba(250, 249, 247, 0.7); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-light);
  color: var(--ink-light);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(250, 249, 247, 0.08);
  border-color: var(--ink-light);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.section-light .btn {
  border-color: var(--ink-dark);
  color: var(--ink-dark);
}

.section-light .btn:hover {
  background: rgba(10, 10, 10, 0.04);
}

.section-light .btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* === Check List === */
.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.check-list li {
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* === Two Column Split === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* System Flow */
.system-flow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.system-flow-split-reverse { direction: rtl; }
.system-flow-split-reverse > * { direction: ltr; }

.system-flow-copy { display: flex; flex-direction: column; gap: 1.25rem; }

.system-flow-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.system-flow-media { position: relative; }

.system-flow-media img,
.system-flow-media video {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.system-flow-chip {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--ink-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.system-flow-info { padding: 3rem 0; }
.system-flow-info h3 { margin-bottom: 0.75rem; }
.system-flow-info p { max-width: 640px; color: var(--ink-muted); }

/* === Media Grid === */
.media-grid-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.media-grid-a img,
.media-grid-a video {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid-a > :last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* === Benefit Grid === */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-grid article {
  background: var(--bg-dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit-grid article img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.benefit-grid article h3 { padding: 1.25rem 1.25rem 0.5rem; }
.benefit-grid article p { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: rgba(250, 249, 247, 0.65); }

.benefit-grid-text article {
  background: var(--bg-dark-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.benefit-grid-text article h3 { margin-bottom: 0.75rem; padding: 0; }
.benefit-grid-text article p { font-size: 0.9rem; padding: 0; color: rgba(250, 249, 247, 0.65); }

/* === Process Steps === */
.process-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.process-intro { padding-top: 1rem; }
.process-intro h2 { margin-bottom: 1.25rem; }
.process-intro .section-lead { margin-bottom: 2rem; margin-inline: 0; }

.steps { display: flex; flex-direction: column; gap: 1rem; }

.steps article {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.steps article:hover {
  transform: translateX(4px);
}

.steps article span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.steps article h3 { margin-bottom: 0.4rem; }
.steps article p { font-size: 0.9rem; color: var(--ink-muted); }

/* === Case Grid === */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case {
  background: var(--bg-dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.case img,
.case video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.case h3 { padding: 1.25rem 1.25rem 0.5rem; }
.case p { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: rgba(250, 249, 247, 0.65); }

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery img:hover { transform: scale(1.03); }
.gallery img:nth-child(1) { grid-row: span 2; aspect-ratio: 2/3; }
.gallery img:nth-child(2) { aspect-ratio: 16/10; }
.gallery img:nth-child(3) { aspect-ratio: 16/10; }
.gallery img:nth-child(4) { aspect-ratio: 16/10; }
.gallery img:nth-child(5) { grid-column: span 2; aspect-ratio: 21/9; }
.gallery img:nth-child(6) { display: none; }

/* === News === */
.news-highlight-card {
  background: var(--bg-dark-soft);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.news-highlight-card h3 { margin: 1rem 0; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; }
.news-highlight-card p { margin-bottom: 0.75rem; color: rgba(250, 249, 247, 0.65); }
.news-highlight-card .btn { margin-top: 1.25rem; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.news-chip {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.news-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.news-card-body { padding: 1.25rem; }
.news-card-body h3 { margin: 0.5rem 0; }
.news-card-body p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }

.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.news-accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.news-detail {
  background: var(--bg-dark-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-detail summary {
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-detail summary::before { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; }
.news-detail[open] summary::before { content: '−'; }
.news-detail summary::-webkit-details-marker { display: none; }
.news-detail > p,
.news-detail > .news-meta { padding: 0 1.5rem 0.75rem; }
.news-detail > p:last-child { padding-bottom: 1.5rem; }

.news-archive ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-archive li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.news-archive time {
  font-weight: 600;
  color: var(--ink-dark);
  margin-right: 0.75rem;
}

/* === CTA Section === */
.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-wrap h2 { margin-bottom: 1.25rem; }
.cta-wrap p { margin-bottom: 1.25rem; color: rgba(250, 249, 247, 0.65); }

.access-block { padding: 5rem 0; }
.access-block h2 { margin-bottom: 1rem; }
.access-block .section-lead { margin-bottom: 2rem; margin-inline: 0; }

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info h3 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--ink-muted); margin-bottom: 0.5rem; }
.contact-info a { color: var(--accent); font-weight: 500; }
.contact-info a:hover { color: var(--accent-dark); }

/* === Reference === */
.reference-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.reference-card h3 { margin-bottom: 1.25rem; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }

.reference-stage { margin-bottom: 1.25rem; }

.reference-stage strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.reference-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.reference-result-item {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.reference-result-item strong { display: block; color: var(--accent); font-size: 1.5rem; }

.reference-quote {
  font-style: italic;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

/* === Footer === */
.site-footer {
  position: relative;
  background: var(--bg-dark);
  color: rgba(250, 249, 247, 0.55);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 2rem;
}

.footer-grid h3 {
  color: var(--ink-light);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  color: rgba(250, 249, 247, 0.5);
  transition: color 0.2s;
}

.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: 0.9rem; margin-bottom: 0.3rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
  text-align: center;
  color: rgba(250, 249, 247, 0.4);
}

/* === Legal Pages === */
.legal-content { max-width: 720px; }
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.legal-content h3 { margin: 1.75rem 0 0.75rem; }
.legal-content p { margin-bottom: 1rem; color: var(--ink-muted); }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal-content li { margin-bottom: 0.4rem; color: var(--ink-muted); }

/* === Utilities === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* === Form Messages === */
.form-success {
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* === Parallax === */
[data-parallax] {
  will-change: transform;
}

/* === Fade Animation === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Image Hover Effects === */
.system-flow-media img,
.system-flow-media video,
.benefit-grid article img,
.case img,
.case video,
.news-card img,
.media-grid-a img,
.media-grid-a video {
  transition: transform 0.5s ease;
}

.system-flow-media:hover img,
.system-flow-media:hover video,
.benefit-grid article:hover img,
.case:hover img,
.case:hover video,
.news-card:hover img {
  transform: scale(1.03);
}

.benefit-grid article,
.case,
.news-card {
  overflow: hidden;
}

/* === Blockquote === */
.reference-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

.reference-quote p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.reference-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.section-dark .reference-quote cite { color: var(--accent); }

/* === Responsive === */
@media (max-width: 1024px) {
  .two-col,
  .system-flow-split,
  .cta-wrap,
  .process-wrap,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  .system-flow-split-reverse { direction: ltr; }
  
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(1) { grid-row: span 1; aspect-ratio: 16/10; }
  .gallery img:nth-child(5) { grid-column: span 1; aspect-ratio: 16/10; }
  .gallery img:nth-child(6) { display: block; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0; }
  
  .section-dark, .section-light { padding: 4rem 0; }
  .page-hero { padding: 6rem 0 4rem; }
  .hero { min-height: 100svh; }
  .three-hero .hero-content { 
    padding: 6rem 0 4rem; 
    max-width: 100%; 
  }
  
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  
  .benefit-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 16/10 !important; grid-row: auto !important; grid-column: auto !important; display: block !important; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .steps article { flex-direction: column; text-align: center; align-items: center; gap: 0.75rem; }
  .reference-result { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section-dark, .section-light { padding: 3rem 0; }
  .three-hero .hero-content { padding: 5rem 0 3rem; }
  .btn { padding: 0.8rem 1.4rem; font-size: 0.8rem; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-up {
    opacity: 1;
    transform: none;
  }
  
  .mobile-menu-header,
  .mobile-menu-links a {
    transform: none;
    opacity: 1;
  }
}
