:root {
  --bg:         #EDEEE8;
  --bg-dark:    #1C2B22;
  --green-deep: #243B2E;
  --green-mid:  #3D6B4F;
  --green-sage: #7BA490;
  --green-mist: #C2D4C9;
  --ghost:      rgba(195, 220, 205, 0.18);
  --text:       #1C2B22;
  --text-light: #4A6257;
  --accent:     #5A9E70;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Grain overlay ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(237, 238, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 158, 112, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  text-decoration: none;
}

.nav-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  margin-right: 0.55rem;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* ── Hero logo wrapper ──────────────────────── */
.hero-logo-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  margin-bottom: 1.5rem;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: saturate(0.88) brightness(1.03) contrast(0.96);
  -webkit-mask-image: radial-gradient(
    ellipse 64% 76% at 50% 42%,
    black             0%,
    black             30%,
    rgba(0,0,0,0.85)  50%,
    rgba(0,0,0,0.25)  65%,
    transparent       76%
  );
  mask-image: radial-gradient(
    ellipse 64% 76% at 50% 42%,
    black             0%,
    black             30%,
    rgba(0,0,0,0.85)  50%,
    rgba(0,0,0,0.25)  65%,
    transparent       76%
  );
}

/* ── HERO ───────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* Mist circles */
.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.mist-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(122,164,144,0.22) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  animation: drift 12s ease-in-out infinite alternate;
}

.mist-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(90,158,112,0.12) 0%, transparent 70%);
  bottom: 50px; left: 10%;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}

.mist-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(195,220,205,0.2) 0%, transparent 70%);
  bottom: 100px; right: 8%;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-30px) translateX(15px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--green-deep);
  position: relative;
  z-index: 2;
  margin-bottom: 0.2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 1.5rem;
  max-width: 520px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--bg);
  padding: 0.85rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  padding: 0.85rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--green-mid);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover { background: var(--green-mid); color: var(--bg); transform: translateY(-2px); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: var(--green-sage);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-sage), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── SECTION COMMONS ────────────────────────── */
section { padding: 6rem 3rem; }

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--green-sage);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--green-deep);
}

/* ── PRODUCTS ───────────────────────────────── */
#products-section {
  padding: 0;
}

#products {
  background: var(--green-deep);
  color: var(--bg);
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

#products::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(90,158,112,0.12) 0%, transparent 65%);
  pointer-events: none;
}

#products .section-label { color: var(--green-sage); }
#products .section-label::before { background: var(--green-sage); }
#products .section-title { color: var(--bg); }

.products-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(122,164,144,0.2);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.product-card:hover { background: rgba(122,164,144,0.08); }

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-sage), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover::after { transform: scaleX(1); }

.product-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: #E8F0EA;
  margin-bottom: 0.5rem;
}

.product-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1.2rem;
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(232,240,234,0.65);
  margin-bottom: 2rem;
}

.product-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-sage);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s, gap 0.3s;
}

.product-link:hover { color: #E8F0EA; gap: 0.85rem; }
.product-link::after { content: '\2192'; }

/* Circuit decoration on product cards */
.circuit-decor {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  opacity: 0.12;
}

/* ── ABOUT ──────────────────────────────────── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#about-section { padding: 6rem 3rem; }

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-tree-ring {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(90,158,112,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-tree-ring::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(90,158,112,0.12);
}

.about-ghost-glow {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(122,164,144,0.3) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.9;
  color: var(--text-light);
  margin: 1.5rem 0 2.5rem;
}

.about-text strong {
  font-style: normal;
  font-weight: 600;
  color: var(--green-deep);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-stat {
  border-left: 2px solid var(--green-mist);
  padding-left: 1rem;
}

.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--green-mid);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* ── CONTACT ────────────────────────────────── */
#contact-section {
  background: var(--bg);
  padding: 6rem 3rem;
  border-top: 1px solid rgba(90,158,112,0.15);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-label { justify-content: center; }
.contact-inner .section-label::before { display: none; }

.contact-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin: 1.2rem 0 2.5rem;
  line-height: 1.8;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: 1px solid rgba(90,158,112,0.3);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--green-mid);
}

.form-field textarea { min-height: 140px; }

.contact-form .btn-primary {
  align-self: center;
  margin-top: 0.5rem;
}

/* ── DIVIDER ────────────────────────────────── */
.tree-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
  opacity: 0.3;
}

.tree-divider::before, .tree-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--green-mid);
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(232,240,234,0.5);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,240,234,0.7);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(232,240,234,0.4);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--green-sage); }

/* ── ANIMATIONS on scroll ───────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; gap: 1rem; }
  .nav-brand { font-size: 0.9rem; letter-spacing: 0.1em; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.08em; }
  section { padding: 5rem 1.5rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
