/* BUMDES Ngadhamana — Design System (Apple enterprise-grade) */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #1d6f42;
  --accent-strong: #175a36;
  --accent-soft: #e8f3ed;
  --danger: #e0342c;
  --warn: #b45309;
  --ok: #1d6f42;
  --dark: #1d1d1f;
  --dark-2: #000000;
  --dark-3: #2a2a2d;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.06), 0 28px 60px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 24px rgba(29, 111, 66, 0.28);
  --container: 1120px;
  --container-wide: 1280px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(29, 111, 66, 0.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 3000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-s);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 48px, var(--container-wide));
}

/* ——— Loading ——— */
.loading {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: var(--dark);
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--on-dark);
}

.loading__logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-accent);
}

.loading__bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loading__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: load-slide 0.9s var(--ease-out) infinite;
}

@keyframes load-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ——— Nav ——— */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.header.is-scrolled {
  background: rgba(251, 251, 253, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header--on-dark {
  background: rgba(0, 0, 0, 0.28);
}

.header--on-dark.is-scrolled {
  background: rgba(251, 251, 253, 0.88);
  border-bottom-color: var(--line);
}

.nav-primary {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent) 0%, #14532d 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(29, 111, 66, 0.3);
}

.logo-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
  text-transform: uppercase;
}

.logo-text p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.3;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background 0.25s var(--ease-out), color 0.25s;
}

.nav-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.nav-menu a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29, 111, 66, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224, 52, 44, 0.35);
}

.btn-danger:hover {
  background: rgba(224, 52, 44, 0.08);
  color: var(--danger);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 88px;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.06);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(29, 111, 66, 0.25), transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.hero h1 {
  font-size: clamp(44px, 8.2vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  animation: scroll-pulse 1.8s var(--ease-out) infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ——— Section shared ——— */
.section {
  padding: 120px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-subtitle {
  color: var(--on-dark-2);
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section--dark .section-kicker {
  color: #34d399;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.section-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin-top: 18px;
  text-wrap: pretty;
}

.section-head {
  margin-bottom: 64px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-subtitle {
  margin-inline: auto;
}

/* ——— Scrollytelling story ——— */
.story {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding: 0;
}

.story__intro {
  padding: 120px 0 40px;
  max-width: 720px;
}

.story__intro .section-title {
  color: #fff;
}

.story__intro .section-subtitle {
  color: var(--on-dark-2);
}

.story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 120px;
}

.story__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story__step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  opacity: 0.28;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.story__step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 18px;
}

.story__step h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}

.story__step p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 440px;
}

.story__step-mobile-img {
  display: none;
  margin-top: 28px;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.story__step-mobile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__media {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  height: calc(100vh - var(--nav-h) - 64px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark-3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.story__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out);
}

.story__frame.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.story__progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.story__progress span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.story__progress span.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #34d399;
  animation: progress-fill 0.7s var(--ease-out) forwards;
}

@keyframes progress-fill {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* ——— Features ——— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-card {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature-card:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 40px;
  margin-right: 40px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px) scale(1.05);
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.feature-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ——— Stats ——— */
.stats-section {
  padding: 88px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: left;
  padding-right: 16px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-item h3 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ——— Horizontal parallax ——— */
.hpar {
  position: relative;
  background: var(--bg);
}

.hpar__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hpar__head {
  width: min(100% - 48px, var(--container-wide));
  margin: 0 auto 36px;
}

.hpar__viewport {
  overflow: hidden;
  width: 100%;
}

.hpar__track {
  display: flex;
  gap: 28px;
  padding-left: max(24px, calc((100vw - var(--container-wide)) / 2));
  padding-right: 24px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hpar__card {
  position: relative;
  flex: 0 0 min(72vw, 420px);
  height: min(58vh, 520px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-1);
}

.hpar__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.hpar__card:hover img {
  transform: scale(1.05);
}

.hpar__card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}

.hpar__card-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hpar__card-body p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.hpar__hint {
  width: min(100% - 48px, var(--container-wide));
  margin: 28px auto 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ——— Product showcase (index) ——— */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image .product-emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
}

.product-content {
  padding: 22px 24px 26px;
}

.product-category {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: var(--r-xs);
  margin-bottom: 12px;
}

.product-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.product-description {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ——— CTA ——— */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(0.85);
}

.cta-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.75), rgba(0, 0, 0, 0.88));
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #fff;
}

.cta-section p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  text-wrap: pretty;
}

.cta-section .hero-buttons {
  justify-content: center;
}

/* ——— Contact ——— */
.contact {
  padding: 120px 0;
  background: var(--bg-alt);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

.contact-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--ink);
}

.contact-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ——— Footer ——— */
.footer {
  background: var(--dark-2);
  color: var(--on-dark-2);
  padding: 48px 0 40px;
  font-size: 13.5px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--on-dark-2);
  font-size: 13.5px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  width: 100%;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
}

/* ——— Reveal on scroll ——— */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .story__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story__media {
    display: none;
  }

  .story__step {
    min-height: 0;
    opacity: 1;
    transform: none;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .story__step-mobile-img {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:not(:last-child) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .feature-card {
    padding: 32px 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-bottom: 64px;
    align-items: center;
  }

  .hero__scroll {
    display: none;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hpar__card {
    flex-basis: min(82vw, 340px);
    height: min(52vh, 420px);
  }

  .container,
  .container--wide {
    width: min(100% - 32px, var(--container));
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none !important;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .story__step {
    opacity: 1;
    transform: none;
  }
}
