/* ============================================================
   AMASKO — Trusted Ethiopian Coffee Exporter
   Simple edition · brown, white & black
   ============================================================ */

:root {
  --brown: #6b4226;
  --brown-dark: #4a2c18;
  --brown-light: #a47551;
  --tan: #f5efe9;
  --black: #111111;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e4ddd6;
  --white: #ffffff;
  --radius: 0;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  background: var(--white); color: var(--text);
  line-height: 1.7; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--black); font-weight: 700; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--brown); color: var(--white); }
svg.ico { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Preloader (coffee cup) ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.loader-cup { width: 74px; height: 60px; position: relative; }
.loader-cup .cup-body {
  width: 60px; height: 48px; border: 3px solid var(--black); border-top: none;
  position: absolute; bottom: 0; left: 0; overflow: hidden; background: var(--white);
}
.loader-cup .cup-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: var(--brown); animation: fillCup 1.6s var(--ease) infinite;
}
.loader-cup .cup-handle {
  width: 18px; height: 22px; border: 3px solid var(--black); border-left: none;
  position: absolute; right: 0; top: 14px;
}
@keyframes fillCup { 0% { height: 0 } 70%, 100% { height: 88% } }
.loader-text { letter-spacing: .35em; font-weight: 500; color: var(--brown); text-transform: uppercase; font-size: .78rem; }

/* ---------- Navigation ---------- */
header.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw; background: var(--white); border-bottom: 1px solid var(--line);
  transition: padding .3s, box-shadow .3s;
}
header.site-nav.scrolled { padding: 12px 6vw; box-shadow: var(--shadow); }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: .2em; color: var(--black); font-weight: 700; }
.logo .logo-bean { width: 24px; height: 24px; }
nav.menu { display: flex; align-items: center; gap: 32px; }
nav.menu a.nav-link { font-size: .92rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text); position: relative; padding: 4px 0; transition: color .25s; }
nav.menu a.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--brown); transition: width .3s var(--ease); }
nav.menu a.nav-link:hover, nav.menu a.nav-link.active { color: var(--brown); }
nav.menu a.nav-link:hover::after, nav.menu a.nav-link.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brown); color: var(--white); border: 1px solid var(--brown);
  padding: 14px 30px; font-family: 'Jost', sans-serif; font-size: .85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 3px;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.gold { background: var(--brown); border-color: var(--brown); color: var(--white); }
.cta-band .btn.gold { background: var(--white); color: var(--black); border-color: var(--white); }
.cta-band .btn.gold:hover { background: transparent; color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 2px; background: var(--black); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; display: grid; grid-template-columns: 1.1fr .9fr; gap: 5vw;
  align-items: center; padding: 150px 6vw 90px; background: var(--tan);
}
.eyebrow { display: inline-block; color: var(--brown); font-weight: 600; letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.12; }
.hero h1 .accent { color: var(--brown); }
.hero p.lead { margin: 22px 0 34px; font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art .art-frame { width: min(460px, 100%); aspect-ratio: .9; overflow: hidden; background: var(--brown-dark); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
section { padding: 96px 6vw; }
section.alt { background: var(--tan); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.2; }
.sec-head h2::after { content: ""; display: block; width: 50px; height: 2px; background: var(--brown); margin: 18px auto 0; }
.sec-head p { margin-top: 18px; color: var(--muted); }

/* Scroll reveal (subtle) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s }
.reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }

/* Value cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--line); padding: 38px 30px; transition: border-color .3s, transform .3s; }
.value-card:hover { border-color: var(--brown); transform: translateY(-4px); }
.value-card .vc-icon { color: var(--brown); margin-bottom: 18px; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .97rem; }

/* Stats */
.stats-band { background: var(--black); color: var(--white); display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 56px 4vw; }
.stat + .stat { border-left: 1px solid #333; }
.stat .num { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; color: var(--brown-light); }
.stat .lbl { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: #ccc; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.p-card { background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.p-card:hover { border-color: var(--brown); transform: translateY(-4px); }
.p-media { height: 230px; overflow: hidden; position: relative; background: var(--brown-dark); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--black); color: var(--white); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; }
.p-body { padding: 26px; }
.p-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.p-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.p-meta span { font-size: .78rem; color: var(--brown); border: 1px solid var(--line); padding: 3px 10px; }
.p-body p { color: var(--muted); font-size: .95rem; }
.p-notes { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--brown); font-style: italic; }

/* Process */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.t-step { text-align: center; padding: 10px; }
.t-step .t-ico { width: 72px; height: 72px; margin: 0 auto 16px; border: 1px solid var(--brown); color: var(--brown); display: grid; place-items: center; transition: background .3s, color .3s; }
.t-step:hover .t-ico { background: var(--brown); color: var(--white); }
.t-step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.t-step p { color: var(--muted); font-size: .92rem; }

/* Testimonials */
.testi-wrap { max-width: 820px; margin: 0 auto; }
.testi-track { overflow: hidden; }
.testi-slides { display: flex; transition: transform .6s var(--ease); }
.testi { min-width: 100%; background: var(--white); border: 1px solid var(--line); padding: 48px 56px; text-align: center; }
.testi .quote-mark { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--brown); line-height: .6; display: block; margin-bottom: 18px; }
.testi p { font-size: 1.08rem; font-style: italic; color: var(--text); max-width: 60ch; margin: 0 auto 22px; }
.testi .who b { display: block; color: var(--black); }
.testi .who small { color: var(--brown); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.testi-dots button { width: 10px; height: 10px; border: 1px solid var(--brown); background: transparent; cursor: pointer; transition: .3s; }
.testi-dots button.on { background: var(--brown); }

/* CTA */
.cta-band { background: var(--brown-dark); color: var(--white); text-align: center; padding: 70px 8vw; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: #e6d9cc; max-width: 58ch; margin: 0 auto 28px; }

/* Inner page header */
.page-hero { padding: 180px 6vw 90px; text-align: center; background: var(--black); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.page-hero .crumb { margin-top: 12px; color: var(--brown-light); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.page-hero .crumb a { color: #ccc; }
.page-hero .crumb a:hover { color: var(--white); }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.img-stack { position: relative; }
.img-stack .main-img { overflow: hidden; background: var(--brown-dark); }
.img-stack .main-img img { width: 100%; height: 460px; object-fit: cover; }
.img-stack .tag-exp { position: absolute; bottom: -22px; right: -16px; background: var(--brown); color: var(--white); padding: 20px 26px; text-align: center; }
.img-stack .tag-exp b { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.tick-list { list-style: none; margin: 18px 0 28px; }
.tick-list li { padding: 8px 0 8px 28px; position: relative; color: var(--text); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: var(--brown); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { position: relative; overflow: hidden; background: var(--brown-dark); }
.g-item img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; background: rgba(17,17,17,.75); color: var(--white); font-size: .92rem; transform: translateY(100%); transition: transform .4s var(--ease); }
.g-item:hover .g-cap { transform: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.b-card { border: 1px solid var(--line); background: var(--white); transition: border-color .3s, transform .3s; }
.b-card:hover { border-color: var(--brown); transform: translateY(-4px); }
.b-media { height: 210px; overflow: hidden; background: var(--brown-dark); }
.b-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.b-card:hover .b-media img { transform: scale(1.05); }
.b-body { padding: 24px; }
.b-date { color: var(--brown); font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.b-body h3 { font-size: 1.2rem; margin: 8px 0; line-height: 1.35; }
.b-body p { color: var(--muted); font-size: .94rem; }
.b-link { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--black); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--brown); padding-bottom: 2px; }
.b-link:hover { color: var(--brown); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
.c-info { background: var(--black); color: var(--white); padding: 44px 36px; }
.c-info h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.c-info > p { color: #bbb; margin-bottom: 28px; }
.c-line { display: flex; gap: 14px; margin-bottom: 22px; }
.c-line .ci { width: 44px; height: 44px; flex: none; border: 1px solid var(--brown-light); color: var(--brown-light); display: grid; place-items: center; }
.c-line b { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-light); }
.c-form { border: 1px solid var(--line); padding: 44px 36px; }
.c-form h3 { font-size: 1.6rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--black); margin-bottom: 6px; letter-spacing: .04em; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); font-family: inherit; font-size: 1rem; color: var(--text); border-radius: 0; transition: border-color .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brown); }

/* Footer */
footer.site-footer { background: var(--black); color: #bbb; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 6vw 44px; }
.footer-inner .logo { color: var(--white); font-size: 1.35rem; margin-bottom: 14px; }
.footer-inner h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-inner ul li svg { margin-top: 5px; color: var(--brown-light); }
.footer-inner ul a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border: 1px solid #444; display: grid; place-items: center; transition: .25s; }
.socials a:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.footer-bar { border-top: 1px solid #262626; text-align: center; padding: 20px 6vw; font-size: .85rem; }
.footer-bar a { color: var(--brown-light); }

/* Back to top */
#toTop { border-radius: 3px; position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border: none; background: var(--brown); color: var(--white); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s, background .25s; z-index: 800; }
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--black); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-3, .product-grid, .blog-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav.menu { position: fixed; top: 0; left: 0; right: 0; padding: 100px 8vw 36px; background: var(--white); flex-direction: column; gap: 20px; transform: translateY(-110%); transition: transform .4s var(--ease); box-shadow: var(--shadow); z-index: -1; }
  nav.menu.open { transform: none; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards-3, .product-grid, .blog-grid, .gallery-grid, .timeline, .form-row, .stats-band, .footer-inner { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid #333; padding-top: 24px; margin-top: 24px; }
  section { padding: 68px 6vw; }
  .testi { padding: 36px 24px; }
}

/* ============================================================
   Softer corners
   ============================================================ */
:root { --r: 6px; --r-sm: 4px; }
.value-card, .p-card, .b-card, .testi, .stats-band, .cta-band, .c-info, .c-form,
.img-stack .main-img, .hero-art .art-frame { border-radius: var(--r); overflow: hidden; }
.p-media, .b-media { border-radius: var(--r) var(--r) 0 0; }
.g-item, .tag-exp { border-radius: var(--r); }
.p-badge, .p-meta span, .t-step .t-ico, .c-line .ci, .socials a,
.field input, .field textarea, .field select, .testi-dots button { border-radius: var(--r-sm); }
.testi-track { border-radius: var(--r); }
.contact-grid + * , iframe { border-radius: var(--r); }

/* ============================================================
   Hero composition
   ============================================================ */
.hero-art { position: relative; height: 560px; display: block; }
.hero-art .dots-bg {
  position: absolute; right: 0; top: 30px; width: 220px; height: 220px;
  background-image: radial-gradient(var(--brown-light) 1.5px, transparent 1.5px);
  background-size: 16px 16px; opacity: .5;
}
.hero-art .arch {
  position: absolute; right: 40px; top: 0; width: 340px; height: 500px;
  border-radius: 170px 170px var(--r) var(--r); overflow: hidden;
  background: var(--brown-dark); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
  animation: archIn 1.2s var(--ease) .9s both;
}
.hero-art .arch::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 160px 160px var(--r-sm) var(--r-sm); pointer-events: none;
}
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }
@keyframes archIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero-art .cup-shot {
  position: absolute; left: 10px; bottom: 10px; width: 200px; height: 200px;
  border-radius: 50%; border: 8px solid var(--tan); background: var(--brown);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); z-index: 3;
  animation: archIn 1.2s var(--ease) 1.15s both;
}
.hero-art .cup-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.steam-svg { position: absolute; left: 50%; top: -78px; width: 80px; height: 70px; transform: translateX(-50%); overflow: visible; }
.wisp { fill: none; stroke: var(--brown-light); stroke-width: 2; stroke-linecap: round; opacity: 0;
  stroke-dasharray: 90; stroke-dashoffset: 90; animation: wisp 3.6s ease-in-out infinite; }
.wisp.w2 { animation-delay: 1.1s; } .wisp.w3 { animation-delay: 2.2s; }
@keyframes wisp {
  0% { opacity: 0; stroke-dashoffset: 90; transform: translateY(8px); }
  35% { opacity: .9; }
  100% { opacity: 0; stroke-dashoffset: 0; transform: translateY(-14px); }
}

.hero-art .seal {
  position: absolute; left: 60px; top: 30px; width: 130px; height: 130px; z-index: 4;
  background: var(--brown); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.6);
}
.hero-art .seal > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinSeal 22s linear infinite; }
.hero-art .seal text { fill: var(--white); font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 600; }
.hero-art .seal-bean { width: 34px; height: 34px; }
@keyframes spinSeal { to { transform: rotate(360deg); } }

.h-bean { position: absolute; width: 30px; height: 30px; z-index: 2; animation: beanBob 6s ease-in-out infinite; }
.h-bean.b1 { right: 0; bottom: 70px; transform: rotate(25deg); }
.h-bean.b2 { left: 230px; bottom: 0; width: 22px; height: 22px; animation-delay: -2s; }
.h-bean.b3 { left: 20px; top: 210px; width: 24px; height: 24px; animation-delay: -4s; }
@keyframes beanBob { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 20deg; } }

.hero-art .origin-tag {
  position: absolute; right: 0; bottom: 30px; z-index: 4; background: var(--black); color: var(--white);
  padding: 14px 20px; border-radius: var(--r); border-left: 3px solid var(--brown-light);
  animation: archIn 1.2s var(--ease) 1.4s both;
}
.hero-art .origin-tag b { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.hero-art .origin-tag span { font-size: .8rem; color: #ccc; letter-spacing: .06em; }

@media (max-width: 1024px) {
  .hero-art { width: 480px; max-width: 100%; margin: 20px auto 0; }
}
@media (max-width: 560px) {
  .hero-art { height: 440px; }
  .hero-art .arch { width: 250px; height: 380px; right: 10px; border-radius: 125px 125px var(--r) var(--r); }
  .hero-art .arch::after { border-radius: 115px 115px var(--r-sm) var(--r-sm); }
  .hero-art .cup-shot { width: 140px; height: 140px; left: 0; }
  .hero-art .seal { width: 100px; height: 100px; left: 10px; top: 10px; }
  .hero-art .origin-tag, .h-bean.b2 { display: none; }
}

/* ============================================================
   DARK MODE (default) · espresso brown instead of black
   ============================================================ */
html.dark {
  --d-bg: #24150c;        /* page background */
  --d-deep: #170d07;      /* deepest brown: footer, stats */
  --d-alt: #1d110a;       /* alternate sections, hero */
  --d-surface: #2f1d11;   /* cards */
  --d-line: #4a3221;
  --d-text: #eadfd3;
  --d-muted: #bfae9c;
  --d-head: #fff7ee;
  --d-accent: #c8955f;    /* caramel */
}
html.dark body { background: var(--d-bg); color: var(--d-text); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color: var(--d-head); }
html.dark ::selection { background: var(--d-accent); color: var(--d-deep); }

/* loader */
html.dark #preloader { background: var(--d-bg); }
html.dark .loader-cup .cup-body { border-color: var(--d-text); background: var(--d-surface); }
html.dark .loader-cup .cup-handle { border-color: var(--d-text); }
html.dark .loader-cup .cup-body::after { background: var(--d-accent); }
html.dark .loader-text { color: var(--d-accent); }

/* nav */
html.dark header.site-nav { background: rgba(29, 17, 10, .96); border-bottom-color: var(--d-line); }
html.dark .logo { color: var(--d-head); }
html.dark .site-nav .logo-bean ellipse { fill: var(--d-accent); }
html.dark .site-nav .logo-bean path { stroke: var(--d-deep); }
html.dark nav.menu a.nav-link { color: var(--d-text); }
html.dark nav.menu a.nav-link:hover, html.dark nav.menu a.nav-link.active { color: var(--d-accent); }
html.dark nav.menu a.nav-link::after { background: var(--d-accent); }
html.dark .hamburger span { background: var(--d-text); }

/* buttons */
html.dark .btn { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-deep); }
html.dark .btn:hover { background: var(--d-head); border-color: var(--d-head); color: var(--d-deep); }
html.dark .btn.ghost { background: transparent; color: var(--d-head); border-color: var(--d-head); }
html.dark .btn.ghost:hover { background: var(--d-head); color: var(--d-deep); }
html.dark .cta-band .btn.gold { background: var(--d-head); border-color: var(--d-head); color: var(--d-deep); }
html.dark .cta-band .btn.gold:hover { background: transparent; color: var(--d-head); }

/* hero */
html.dark .hero { background: radial-gradient(700px 420px at 80% 40%, rgba(200,149,95,.12), transparent 70%), var(--d-alt); }
html.dark .eyebrow, html.dark .hero h1 .accent { color: var(--d-accent); }
html.dark .hero p.lead, html.dark .sec-head p, html.dark .split p { color: var(--d-muted); }
html.dark .hero-art .cup-shot { border-color: var(--d-alt); }
html.dark .hero-art .dots-bg { opacity: .35; }
html.dark .hero-art .origin-tag { background: var(--d-surface); border: 1px solid var(--d-line); border-left: 3px solid var(--d-accent); }
html.dark .hero-art .origin-tag span { color: var(--d-muted); }
html.dark .wisp { stroke: var(--d-accent); }

/* sections + cards */
html.dark section.alt { background: var(--d-alt); }
html.dark .sec-head h2::after { background: var(--d-accent); }
html.dark .value-card, html.dark .p-card, html.dark .b-card, html.dark .testi, html.dark .c-form {
  background: var(--d-surface); border-color: var(--d-line);
}
html.dark .value-card:hover, html.dark .p-card:hover, html.dark .b-card:hover { border-color: var(--d-accent); }
html.dark .value-card p, html.dark .p-body p, html.dark .b-body p, html.dark .t-step p { color: var(--d-muted); }
html.dark .value-card .vc-icon { color: var(--d-accent); }

html.dark .stats-band { background: var(--d-deep); border: 1px solid var(--d-line); }
html.dark .stat + .stat { border-color: var(--d-line); }
html.dark .stat .num { color: var(--d-accent); }
html.dark .stat .lbl { color: var(--d-muted); }

html.dark .p-badge { background: var(--d-deep); color: var(--d-head); }
html.dark .p-meta span { color: var(--d-accent); border-color: var(--d-line); }
html.dark .p-notes { color: var(--d-accent); border-top-color: var(--d-line); }

html.dark .t-step .t-ico { border-color: var(--d-accent); color: var(--d-accent); }
html.dark .t-step:hover .t-ico { background: var(--d-accent); color: var(--d-deep); }

html.dark .testi p { color: var(--d-text); }
html.dark .testi .quote-mark, html.dark .testi .who small { color: var(--d-accent); }
html.dark .testi-dots button { border-color: var(--d-accent); }
html.dark .testi-dots button.on { background: var(--d-accent); }

html.dark .cta-band { background: var(--brown); }

/* inner pages */
html.dark .page-hero { background: radial-gradient(600px 300px at 50% 0%, rgba(200,149,95,.16), transparent 70%), var(--d-alt); border-bottom: 1px solid var(--d-line); }
html.dark .page-hero .crumb { color: var(--d-accent); }
html.dark .page-hero .crumb a { color: var(--d-muted); }
html.dark .tick-list li { color: var(--d-text); }
html.dark .tick-list li::before { background: var(--d-accent); }
html.dark .b-date { color: var(--d-accent); }
html.dark .b-link { color: var(--d-head); border-bottom-color: var(--d-accent); }
html.dark .b-link:hover { color: var(--d-accent); }
html.dark .g-item .g-cap { background: rgba(23,13,7,.82); }

html.dark .c-info { background: var(--d-deep); border: 1px solid var(--d-line); }
html.dark .c-info > p { color: var(--d-muted); }
html.dark .c-line .ci { border-color: var(--d-accent); color: var(--d-accent); }
html.dark .c-line b { color: var(--d-accent); }
html.dark .field label { color: var(--d-head); }
html.dark .field input, html.dark .field textarea, html.dark .field select {
  background: var(--d-bg); border-color: var(--d-line); color: var(--d-text);
}
html.dark .field input::placeholder, html.dark .field textarea::placeholder { color: #8a7766; }
html.dark .field input:focus, html.dark .field textarea:focus, html.dark .field select:focus { border-color: var(--d-accent); }

/* footer */
html.dark footer.site-footer { background: var(--d-deep); color: var(--d-muted); border-top: 1px solid var(--d-line); }
html.dark .footer-inner ul li svg, html.dark .footer-bar a { color: var(--d-accent); }
html.dark .footer-inner .logo-bean ellipse { fill: var(--d-accent); }
html.dark .footer-inner .logo-bean path { stroke: var(--d-deep); }
html.dark .footer-bar { border-top-color: var(--d-line); }
html.dark .socials a { border-color: var(--d-line); }
html.dark .socials a:hover { background: var(--d-accent); border-color: var(--d-accent); color: var(--d-deep); }

html.dark #toTop { background: var(--d-accent); color: var(--d-deep); }
html.dark #toTop:hover { background: var(--d-head); }

@media (max-width: 700px) {
  html.dark nav.menu { background: var(--d-alt); }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--black);
  transition: border-color .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--brown); color: var(--brown); }
.theme-toggle .sun { display: none; }
html.dark .theme-toggle { border-color: var(--d-line); color: var(--d-text); }
html.dark .theme-toggle:hover { border-color: var(--d-accent); color: var(--d-accent); }
html.dark .theme-toggle .sun { display: block; }
html.dark .theme-toggle .moon { display: none; }

/* ============================================================
   Company content: what we do, milestones, FAQ, product groups
   ============================================================ */
.two-way { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.way-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 36px 34px; border-top: 3px solid var(--brown); }
.way-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.way-head .vc-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--brown); color: var(--brown); border-radius: 4px; }
.way-year { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.way-head h3 { font-size: 1.45rem; }
.way-card > p { color: var(--muted); margin-bottom: 18px; }
.way-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.way-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; }
.way-list li svg { color: var(--brown); }
.connects { text-align: center; max-width: 760px; margin: 44px auto 0; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--text); }
.connects b { color: var(--brown); }

.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); }
.ms { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; }
.ms-year { display: inline-block; font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); background: var(--brown); padding: 4px 16px; border-radius: 4px; margin-bottom: 14px; }
.ms h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ms p { color: var(--muted); font-size: .95rem; }

.vision { align-items: stretch; }
.stats-col { grid-template-columns: 1fr; gap: 26px; align-content: center; }
.stats-col .stat + .stat { border-left: none; border-top: 1px solid #333; padding-top: 24px; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 6px; background: var(--white); transition: border-color .3s; }
.faq-item[open] { border-color: var(--brown); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 700; color: var(--black); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--brown); transition: transform .3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

.group-title { font-size: 1.35rem; margin: 10px 0 20px; padding-left: 14px; border-left: 3px solid var(--brown); }
.group-title ~ .cards-3 { margin-bottom: 40px; }
.more-origins { display: flex; align-items: center; border-style: dashed; }
.more-origins .vc-icon { color: var(--brown); margin-bottom: 14px; }
.more-origins p { margin-bottom: 6px; }

/* dark mode for the above */
html.dark .way-card, html.dark .ms, html.dark .faq-item { background: var(--d-surface); border-color: var(--d-line); }
html.dark .way-card { border-top-color: var(--d-accent); }
html.dark .way-head .vc-icon { border-color: var(--d-accent); color: var(--d-accent); }
html.dark .way-year, html.dark .way-list li svg, html.dark .connects b, html.dark .more-origins .vc-icon { color: var(--d-accent); }
html.dark .way-card > p, html.dark .ms p, html.dark .faq-item p { color: var(--d-muted); }
html.dark .way-list li { border-color: var(--d-line); }
html.dark .connects { color: var(--d-text); }
html.dark .milestones::before { background: var(--d-line); }
html.dark .ms-year { background: var(--d-accent); color: var(--d-deep); }
html.dark .faq-item[open] { border-color: var(--d-accent); }
html.dark .faq-item summary { color: var(--d-head); }
html.dark .faq-plus::before, html.dark .faq-plus::after { background: var(--d-accent); }
html.dark .group-title { border-left-color: var(--d-accent); }
html.dark .stats-col .stat + .stat { border-top-color: var(--d-line); }

@media (max-width: 1024px) {
  .two-way { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; }
  .milestones::before { display: none; }
}
@media (max-width: 560px) {
  .way-list { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE OPTIMIZATION
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, iframe { max-width: 100%; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > * { min-width: 0; }
  .hero-art { width: 100%; max-width: 480px; margin: 30px auto 0; }
  .split, .contact-grid, .two-way { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  /* header */
  header.site-nav, header.site-nav.scrolled { padding: 12px 18px; }
  .logo { font-size: 1.25rem; letter-spacing: .16em; gap: 8px; }
  .logo .logo-bean { width: 20px; height: 20px; }
  nav.menu { padding: 84px 24px 28px; gap: 18px; align-items: flex-start; }
  nav.menu a.nav-link { font-size: 1.05rem; }
  nav.menu .btn { width: 100%; justify-content: center; }

  /* sections */
  section { padding: 56px 18px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: 1.7rem; }
  .eyebrow { letter-spacing: .16em; font-size: .68rem; line-height: 1.6; }

  /* hero */
  .hero { min-height: auto; padding: 100px 18px 50px; gap: 10px; text-align: center; }
  .hero h1 { font-size: 2.15rem; line-height: 1.15; }
  .hero p.lead { font-size: 1rem; margin: 18px auto 26px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .hero-art { height: 400px; max-width: 340px; }
  .hero-art .arch { width: 230px; height: 350px; right: 0; border-radius: 115px 115px 6px 6px; }
  .hero-art .arch::after { border-radius: 105px 105px 4px 4px; }
  .hero-art .cup-shot { width: 130px; height: 130px; left: 0; bottom: 0; border-width: 6px; }
  .hero-art .seal { width: 92px; height: 92px; left: 4px; top: 6px; }
  .hero-art .seal-bean { width: 26px; height: 26px; }
  .hero-art .dots-bg { width: 140px; height: 140px; top: 20px; }
  .hero-art .origin-tag, .h-bean { display: none; }

  /* buttons */
  .btn { padding: 14px 22px; font-size: .8rem; letter-spacing: .1em; }

  /* cards */
  .value-card, .way-card, .ms, .c-form, .c-info { padding: 26px 20px; }
  .p-media { height: 200px; }
  .p-body, .b-body { padding: 20px; }
  .way-head h3 { font-size: 1.25rem; }
  .way-list { grid-template-columns: 1fr; }
  .connects { font-size: 1.05rem; margin-top: 30px; }

  /* stats */
  .stats-band { padding: 36px 20px; }
  .stat .num { font-size: 2.4rem; }

  /* timeline */
  .timeline { gap: 26px; }

  /* testimonials */
  .testi { padding: 32px 20px; }
  .testi p { font-size: 1rem; }

  /* CTA */
  .cta-band { padding: 44px 20px; }
  .cta-band h2 { font-size: 1.6rem; }

  /* inner pages */
  .page-hero { padding: 110px 18px 50px; }
  .page-hero h1 { font-size: 2rem; }
  .split { gap: 40px; }
  .split h2 { font-size: 1.7rem; }
  .img-stack .main-img img { height: 300px; }
  .img-stack .tag-exp { right: 10px; bottom: -18px; padding: 14px 18px; }
  .group-title { font-size: 1.2rem; }
  .faq-item summary { font-size: 1rem; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 18px; }
  .g-item img { height: 240px; }
  .g-item .g-cap { transform: none; }
  .form-row { gap: 0; }
  .contact-grid + section iframe, iframe { height: 300px; }

  /* footer */
  .footer-inner { padding: 50px 18px 30px; gap: 28px; }
  .footer-bar { padding: 18px; font-size: .8rem; }

  #toTop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* Pulses exports section */
.pulses-banner { position: relative; max-width: 1000px; margin: 0 auto 32px; height: 260px; border-radius: 6px; overflow: hidden; background: var(--brown-dark); }
.pulses-banner img { width: 100%; height: 100%; object-fit: cover; }
.pulses-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,24,12,.75), rgba(40,24,12,.1) 65%); }
.pulses-banner span { position: absolute; left: 32px; bottom: 28px; z-index: 2; color: #fff; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; }
.pulses-grid { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin: 0 auto; }
@media (max-width: 700px) {
  .pulses-banner { height: 180px; margin-bottom: 24px; }
  .pulses-banner span { left: 20px; bottom: 18px; font-size: 1.5rem; }
  .pulses-grid { grid-template-columns: 1fr; }
}
