.home-film-document {
  background: #080a0a;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body.home-film-page {
  display: block;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  background: #080a0a;
  color: #f6f5f1;
}

body.home-film-page::before {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #080a0a;
}

body.home-film-page main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.navbar.navbar-film {
  background: #000000;
}

body .navbar.navbar-film a,
body .navbar.navbar-film .language-switch {
  color: #f6f5f1;
}

body .navbar.navbar-film a:hover,
body .navbar.navbar-film .dropdown a:hover {
  color: #ff0080 !important;
}

body .navbar.navbar-film a.active,
body .navbar.navbar-film li.active > a {
  color: #00ff80 !important;
}

body .navbar.navbar-film .language-switch {
  border-color: rgba(246, 245, 241, 0.72);
}

body .navbar.navbar-film .language-switch:hover {
  background-color: #ff0080;
  border-color: #ff0080;
}

.navbar.navbar-film .menu-toggle .bar {
  background-color: #f6f5f1;
}

.navbar.navbar-film ul {
  background-color: #000000 !important;
}

.navbar.navbar-film .dropdown {
  background: #000000;
}

body.home-film-page .film-canvas,
body.home-film-page .film-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
}

body.home-film-page .film-canvas {
  z-index: 0;
}

body.home-film-page .film-grain {
  z-index: 1;
}

.home-scroll-module {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: transparent;
}

body.home-film-page .home-scroll-module {
  margin: 0;
  z-index: 2;
}

.olfaction-film {
  --film-ink: #f6f5f1;
  --film-dim: rgba(246, 245, 241, 0.76);
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(5.75rem, 11vh, 7.5rem) clamp(1.5rem, 8vw, 9rem) clamp(1.75rem, 4vh, 3rem);
  overflow: hidden;
  background: transparent;
  color: var(--film-ink);
}

.home-film-page .film-canvas,
.home-film-page .film-grain {
  pointer-events: none;
}

.home-film-page .film-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
}

.home-film-page .film-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  opacity: 1;
  filter: saturate(1.3) contrast(1.08);
}

.film-grain {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.36), rgba(8, 10, 10, 0.12) 48%, rgba(8, 10, 10, 0.01) 78%, rgba(8, 10, 10, 0.08)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 5px);
}

.film-content {
  position: relative;
  z-index: 3;
  width: min(100%, 47rem);
  text-shadow: 0 2px 28px rgba(8, 10, 10, 0.9);
}

.film-eyebrow,
.meaning-eyebrow {
  margin: 0 0 1.4rem;
  color: #00e785;
  font-size: 0.78rem;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.film-title {
  position: static;
  min-width: 0;
  margin: 0;
  color: var(--film-ink);
  font-size: clamp(3.4rem, 8.2vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-align: left;
}

.film-thesis {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: var(--film-dim);
  font-size: clamp(1.05rem, 1.75vw, 1.5rem);
  line-height: 1.65;
}

.film-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: baseline;
  min-height: 5.4rem;
  margin-top: clamp(2rem, 4vh, 3rem);
}

.film-stage-count {
  color: #ff1684;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.film-stage-label {
  color: var(--film-ink);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.film-stage-copy {
  grid-column: 2;
  max-width: 32rem;
  margin: 0.45rem 0 0;
  color: var(--film-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.film-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.film-timeline li {
  min-width: 0;
  color: rgba(246, 245, 241, 0.48);
}

.film-step-label {
  display: block;
  padding-top: 0.7rem;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  transition: color 420ms ease;
}

.film-step-track {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.52rem;
  overflow: hidden;
  background: rgba(246, 245, 241, 0.2);
}

.film-step-track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff1684, #00e785);
  transform: scaleX(var(--step-progress, 0));
  transform-origin: left center;
}

.film-timeline li.is-active,
.film-timeline li.is-complete {
  color: var(--film-ink);
}

.film-timeline li.is-active .film-step-track {
  background: rgba(246, 245, 241, 0.3);
}

.film-scroll:focus-visible,
.meaning-link:focus-visible {
  outline: 2px solid #00e785;
  outline-offset: 4px;
}

.film-scroll {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--film-ink);
  font-size: 0.83rem;
  text-decoration: none;
}

.film-progress {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(246, 245, 241, 0.12);
}

.film-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff1684, #00e785);
  transform: scaleX(var(--film-progress, 0));
  transform-origin: left center;
}

.olfaction-meaning {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1.5rem, 10vw, 11rem);
  color: #f6f5f1;
}

.meaning-intro {
  max-width: 70rem;
}

.meaning-eyebrow {
  color: #00e785;
}

.meaning-intro h2 {
  max-width: 60rem;
  margin: 0;
  color: #f6f5f1;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.meaning-description {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: rgba(246, 245, 241, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
}

.meaning-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 4vh, 3rem);
}

.meaning-principle {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 245, 241, 0.25);
}

.principle-visual {
  position: relative;
  height: clamp(5rem, 9vw, 7rem);
  margin: 1.2rem 0 1rem;
  overflow: hidden;
  background: #111715;
}

.principle-visual--flow {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(0, 167, 97, 0.12), transparent 68%),
    #111715;
}

.principle-visual--flow span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 138, 84, 0.56), transparent);
  animation: scent-current 8s ease-in-out infinite alternate;
}

.principle-visual--flow span:nth-child(1) { top: 32%; }
.principle-visual--flow span:nth-child(2) { top: 51%; animation-delay: -2.5s; }
.principle-visual--flow span:nth-child(3) { top: 70%; animation-delay: -5s; }

.principle-visual--flow span::after {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #008a54;
  content: "";
  box-shadow: 0 0 12px rgba(0, 138, 84, 0.55);
}

.principle-visual--pattern {
  background:
    linear-gradient(rgba(0, 138, 84, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 138, 84, 0.1) 1px, transparent 1px),
    #111715;
  background-size: 2rem 2rem;
}

.principle-visual--pattern span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid #008a54;
  border-radius: 50%;
  background: #111715;
  box-shadow: 0 0 0 0.45rem rgba(0, 138, 84, 0.08);
  transform: translate(-50%, -50%);
  animation: pattern-emerge 3.6s ease-in-out infinite;
}

.principle-visual--pattern span:nth-child(2) {
  left: 30%;
  animation-delay: -1.2s;
}

.principle-visual--pattern span:nth-child(3) {
  left: 70%;
  animation-delay: -2.4s;
}

.principle-visual--sense {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(0, 167, 97, 0.15), transparent 64%),
    #111715;
}

.principle-visual--sense span {
  position: absolute;
  width: 5.6rem;
  height: 5.6rem;
  border: 1px solid rgba(0, 138, 84, 0.28);
  border-radius: 50%;
  animation: sense-resonate 5s ease-in-out infinite;
}

.principle-visual--sense span:nth-child(2) {
  width: 3.9rem;
  height: 3.9rem;
  animation-delay: -1.7s;
}

.principle-visual--sense span:nth-child(3) {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  background: #008a54;
  box-shadow: 0 0 1.8rem rgba(0, 138, 84, 0.42);
}

@keyframes scent-current {
  from { transform: translateX(-5%) skewY(-5deg); opacity: 0.45; }
  to { transform: translateX(5%) skewY(5deg); opacity: 1; }
}

@keyframes pattern-emerge {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.78); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
}

@keyframes sense-resonate {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

.principle-index {
  color: #008a54;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.meaning-principle h3 {
  margin: 1.7rem 0 0.75rem;
  color: #f6f5f1;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
}

.meaning-principle p {
  max-width: 24rem;
  margin: 0;
  color: rgba(246, 245, 241, 0.76);
  font-size: 0.95rem;
  line-height: 1.75;
}

.meaning-link {
  display: inline-block;
  margin-top: 3.4rem;
  color: #f6f5f1;
  font-size: 0.9rem;
  text-decoration-color: #00a761;
  text-underline-offset: 0.3em;
}

body .olfaction-film * {
  color: var(--film-ink) !important;
}

body .film-eyebrow,
body .meaning-eyebrow {
  color: #00e785 !important;
}

body .film-stage-count {
  color: #ff1684 !important;
}

body .film-thesis,
body .film-stage-copy {
  color: var(--film-dim) !important;
}

body .film-timeline li.is-active,
body .film-timeline li.is-complete {
  color: var(--film-ink) !important;
}

body .olfaction-meaning * {
  color: #f6f5f1 !important;
}

body .meaning-description,
body .meaning-principle p {
  color: rgba(246, 245, 241, 0.76) !important;
}

body .meaning-eyebrow,
body .principle-index {
  color: #00e785 !important;
}

body.home-film-page .news-container {
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 5rem clamp(1rem, 5vw, 5rem);
  background: transparent;
}

body.home-film-page .news-wrapper {
  width: min(100%, 84rem);
  height: min(66svh, 42rem);
}

body.home-film-page .news-fallback {
  width: min(100%, 84rem);
  height: auto;
  min-height: 8rem;
  border: 1px solid rgba(246, 245, 241, 0.22);
  border-radius: 1rem;
  justify-content: center;
}

body.home-film-page .news-fallback-link {
  color: #f6f5f1;
}

body.home-film-page .news-left {
  background: rgba(8, 10, 10, 0.88);
  color: #f6f5f1;
}

body.home-film-page .news-title,
body.home-film-page .news-summary {
  color: #f6f5f1;
}

body.home-film-page .carousel.home-products-module {
  z-index: 1;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 4rem 0 5rem;
  aspect-ratio: auto;
  background: transparent;
}

body.home-film-page .carousel.home-products-module .card-container {
  height: 100%;
}

body.home-film-page .carousel.home-products-module .card {
  width: min(82%, 86rem);
  height: min(76%, 46rem);
}

body.home-film-page .home-site-footer {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  height: auto;
  min-height: 3.5rem;
  margin: 0;
  padding: 0 1.5rem;
  color: #f6f5f1;
}

body.home-film-page .home-site-footer a {
  color: #f6f5f1;
  font-size: 0.8rem;
}

body.home-film-page .home-site-footer .footer-l {
  margin: 0;
}

body.home-film-page .home-site-footer .footer-r {
  margin: 0;
}

@media (max-width: 700px) {
  .olfaction-film {
    align-items: flex-end;
    padding: 7rem 1.35rem 3.5rem;
  }

  .film-grain {
    background:
      linear-gradient(180deg, rgba(8, 10, 10, 0.2), rgba(8, 10, 10, 0.48)),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px);
  }

  .film-content {
    width: 100%;
  }

  .film-title {
    max-width: 8em;
    font-size: clamp(3.25rem, 15vw, 5.5rem);
  }

  .film-thesis {
    max-width: 28rem;
    margin-top: 1.1rem;
    font-size: 1rem;
  }

  .film-caption {
    min-height: 5.6rem;
    margin-top: 2.2rem;
  }

  .film-timeline {
    gap: 0.35rem;
  }

  .film-step-label {
    font-size: 0.59rem;
    letter-spacing: 0;
  }

  .film-scroll {
    margin-top: 1.35rem;
  }

  .olfaction-meaning {
    padding: clamp(3.25rem, 7vh, 4rem) 1.25rem;
  }

  .meaning-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .meaning-principle h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.95rem;
  }

  .meaning-principle p {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .principle-visual {
    height: clamp(3.5rem, 15vw, 5rem);
    margin: 0.75rem 0;
  }

  body.home-film-page .news-container {
    padding: 4rem 1rem;
  }

  body.home-film-page .news-wrapper {
    height: min(62svh, 32rem);
  }

  body.home-film-page .carousel.home-products-module {
    padding: 4rem 0 4.5rem;
  }

  body.home-film-page .carousel.home-products-module .card {
    width: 88%;
    height: 72%;
  }

  body.home-film-page .home-site-footer {
    min-height: 3rem;
    padding: 0 1rem;
  }
}

@media (max-height: 800px) and (min-width: 701px) {
  .olfaction-meaning {
    padding: 3.5rem clamp(1.5rem, 8vw, 8rem);
  }

  .meaning-intro h2 {
    font-size: clamp(2rem, 4vw, 4rem);
  }

  .meaning-description {
    margin-top: 0.75rem;
  }

  .meaning-principles {
    margin-top: 1.5rem;
  }

  .principle-visual {
    height: 5rem;
    margin: 0.75rem 0;
  }
}

@media (max-height: 560px) {
  .olfaction-film {
    align-items: center;
    padding-top: 3.75rem;
    padding-bottom: 1rem;
  }

  .film-eyebrow {
    margin-bottom: 0.65rem;
  }

  .film-title {
    font-size: clamp(2.6rem, 7vh, 4.8rem);
  }

  .film-thesis {
    margin-top: 0.7rem;
    line-height: 1.4;
  }

  .film-caption {
    min-height: 0;
    margin-top: 1.2rem;
  }

  .film-scroll {
    margin-top: 0.75rem;
  }

  .meaning-principles {
    margin-top: 1.5rem;
  }

  .meaning-description {
    margin-top: 0.7rem;
  }

  .principle-visual {
    height: 4rem;
    margin: 0.5rem 0;
  }

  body.home-film-page .news-wrapper {
    height: 68svh;
  }

  body.home-film-page .carousel.home-products-module .card {
    height: 70%;
  }
}

@media (max-width: 700px) and (max-height: 560px) {
  .olfaction-film {
    padding: 3.75rem 1.1rem 1rem;
  }

  .film-title {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .film-caption {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-film-document {
    scroll-behavior: auto;
  }

  .film-timeline li,
  .film-step-label,
  .film-step-track > span,
  .principle-visual span {
    transition: none;
    animation: none;
  }
}
