:root {
  color-scheme: dark;
  --forest-950: #0a241b;
  --forest-900: #0f3024;
  --forest-800: #164232;
  --forest-600: #36735c;
  --leaf: #87a984;
  --moss: #b6c79d;
  --cream: #f1ecdf;
  --cream-deep: #dcd4c1;
  --ink: #15221b;
  --gold: #cfb06d;
  --white: #fffdf7;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-height: 88px;
  --page-gutter: clamp(24px, 5vw, 76px);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--forest-950);
}

body {
  color: var(--white);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  color: var(--white);
  transition: color 220ms ease, background-color 220ms ease;
  view-transition-name: site-header;
}

.site-header::after {
  position: absolute;
  right: var(--page-gutter);
  bottom: 0;
  left: var(--page-gutter);
  height: 1px;
  content: '';
  background: currentColor;
  opacity: 0.2;
}

body[data-header-tone='dark'] .site-header {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}

.brand:active,
.menu-button:active,
.nav-link:active,
.cta-button:active {
  transform: scale(0.97);
}

.brand__logo {
  display: block;
  width: auto;
  height: clamp(30px, 3vw, 42px);
  object-fit: contain;
}

.brand__logo--kkdw {
  height: clamp(29px, 2.8vw, 40px);
}

.brand__logo--livestock {
  height: clamp(32px, 3.2vw, 45px);
}

.brand__divider {
  display: block;
  width: 1px;
  height: 31px;
  background: currentColor;
  opacity: 0.22;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(16px, 2.2vw, 40px);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px 0 0;
  border: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.63;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 140ms var(--ease-out);
}

.nav-link.is-active {
  opacity: 1;
}

.nav-link__indicator {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.35);
}

.nav-link.is-active .nav-link__indicator {
  opacity: 1;
  transform: scaleX(1);
  view-transition-name: nav-indicator;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.language i {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 36%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}

.menu-button span {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 180ms var(--ease-out), top 180ms var(--ease-out);
}

.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 23px; }

.scene-stack,
.scene {
  width: 100%;
  height: 100svh;
  min-height: 560px;
}

.scene-stack {
  position: relative;
  background: var(--forest-950);
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.scene.is-active {
  view-transition-name: scene;
}

.scene__media,
.scene__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.scene__media {
  background-position: center;
  background-size: cover;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.015);
}

.scene.is-active .scene__media {
  animation: ambient-scale 14s linear both;
  will-change: transform;
}

body.is-transitioning .scene__media {
  animation-play-state: paused;
}

.scene__veil {
  z-index: -1;
}

.scene::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scene--hero {
  background: #173327;
}

.scene__media--hero {
  background-image: url('/assets/cattle-field.jpg');
  background-position: 50% 48%;
}

.scene--hero .scene__veil {
  background:
    linear-gradient(90deg, rgba(5, 20, 15, 0.86) 0%, rgba(8, 25, 19, 0.45) 45%, rgba(7, 20, 16, 0.08) 75%),
    linear-gradient(0deg, rgba(4, 16, 12, 0.62) 0%, transparent 52%),
    radial-gradient(circle at 72% 36%, transparent 0, rgba(6, 21, 16, 0.22) 65%);
}

.hero-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: end;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-height) + 7vh) var(--page-gutter) clamp(68px, 9vh, 100px);
}

.hero-copy {
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 35px;
  height: 1px;
  content: '';
  background: var(--gold);
}

.eyebrow--dark { color: var(--ink); }
.eyebrow--gold { color: var(--gold); }

.display-title,
.section-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.87;
}

.display-title {
  font-size: clamp(66px, 8.4vw, 142px);
}

.scene--hero .display-title {
  font-size: clamp(56px, 6.8vw, 108px);
}

.display-title span,
.display-title em {
  display: block;
}

.display-title em,
.section-title em {
  color: var(--gold);
  font-weight: 400;
}

.hero-copy__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 28px;
}

.hero-copy__body {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
  opacity: 0.76;
}

.hero-qurban-logo {
  display: inline-flex;
  position: relative;
  z-index: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 140ms var(--ease-out), filter 180ms ease;
}

.hero-qurban-logo::before {
  position: absolute;
  z-index: -1;
  inset: 12% 4%;
  border-radius: 50%;
  content: '';
  pointer-events: none;
  opacity: 0.28;
  background: rgba(207, 176, 109, 0.62);
  filter: blur(18px);
  animation: qurban-cta-glow 2.8s ease-in-out infinite;
}

.hero-qurban-logo img {
  display: block;
  width: auto;
  height: 112px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.32));
  transition: filter 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-qurban-logo:hover { transform: translateY(-5px) scale(1.06); }
  .hero-qurban-logo:hover img {
    filter: brightness(1.1) drop-shadow(0 16px 26px rgba(207, 176, 109, 0.58));
  }
}

.hero-qurban-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

@keyframes qurban-cta-glow {
  0%, 100% { opacity: 0.24; transform: scale(0.88); }
  50% { opacity: 0.72; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-qurban-logo::before {
    opacity: 0.42;
    animation: none;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 224px;
  margin-top: 34px;
  padding: 16px 19px 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.43);
  color: var(--white);
  background: rgba(13, 47, 35, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out), border-color 180ms ease;
}

.cta-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms var(--ease-out);
}

.cta-button--light {
  color: var(--ink);
  border-color: var(--cream);
  background: var(--cream);
  backdrop-filter: none;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  margin-bottom: 10px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-note__number {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 42px;
  color: var(--gold);
}

.hero-note div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-note div span { opacity: 0.6; }

.scene--vision {
  display: grid;
  grid-template-columns: 46% 54%;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--cream);
}

.vision-photo {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: calc(560px - var(--header-height));
  overflow: hidden;
}

.vision-photo::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(0deg, rgba(7, 31, 23, 0.55), transparent 45%);
}

.vision-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
}

.vision-photo__caption {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vision-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vh, 72px) clamp(40px, 7vw, 120px);
}

.section-title {
  font-size: clamp(60px, 6.6vw, 112px);
}

.section-title--dark { color: var(--ink); }

.section-lead {
  max-width: 660px;
  margin: clamp(22px, 3.4vh, 38px) 0 0;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.68;
}

.section-lead--light {
  color: rgba(255, 253, 247, 0.65);
}

.principles {
  display: grid;
  gap: 0;
  margin-top: clamp(25px, 5vh, 56px);
  border-top: 1px solid rgba(21, 34, 27, 0.2);
}

.principles article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: clamp(11px, 1.5vh, 18px) 0;
  border-bottom: 1px solid rgba(21, 34, 27, 0.2);
}

.principles article > span {
  padding-top: 4px;
  color: var(--forest-600);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.principles h3,
.principles p {
  margin: 0;
}

.principles h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 500;
}

.principles p {
  margin-top: 4px;
  color: rgba(21, 34, 27, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.scene--ecosystem {
  background: #172b21;
}

.scene__media--ecosystem {
  background-image: url('/assets/cattle-close.jpg');
  background-position: center 58%;
}

.scene__veil--ecosystem {
  background:
    linear-gradient(90deg, rgba(6, 26, 19, 0.9) 0%, rgba(8, 29, 21, 0.54) 50%, rgba(7, 22, 17, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 21, 16, 0.75), rgba(5, 21, 16, 0.1) 64%);
}

.ecosystem-layout {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-height) + 6vh) var(--page-gutter) clamp(58px, 7vh, 80px);
}

.ecosystem-heading {
  align-self: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.program-card {
  position: relative;
  min-height: clamp(170px, 22vh, 225px);
  padding: clamp(20px, 2.4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 31, 23, 0.25);
  backdrop-filter: blur(5px);
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}

.program-card:last-child { border-right: 0; }

.program-card__index {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.program-card svg {
  width: 38px;
  height: 38px;
  margin-bottom: clamp(14px, 2vh, 22px);
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.program-card h3,
.program-card p { margin: 0; }

.program-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
}

.program-card p {
  max-width: 340px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  line-height: 1.5;
}

.scene--innovation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 130px);
  padding: calc(var(--header-height) + 4vh) var(--page-gutter) 5vh;
  background:
    radial-gradient(circle at 74% 45%, rgba(107, 149, 117, 0.19), transparent 34%),
    var(--forest-950);
}

.innovation-copy {
  max-width: 720px;
}

.data-points {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  margin-top: clamp(30px, 6vh, 64px);
}

.data-points div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.data-points span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.data-points strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-console {
  position: relative;
  overflow: hidden;
  min-height: min(64vh, 610px);
  border: 1px solid rgba(207, 176, 109, 0.28);
  border-radius: 2px;
  background: rgba(8, 31, 23, 0.72);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26);
}

.field-console::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image:
    linear-gradient(rgba(166, 197, 161, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 197, 161, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
}

.field-console__topbar,
.field-console__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(207, 176, 109, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-console__topbar i {
  color: var(--moss);
  font-style: normal;
}

.field-console__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(207, 176, 109, 0.2);
  border-bottom: 0;
}

.field-console__footer span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #95c58c;
  box-shadow: 0 0 0 5px rgba(149, 197, 140, 0.1);
}

.field-map {
  position: absolute;
  inset: 54px 0;
  overflow: hidden;
}

.field-map::after {
  position: absolute;
  inset: 0;
  content: '';
  background: radial-gradient(ellipse at 55% 53%, transparent 0, rgba(6, 26, 19, 0.5) 75%);
}

.field-map__contour {
  position: absolute;
  border: 1px solid rgba(182, 199, 157, 0.27);
  border-radius: 44% 56% 58% 42% / 54% 43% 57% 46%;
  transform: rotate(-12deg);
}

.contour--one { inset: 16% 12% 19% 18%; }
.contour--two { inset: 25% 23% 27% 29%; transform: rotate(10deg); }
.contour--three { inset: 8% 31% 39% 7%; transform: rotate(22deg); }

.tracker {
  position: absolute;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(207, 176, 109, 0.3);
  border-radius: 50%;
  animation: tracker-pulse 2.8s ease-out infinite;
}

.tracker i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  transform: translate(-50%, -50%);
}

.tracker--one { top: 33%; left: 29%; }
.tracker--two { top: 59%; left: 61%; animation-delay: -1s; }
.tracker--three { top: 24%; left: 72%; animation-delay: -2s; }

.map-label {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-left: 1px solid var(--gold);
  background: rgba(7, 29, 21, 0.76);
}

.map-label span {
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-transform: uppercase;
}

.map-label strong {
  margin-top: 3px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.map-label--one { top: 18%; left: 18%; }
.map-label--two { right: 13%; bottom: 20%; }

.scene--join {
  background: #15271f;
}

.scene__media--join {
  background-image: url('/assets/farmer.jpg');
  background-position: center 54%;
}

.scene__veil--join {
  background:
    linear-gradient(90deg, rgba(6, 25, 18, 0.88) 0%, rgba(7, 24, 18, 0.47) 50%, rgba(5, 19, 14, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 19, 14, 0.7), transparent 55%);
}

.join-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1050px;
  height: 100%;
  padding: calc(var(--header-height) + 4vh) var(--page-gutter) 8vh;
}

.display-title--join {
  font-size: clamp(62px, 7.6vw, 126px);
}

.join-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
}

.scene-footer {
  position: absolute;
  right: var(--page-gutter);
  bottom: 24px;
  left: var(--page-gutter);
  display: flex;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-rail {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: clamp(14px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
  transition: color 220ms ease;
  view-transition-name: section-rail;
}

body[data-header-tone='dark'] .section-rail { color: var(--ink); }

.section-rail__track {
  width: 1px;
  height: 84px;
  overflow: hidden;
  background: currentColor;
  opacity: 0.42;
}

.section-rail__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0.2);
  transform-origin: top;
  transition: transform 420ms var(--ease-in-out);
}

.scroll-cue {
  position: fixed;
  z-index: 45;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 220ms ease, opacity 180ms ease;
  view-transition-name: scroll-cue;
}

body[data-header-tone='dark'] .scroll-cue { color: var(--ink); }
body[data-scene='vision'] .scroll-cue { left: 73%; }
.scroll-cue.is-hidden { opacity: 0; }

.scroll-cue > i {
  position: relative;
  width: 16px;
  height: 25px;
  border: 1px solid currentColor;
  border-radius: 10px;
  opacity: 0.7;
}

.scroll-cue b {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s var(--ease-in-out) infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 480ms var(--ease-out) forwards;
}

.hero-copy .reveal:nth-child(1) { animation-delay: 140ms; }
.hero-copy .reveal:nth-child(2) { animation-delay: 200ms; }
.hero-copy .reveal:nth-child(3) { animation-delay: 270ms; }
.hero-copy .reveal:nth-child(4) { animation-delay: 330ms; }
.hero-note.reveal { animation-delay: 380ms; }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { opacity: 1; }
  .cta-button:hover {
    color: var(--ink);
    border-color: var(--cream);
    background: var(--cream);
  }
  .cta-button:hover svg { transform: translateX(4px); }
  .cta-button--light:hover {
    color: var(--white);
    border-color: var(--forest-800);
    background: var(--forest-800);
  }
  .program-card:hover {
    background: rgba(18, 63, 47, 0.66);
    transform: translateY(-6px);
  }
}

@keyframes ambient-scale {
  from { transform: translateZ(0) scale(1.015); }
  to { transform: translateZ(0) scale(1.075); }
}

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

@keyframes scroll-dot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 9px); }
}

@keyframes tracker-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.9); }
  55% { opacity: 1; transform: scale(1.08); }
}

/* View Transition API: every scene is a same-size cinematic frame. */
::view-transition-group(root),
::view-transition-group(site-header),
::view-transition-group(section-rail),
::view-transition-group(scroll-cue),
::view-transition-group(nav-indicator) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease-in-out);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

::view-transition-group(scene) {
  overflow: hidden;
  animation-duration: 480ms;
  animation-timing-function: var(--ease-in-out);
}

html[data-direction='next']::view-transition-old(scene) {
  animation: scene-out-next 320ms var(--ease-in-out) both;
}

html[data-direction='next']::view-transition-new(scene) {
  animation: scene-in-next 480ms var(--ease-out) both;
}

html[data-direction='previous']::view-transition-old(scene) {
  animation: scene-out-previous 320ms var(--ease-in-out) both;
}

html[data-direction='previous']::view-transition-new(scene) {
  animation: scene-in-previous 480ms var(--ease-out) both;
}

@keyframes scene-out-next {
  to { opacity: 0.28; transform: translate3d(0, -4%, 0) scale(1.018); }
}

@keyframes scene-in-next {
  from { opacity: 0; transform: translate3d(0, 4%, 0) scale(1.018); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes scene-out-previous {
  to { opacity: 0.28; transform: translate3d(0, 4%, 0) scale(1.018); }
}

@keyframes scene-in-previous {
  from { opacity: 0; transform: translate3d(0, -4%, 0) scale(1.018); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 1000px) {
  :root { --header-height: 76px; }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .language { display: none; }
  .menu-button { position: relative; display: block; }

  .primary-nav {
    position: fixed;
    z-index: -1;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: min(390px, calc(100vw - 24px));
    height: min(560px, calc(100svh - 24px));
    padding: 94px 46px 42px;
    border: 1px solid rgba(207, 176, 109, 0.28);
    color: var(--white);
    background: rgba(10, 36, 27, 0.97);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97) translateY(-8px);
    transform-origin: top right;
    transition: opacity 200ms ease, transform 220ms var(--ease-out);
  }

  .menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-link {
    justify-content: flex-start;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 30px;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .nav-link__indicator {
    right: auto;
    bottom: 50%;
    left: -20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(50%) scale(0.7);
  }

  .nav-link.is-active .nav-link__indicator { transform: translateY(50%) scale(1); }

  .menu-open .menu-button span:first-child { top: 20px; transform: translateX(-50%) rotate(45deg); }
  .menu-open .menu-button span:last-child { top: 20px; transform: translateX(-50%) rotate(-45deg); }

  .hero-composition {
    grid-template-columns: 1fr;
  }

  .hero-note { display: none; }

  .scene--vision {
    grid-template-columns: 42% 58%;
  }

  .vision-content {
    padding-right: 50px;
    padding-left: 50px;
  }

  .scene--innovation {
    gap: 36px;
  }

  .section-rail { right: 12px; }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 22px;
    --header-height: 70px;
  }

  .site-header::after { right: 22px; left: 22px; }
  .header-actions {
    position: absolute;
    top: 14px;
    right: var(--page-gutter);
    z-index: 2;
  }
  .brand {
    max-width: min(58vw, 230px);
    gap: 8px;
  }

  .brand__logo--kkdw {
    height: 31px;
  }

  .brand__logo--livestock {
    height: 34px;
  }

  .brand__divider {
    height: 26px;
    opacity: 0.18;
  }

  .scene-stack,
  .scene {
    min-height: 600px;
  }

  .hero-composition {
    align-items: end;
    min-width: 0;
    padding-bottom: 82px;
  }

  .scene__media--hero {
    background-position: 56% center;
  }

  .display-title {
    max-width: 100%;
    font-size: clamp(52px, 15vw, 64px);
    letter-spacing: -0.055em;
  }
  .scene--hero .display-title { font-size: clamp(48px, 14vw, 60px); }
  .section-title { font-size: clamp(51px, 15vw, 72px); }
  .hero-copy__body {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-copy__footer {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
  }
  .hero-qurban-logo img { height: 88px; }
  .cta-button { margin-top: 25px; }

  .scene--vision {
    display: block;
    padding-top: 0;
  }

  .vision-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .vision-photo::after {
    background: linear-gradient(0deg, rgba(241, 236, 223, 0.98) 7%, rgba(241, 236, 223, 0.9) 50%, rgba(241, 236, 223, 0.08) 100%);
  }

  .vision-photo img { object-position: center 25%; }
  .vision-photo__caption { display: none; }

  .vision-content {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    height: 100%;
    padding: calc(var(--header-height) + 18vh) var(--page-gutter) 54px;
  }

  .section-lead { margin-top: 17px; font-size: 12px; }
  .principles { margin-top: 19px; }
  .principles article { padding: 9px 0; }
  .principles article:nth-child(3) { display: none; }
  .principles h3 { font-size: 18px; }
  .principles p { font-size: 10px; }

  .ecosystem-layout {
    grid-template-rows: auto 1fr;
    gap: 28px;
    padding-top: calc(var(--header-height) + 6vh);
    padding-bottom: 54px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    align-self: end;
  }

  .program-card {
    min-height: 0;
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .program-card:last-child { border-bottom: 0; }
  .program-card svg { float: left; width: 30px; height: 30px; margin: 2px 15px 12px 0; }
  .program-card h3 { font-size: 20px; }
  .program-card p { margin-top: 3px; font-size: 10px; }
  .program-card__index { top: 16px; right: 16px; }

  .scene--innovation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 35px;
  }

  .scene--innovation .section-title { font-size: clamp(43px, 13vw, 61px); }
  .scene--innovation .section-lead { display: none; }
  .data-points { gap: 15px; margin-top: 18px; }
  .data-points strong { max-width: 92px; font-size: 8px; }
  .field-console { min-height: 39vh; }
  .field-console__topbar,
  .field-console__footer { height: 43px; padding: 0 14px; font-size: 8px; }
  .field-map { inset: 43px 0; }

  .join-content {
    justify-content: flex-end;
    padding-bottom: 100px;
  }

  .display-title--join { font-size: clamp(52px, 16vw, 76px); }
  .join-content > p:not(.eyebrow) { margin-top: 18px; font-size: 12px; }
  .scene__media--join { background-position: 58% center; }
  .scene-footer { right: 22px; bottom: 18px; left: 22px; }
  .scene-footer span:last-child { display: none; }

  .section-rail { display: none; }
  body[data-scene='vision'] .scroll-cue { left: 50%; }
  .scroll-cue span { display: none; }
}

@media (max-height: 680px) and (min-width: 721px) {
  :root { --header-height: 70px; }
  .hero-composition { padding-bottom: 44px; }
  .display-title { font-size: min(9vw, 96px); }
  .scene--hero .display-title { font-size: min(7vw, 80px); }
  .section-title { font-size: min(7vw, 78px); }
  .hero-copy__footer { margin-top: 16px; }
  .cta-button { margin-top: 20px; }
  .vision-content { padding-top: 20px; padding-bottom: 20px; }
  .principles { margin-top: 18px; }
  .principles article { padding: 8px 0; }
  .program-card { min-height: 150px; }
  .field-console { min-height: 65vh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .scene__media,
  .tracker,
  .scroll-cue b,
  .reveal {
    animation: none !important;
  }

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

  .section-rail__track i,
  .primary-nav,
  .cta-button,
  .hero-qurban-logo,
  .hero-qurban-logo img,
  .nav-link,
  .brand,
  .menu-button {
    transition-duration: 1ms !important;
  }
}

/* Content redesign: preserve the five-scene shell and its cinematic transitions. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scene--impact {
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--cream);
}

.impact-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: calc(560px - var(--header-height));
}

.impact-gallery {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--forest-900);
}

.impact-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 200ms ease, transform 280ms var(--ease-out), visibility 0s linear 280ms;
}

.impact-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0ms;
}

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

.impact-slide:nth-child(1) img { object-position: 54% center; }
.impact-slide:nth-child(2) img { object-position: center 52%; }
.impact-slide:nth-child(3) img { object-position: 57% 58%; }
.impact-slide:nth-child(4) img { object-position: center 35%; }
.impact-slide:nth-child(5) img { object-position: 33% 60%; transform: scaleX(-1); }
.impact-slide:nth-child(6) img { object-position: 42% center; transform: scaleX(-1); }

.impact-gallery__veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 24, 18, 0.2), transparent 55%),
    linear-gradient(0deg, rgba(5, 20, 15, 0.72), transparent 42%);
}

.impact-gallery__caption {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 28px;
  left: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.impact-gallery__caption span {
  color: var(--gold);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.impact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vh, 64px) clamp(42px, 6vw, 104px);
  background:
    radial-gradient(circle at 90% 10%, rgba(207, 176, 109, 0.12), transparent 28%),
    var(--cream);
}

.impact-panel .section-title {
  font-size: clamp(56px, 5.6vw, 96px);
}

.impact-copy {
  position: relative;
  min-height: 208px;
  margin-top: clamp(24px, 4vh, 40px);
}

.impact-copy__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.impact-copy__item.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.impact-copy__item > span {
  color: var(--forest-600);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.impact-copy__item h3,
.impact-copy__item p {
  margin: 0;
}

.impact-copy__item h3 {
  max-width: 500px;
  margin-top: 13px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(25px, 2.25vw, 37px);
  font-weight: 400;
  line-height: 1.08;
}

.impact-copy__item p {
  max-width: 540px;
  margin-top: 15px;
  color: rgba(21, 34, 27, 0.66);
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.65;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.slider-arrow {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 34, 27, 0.28);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

.slider-arrow:active { transform: scale(0.96); }

.slider-arrow svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.slider-dots {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.slider-dots button {
  position: relative;
  flex: 1;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider-dots button::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  background: rgba(21, 34, 27, 0.2);
  transform: translateY(-50%);
  transition: height 160ms ease, background-color 160ms ease;
}

.slider-dots button.is-active::after {
  height: 2px;
  background: var(--forest-600);
}

.slider-arrow--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.scene--korban {
  background: #13271e;
}

.scene__media--korban {
  background-image: url('/assets/cattle-close.jpg');
  background-position: center 56%;
}

.scene__veil--korban {
  background:
    linear-gradient(90deg, rgba(5, 22, 16, 0.91) 0%, rgba(7, 25, 18, 0.6) 48%, rgba(7, 21, 16, 0.23) 100%),
    linear-gradient(0deg, rgba(4, 18, 13, 0.75), transparent 58%);
}

.korban-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: end;
  gap: clamp(48px, 8vw, 150px);
  width: 100%;
  height: 100%;
  padding: calc(var(--header-height) + 8vh) var(--page-gutter) clamp(72px, 9vh, 104px);
}

.display-title--korban {
  font-size: clamp(66px, 8.1vw, 132px);
}

.korban-panel {
  align-self: end;
  max-width: 570px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: rgba(7, 29, 21, 0.48);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.korban-panel__label {
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.korban-panel > p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.68;
}

.korban-panel ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.korban-panel li {
  position: relative;
  padding-left: 19px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.45;
}

.korban-panel li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  content: '';
}

.korban-panel .cta-button { margin-top: 28px; }

.scene--contact {
  color: var(--white);
  background: #13271e url('/assets/cattle-close.jpg') center 56% / cover no-repeat;
}

.contact-background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene--contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, rgba(5, 22, 16, 0.93) 0%, rgba(7, 25, 18, 0.76) 50%, rgba(7, 21, 16, 0.52) 100%),
    linear-gradient(0deg, rgba(4, 18, 13, 0.78) 0%, transparent 62%);
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.6fr);
  align-items: end;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-height) + 3vh) var(--page-gutter) clamp(78px, 10vh, 108px);
}

.contact-label-wrap {
  position: absolute;
  top: calc(var(--header-height) + 5vh);
  left: 50%;
  width: clamp(360px, 42vw, 690px);
  perspective: 900px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
}

.contact-label-wrap::after {
  position: absolute;
  z-index: -1;
  right: 10%;
  bottom: -24px;
  left: 10%;
  height: 32px;
  border-radius: 50%;
  content: '';
  background: rgba(0, 0, 0, 0.36);
  filter: blur(18px);
  transform: rotateX(70deg);
}

.contact-label {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(70, 38, 0, 0.6)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
  transform: rotateX(7deg) translateZ(24px);
  transform-origin: center bottom;
}

.contact-details {
  align-self: end;
  max-width: 550px;
}

.contact-details address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-style: normal;
}

.contact-details address strong {
  color: var(--gold);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 400;
}

.contact-details address span {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.65;
  text-transform: uppercase;
}

.contact-details dl {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

.contact-details dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}

.contact-details dt,
.contact-details dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.contact-details dt {
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dd,
.contact-details a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.contact-social {
  display: grid;
  justify-self: end;
  width: min(100%, 310px);
}

.contact-social > span {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 2vw, 30px);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms var(--ease-out);
}

.contact-social a:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.contact-social a i { color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 15px; font-style: normal; }

.contact-footer {
  position: absolute;
  right: var(--page-gutter);
  bottom: 20px;
  left: var(--page-gutter);
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body[data-scene='impact'] .scroll-cue { left: 76%; }

@media (hover: hover) and (pointer: fine) {
  .slider-arrow:hover {
    color: var(--white);
    border-color: var(--forest-800);
    background: var(--forest-800);
  }

  .slider-arrow--light:hover {
    color: var(--ink);
    border-color: var(--cream);
    background: var(--cream);
  }

  .contact-social a:hover {
    color: var(--gold);
    transform: translateX(4px);
  }
}

@media (max-width: 1000px) {
  .impact-stage { grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr); }
  .impact-panel { padding-right: 44px; padding-left: 44px; }
  .impact-copy { min-height: 224px; }

  .korban-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr); gap: 42px; }
  .contact-label-wrap { width: clamp(340px, 48vw, 560px); }
}

@media (max-width: 720px) {
  .scene--impact { padding-top: var(--header-height); }

  .impact-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 37% 63%;
    height: calc(100svh - var(--header-height));
  }

  .impact-gallery__caption { right: 22px; bottom: 16px; left: 22px; }

  .impact-panel {
    justify-content: flex-start;
    padding: 20px 22px 54px;
  }

  .impact-panel .eyebrow { margin-bottom: 10px; }
  .impact-panel .section-title { font-size: clamp(42px, 12vw, 52px); line-height: 0.9; }
  .impact-copy { min-height: 144px; margin-top: 16px; }
  .impact-copy__item h3 { margin-top: 7px; font-size: clamp(22px, 6.6vw, 28px); }
  .impact-copy__item p { margin-top: 8px; font-size: 11px; line-height: 1.48; }
  .slider-controls { gap: 10px; margin-top: auto; }
  .slider-arrow { width: 38px; height: 38px; }
  body[data-scene='impact'] .scroll-cue { left: 50%; }

  .scene__media--korban { background-position: 58% center; }
  .scene__veil--korban {
    background:
      linear-gradient(0deg, rgba(4, 18, 13, 0.95) 0%, rgba(5, 21, 15, 0.65) 58%, rgba(6, 19, 14, 0.25) 100%),
      linear-gradient(90deg, rgba(4, 18, 13, 0.55), transparent 70%);
  }

  .korban-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 22px;
    padding: calc(var(--header-height) + 24px) 22px 54px;
  }

  .display-title--korban { font-size: clamp(48px, 14.2vw, 64px); }
  .korban-heading .eyebrow { margin-bottom: 13px; }
  .korban-panel { max-width: none; padding: 20px; backdrop-filter: blur(8px); }
  .korban-panel > p { margin-top: 12px; font-size: 11.5px; line-height: 1.5; }
  .korban-panel ul { gap: 6px; margin-top: 14px; padding-top: 13px; }
  .korban-panel li { font-size: 10px; }
  .korban-panel .cta-button { min-width: 100%; margin-top: 18px; }

  .contact-background img { object-position: center; }
  .contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 20px) 22px 65px;
    text-align: center;
  }

  .contact-label-wrap {
    position: relative;
    top: auto;
    left: auto;
    width: min(78vw, 330px);
    margin: 0 auto;
    transform: none;
  }

  .contact-label { transform: rotateX(6deg) translateZ(18px); }
  .contact-details { width: 100%; max-width: 360px; margin-top: clamp(28px, 5vh, 48px); }
  .contact-details .eyebrow { justify-content: center; margin-bottom: 14px; }
  .contact-details address { gap: 6px; }
  .contact-details address strong { font-size: 25px; }
  .contact-details address span { font-size: 10px; line-height: 1.52; }
  .contact-details dl { gap: 5px; margin-top: 15px; }
  .contact-details dl div { grid-template-columns: 60px minmax(0, 1fr); text-align: left; }
  .contact-details dt, .contact-details dd { font-size: 9.5px; }
  .contact-social { width: 100%; max-width: 300px; margin-top: auto; justify-self: auto; text-align: left; }
  .contact-social > span { margin-bottom: 7px; font-size: 8px; }
  .contact-social a { padding: 9px 0; font-size: 20px; }
  .contact-footer { right: 22px; bottom: 14px; left: 22px; }
  .contact-footer span:last-child { display: none; }
}

@media (max-height: 680px) and (min-width: 721px) {
  .impact-panel .section-title { font-size: min(5vw, 68px); }
  .impact-copy { min-height: 170px; margin-top: 18px; }
  .impact-copy__item h3 { font-size: 28px; }
  .korban-layout { padding-bottom: 48px; }
  .korban-panel { padding: 24px; }
  .korban-panel > p { margin-top: 12px; }
  .korban-panel ul { margin-top: 14px; padding-top: 14px; }
  .korban-panel .cta-button { margin-top: 18px; }
  .contact-label-wrap { top: calc(var(--header-height) + 2vh); width: min(36vw, 500px); }
  .contact-layout { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .impact-slide,
  .impact-copy__item,
  .slider-arrow,
  .contact-social a {
    transition-duration: 1ms !important;
  }

  .impact-slide { transform: none; }
  .contact-label { transform: none; }
}

/* Directional section content motion — left content returns left, right content returns right. */
:root {
  --section-motion-left: -72px;
  --section-motion-right: 72px;
}

.scene.is-active .section-motion--left { view-transition-name: scene-left; }
.scene.is-active .section-motion--right { view-transition-name: scene-right; }

::view-transition-group(scene-left),
::view-transition-group(scene-right) {
  z-index: 4;
  overflow: visible;
  animation-duration: 420ms;
  animation-timing-function: var(--ease-out);
}

::view-transition-image-pair(scene-left),
::view-transition-image-pair(scene-right) {
  overflow: visible;
  isolation: auto;
}

::view-transition-old(scene-left) {
  animation: section-content-out-left 180ms var(--ease-out) both;
}

::view-transition-new(scene-left) {
  animation: section-content-in-left 360ms var(--ease-out) 45ms both;
}

::view-transition-old(scene-right) {
  animation: section-content-out-right 180ms var(--ease-out) both;
}

::view-transition-new(scene-right) {
  animation: section-content-in-right 360ms var(--ease-out) 45ms both;
}

@keyframes section-content-out-left {
  to {
    opacity: 0;
    transform: translate3d(var(--section-motion-left), 0, 0);
  }
}

@keyframes section-content-in-left {
  from {
    opacity: 0;
    transform: translate3d(var(--section-motion-left), 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-content-out-right {
  to {
    opacity: 0;
    transform: translate3d(var(--section-motion-right), 0, 0);
  }
}

@keyframes section-content-in-right {
  from {
    opacity: 0;
    transform: translate3d(var(--section-motion-right), 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Footer finale: the supplied landscape frames the contact composition. */
.footer-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: calc(var(--header-height) + 5vh) var(--page-gutter) 5vh;
  overflow: hidden;
  perspective: 1200px;
}

.footer-stage::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 1080px);
  aspect-ratio: 1;
  border: 1px solid rgba(207, 176, 109, 0.2);
  border-radius: 50%;
  content: '';
  box-shadow:
    0 0 0 74px rgba(207, 176, 109, 0.035),
    0 0 0 148px rgba(207, 176, 109, 0.02);
  opacity: 0.8;
  pointer-events: none;
  transform: translate(-50%, -45%) rotateX(68deg);
}

.footer-stage::after {
  position: absolute;
  top: 50%;
  right: 7vw;
  left: 7vw;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(207, 176, 109, 0.5) 18%, rgba(207, 176, 109, 0.18) 50%, rgba(207, 176, 109, 0.5) 82%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 720px) {
  :root {
    --section-motion-left: -36px;
    --section-motion-right: 36px;
  }

  .footer-stage {
    padding: calc(var(--header-height) + 4vh) 16px 4vh;
  }

  .footer-stage::before {
    width: 125vw;
    box-shadow:
      0 0 0 42px rgba(207, 176, 109, 0.032),
      0 0 0 84px rgba(207, 176, 109, 0.018);
    transform: translate(-50%, -43%) rotateX(72deg);
  }

  .footer-stage::after {
    right: 0;
    left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  :root {
    --section-motion-left: 0px;
    --section-motion-right: 0px;
  }

  ::view-transition-old(scene-left),
  ::view-transition-new(scene-left),
  ::view-transition-old(scene-right),
  ::view-transition-new(scene-right) {
    animation-duration: 180ms !important;
    animation-delay: 0ms !important;
  }
}

/* Deterministic two-phase transition between the Korban scene and reservation page. */
html:is([data-page-exit], [data-page-enter]) {
  overflow: hidden !important;
}

html:is([data-page-exit], [data-page-enter])::after {
  content: '';
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(211, 179, 111, 0.08) 42.2%, transparent 42.5%),
    var(--forest-950);
  will-change: transform, opacity;
}

html[data-page-exit='korban']::after {
  box-shadow: -1px 0 0 rgba(211, 179, 111, 0.68);
  animation: page-cover-from-right 360ms var(--ease-in-out) both;
}

html[data-page-enter='home']::after {
  box-shadow: -1px 0 0 rgba(211, 179, 111, 0.68);
  animation: page-uncover-to-right 520ms var(--ease-in-out) both;
}

html[data-page-exit='korban'] .scene.is-active {
  animation: page-content-out-next 360ms var(--ease-in-out) both;
}

html[data-page-enter='home'] .scene.is-active {
  animation: page-content-in-previous 520ms var(--ease-in-out) both;
}

html[data-page-exit='korban'] .site-header {
  animation: page-header-out 150ms var(--ease-out) both;
}

html[data-page-enter='home'] .site-header {
  animation: page-header-in 280ms 90ms var(--ease-out) both;
}

@keyframes page-cover-from-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes page-cover-from-left {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes page-uncover-to-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes page-uncover-to-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes page-content-out-next {
  to { opacity: 0.35; transform: translate3d(-5%, 0, 0) scale(1.025); }
}

@keyframes page-content-in-previous {
  from { opacity: 0.35; transform: translate3d(-5%, 0, 0) scale(1.025); }
}

@keyframes page-header-out { to { opacity: 0; } }
@keyframes page-header-in { from { opacity: 0; } }
@keyframes page-curtain-fade-in { from { opacity: 0; } }
@keyframes page-curtain-fade-out { to { opacity: 0; } }
@keyframes page-content-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html[data-page-enter='home']::after {
    animation: page-curtain-fade-out 160ms ease both;
  }

  html[data-page-enter='home'] .scene.is-active,
  html[data-page-enter='home'] .site-header {
    animation: page-content-fade-in 160ms ease both;
  }
}

/* Contact finale — information composed as one editorial deck. */
.footer-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-height) + 2vh) var(--page-gutter) clamp(32px, 5vh, 56px);
  perspective: none;
}

.footer-stage::before { display: none; }

.footer-stage::after {
  top: calc(var(--header-height) + clamp(150px, 21vw, 265px));
  right: 16vw;
  left: 16vw;
  background: linear-gradient(90deg, transparent, rgba(207, 176, 109, 0.42), transparent);
}

.footer-contact-deck {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) minmax(280px, 0.95fr) minmax(190px, 0.55fr);
  gap: clamp(30px, 4.4vw, 72px);
  width: min(1240px, 100%);
  height: auto;
  flex: none;
  align-self: center;
  margin: 0 auto;
  min-height: clamp(360px, 46vh, 480px);
  padding: clamp(26px, 3.4vh, 40px) clamp(30px, 3.5vw, 54px);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 1px solid rgba(207, 176, 109, 0.42);
  background:
    linear-gradient(110deg, rgba(0, 53, 39, 0.86), rgba(0, 43, 32, 0.64)),
    rgba(0, 46, 34, 0.72);
  box-shadow: 0 30px 90px rgba(0, 20, 14, 0.36);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  backdrop-filter: blur(10px);
}

.footer-contact-deck::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 1px;
  content: '';
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.16), transparent);
}

.footer-contact-deck p,
.footer-contact-deck h3,
.footer-contact-deck address {
  margin: 0;
}

.footer-contact-deck p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-contact-deck p::before {
  width: 24px;
  height: 1px;
  content: '';
  background: currentColor;
}

.footer-contact-deck__company h3 {
  max-width: 470px;
  color: var(--white);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 2.7vw, 45px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-contact-deck__company address {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(12px, 0.95vw, 14px);
  font-style: normal;
  line-height: 1.65;
  text-transform: uppercase;
}

.footer-contact-deck__direct {
  display: grid;
  align-content: start;
}

.footer-contact-deck__direct > a,
.footer-contact-deck__direct > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
}

.footer-contact-deck__direct > :last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact-deck__direct span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact-deck__direct strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 500;
}

.footer-contact-deck__social {
  display: grid;
  align-content: start;
}

.footer-contact-deck__social a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(23px, 2vw, 32px);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms var(--ease-out);
}

.footer-contact-deck__social a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-contact-deck__social i {
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
}

@media (hover: hover) and (pointer: fine) {
  .footer-contact-deck__direct a:hover strong,
  .footer-contact-deck__social a:hover {
    color: var(--gold);
  }

  .footer-contact-deck__social a:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .footer-contact-deck {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-contact-deck__social {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-contact-deck__social p {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .footer-stage {
    justify-content: flex-end;
    padding: calc(var(--header-height) + 1vh) 18px 30px;
  }

  .footer-stage::after {
    top: calc(var(--header-height) + 142px);
    right: 8vw;
    left: 8vw;
  }

  .footer-contact-deck {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    padding: 20px;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  }

  .footer-contact-deck::before { display: none; }
  .footer-contact-deck p { margin-bottom: 10px; font-size: 9.5px; }
  .footer-contact-deck__company h3 { font-size: 27px; }
  .footer-contact-deck__company address { margin-top: 10px; font-size: 10.5px; line-height: 1.55; }
  .footer-contact-deck__direct span { font-size: 9px; }
  .footer-contact-deck__direct > a,
  .footer-contact-deck__direct > div { padding: 7px 0; }
  .footer-contact-deck__direct strong { font-size: 12px; }

  .footer-contact-deck__social {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-contact-deck__social p { grid-column: 1 / -1; }
  .footer-contact-deck__social a { padding: 8px 0; font-size: 20px; }
}

/* Contact content sits directly on shared cattle-field background. */
.footer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-height) + 5vh) var(--page-gutter) clamp(44px, 6vh, 72px);
  overflow-y: auto;
}

.footer-contact-deck:not([data-contact-slider]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 58px);
  width: min(1280px, 100%);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.footer-contact-deck:not([data-contact-slider])::before { display: none; }

.footer-contact-panel {
  min-width: 0;
  padding: clamp(20px, 3vh, 34px) 0;
  border-top: 1px solid rgba(207, 176, 109, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 900px) {
  .footer-contact-deck:not([data-contact-slider]) { grid-template-columns: 1fr; gap: 22px; }
  .footer-contact-panel { padding: 22px 0; }
}

@media (max-width: 720px) {
  .scene--contact {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .footer-stage {
    align-items: start;
    height: auto;
    min-height: 100%;
    padding: calc(var(--header-height) + 22px) 18px 30px;
    overflow: visible;
  }
  .footer-contact-deck:not([data-contact-slider]) { gap: 16px; padding: 0; clip-path: none; }
}

/* Static prototype keeps contact information inside editorial deck. */
.footer-contact-deck {
  width: min(1360px, 100%);
  grid-template-columns: minmax(340px, 1.25fr) minmax(280px, 0.95fr) minmax(190px, 0.55fr);
  gap: clamp(30px, 4.4vw, 72px);
  min-height: clamp(500px, 66svh, 590px);
  padding: clamp(36px, 4.8vh, 58px) clamp(44px, 5vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 1px solid rgba(207, 176, 109, 0.42);
  background:
    linear-gradient(110deg, rgba(0, 53, 39, 0.86), rgba(0, 43, 32, 0.64)),
    rgba(0, 46, 34, 0.72);
  box-shadow: 0 30px 90px rgba(0, 20, 14, 0.36);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  backdrop-filter: blur(10px);
}

.footer-contact-panel { padding: 0; border: 0; }

.footer-contact-deck p { margin-bottom: 20px; font-size: clamp(11px, 0.85vw, 13px); }
.footer-contact-deck__company h3 { font-size: clamp(38px, 3.2vw, 54px); }
.footer-contact-deck__company address { font-size: clamp(13px, 1.05vw, 16px); }
.footer-contact-deck__direct span { font-size: 11px; }
.footer-contact-deck__direct strong { font-size: 15px; }
.footer-contact-deck__social a { font-size: clamp(26px, 2.2vw, 36px); }

@media (max-width: 720px) {
  .footer-contact-deck { padding: 20px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
}
