.rl-feature {
  --rl-cream: var(--cream, #f7f4e9);
  --rl-ink: var(--ink, #191917);
  --rl-display: var(--display, "Rattle Press", Impact, sans-serif);
  --rl-frame-w: 18.125vw;
  --rl-frame-h: 31.375vw;
  --rl-explorer-y: clamp(9rem, 25.5svh, 27rem);
  --rl-intro-type: min(8.15vw, 13.05svh);
  --rl-intro-heading-y: 26.4svh;
  --rl-intro-caption-y: 67.6svh;
  --rl-intro-can-y: 48.4svh;
  --rl-intro-can-h: min(31.5vw, 47.5svh);
  --rl-intro-can-angle: -9deg;
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--rl-ink);
  background-color: var(--rl-intro);
}

.rl-intro,
.rl-explorer {
  position: relative;
  transition: background-color 280ms ease;
}

.rl-intro::before,
.rl-explorer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("grain.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .41;
  pointer-events: none;
}

.rl-intro {
  height: 100svh;
  min-height: 30rem;
  color: var(--rl-cream);
  background-color: var(--rl-intro);
}

.rl-can-moving {
  background-color: var(--rl-painted, var(--rl-intro));
}

.rl-can-moving .rl-intro,
.rl-can-moving .rl-explorer {
  background-color: transparent;
}

.rl-home-title {
  position: absolute;
  inset: var(--rl-intro-heading-y) 0 auto;
  width: min(94vw, 98rem);
  margin-inline: auto;
  font-family: var(--rl-display);
  font-size: var(--rl-intro-type);
  line-height: 1.005;
  letter-spacing: -.024em;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.rl-home-title > span {
  display: block;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.rl-home-title > span:first-child {
  scale: .91 1;
}

.rl-home-title > span:nth-child(2) {
  scale: 1.1 1;
}

:lang(nl) .rl-home-title > span:nth-child(2) {
  scale: .85 1;
}

.rl-home-title > span:last-child {
  z-index: 11;
  scale: .72 1;
}

.rl-home-caption {
  position: absolute;
  z-index: 12;
  inset: var(--rl-intro-caption-y) 3vw auto;
  width: fit-content;
  max-width: 92vw;
  margin: 0 auto;
  padding-block-start: .6vw;
  font-family: var(--rl-display);
  font-size: clamp(1rem, 2.3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  scale: .8 1;
}

.rl-home-caption::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 19.7vw) auto;
  border-top: 1px dotted currentColor;
  opacity: .56;
}

.rl-intro-pose,
.rl-panel-pose,
.rl-can-stage {
  position: absolute;
  aspect-ratio: 664 / 1144;
  width: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rl-intro-pose,
.rl-can-stage {
  top: var(--rl-intro-can-y);
  height: var(--rl-intro-can-h);
}

.rl-intro-pose,
.rl-panel-pose {
  pointer-events: none;
}

.rl-can-stage {
  z-index: 7;
  transform: translate(-50%, -50%) rotate(var(--rl-intro-can-angle));
}

.rl-can-stage [data-can-img],
.rl-can-stage [data-can-view],
.rl-beer-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(.2rem .7rem .52rem #120b1a54);
}

.rl-can-stage [data-can-view] {
  position: absolute;
  inset: 0;
}

.rl-can-moving .rl-beer-still {
  visibility: hidden;
}

.rl-scroll {
  display: grid;
  position: absolute;
  z-index: 15;
  place-items: center;
  inset: 53.3svh auto auto 6.25vw;
  width: clamp(4rem, 7.625vw, 10rem);
  aspect-ratio: 1;
  border-radius: 50%;
}

.rl-scroll-ring,
.rl-scroll > .icon {
  position: absolute;
}

.rl-scroll-ring {
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  font: 900 10.5px var(--rl-display);
  letter-spacing: .83px;
}

.rl-scroll > .icon {
  width: 21%;
  height: 21%;
  stroke-width: 1.3;
  transition: transform .18s ease;
}

.rl-scroll:hover > .icon {
  transform: translateY(3px);
}

.rl-intro-links {
  display: none;
}

.rl-explorer {
  min-height: max(100svh, calc(var(--rl-explorer-y) + var(--rl-frame-h) + 7rem));
  padding-block: var(--rl-explorer-y) 3rem;
  background-color: var(--rl-field);
  scroll-margin-top: 0;
}

.rl-explorer-grid {
  display: grid;
  position: relative;
  width: 85.75vw;
  margin-inline: auto;
  gap: 7.5vw;
  grid-template-columns: minmax(0, 1fr) var(--rl-frame-w) minmax(0, 1fr);
  align-items: stretch;
}

.rl-beer-left {
  text-align: right;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.rl-detail-kicker,
.rl-detail-small,
.rl-format,
.rl-ingredients > p:last-child,
.rl-facts dt,
.rl-facts dd,
.rl-allergens {
  font-family: var(--rl-display);
  font-weight: 900;
  text-transform: uppercase;
}

.rl-detail-kicker {
  margin: 0 0 clamp(.7rem, 1.5vw, 1.55rem);
  font-size: clamp(.77rem, 1.02vw, 1.2rem);
  line-height: 1.2;
}

.rl-beer-title {
  max-width: min(20vw, 28.5rem);
  font-size: clamp(2.25rem, 4.1vw, 6.65rem);
  text-transform: uppercase;
  text-wrap: balance;
  line-height: .99;
  overflow-wrap: normal;
}

.rl-beer-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: .045em;
  text-underline-offset: .13em;
}

.rl-format {
  font-size: clamp(.84rem, 1.24vw, 1.7rem);
  letter-spacing: .025em;
  margin: clamp(.6rem, 1.45vw, 1.45rem) 0 0;
}

.rl-ingredients {
  align-self: flex-end;
  max-width: min(16.1vw, 22rem);
  margin-block: auto 1.25vw;
  padding-block-start: .75rem;
}

.rl-detail-small,
.rl-facts dt,
.rl-allergens {
  font-size: clamp(.65rem, .78vw, 1rem);
  line-height: 1.25;
}

.rl-detail-small {
  margin: 0 0 .5rem;
}

.rl-ingredients > p:last-child {
  margin-bottom: 0;
  font-size: clamp(.87rem, 1.29vw, 1.6rem);
  line-height: 1.3;
}

.rl-beer-frame {
  min-height: var(--rl-frame-h);
  position: relative;
  border: 1px solid var(--rl-cream);
  border-radius: 3.44vw;
  pointer-events: none;
}

.rl-beer-frame::before {
  content: "";
  position: absolute;
  inset: -.43vw;
  border: 1px dashed color-mix(in srgb, var(--rl-cream) 60%, transparent);
  border-radius: calc(3.44vw + .43vw);
}

.rl-panel-pose {
  top: 44%;
  height: 86%;
}

.rl-beer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rl-beer-notes {
  max-width: 39ch;
  font-size: clamp(.85rem, 1.02vw, 1.13rem);
  line-height: 1.64;
  margin: 0 0 1.2rem;
}

.rl-facts {
  width: min(15.25vw, 21rem);
  margin-top: auto;
}

.rl-facts dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px dotted #25182e69;
}

.rl-facts dl > div {
  min-width: 0;
  padding: clamp(.4rem, 1vw, 1.25rem) 0;
  border-bottom: 1px dotted #25182e69;
}

.rl-facts dl > div:nth-child(even) {
  padding-inline-start: 1.25vw;
  border-left: 1px dotted #25182e69;
}

.rl-facts dd {
  margin: .17em 0 0;
  font-size: clamp(.85rem, 1.19vw, 1.55rem);
  line-height: 1.05;
}

.rl-allergens {
  margin: .7vw 0 0;
}

.rl-buy {
  min-height: clamp(2.5rem, 2.78vw, 3.5rem);
  width: min(15.25vw, 21rem);
  margin: 1.25vw 0 1.25vw;
  padding: .45rem .6rem;
  border: 0;
  border-radius: 999px;
  background: var(--rl-accent);
  color: var(--rl-ink);
  font: 900 clamp(.67rem, .82vw, 1rem) / 1 var(--rl-display);
}

.rl-buy:hover,
.rl-can-switch:hover {
  filter: brightness(.93);
}

.rl-beer-nav {
  position: relative;
  z-index: 14;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 19.375vw;
  margin: 2.5vw auto 0;
}

.rl-beer-current {
  display: grid;
  justify-items: center;
  gap: .35rem;
  text-align: center;
}

.rl-beer-current > span {
  font-family: var(--rl-display);
  font-size: clamp(.65rem, .84vw, 1.05rem);
}

.rl-beer-current > strong {
  max-width: 8ch;
  font: 900 clamp(.9rem, 1.35vw, 1.6rem) / .96 var(--rl-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.rl-beer-nav button {
  display: grid;
  place-items: center;
  width: clamp(2.45rem, 2.75vw, 3.8rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--rl-ink);
  background: transparent;
}

.rl-beer-nav button:hover {
  color: var(--rl-ink);
  background: var(--rl-accent);
  border-color: var(--rl-accent);
}

.rl-can-switch {
  display: flex;
  position: fixed;
  z-index: 23;
  align-items: center;
  justify-content: flex-start;
  inset: 50% -6.53vw auto auto;
  transform: translateY(-50%);
  width: clamp(7rem, 12.5vw, 15rem);
  aspect-ratio: 1;
  padding: 0 0 0 clamp(1rem, 1.9vw, 2.5rem);
  border: 0;
  border-radius: 50%;
  background: var(--rl-accent);
  color: var(--rl-ink);
}

.rl-can-switch svg {
  width: clamp(1.5rem, 2.5vw, 3.3rem);
  height: auto;
}

@media (max-width: 1079px) {
  .rl-feature {
    --rl-intro-heading-y: 18.52vw;
    --rl-intro-caption-y: 103.8vw;
    --rl-intro-type: 7.6vw;
    --rl-intro-can-y: 62vw;
    --rl-intro-can-h: 66.5vw;
    --rl-frame-w: 45.37vw;
    --rl-frame-h: 78.89vw;
    --rl-explorer-y: max(12.9rem, 31.5svh);
  }

  .rl-intro {
    min-height: max(100svh, 113.5vw);
  }

  .rl-home-title {
    line-height: 1.14;
  }

  .rl-home-title > span:first-child {
    scale: 1 1;
  }

  .rl-home-caption {
    font-size: clamp(1.02rem, 3vw, 2.1rem);
    padding-block-start: .5vw;
    scale: .94 1;
  }

  .rl-home-caption::before {
    inset: 0 calc(50% - 24.83vw) auto;
  }

  .rl-scroll {
    inset: 55.5vw auto auto 2.78vw;
    width: 15vw;
  }

  .rl-intro-links {
    display: flex;
    position: absolute;
    z-index: 14;
    inset: 53.9vw 1.9vw auto auto;
    flex-direction: column;
  }

  .rl-intro-links a {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2.1rem;
    border-radius: 50%;
  }

  .rl-intro-links a:hover {
    color: var(--rl-ink);
    background: var(--rl-accent);
  }

  .rl-intro-links .icon {
    width: .97rem;
    height: .97rem;
  }

  .rl-explorer {
    min-height: max(calc(100svh - 16.1svh), calc(var(--rl-explorer-y) + var(--rl-frame-h) + 15.6vw));
    padding-block-end: 0;
  }

  .rl-explorer-grid {
    grid-template-columns: var(--rl-frame-w);
    width: 100%;
    justify-content: center;
    gap: 0;
  }

  .rl-beer-left,
  .rl-beer-right {
    display: contents;
  }

  .rl-beer-left > :not(.rl-beer-title),
  .rl-tasting,
  .rl-facts,
  .rl-beer-current {
    display: none;
  }

  .rl-beer-title {
    position: absolute;
    inset: -12vw 3vw auto;
    max-width: none;
    font-size: clamp(2.15rem, 6.5vw, 6rem);
    line-height: .98;
    text-align: center;
  }

  .rl-beer-frame {
    border-radius: 7.9vw;
  }

  .rl-beer-frame::before {
    display: none;
  }

  .rl-buy {
    z-index: 24;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    min-height: 2.3rem;
    width: max(8.4rem, 18.5vw);
    margin: 0;
    font-size: .72rem;
  }

  .rl-beer-nav {
    position: absolute;
    inset: calc(var(--rl-explorer-y) + var(--rl-frame-h) / 2) 2.78vw auto;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    width: auto;
    margin: 0;
    pointer-events: none;
  }

  .rl-beer-nav button {
    width: clamp(2.75rem, 13.85vw, 5rem);
    color: var(--rl-ink);
    border-color: var(--rl-cream);
    pointer-events: auto;
  }

  .rl-can-switch {
    inset: auto auto -5.6rem 50%;
    width: 11.2rem;
    padding: 1rem 0 0;
    transform: translateX(-50%);
    align-items: flex-start;
    justify-content: center;
  }

  .rl-can-switch svg {
    width: 1.55rem;
  }
}

@media (max-width: 580px) {
  .rl-feature {
    --rl-intro-heading-y: 34.48vw;
    --rl-intro-caption-y: 138.2vw;
    --rl-intro-type: 8.75vw;
    --rl-intro-can-y: 92vw;
    --rl-intro-can-h: 79vw;
    --rl-frame-w: 50vw;
    --rl-frame-h: 86.205vw;
    --rl-explorer-y: max(11.8rem, 32.8svh);
  }

  .rl-intro {
    min-height: max(100svh, 157vw);
  }

  .rl-home-title {
    width: 94vw;
    line-height: 1.17;
  }

  .rl-home-title > span:nth-child(2) {
    scale: 1.17 1;
  }

  :lang(nl) .rl-home-title > span:nth-child(2) {
    scale: .94 1;
  }

  .rl-home-caption {
    font-size: 4.2vw;
    padding-block-start: 1.2vw;
    white-space: nowrap;
    scale: .89 1;
  }

  :lang(nl) .rl-home-caption {
    font-size: 3.64vw;
  }

  .rl-home-caption::before {
    inset: -70.9vw calc(50% - 38.75vw) auto;
  }

  .rl-scroll {
    inset: 80vw auto auto 5.17vw;
    width: 17.59vw;
  }

  .rl-intro-links {
    inset: 70.6vw 3.1vw auto auto;
  }

  .rl-intro-links a {
    width: 8vw;
    height: 9vw;
  }

  .rl-intro-links .icon {
    width: 4.1vw;
    height: 4.1vw;
  }

  .rl-explorer {
    min-height: max(calc(100svh - 16.1svh), calc(var(--rl-explorer-y) + var(--rl-frame-h) + 24vw));
  }

  .rl-beer-title {
    inset-block-start: -20vw;
    font-size: clamp(1.92rem, 10.4vw, 4rem);
  }

  .rl-beer-frame {
    border-radius: 9.48vw;
  }

  .rl-buy {
    width: max(6.85rem, 34.45vw);
    min-height: max(2rem, 9.2vw);
  }

  .rl-beer-nav {
    inset-inline: 5.17vw;
  }

  .rl-can-switch {
    inset-block-end: -27.6vw;
    width: 43.1vw;
    padding-top: 3.35vw;
  }

  .rl-can-switch svg {
    width: 6.2vw;
    min-width: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-intro,
  .rl-explorer,
  .rl-scroll > .icon {
    transition: none;
  }
}
