/* ==========================================================================
   KasKo Pupuk Organik | berkahtanilestari.com
   Dark regenerative aesthetic · Inter Tight / Inter / IBM Plex Mono
   ========================================================================== */

:root {
  --bg: #0a0e0a;
  --bg-raised: #10150f;
  --bg-panel: #141a12;
  --line: rgba(242, 240, 230, 0.12);
  --text: #f2f0e6;
  --text-muted: #a8b09d;
  --green: #5ea54b;
  --green-deep: #2e5c26;
  --gold: #cfa54e;
  --gold-soft: #e0c284;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-nav: 50;
  --z-overlay: 40;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(5rem, 12vw, 10rem); }

/* Typographic utilities ---------------------------------------------------- */

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.accent { color: var(--gold-soft); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.display .d-line { display: block; }
.display .d-line--indent { padding-left: clamp(2rem, 12vw, 11rem); }
.display .d-line--center { text-align: center; }
.display--center { text-align: center; }

/* Staggered lockup: middle line centered, top nudged left, bottom nudged right */
.display--staggered { text-align: center; }
.display--staggered .d-line--off-left { transform: translateX(clamp(-9rem, -10vw, -2rem)); }
.display--staggered .d-line--off-right { transform: translateX(clamp(2rem, 11vw, 10rem)); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}

.btn--solid {
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
}
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: default;
}

.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold-soft);
}
.btn--outline:hover { background: var(--gold); color: var(--bg); }

/* Focus visibility --------------------------------------------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Grain overlay ------------------------------------------------------------ */

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 14, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* While the mobile menu is open the overlay provides the backdrop, so the
   header bar must not paint its own (it would show as a seam at the top). */
.site-header.nav-open,
.site-header.nav-open.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-sep { margin-inline: 0.5rem; color: var(--green); font-weight: 400; }
.brand-sub { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-muted); }

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.6rem 0;
  position: relative;
  transition: color 200ms var(--ease-out);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0.35rem;
  height: 1px;
  background: var(--gold);
  transition: right 300ms var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  min-width: 44px;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--text); color: var(--bg); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 200ms var(--ease-out);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 300ms var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Static fallback while the silk canvas boots (and for reduced motion / no JS) */
  background:
    radial-gradient(90% 70% at 75% 20%, rgba(46, 92, 38, 0.4), transparent 65%),
    radial-gradient(70% 60% at 15% 85%, rgba(207, 165, 78, 0.12), transparent 65%),
    var(--bg);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.hero-orb--green {
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(46, 92, 38, 0.75), transparent 65%);
  top: -18%; right: -12%;
}
.hero-orb--gold {
  width: 42vw; height: 42vw;
  max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(207, 165, 78, 0.28), transparent 65%);
  bottom: -8%; left: -10%;
  animation-delay: -6s;
}
.hero-orb--deep {
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(94, 165, 75, 0.22), transparent 65%);
  top: 30%; left: 28%;
  animation-delay: -11s;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vw, 0) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  opacity: 0;
  animation: fade-up 900ms var(--ease-out) 300ms forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: line-rise 1100ms var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 420ms; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 540ms; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 660ms; }
.hero-title .line:nth-child(4) .line-inner { animation-delay: 780ms; }

@keyframes line-rise { to { transform: translateY(0); } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-card {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4.5rem, 10vh, 7rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 300px;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 21, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  animation: fade-up 900ms var(--ease-out) 1100ms forwards;
  transition: border-color 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.hero-card:hover { border-color: var(--gold); background: rgba(16, 21, 15, 0.8); }
.hero-card-label { color: var(--gold); }
.hero-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 200ms var(--ease-out);
}
.hero-card:hover .hero-card-link { color: var(--gold-soft); }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 900ms var(--ease-out) 1400ms forwards;
}
.hero-scroll-line {
  width: 56px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scroll-sweep 2.2s ease-in-out infinite;
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ==========================================================================
   Mission
   ========================================================================== */

.mission { border-top: 1px solid var(--line); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.mission-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  min-height: 130svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-heading { position: relative; z-index: 1; }

.gallery-cta { margin-top: clamp(2rem, 5vw, 3.5rem); text-align: center; }

.gallery-tiles { position: absolute; inset: 0; }

.tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  will-change: transform;
  overflow: hidden;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.08), rgba(10, 14, 10, 0.35));
  pointer-events: none;
}

.tile-1 { width: 13vw; min-width: 110px; aspect-ratio: 3/4;  top: 8%;  left: 6%;  background: linear-gradient(160deg, #1c2818, #0e130c); }
.tile-2 { width: 10vw; min-width: 90px;  aspect-ratio: 1;    top: 16%; right: 10%; background: linear-gradient(200deg, #24301c, #101508); }
.tile-3 { width: 15vw; min-width: 120px; aspect-ratio: 4/3;  top: 38%; left: 14%; background: linear-gradient(140deg, #2a2414, #14100a); }
.tile-4 { width: 11vw; min-width: 95px;  aspect-ratio: 3/4;  bottom: 26%; right: 6%; background: linear-gradient(180deg, #1a2415, #0c110a); }
.tile-5 { width: 9vw;  min-width: 80px;  aspect-ratio: 1;    top: 6%;  left: 42%; background: linear-gradient(120deg, #223020, #0d120b); }
.tile-6 { width: 13vw; min-width: 105px; aspect-ratio: 4/5;  bottom: 8%; left: 22%; background: linear-gradient(150deg, #262c16, #11130a); }
.tile-7 { width: 10vw; min-width: 85px;  aspect-ratio: 4/3;  bottom: 14%; right: 26%; background: linear-gradient(170deg, #1e2a1a, #0e120b); }
.tile-8 { width: 8vw;  min-width: 75px;  aspect-ratio: 1;    top: 44%; right: 18%; background: linear-gradient(190deg, #2c2612, #131009); }

/* ==========================================================================
   Story
   ========================================================================== */

.story { background: var(--bg-raised); border-block: 1px solid var(--line); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.story-head { position: sticky; top: 7rem; }
.story-head .eyebrow { margin-bottom: 1.2rem; }

.story-body p { color: var(--text-muted); max-width: 62ch; }
.story-body > p + p, .story-body > blockquote { margin-top: 1.6rem; }
.story-body > blockquote + p { margin-top: 2.4rem; }

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem clamp(1.2rem, 3vw, 2rem);
  margin-block: 2.4rem;
}
.pull-quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 24ch;
}

/* ==========================================================================
   Impact
   ========================================================================== */

.impact { overflow: hidden; }

.impact-bg {
  position: absolute;
  inset: 0;
}
.impact-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.impact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.82), rgba(10, 14, 10, 0.6) 50%, rgba(10, 14, 10, 0.85));
}

.impact .container { position: relative; z-index: 1; }

.impact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.impact-note { color: var(--text-muted); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.impact-item {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  transition: border-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.impact-item:hover { border-color: rgba(207, 165, 78, 0.5); }

.impact-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.impact-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Products
   ========================================================================== */

.products { background: var(--bg-raised); border-top: 1px solid var(--line); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color 250ms var(--ease-out);
}
.product-card:hover { border-color: rgba(207, 165, 78, 0.5); }

.product-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-info { padding: clamp(1.3rem, 2.5vw, 1.8rem); }
.product-tag { color: var(--gold); margin-bottom: 0.6rem; }
.product-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.product-info p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Gallery page
   ========================================================================== */

.page-hero {
  padding-top: clamp(8rem, 16vw, 12rem);
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 1.4rem; }
.page-hero .display, .page-hero .eyebrow, .page-hero-text {
  opacity: 0;
  animation: fade-up 900ms var(--ease-out) forwards;
}
.page-hero .display { animation-delay: 150ms; }
.page-hero-text {
  animation-delay: 350ms;
  color: var(--text-muted);
  max-width: 58ch;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.gallery-page { padding-top: clamp(2.5rem, 5vw, 4rem); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.filter-btn {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.filter-btn:hover { color: var(--text); border-color: var(--text-muted); }
.filter-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.media-grid {
  columns: 3;
  column-gap: 1.2rem;
}

.media-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-panel);
  animation: fade-up 500ms var(--ease-out);
}
.media-item.is-hidden { display: none; }

.media-item img, .media-item video { width: 100%; height: auto; }
.media-item a { display: block; cursor: zoom-in; }
.media-item img { transition: transform 500ms var(--ease-out); }
.media-item a:hover img { transform: scale(1.03); }

.media-item figcaption {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 10, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-soft);
  font-size: 0.58rem;
  pointer-events: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 7, 0.95);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(90vw, 1400px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  animation: fade-up 350ms var(--ease-out);
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 21, 15, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); color: var(--gold-soft); }

.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta { overflow: hidden; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg .hero-orb--green { top: auto; bottom: -40%; right: 20%; opacity: 0.4; }

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}

.cta-text { color: var(--text-muted); max-width: 46ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: #070a07;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 1.4rem;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }

.footer-desc { color: var(--text-muted); font-size: 0.92rem; max-width: 38ch; }

.footer-col h4 { color: var(--gold); margin-bottom: 1.2rem; font-weight: 500; }

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: normal;
  margin-bottom: 0.85rem;
  transition: color 200ms var(--ease-out);
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-col address { font-style: normal; }
.footer-powered { color: var(--text); margin-top: 1.4rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.footer-bottom .mono { color: var(--text-muted); font-size: 0.62rem; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ==========================================================================
   Footer reveal (brand panel that slides up + zooms out under the footer)
   ========================================================================== */

.footer-reveal {
  height: 160svh;
  background: #070a07;
}

.footer-reveal-sticky {
  position: sticky;
  top: 20svh;
  height: 80svh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.footer-reveal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.3 - var(--progress, 0) * 0.3));
  will-change: transform;
}

.footer-reveal-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 7, 0.45), rgba(7, 10, 7, 0.15) 40%, rgba(7, 10, 7, 0.35));
  pointer-events: none;
}

.footer-reveal-brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  pointer-events: none;
}
.footer-reveal-brand img {
  width: clamp(72px, 12vw, 150px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(7, 10, 7, 0.5));
}
.footer-reveal-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 6px 32px rgba(7, 10, 7, 0.55);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 120ms; }
[data-delay="2"] { transition-delay: 240ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 6rem var(--gutter);
    background: rgba(7, 10, 7, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease-out), visibility 300ms;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .nav-burger { display: flex; position: relative; z-index: calc(var(--z-nav) + 1); }
  .brand { position: relative; z-index: calc(var(--z-nav) + 1); }
  .brand-sub, .brand-sep { display: none; }

  .mission-grid, .story-grid { grid-template-columns: 1fr; }
  .story-head { position: static; }
  .impact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .media-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-card { position: relative; right: auto; bottom: auto; margin: 3rem var(--gutter) 0; max-width: none; }
  .hero { padding-bottom: 6rem; }
  .hero-scroll { bottom: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .display .d-line--indent { padding-left: 12vw; }
  .media-grid { columns: 1; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line-inner { transform: none; }
  .hero-eyebrow, .hero-card, .hero-scroll { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .footer-reveal-img { transform: none; }
}
