/* ==========================================================================
   OUTTURN — Landing Page Draft
   Fonts: Fraunces (display/serif) · Space Grotesk (labels/stats) · Inter (body)
   ========================================================================== */

:root{
  --ink: #17140f;
  --ink-soft: #3a352c;
  --cream: #f6efe2;
  --cream-soft: #efe6d4;
  --paper: #fbf8f1;
  --charcoal: #171410;
  --charcoal-2: #201b14;
  --line-dark: rgba(246,239,226,0.14);
  --line-light: rgba(23,20,15,0.12);
  --gold: #c68a3d;
  --gold-soft: #e0b478;
  --olive: #4b5636;
  --muted-dark: #a99d89;
  --muted-light: #6b6353;

  --font-display: 'Fraunces', serif;
  --font-label: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
em{ font-style: italic; color: var(--gold); }
img{ max-width:100%; display:block; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Reveal animation ---------- */
[data-reveal]{
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
[data-reveal="up"]{ transform: translateY(28px); }
[data-reveal="left"]{ transform: translateX(-40px); }
[data-reveal="right"]{ transform: translateX(40px); }
[data-reveal].is-visible{ opacity: 1; transform: translate(0,0); }

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--gold); color: var(--ink); }
.btn-primary:hover{ background: var(--gold-soft); transform: translateY(-2px); }
.btn-outline{ border-color: currentColor; }
.btn-outline:hover{ background: var(--ink); color: var(--cream); border-color: var(--ink); }
.split-light .btn-outline:hover{ background: var(--ink); color:var(--paper); }
.btn-ghost{ border-color: var(--line-dark); color: var(--cream); }
.btn-ghost:hover{ background: var(--cream); color: var(--ink); }
.btn-small{ padding: 11px 22px; font-size: 0.75rem; }
.btn-full{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(23,20,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line-dark);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 32px;
}
.logo{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.logo-dot{ color: var(--gold); }
.main-nav{ display:flex; align-items:center; gap: 36px; }
.main-nav a{
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted-dark);
  transition: color 0.2s ease;
}
.main-nav a:hover{ color: var(--cream); }

/* ---------- Mobile menu toggle ---------- */
.mobile-menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 601;
}
.mobile-menu-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}
.mobile-menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); width: 100%; }
.mobile-menu-toggle.active span:nth-child(2){ opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--charcoal-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.mobile-nav.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav nav{ display: flex; flex-direction: column; }
.mobile-nav nav a{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav-cta{
  display: flex;
  margin-top: 24px;
}
.mobile-nav-whatsapp{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #0b1a10;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px;
  border-radius: 2px;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(10,9,6,0.35);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* ---------- Nav dropdown ---------- */
.nav-dropdown{ position: relative; }
.nav-dropdown-trigger{
  display: flex; align-items: center; gap: 6px;
}
.nav-dropdown-trigger .chevron{ transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-trigger .chevron,
.nav-dropdown:focus-within .nav-dropdown-trigger .chevron{ transform: rotate(180deg); }
.nav-dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  min-width: 280px;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a{
  display: block;
  padding: 12px 14px;
  font-size: 0.8rem;
  border-radius: 2px;
  white-space: normal;
}
.nav-dropdown-menu a:hover{ background: rgba(246,239,226,0.06); color: var(--cream); }

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 22px;
}
.breadcrumb a{ color: var(--muted-dark); transition: color 0.2s ease; }
.breadcrumb a:hover{ color: var(--gold); }
.breadcrumb .sep{ opacity: 0.5; }
.breadcrumb .current{ color: var(--gold-soft); }

/* ---------- Subpage hero (page-hero) ---------- */
.page-hero{
  background: var(--charcoal);
  color: var(--cream);
  padding: 168px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 0%, rgba(198,138,61,0.14), transparent 55%);
  pointer-events: none;
}
.page-hero-inner{ position: relative; max-width: 760px; }
.page-hero h1{
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--cream);
}
.page-hero-lead{
  font-size: 1.05rem;
  color: var(--muted-dark);
  max-width: 620px;
  margin-bottom: 0;
}

/* ---------- Article content ---------- */
.article-section{ background: var(--paper); padding: 80px 0 40px; }
.article{ max-width: 740px; margin: 0 auto; }
.article h2{
  font-size: 1.85rem;
  margin-top: 58px;
  margin-bottom: 18px;
}
.article h3{
  font-size: 1.25rem;
  margin-top: 38px;
  margin-bottom: 14px;
}
.article > p, .article-lead{
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-lead{ font-size: 1.15rem; color: var(--ink); margin-bottom: 32px; }
.article strong{ color: var(--ink); font-weight: 600; }
.article ul{
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1.4em;
}
.article ul li{
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
}
.article ul li::marker{ color: var(--gold); }

.callout{
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 26px 30px;
  margin: 36px 0;
}
.callout-label{
  display: block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.callout p{ margin-bottom: 0.6em; color: var(--ink-soft); }
.callout p:last-child{ margin-bottom: 0; }

.article-cta{
  background: var(--ink);
  color: var(--cream);
  padding: 44px;
  margin: 60px 0;
  text-align: center;
}
.article-cta h3{ color: var(--cream); font-size: 1.5rem; margin-top: 0; }
.article-cta p{ color: var(--muted-dark); margin-bottom: 24px; }
.article-cta .btn-row{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.related-heading{
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 64px 0 18px;
}
.related-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.related-card{
  border: 1px solid var(--line-light);
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(23,20,15,0.08); }
.related-tag{
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.related-card h3{ font-size: 1.02rem; margin: 10px 0 0; }
.related-card .related-specs{
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 8px;
}
.config-grid{ grid-template-columns: repeat(3, 1fr); }

.config-quicklinks{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 6px;
}
.config-pill{
  font-family: var(--font-label);
  font-size: 0.78rem;
  padding: 8px 18px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  color: var(--muted-light);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.config-pill:hover{ border-color: var(--gold); color: var(--gold); }
.config-pill.active{ background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery-section{ background: var(--paper); padding: 80px 0 110px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.gallery-item{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  border: 1px dashed var(--line-light);
}
.gallery-item.tall{ aspect-ratio: 4 / 5; }
.gallery-placeholder{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(23,20,15,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(198,138,61,0.09), rgba(75,86,54,0.10));
  color: var(--muted-light);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-placeholder{ transform: scale(1.04); }
.gallery-item img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-subheading{
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 48px 0 18px;
}
.gallery-subheading:first-child{ margin-top: 0; }
.gallery-subheading-note{
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted-light);
  text-transform: none;
  letter-spacing: 0;
  margin: -8px 0 22px;
}
.gallery-used-on{
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted-light);
  border-bottom: 1px solid var(--line-light);
  margin-top: 2px;
}
.gallery-used-on strong{ color: var(--ink-soft); font-weight: 500; }
a.gallery-used-on{ color: var(--gold); border-color: transparent; }
a.gallery-used-on:hover{ border-color: var(--gold); }
.gallery-caption{
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(23,20,15,0.6);
  padding: 6px 12px;
  border-radius: 2px;
}
.gallery-item::after{
  content: '';
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(10,9,6,0.5), transparent);
  pointer-events: none;
}

.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,9,6,0.86);
  display: none; align-items: center; justify-content: center;
  padding: 60px 40px;
}
.lightbox.active{ display: flex; }
.lightbox-inner{
  position: relative;
  max-width: 900px; width: 100%; aspect-ratio: 16/9;
  background: var(--charcoal-2);
  border: 1px dashed var(--line-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted-dark);
  overflow: hidden;
}
.lightbox-img{
  display: none;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--charcoal-2);
}
.lightbox-placeholder{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.lightbox-close{
  position: absolute; top: -50px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-dark); color: var(--cream);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Videos ---------- */
.video-section{ background: var(--paper); padding: 80px 0 110px; }
.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.video-card{
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(246,239,226,0.03) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(198,138,61,0.12), rgba(75,86,54,0.16));
  border: 1px dashed var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.video-play{
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(246,239,226,0.1);
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.video-item:hover .video-play{ background: var(--gold); color: var(--ink); transform: scale(1.06); }
.video-item h3{ font-size: 1rem; margin: 0 0 6px; }
.video-item p{ font-size: 0.85rem; color: var(--muted-light); margin: 0; }

.video-card.has-thumb{
  cursor: pointer;
  border-style: solid;
  overflow: hidden;
  background: var(--charcoal);
}
.video-card.has-thumb img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.4s ease;
}
.video-card.has-thumb:hover img{ opacity: 0.55; transform: scale(1.04); }
.video-card.has-thumb::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,6,0.55), transparent 55%);
  pointer-events: none;
}
.video-duration{
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(10,9,6,0.7);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ---------- Video lightbox ---------- */
.video-lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,9,6,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.video-lightbox.active{ display: flex; }
.video-lightbox-inner{
  position: relative;
  max-width: 900px; width: 100%; aspect-ratio: 16/9;
  background: var(--charcoal-2);
}
.video-lightbox-inner iframe{
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-lightbox-close{
  position: absolute; top: -50px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-dark); color: var(--cream);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.video-lightbox-close:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Comparison tables ---------- */
.compare-table-wrap{
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--line-light);
}
.compare-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.compare-table caption{
  caption-side: top;
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 14px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-light);
}
.compare-table th,
.compare-table td{
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  white-space: nowrap;
}
.compare-table thead th{
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: var(--cream);
}
.compare-table tbody th{
  font-family: var(--font-label);
  font-weight: 500;
  color: var(--ink);
  white-space: normal;
}
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th{ border-bottom: none; }
.compare-table tbody tr.is-highlight{ background: var(--cream); }
.compare-table td strong{ color: var(--ink); }
.compare-table a{
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.compare-table a:hover{ color: var(--ink); border-color: var(--ink); }

/* dark-section variant */
.split-dark .compare-table-wrap,
.carousel-section .compare-table-wrap{ border-color: var(--line-dark); }
.split-dark .compare-table caption,
.split-dark .compare-table thead th,
.carousel-section .compare-table caption,
.carousel-section .compare-table thead th{ background: var(--charcoal); color: var(--muted-dark); }
.split-dark .compare-table th,
.split-dark .compare-table td,
.carousel-section .compare-table th,
.carousel-section .compare-table td{ border-color: var(--line-dark); }
.split-dark .compare-table tbody th,
.carousel-section .compare-table tbody th{ color: var(--cream); }
.split-dark .compare-table tbody tr.is-highlight,
.carousel-section .compare-table tbody tr.is-highlight{ background: var(--charcoal); }

@media (max-width: 600px){
  .compare-table{ font-size: 0.85rem; }
  .compare-table th, .compare-table td{ padding: 11px 14px; }
}

/* ---------- Standalone contact page ---------- */
.contact-page-section{ background: var(--paper); padding: 80px 0 120px; }

/* ---------- Article images & placeholders ---------- */
.article-figure{ margin: 36px 0; }
.article-figure img{
  width: 100%;
  min-height: 200px;
  max-height: 520px;
  object-fit: contain;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  margin: 0 auto;
}
.article-figure figcaption{
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 10px;
}
.article-placeholder{
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line-light);
  border-radius: 2px;
  color: var(--muted-light);
  background:
    repeating-linear-gradient(135deg, rgba(23,20,15,0.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(198,138,61,0.09), rgba(75,86,54,0.10));
}

/* ---------- Video teaser (inline CTA card) ---------- */
.video-teaser{
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--cream);
  border: 1px solid var(--line-light);
  padding: 20px 24px;
  margin: 36px 0;
}
.video-teaser .video-play{
  flex: 0 0 auto;
  width: 46px; height: 46px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.video-teaser-text{ flex: 1; }
.video-teaser-text strong{ display: block; color: var(--ink); font-size: 0.98rem; }
.video-teaser-text span{ font-size: 0.85rem; color: var(--muted-light); }

/* ---------- External sources / references ---------- */
.sources{
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.sources-heading{
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.sources ul{ list-style: none; padding: 0; margin: 0; }
.sources li{ margin-bottom: 8px; font-size: 0.92rem; }
.sources a{
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sources a:hover{ color: var(--gold); border-color: var(--gold); }
.sources .ext-icon{ display: inline-block; margin-left: 4px; opacity: 0.6; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center;
  background: var(--charcoal);
  color: var(--cream);
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-grain{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(198,138,61,0.16), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(75,86,54,0.22), transparent 50%);
}
.hero-cashew{
  position:absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 640px; height: auto; max-width: 55vw;
  color: var(--muted-dark);
  opacity: 0.35;
}
.cashew-cut{ color: var(--gold); opacity: 0.9; }

.hero-inner{
  position:relative; z-index:1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  max-width: none;
}
.hero-copy{ max-width: 640px; }
.eyebrow{
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--cream);
  margin-bottom: 24px;
}
.hero-sub{
  font-size: 1.1rem;
  color: var(--muted-dark);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-sub strong{ color: var(--cream); font-weight: 600; }
.hero-actions{ display:flex; gap: 18px; margin-bottom: 64px; flex-wrap: wrap; }
.hero-actions .btn-outline{ border-color: var(--line-dark); color: var(--cream); }
.hero-actions .btn-outline:hover{ background: var(--cream); color: var(--ink); }

.hero-stats{
  display:grid; grid-template-columns: repeat(4, auto);
  gap: 48px;
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}
.stat{ display:flex; flex-direction:column; gap: 6px; }
.stat-num{
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-soft);
}
.stat-label{
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

/* ---------- Hero image fan ---------- */
.hero-visual{
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-fan{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fan-photo{
  position: absolute;
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 24px 48px rgba(10,9,6,0.38);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ph-box{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px dashed var(--line-light);
  background: linear-gradient(135deg, rgba(198,138,61,0.10), rgba(75,86,54,0.12));
  color: var(--muted-light);
}
.ph-box .ph-label{
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fan-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* stacked / initial state */
.fan-left{ transform: rotate(0deg) translate(0,0); z-index: 30; transition-delay: 0s; }
.fan-middle{ transform: rotate(0deg) translate(0,0); z-index: 20; transition-delay: 0.15s; }
.fan-right{ transform: rotate(0deg) translate(0,0); z-index: 10; transition-delay: 0.3s; }

/* fanned-out state, once revealed */
.image-fan.is-visible .fan-left{ transform: rotate(-8deg) translate(-92px, 10px); }
.image-fan.is-visible .fan-middle{ transform: rotate(6deg) translate(0, -6px); }
.image-fan.is-visible .fan-right{ transform: rotate(-6deg) translate(96px, 22px); }

/* subtle hover response, matches the fanned reference behavior */
.image-fan:hover .fan-left{ transform: rotate(1deg) translate(-98px, 0); }
.image-fan:hover .fan-middle{ transform: rotate(0deg) translate(0, -16px); }
.image-fan:hover .fan-right{ transform: rotate(3deg) translate(98px, 12px); }

.scroll-cue{
  position:absolute; bottom: 36px; left: 32px; z-index:1;
  display:flex; align-items:center; gap: 10px;
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dark);
}
.scroll-cue span{
  width: 1px; height: 28px; background: var(--muted-dark);
  position: relative; overflow:hidden;
}
.scroll-cue span::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--gold);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue{
  0%{ top:-100%; } 50%{ top:0; } 100%{ top:100%; }
}

/* ---------- Image Carousel ---------- */
.carousel-section{
  background: var(--charcoal-2);
  color: var(--cream);
  padding: 100px 0 90px;
  overflow: hidden;
}
.carousel-heading{ margin-bottom: 48px; }
.carousel-heading h2{ font-size: clamp(2rem, 4vw, 2.6rem); max-width: 600px; }
.carousel-heading .section-lead{ color: var(--muted-dark); }

.carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}
.carousel:focus-visible{ outline: none; }

.carousel-viewport{
  flex: 1;
  min-width: 0;
  height: 360px;
  position: relative;
  perspective: 1300px;
  overflow: visible;
}
.carousel-track{
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.carousel-slide{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 253px;
  margin: -126.5px 0 0 -95px;
  background: var(--charcoal);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  transition: transform 0.7s cubic-bezier(.65,.05,.36,1), opacity 0.7s ease, box-shadow 0.7s ease;
  will-change: transform, opacity;
}
.carousel-slide.is-active{
  border-color: var(--gold);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.carousel-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(246,239,226,0.03) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(198,138,61,0.10), rgba(75,86,54,0.14));
  color: var(--muted-dark);
}
.ph-label{
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.carousel-slide img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-slide::after{
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10,9,6,0.75), transparent);
  pointer-events: none;
}
.carousel-caption{
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}
.carousel-index{
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.carousel-caption h3{
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--cream);
}

.carousel-arrow{
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.carousel-arrow:hover{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.carousel-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: var(--line-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active{
  width: 26px;
  background: var(--gold);
}

@media (max-width: 900px){
  .carousel-viewport{ height: 300px; }
  .carousel-slide{ width: 160px; height: 213px; margin: -106.5px 0 0 -80px; }
}
@media (max-width: 700px){
  .carousel{ padding: 0 20px; gap: 8px; }
  .carousel-viewport{ height: 240px; }
  .carousel-slide{ width: 130px; height: 173px; margin: -86.5px 0 0 -65px; }
  .carousel-arrow{ width: 38px; height: 38px; }
}

/* ---------- Section intro (challenges) ---------- */
.section-intro{
  background: var(--paper);
  padding: 120px 0 80px;
  text-align: left;
}
.section-intro h2{ font-size: clamp(2rem, 4vw, 2.8rem); max-width: 640px; }
.section-lead{
  font-size: 1.05rem;
  color: var(--muted-light);
  max-width: 560px;
}

/* ---------- Split Problem/Solution ---------- */
.split{ padding: 100px 0; }
.split-dark{ background: var(--charcoal-2); color: var(--cream); }
.split-light{ background: var(--cream); color: var(--ink); }

.split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.split-col{ position: relative; padding-top: 8px; }
.split-index{
  display:block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 12px;
}
.split-kicker{
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.split-problem .split-kicker{ color: var(--muted-dark); }
.split-light .split-problem .split-kicker{ color: var(--muted-light); }
.split-solution .split-kicker{ color: var(--gold); }

.split-col h3{ font-size: 1.7rem; margin-bottom: 16px; }
.split-problem p{
  font-size: 1.02rem;
}
.split-dark .split-problem p{ color: var(--muted-dark); }
.split-light .split-problem p{ color: var(--muted-light); }

.split-solution p{ font-size: 1.02rem; }
.split-dark .split-solution p{ color: #cfc5b3; }
.split-light .split-solution p{ color: var(--ink-soft); }

.split-badge{
  display:inline-flex; align-items:baseline; gap: 12px;
  margin-top: 20px;
  padding: 14px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
}
.split-light .split-badge{ border-color: var(--line-light); }
.split-badge-num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}
.split-badge-label{
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.split-light .split-badge-label{ color: var(--muted-light); }

/* ---------- Machines ---------- */
.machines{ background: var(--paper); padding: 120px 0; }
.machines h2{ font-size: clamp(2rem, 4vw, 2.8rem); max-width: 620px; }

.machine-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.machine-card{
  background: var(--cream);
  border: 1px solid var(--line-light);
  padding: 32px 26px;
  display:flex; flex-direction:column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.machine-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23,20,15,0.08); }
.machine-card-feature{ background: var(--ink); color: var(--cream); border-color: var(--ink); }
.machine-tag{
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.machine-card h3{
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.machine-desc{
  font-size: 0.92rem;
  color: var(--muted-light);
  flex-grow: 1;
}
.machine-card-feature .machine-desc{ color: var(--muted-dark); }
.machine-specs{ margin: 20px 0 24px; border-top: 1px solid var(--line-light); }
.machine-card-feature .machine-specs{ border-color: var(--line-dark); }
.machine-specs li{
  display:flex; justify-content:space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-label);
  font-size: 0.82rem;
}
.machine-card-feature .machine-specs li{ border-color: var(--line-dark); }
.machine-specs li span{ color: var(--muted-light); }
.machine-card-feature .machine-specs li span{ color: var(--muted-dark); }
.machine-more-link{
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 16px;
  border-bottom: 1px solid transparent;
}
.machine-more-link:hover{ border-color: var(--gold); }
.machines-footnote{
  margin-top: 40px;
  font-size: 0.98rem;
  color: var(--muted-light);
}
.machines-footnote a{ color: var(--gold); border-bottom: 1px solid var(--gold); }

/* ---------- Why Us ---------- */
.why-us{ background: var(--charcoal); color: var(--cream); padding: 120px 0; }
.why-us h2{ font-size: clamp(2rem, 4vw, 2.8rem); max-width: 620px; }
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  margin-top: 60px;
  border: 1px solid var(--line-dark);
}
.why-card{
  background: var(--charcoal);
  padding: 40px 34px;
}
.why-num{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  display:block;
  margin-bottom: 18px;
}
.why-card h3{
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0;
}
.why-card p{ font-size: 0.92rem; color: var(--muted-dark); margin:0; }

/* ---------- Trust band ---------- */
.trust-band{
  background: var(--olive);
  color: var(--cream);
  padding: 48px 0;
}
.trust-inner{ text-align:center; }
.trust-line{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: #eee6d2;
}
.trust-line strong{ font-style: normal; color: var(--gold-soft); }

.sources-band{ background: var(--paper); padding: 26px 0; }
.sources-band-text{
  font-family: var(--font-label);
  font-size: 0.8rem;
  color: var(--muted-light);
  text-align: center;
  margin: 0;
}
.sources-band-text a{ color: var(--ink-soft); border-bottom: 1px solid var(--line-light); }
.sources-band-text a:hover{ color: var(--gold); border-color: var(--gold); }

/* ---------- Contact ---------- */
.contact{ background: var(--paper); padding: 120px 0; }
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-copy h2{ font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.contact-points{ margin-top: 24px; }
.contact-points li{
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-label);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.contact-points li:last-child{ border-bottom: 1px solid var(--line-light); }
.contact-points li::before{ content: '— '; color: var(--gold); }

.contact-form{
  background: var(--cream);
  border: 1px solid var(--line-light);
  padding: 40px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form label{
  display:flex; flex-direction:column; gap: 8px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.form-full{ display:flex; flex-direction:column; gap:8px; margin-bottom: 24px;
  font-family: var(--font-label); font-size: 0.75rem; letter-spacing:0.03em;
  text-transform: uppercase; color: var(--muted-light); }
.contact-form input, .contact-form textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline: none; border-color: var(--gold);
}
.form-note{
  font-size: 0.78rem;
  color: var(--muted-light);
  text-align:center;
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--charcoal); color: var(--cream); padding-top: 64px; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
  flex-wrap: wrap;
  gap: 32px;
}
.footer-tag{ color: var(--muted-dark); font-size: 0.9rem; margin-top: 16px; }
.footer-nav{ display:flex; gap: 28px; }
.footer-nav a{
  font-family: var(--font-label); font-size: 0.85rem; color: var(--muted-dark);
}
.footer-nav a:hover{ color: var(--cream); }
.footer-bottom{
  padding: 24px 32px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--muted-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .split-grid, .contact-grid{ grid-template-columns: 1fr; gap: 48px; }
  .machine-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero-cashew{ opacity: 0.18; }
  .form-row{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ height: 300px; order: -1; }
  .fan-photo{ width: 130px; height: 130px; }
  .image-fan.is-visible .fan-left{ transform: rotate(-8deg) translate(-64px, 8px); }
  .image-fan.is-visible .fan-middle{ transform: rotate(6deg) translate(0, -6px); }
  .image-fan.is-visible .fan-right{ transform: rotate(-6deg) translate(68px, 16px); }
  .gallery-grid, .video-grid{ grid-template-columns: repeat(2, 1fr); }
  .related-grid{ grid-template-columns: 1fr; }
  .config-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .wrap{ padding: 0 20px; }
  .header-inner{ padding: 18px 20px; }
  .main-nav{ display:none; }
  .header-inner .btn-ghost{ display:none; }
  .mobile-menu-toggle{ display: flex; }
  .machine-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
  .hero-visual{ height: 220px; }
  .fan-photo{ width: 110px; height: 110px; }
  .image-fan.is-visible .fan-left{ transform: rotate(-8deg) translate(-50px, 6px); }
  .image-fan.is-visible .fan-right{ transform: rotate(-6deg) translate(54px, 14px); }
  .gallery-grid, .video-grid{ grid-template-columns: 1fr; }
  .page-hero{ padding: 140px 0 56px; }
  .article-cta{ padding: 32px 24px; }
  .config-grid{ grid-template-columns: 1fr; }
}
