/* ==========================================================================
   PAPLIS Shared Stylesheet
   Kraft-brown / forest-green sustainability-forward theme
   ========================================================================== */

:root {
  --kraft: #b8865a;
  --kraft-dark: #8a5f3a;
  --kraft-darker: #6e4a2c;
  --kraft-light: #ddb98d;
  --kraft-tint: #f1e0c9;

  --forest: #1f3b2c;
  --forest-light: #2f5c41;
  --forest-lighter: #3f7a56;

  --cream: #f8f3e9;
  --cream-alt: #f1ead9;
  --white: #ffffff;

  --sage: #a9bfa0;
  --sage-light: #e3ebdf;
  --sage-dark: #7c9473;

  --ink: #2a241d;
  --ink-soft: #5a5148;
  --border: #e4d9c4;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(42, 36, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 36, 29, 0.1);
  --shadow-lg: 0 16px 40px rgba(42, 36, 29, 0.14);

  --container: 1180px;

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.page-loader-video {
  width: 200px;
  height: 200px;
  max-width: 40vw;
  max-height: 40vw;
  object-fit: contain;
}
.page-loader-logo {
  height: clamp(48px, 8vw, 72px);
  width: auto;
  animation: page-loader-pulse 1.8s ease-in-out infinite;
}

@keyframes page-loader-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.page-loader-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.page-loader-tagline span {
  opacity: 0;
  transform: translateY(10px);
  animation: page-loader-reveal 0.7s ease forwards;
}
.page-loader-tagline span:nth-child(1) { animation-delay: 0.15s; }
.page-loader-tagline span:nth-child(2) { animation-delay: 0.45s; }
.page-loader-tagline span:nth-child(3) { animation-delay: 0.75s; }
.page-loader-tagline .is-accent {
  color: var(--kraft-dark);
  font-style: italic;
}

@keyframes page-loader-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-logo,
  .page-loader-tagline span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Grid items default to a min-width based on their content's min-content size,
   which lets a wide image or long word force the whole row (and page) wider
   than the viewport. min-width: 0 lets tracks shrink to the container instead. */
.hero-grid,
.card-grid,
.industry-grid,
.process-flow,
.leader-grid,
.footer-grid,
.stats-strip,
.split,
.contact-grid,
.gallery-grid,
.advantage-grid {
  min-width: 0;
}
.hero-grid > *,
.card-grid > *,
.industry-grid > *,
.process-flow > *,
.leader-grid > *,
.footer-grid > *,
.stats-strip > *,
.split > *,
.contact-grid > *,
.gallery-grid > *,
.advantage-grid > * {
  min-width: 0;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

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

.section-forest {
  background: var(--forest);
  color: var(--cream);
}
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: rgba(248, 243, 233, 0.8); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kraft-dark);
  background: var(--kraft-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-forest .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--kraft-light);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before {
  left: 130%;
}
.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

.section-forest .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.section-forest .btn-outline:hover {
  background: var(--white);
  color: var(--forest);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--kraft);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--forest);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.15s ease;
}
.nav-toggle:hover {
  background: var(--kraft-tint);
}
.nav-toggle:active {
  transform: scale(0.92);
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--forest);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease 0.1s, width 0.3s ease, background 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.site-header.open .nav-toggle span {
  background: var(--kraft-dark);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease, width 0.3s ease, background 0.3s ease;
}
.site-header.open .nav-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.site-header.open .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.site-header.open .nav-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
  .nav-links,
  .nav-links a,
  .nav-links::before {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

/* Ambient drifting background blobs, echoing the footer's blurred corner
   glows so the hero doesn't read as flat next to it. Kept behind
   .hero .container via stacking context + z-index. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}
.hero::before {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -140px;
  background: rgba(184, 134, 90, 0.35);
  animation: hero-blob-drift-a 22s ease-in-out infinite alternate;
}
.hero::after {
  width: 520px;
  height: 520px;
  top: -200px;
  right: -160px;
  background: rgba(63, 122, 86, 0.3);
  animation: hero-blob-drift-b 26s ease-in-out infinite alternate;
}
.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes hero-blob-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 34px) scale(1.1); }
}
@keyframes hero-blob-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-36px, -44px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}

.hero-copy-center {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.hero-copy-center .hero-actions {
  justify-content: center;
}

.hero-copy-center .hero-note {
  margin: 0 auto;
  text-align: left;
  max-width: 520px;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  margin: 20px 0 30px;
  max-width: 520px;
}

.hero-copy-center p.lead {
  max-width: 100%;
}

.hero-title-swipe {
  position: relative;
  display: block;
}
.hero-title-line {
  display: block;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.hero-title-line:not(.is-active) {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-title-line.is-waiting { transform: translateY(20px); }
.hero-title-line.is-leaving { transform: translateY(-20px); }
.hero-title-line.is-active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-line { transition: none; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--kraft);
  padding-left: 12px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21 / 9;
  margin-bottom: 56px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.hero-media:hover img {
  transform: scale(1.04);
}

.card-media,
.split-media,
.leader-photo,
.carousel-card-media {
  position: relative;
}

/* Light scrim behind the badge so it stays legible over full-color photography */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0) 32%);
}
.hero-media-badge {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  width: max-content;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 16px 22px;
}
.hero-media-badge strong {
  display: block;
  font-family: var(--font-head);
  color: var(--forest);
  font-size: 1.1rem;
}
.hero-media-badge span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.media-banner {
  margin-top: 48px;
  margin-bottom: 0;
}

/* ---------- Promo banner ---------- */
.promo-banner {
  position: relative;
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.promo-banner:hover img {
  transform: scale(1.04);
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(31, 59, 44, 0.9) 0%, rgba(31, 59, 44, 0.6) 42%, rgba(31, 59, 44, 0.15) 100%);
}
.promo-banner-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 560px;
}
.promo-banner-content .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--kraft-light);
}
.promo-banner-content h2 {
  color: var(--white);
}
.promo-banner-content p {
  color: rgba(248, 243, 233, 0.85);
  margin: 14px 0 26px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease;
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-caption {
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(-4px);
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(20, 16, 12, 0.78) 0%, rgba(20, 16, 12, 0) 100%);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stat-card {
  position: relative;
  padding: 32px 26px;
  text-align: left;
  border-right: 1px solid var(--border);
  transition: background 0.3s ease;
}
.stat-card:last-child {
  border-right: none;
}
.stat-card:hover {
  background: var(--kraft-tint);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--kraft-tint);
  color: var(--kraft-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease, color 0.3s ease;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
}
.stat-card:hover .stat-icon {
  background: var(--forest);
  color: var(--white);
  transform: scale(1.1) rotate(-6deg);
}

.stat-card .stat-number {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--forest);
  font-weight: 700;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--kraft-light);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.card:hover .card-media img {
  transform: scale(1.08);
}

.card-body {
  padding: 22px 22px 26px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.93rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tag:hover {
  background: var(--sage-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Industry photo cards ---------- */
.industry-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-photo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.35s ease;
}
.industry-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.industry-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.industry-photo-card:hover img {
  transform: scale(1.08);
}

.industry-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 16, 12, 0.88) 0%, rgba(20, 16, 12, 0.35) 46%, rgba(20, 16, 12, 0.05) 68%, rgba(20, 16, 12, 0.3) 100%);
  pointer-events: none;
}

.industry-photo-icon {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--kraft-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease, color 0.3s ease;
}
.industry-photo-icon svg { width: 19px; height: 19px; }
.industry-photo-card:hover .industry-photo-icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--forest);
  color: var(--white);
}

.industry-photo-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px;
}
.industry-photo-body h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.industry-photo-body p {
  font-size: 0.8rem;
  color: rgba(248, 243, 233, 0.82);
  margin-top: 5px;
}
.industry-photo-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--kraft-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.industry-photo-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.industry-photo-card:hover .industry-photo-cta {
  opacity: 1;
  transform: translateY(0);
}
.industry-photo-card:hover .industry-photo-cta svg {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .industry-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .industry-photo-grid { grid-template-columns: 1fr; }
  .industry-photo-card { aspect-ratio: 3 / 4; }
}

/* ---------- Process / Timeline ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 44px;
  position: relative;
}
.process-flow::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--kraft-light) 0 10px, transparent 10px 20px);
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.3s ease;
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process-step .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  box-shadow: 0 0 0 5px var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease;
}
.process-step:hover .step-num {
  background: var(--kraft-dark);
  transform: scale(1.1);
}

.process-step h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.82rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child {
  border-bottom: none;
}

.timeline-phase {
  font-family: var(--font-head);
  color: var(--kraft-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.timeline-item h4 {
  margin-bottom: 8px;
}

/* ---------- Leadership ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.leader-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-body {
  padding: 24px;
}

.leader-role {
  color: var(--kraft-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.leader-body p {
  font-size: 0.92rem;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.split-media:hover img {
  transform: scale(1.05);
}

.checklist {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checklist .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Advantage grid (icon feature cards) ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.advantage-item {
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.3s ease, background 0.3s ease;
}
.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--sage-dark);
}
.advantage-item:hover p {
  color: var(--white);
}
.advantage-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--white);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.advantage-icon svg {
  width: 18px;
  height: 18px;
}
.advantage-item:hover .advantage-icon {
  transform: scale(1.1) rotate(-6deg);
}
.advantage-item p {
  font-size: 0.87rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.3s ease;
}

/* ---------- Capability grid (product page capabilities strip) ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.capability-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--kraft-light);
}
.capability-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--kraft-tint);
  color: var(--kraft-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease, color 0.3s ease;
}
.capability-icon svg { width: 21px; height: 21px; }
.capability-card:hover .capability-icon {
  background: var(--forest);
  color: var(--white);
  transform: scale(1.1) rotate(-6deg);
}
.capability-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 8px;
}
.capability-card p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 980px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .capability-grid { grid-template-columns: 1fr; }
}

/* ---------- Investor table ---------- */
.allocation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.allocation-table th,
.allocation-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.allocation-table th {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}

.allocation-table td.amount {
  font-weight: 700;
  color: var(--kraft-dark);
  text-align: right;
}

.allocation-table th:last-child,
.allocation-table td:last-child {
  text-align: right;
}

.allocation-table tr:last-child td {
  border-bottom: none;
  background: var(--kraft-tint);
  font-weight: 700;
}

.disclaimer-box {
  margin-top: 24px;
  background: var(--sage-light);
  border-left: 4px solid var(--sage-dark);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: stretch;
}

.contact-info {
  background: var(--forest);
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.contact-info .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--kraft-light);
}
.contact-info h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.contact-info-lead {
  color: rgba(248, 243, 233, 0.78);
  margin: 14px 0 34px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.contact-info-item:hover {
  transform: translateX(5px);
}

.contact-info-item .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--kraft-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease;
}
.contact-info-item:hover .icon-circle {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(255, 255, 255, 0.2);
}
.contact-info-item .icon-circle svg {
  width: 19px;
  height: 19px;
}

.contact-info-item h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.contact-info-item p {
  font-size: 0.88rem;
  margin: 0;
  color: rgba(248, 243, 233, 0.75);
}
.contact-info-item a:hover {
  color: var(--kraft-light);
}

.contact-info-note {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(248, 243, 233, 0.62);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--kraft);
  box-shadow: 0 0 0 4px rgba(184, 134, 90, 0.16);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { color: var(--forest-light); }
.form-status.error { color: #b3462c; }

.form-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Contact: what happens next ---------- */
.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.contact-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.3s ease;
}
.contact-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.contact-step .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), background 0.3s ease;
}
.contact-step:hover .step-num {
  background: var(--kraft-dark);
  transform: scale(1.1);
}
.contact-step.in-view .step-num {
  animation: contact-step-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.2s;
}

@keyframes contact-step-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-step.in-view .step-num {
    animation: none;
  }
}
.contact-step h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 6px;
}
.contact-step p {
  font-size: 0.88rem;
}

/* ---------- Carousel ---------- */
.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (min-width: 720px) {
  .carousel-slide { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1080px) {
  .carousel-slide { flex: 0 0 calc(33.333% - 16px); }
}

.carousel-card {
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--kraft-light);
}

.carousel-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.carousel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.carousel-card:hover .carousel-card-media img {
  transform: scale(1.08);
}

.carousel-card-body {
  padding: 26px 24px 28px;
}

.carousel-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.carousel-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.carousel-card p {
  font-size: 0.92rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--forest);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.carousel-btn:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}
.carousel-dot:hover {
  background: var(--kraft-light);
  transform: scale(1.2);
}
.carousel-dot.active {
  background: var(--kraft-dark);
  transform: scale(1.3);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--kraft-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--forest);
  transition: background 0.2s ease;
}
.faq-question:hover {
  background: var(--kraft-tint);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kraft-tint);
  color: var(--kraft-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--forest);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 24px 22px;
  font-size: 0.94rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--kraft-tint);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 8px; }

.cta-banner-media {
  position: relative;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.cta-banner-media:hover .cta-banner-bg {
  transform: scale(1.04);
}
.cta-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(241, 224, 201, 0.97) 0%, rgba(241, 224, 201, 0.88) 45%, rgba(241, 224, 201, 0.5) 100%);
}
.cta-banner-media > div,
.cta-banner-media > a {
  position: relative;
  z-index: 2;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #142a1d 0%, var(--forest) 45%, #16321f 100%);
  color: rgba(248, 243, 233, 0.75);
  padding: 90px 0 28px;
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.site-footer::before {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: rgba(184, 134, 90, 0.32);
}
.site-footer::after {
  width: 460px;
  height: 460px;
  bottom: -180px;
  right: -120px;
  background: rgba(63, 122, 86, 0.4);
}
.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 36px 40px 4px;
  margin-bottom: 28px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .footer-glass {
    background: rgba(20, 40, 28, 0.7);
  }
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.footer-newsletter p {
  color: rgba(248, 243, 233, 0.75);
  font-size: 0.9rem;
  max-width: 380px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 240px;
}
.newsletter-form input::placeholder {
  color: rgba(248, 243, 233, 0.5);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--kraft-light);
}

#newsletter-status {
  margin-top: 10px;
  font-size: 0.85rem;
}
#newsletter-status.success { color: var(--kraft-light); }
#newsletter-status.error { color: #e08a6b; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-head);
  color: var(--kraft-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img {
  height: 52px;
  filter: brightness(0) invert(1);
}

.footer-col p {
  color: rgba(248, 243, 233, 0.75);
  font-size: 0.9rem;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-col ul li a:hover {
  color: var(--kraft-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal-links a {
  transition: color 0.15s ease;
}
.footer-legal-links a:hover {
  color: var(--kraft-light);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kraft) 0%, var(--kraft-dark) 100%);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 90;
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(184, 134, 90, 0.55);
  pointer-events: none;
}
.back-to-top.show::before {
  animation: back-to-top-pulse 2.6s ease-out infinite;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-icon {
  display: flex;
  animation: back-to-top-bob 2.2s ease-in-out infinite;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest) 100%);
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-lg);
}
.back-to-top:hover .back-to-top-icon {
  animation-play-state: paused;
}

@keyframes back-to-top-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes back-to-top-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 134, 90, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(184, 134, 90, 0); }
  100% { box-shadow: 0 0 0 12px rgba(184, 134, 90, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-icon,
  .back-to-top.show::before {
    animation: none !important;
  }
}

/* ---------- Product catalog (category blocks) ---------- */
.category-tabs {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 52px;
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(248, 243, 233, 0.9);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.category-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--kraft-light);
  background: var(--white);
}
.category-tab .tab-count {
  background: var(--kraft-tint);
  color: var(--kraft-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.category-block {
  scroll-margin-top: 150px;
}
.category-block + .category-block {
  margin-top: 0;
}
.category-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.category-block-head h2 { margin: 0; }
.category-block-lead {
  max-width: 700px;
  margin: 14px 0 32px;
  font-size: 1.02rem;
}
.category-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.category-divider {
  position: relative;
  height: 1px;
  margin: 56px 0;
  background: linear-gradient(90deg, transparent 0%, var(--border) 18%, var(--border) 82%, transparent 100%);
}
.category-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kraft);
  box-shadow: 0 0 0 5px var(--cream);
}

/* Fixed 3-column catalog grid: a consistent 3-per-row layout regardless
   of category size, so 6 or 8 items always read as tidy, even rows. */
.card-grid-dense {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid-dense .card-media { aspect-ratio: 4 / 3; }
.card-grid-dense .card-body { padding: 18px 20px 22px; }
.card-grid-dense .card-body h3 { font-size: 1.1rem; }
.card-grid-dense .card-body p { font-size: 0.87rem; }
.card-grid-dense .tag-row { gap: 6px; margin-top: 12px; }
.card-grid-dense .tag { font-size: 0.7rem; padding: 4px 10px; }

@media (max-width: 980px) {
  .card-grid-dense { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid-dense { grid-template-columns: 1fr; }
}

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--kraft) 0%, var(--kraft-light) 100%);
  transition: height 0.3s ease;
}
.card-accent.is-speciality {
  background: linear-gradient(90deg, var(--forest) 0%, var(--forest-lighter) 100%);
}

/* ---------- Premium product card hover: pointer-tracked 3D tilt + glare ----------
   Distinct from the button shine-sweep used elsewhere: main.js writes --mx/--my/
   --rx/--ry per-card from live cursor position, so the card tilts toward the
   pointer and a soft glare follows it, instead of a fixed animation loop. */
.card-grid-dense .card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.45s ease, border-color 0.4s ease;
}
.card-grid-dense .card.is-tilting {
  transition: box-shadow 0.45s ease, border-color 0.4s ease;
}
.card-grid-dense .card:hover,
.card-grid-dense .card.is-tilting {
  box-shadow: 0 22px 46px rgba(31, 59, 44, 0.16), 0 0 0 1px rgba(184, 134, 90, 0.22);
  border-color: var(--kraft-light);
}
.card-grid-dense .card:hover .card-accent {
  height: 7px;
  transition: height 0.3s ease;
}

.card-grid-dense .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.5), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.card-grid-dense .card.is-tilting::after {
  opacity: 1;
}

.card-grid-dense .card-media img {
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.card-grid-dense .card:hover .card-media img {
  transform: scale(1.1);
}

.card-grid-dense .card-body h3 {
  transition: color 0.3s ease;
}
.card-grid-dense .card:hover .card-body h3 {
  color: var(--kraft-dark);
}

.card-grid-dense .tag-row .tag {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}
.card-grid-dense .card:hover .tag-row .tag {
  transform: translateY(-3px);
}
.card-grid-dense .card:hover .tag-row .tag:nth-child(1) { transition-delay: 0.02s; }
.card-grid-dense .card:hover .tag-row .tag:nth-child(2) { transition-delay: 0.06s; }
.card-grid-dense .card:hover .tag-row .tag:nth-child(3) { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .card-grid-dense .card,
  .card-grid-dense .card-media img,
  .card-grid-dense .card::after,
  .card-grid-dense .tag-row .tag {
    transition: none !important;
    transform: none !important;
  }
  .card-grid-dense .card::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .category-tabs { position: static; margin: 0 0 40px; }
  .category-divider { margin: 40px 0; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--forest);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(248, 243, 233, 0.82);
}

.page-header-media {
  position: relative;
  overflow: hidden;
  padding: 132px 0 104px;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-header-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 59, 44, 0.92) 0%, rgba(31, 59, 44, 0.78) 55%, rgba(31, 59, 44, 0.94) 100%);
}
.page-header-media .container {
  position: relative;
  z-index: 2;
}
.page-header-media .page-header-bg {
  animation: page-header-zoom 16s ease-in-out infinite alternate;
}

@keyframes page-header-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .page-header-media .page-header-bg {
    animation: none;
  }
}

/* ---------- Entrance animations ---------- */
/* Elements start hidden and are revealed by main.js toggling .in-view
   once they scroll into view. Each data-animate value is a distinct
   entrance style so different section types don't all move the same way. */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-animate].in-view {
  opacity: 1;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
[data-animate="fade-up"].in-view {
  transform: translateY(0);
}

[data-animate="fade-in"] {
  transition: opacity 0.9s ease;
}

[data-animate="scale-in"] {
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16, 0.8, 0.24, 1);
}
[data-animate="scale-in"].in-view {
  transform: scale(1);
}

[data-animate="slide-left"] {
  transform: translateX(-56px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
[data-animate="slide-left"].in-view {
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(56px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
[data-animate="slide-right"].in-view {
  transform: translateX(0);
}

/* clip-path on the observed element itself would permanently zero out its
   IntersectionObserver ratio (it can never be seen as "intersecting" once
   fully clipped), so the reveal is done with a curtain overlay instead. */
[data-animate="clip-reveal"] {
  opacity: 1;
  position: relative;
}
[data-animate="clip-reveal"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--forest);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 1s cubic-bezier(0.16, 0.8, 0.24, 1);
  pointer-events: none;
}
[data-animate="clip-reveal"].in-view::after {
  transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split-media { order: -1; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-bottom: 1px solid var(--border); }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .process-flow::before { display: none; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media-badge { padding: 12px 16px; }
  .hero-media-badge strong { font-size: 1rem; }
  .nav-logo,
  .nav-cta {
    position: relative;
    z-index: 2;
  }
  /* backdrop-filter makes .site-header a containing block for fixed
     descendants, which would clip the full-page menu to header height. */
  .site-header.open {
    backdrop-filter: none;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--forest);
    background-image:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
      linear-gradient(115deg, rgba(0, 0, 0, 0.12) 0%, transparent 10%, rgba(255, 255, 255, 0.05) 22%, transparent 34%, rgba(0, 0, 0, 0.1) 48%, transparent 62%, rgba(255, 255, 255, 0.04) 76%, transparent 88%, rgba(0, 0, 0, 0.08) 100%),
      repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 5px),
      repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.045) 0px, rgba(0, 0, 0, 0.045) 1px, transparent 1px, transparent 5px);
    padding: 100px 32px 60px;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform-origin: right center;
    transform: perspective(2000px) rotateY(-115deg);
    backface-visibility: hidden;
    box-shadow: -24px 0 48px rgba(42, 36, 29, 0.28), inset 0 0 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.8s cubic-bezier(0.34, 1.4, 0.4, 1), opacity 0.25s ease, visibility 0.8s;
  }
  .nav-links::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.3), transparent 55%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.7s ease 0.1s;
  }
  .site-header.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: perspective(2000px) rotateY(0deg);
  }
  .site-header.open .nav-links::before {
    opacity: 0;
  }
  .nav-links a {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav-links a.active {
    color: var(--kraft-light);
  }
  .nav-links a::after {
    background: var(--kraft-light);
  }
  .site-header.open .nav-links a {
    opacity: 1;
    transform: translateX(0);
  }
  .site-header.open .nav-links a:nth-child(1) { transition-delay: 0.32s; }
  .site-header.open .nav-links a:nth-child(2) { transition-delay: 0.4s; }
  .site-header.open .nav-links a:nth-child(3) { transition-delay: 0.48s; }
  .site-header.open .nav-links a:nth-child(4) { transition-delay: 0.56s; }
  .site-header.open .nav-links a:nth-child(5) { transition-delay: 0.64s; }
  body.nav-open {
    overflow: hidden;
  }
  section { padding: 60px 0; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .process-flow { grid-template-columns: 1fr 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-glass { padding: 28px 22px 4px; }
  .site-footer { padding-top: 72px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .cta-banner { flex-direction: column; text-align: center; }
  .allocation-table { font-size: 0.85rem; }
  .allocation-table th, .allocation-table td { padding: 12px 14px; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .promo-banner-content { padding: 30px 24px; max-width: 100%; }
  .promo-banner { min-height: 280px; }
  .page-header-media { padding: 96px 0 64px; }
  .contact-info { padding: 34px 28px; }
  .contact-form { padding: 28px 22px; }
}

/* ---------- Legal pages ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9998;
  background: linear-gradient(90deg, var(--kraft), var(--forest-lighter));
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
}

.legal-header {
  background: var(--forest);
  color: var(--white);
  padding: 100px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 134, 90, 0.25), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(63, 122, 86, 0.35), transparent 55%);
  pointer-events: none;
}
.legal-header .container { position: relative; z-index: 1; }
.legal-header h1 { color: var(--white); }
.legal-header p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(248, 243, 233, 0.82);
}
.legal-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.legal-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--kraft-light);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--border);
}
.legal-toc-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 28px;
  background: var(--kraft-dark);
  border-radius: 2px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), height 0.35s ease;
}
.legal-toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  display: block;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.25s ease, transform 0.25s ease;
}
.legal-toc a:hover { color: var(--forest); transform: translateX(3px); }
.legal-toc a.active { color: var(--forest); font-weight: 600; }

.legal-content { max-width: 720px; }

.legal-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.legal-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.legal-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kraft-tint);
  color: var(--kraft-dark);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.legal-section.in-view .legal-num {
  transform: scale(1);
  opacity: 1;
}
.legal-section-head h2 { margin: 0; font-size: 1.4rem; }
.legal-content p,
.legal-content li { color: var(--ink-soft); margin-bottom: 14px; }
.legal-content strong { color: var(--ink); }

.legal-list li {
  position: relative;
  padding-left: 22px;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kraft);
}

.legal-table { margin: 8px 0 20px; }

.legal-crosslinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.legal-crosslink {
  display: block;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.legal-crosslink:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--kraft-light);
}
.legal-crosslink span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kraft-dark);
}
.legal-crosslink h4 { margin: 8px 0 4px; }
.legal-crosslink p { margin: 0; font-size: 0.88rem; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc {
    position: static;
    border-left: none;
    padding-left: 0;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
  .legal-toc-indicator { display: none; }
  .legal-toc-label { display: none; }
  .legal-toc ul { flex-direction: row; }
  .legal-toc a {
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--cream-alt);
    border-radius: 999px;
  }
  .legal-toc a.active { background: var(--forest); color: var(--white); }
  .legal-crosslinks { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .legal-header { padding: 84px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-num { transition: none; }
}
