/* Warm, irregular edges. The original logo and real Albertus fonts remain. */
.gf-header { border-bottom: 0; }
.gf-header::after {
  content: ""; position: absolute; left: 0; top: calc(100% - 1px);
  width: 100%; height: 30px; background: #feead0;
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%2036%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%200H1440V10C1300%206%201240%2030%201100%2023S860%201%20720%2015S515%2034%20370%2019S140%204%200%2022Z%22%2F%3E%3C%2Fsvg%3E"); mask-size: 100% 100%; mask-repeat: no-repeat;
  pointer-events: none;
}
.home-hero-media { border-radius: 44% 8% 27% 6% / 7% 20% 9% 24%; overflow: hidden; }

/* On desktop the copy sets the row height; the photo fills that row. */
@media (min-width: 800px) {
  .home-hero-grid {
    min-height: 0;
    align-items: stretch;
    padding-block: clamp(28px, 3vw, 44px);
  }
  .home-hero-content { align-self: stretch; }
  .home-hero-media {
    position: relative;
    min-height: 0;
    min-width: 0;
  }
  .home-hero-media > img,
  .home-hero-media > .image-placeholder-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }
}
.home-products { border-top: 0; }
.gf-promo-boundary {
  height: clamp(120px,11.12vw,170px); position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(to bottom,var(--gf-promo-top,#fff8ef) 0 50%,var(--gf-promo-bottom,#feead0) 50% 100%);
}
.gf-promo-ribbon {
  position: absolute; inset: 0; background: #282018; color: #fff0d7;
  clip-path: polygon(0 42%,18% 35%,44% 29%,68% 19%,86% 11%,100% 5%,100% 72%,81% 76%,57% 82%,32% 91%,12% 95%,0 96%);
  overflow: hidden;
}
.gf-promo-scroll {
  position: absolute; left: -1%; top: 50%; width: 102%;
  transform: translateY(-30%) rotate(-2.7deg);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.gf-promo-scroll::-webkit-scrollbar { display: none; }
.gf-promo-scroll:focus-visible { outline: 2px solid #fff0d7; outline-offset: -2px; }
.gf-promo-copy {
  display: flex; align-items: center; justify-content: center;
  width: max-content; min-width: 100%; margin: 0; padding: 8px 35px;
  list-style: none; font-family: "Glassfabriken Albertus",Georgia,serif;
  font-size: clamp(27px,2.65vw,39px); font-weight: 700; line-height: 1.1;
}
.gf-promo-copy li { display: flex; align-items: center; flex: none; white-space: nowrap; }
.gf-promo-copy li + li::before {
  content: ""; display: block; width: 10px; height: 10px;
  border-radius: 50%; background: currentColor; flex: 0 0 10px; margin: 0 38px;
}
@media (max-width: 1099px) {
  .gf-header::after { height: 20px; }
  .gf-promo-copy { justify-content: flex-start; font-size: 29px; padding-inline: 28px; }
  .gf-promo-copy li + li::before { width: 8px; height: 8px; flex-basis: 8px; margin-inline: 27px; }
}

/* Subsequent homepage sections overlap by the wave depth.
   Transparent wave areas reveal the previous section, even with photos/video. */
#main-content > section ~ section {
  --gf-edge-depth: 32px;
  position: relative;
  margin-top: calc(-1 * var(--gf-edge-depth));
  padding-top: calc(var(--space-xl, 4rem) + var(--gf-edge-depth));
  border-top: 0;
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2019C160%202%20230%203%20370%2016S610%2034%20780%2020S1030%201%201180%2013S1350%2029%201440%2010V40H0Z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(#000,#000);
  mask-size: 100% var(--gf-edge-depth), 100% calc(100% - var(--gf-edge-depth) + 1px);
  mask-position: top, bottom;
  mask-repeat: no-repeat;
}
#main-content > section ~ section:nth-of-type(2n) {
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%208C180%2028%20280%2030%20430%2015S650%200%20830%2017S1080%2030%201210%2014S1360%202%201440%2015V40H0Z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(#000,#000);
}
/* The promo ribbon remains the complete hero/products boundary. */
#main-content > .gf-promo-boundary + .home-products {
  margin-top: 0;
  padding-top: var(--space-xl, 4rem);
  mask-image: none;
}
.editorial-media, .editorial-media .image-placeholder {
  border-radius: 5% 20% 7% 16% / 13% 6% 16% 8%;
  overflow: hidden;
}
.editorial-split-reverse .editorial-media,
.editorial-split-reverse .editorial-media .image-placeholder {
  border-radius: 20% 5% 16% 7% / 6% 13% 8% 16%;
}
@media (min-width: 800px) {
  #main-content > section ~ section {
    padding-top: calc(var(--space-2xl, 7rem) + var(--gf-edge-depth));
  }
  #main-content > .gf-promo-boundary + .home-products {
    padding-top: var(--space-2xl, 7rem);
  }
}
@media (max-width: 799px) {
  #main-content > section ~ section { --gf-edge-depth: 22px; }
}

body:has(#main-content > .home-section) .site-footer {
  --gf-edge-depth: 32px;
  position: relative;
  margin-top: calc(-1 * var(--gf-edge-depth));
  padding-top: calc(var(--space-lg, 2.5rem) + var(--gf-edge-depth));
  border-top: 0;
  background: var(--background, #feead0);
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2019C160%202%20230%203%20370%2016S610%2034%20780%2020S1030%201%201180%2013S1350%2029%201440%2010V40H0Z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(#000,#000);
  mask-size: 100% var(--gf-edge-depth), 100% calc(100% - var(--gf-edge-depth) + 1px);
  mask-position: top, bottom;
  mask-repeat: no-repeat;
}
@media (max-width: 799px) {
  body:has(#main-content > .home-section) .site-footer { --gf-edge-depth: 22px; }
}
