/* Bar Profit Lab — end-of-page poster (footer).
   Extracted verbatim from styles.css so the margin tool shares the exact same sign-off.
   Needs the tokens: --forest, --forest-deep, --orange, --cream, --cream-muted, --cream-rule, --gutter, --mono. */

/* ---------- Footer ---------- */
footer { background: var(--forest); color: var(--cream); overflow-x: clip; }
footer > .frieze { margin-top: 0; }
.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 56px 40px;
}
.footer-spine { display: none; }
.footer-kicker {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.footer-kicker .kicker-break { display: inline; }
.footer-kicker > span { display: none; }

/* Single poster: a forest-green print with a soft lattice, the animated logo
   as hero, "Santé." laid over it and an editorial text column. */
.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 26px);
  width: 100%;
  max-width: 820px;
  padding: clamp(22px, 5vw, 36px);
  border-radius: 28px;
  background: var(--forest-deep);
  color: var(--cream);
}
.poster::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid var(--cream-rule);
  border-radius: 20px;
  pointer-events: none;
}

.poster-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--cream);
  opacity: .1;
  -webkit-mask: url('../img/lattice.svg') repeat 0 0 / 44px 44px, linear-gradient(200deg, #000 5%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask: url('../img/lattice.svg') repeat 0 0 / 44px 44px, linear-gradient(200deg, #000 5%, transparent 80%);
  mask-composite: intersect;
}
.poster-sun {
  position: absolute;
  top: -12%;
  right: -24%;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  animation: sun-float 16s ease-in-out infinite alternate;
}
@keyframes sun-float { to { transform: translate(-4%, 5%) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .poster-sun { animation: none; } }

.poster-art {
  position: relative;
  container-type: inline-size;
}
.poster-logo { display: block; width: 100%; height: auto; margin-bottom: 13%; }
.poster-word {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
}
.poster-word-text {
  display: flex;
  align-items: flex-end;
  font-weight: 800;
  font-stretch: 72%;
  font-size: 42cqi;
  line-height: .78;
  letter-spacing: -.035em;
  color: var(--cream);
}
.poster-word-dot {
  flex: none;
  width: .2em;
  height: .2em;
  margin: 0 0 .03em .05em;
  border-radius: 50%;
  background: var(--orange);
}

.poster-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.poster-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}
.poster-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.poster-deck {
  margin: 0;
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.5rem, 6.6vw, 1.95rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--cream);
}
.poster-text {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream-muted);
}
.poster-text sup, .poster-notes sup {
  font-family: var(--mono);
  font-size: .7em;
  line-height: 0;
  color: var(--orange);
}
.poster-text sup a { color: inherit; text-decoration: none; padding-inline: 1px; }

.poster-notes {
  margin: 6px 0 0;
  padding: 12px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--cream-rule);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.poster-notes a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.poster-notes a:hover { text-decoration-color: var(--cream); }

@media (min-width: 640px) {
  .poster {
    display: grid;
    grid-template-columns: 6fr 5fr;
    column-gap: clamp(22px, 4vw, 40px);
    align-items: center;
  }
  .poster-sun { top: -22%; right: auto; left: -9%; width: 40%; }
  .poster-deck { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
}

@media (min-width: 900px) {
  .footer-inner { padding-block: 80px 56px; padding-left: calc(var(--gutter) + 40px); }
  .footer-spine {
    display: block;
    position: absolute;
    left: var(--gutter);
    top: 80px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cream-muted);
  }
  .footer-kicker .kicker-break { display: none; }
  .footer-kicker > span { display: inline; }
}
footer::after {
  content: "";
  display: block;
  height: 56px;
  background-color: var(--orange);
  -webkit-mask: url('../img/jiggers.svg') repeat-x 0 center / 64px 56px;
  mask: url('../img/jiggers.svg') repeat-x 0 center / 64px 56px;
  animation: drift-x 14s linear infinite;
}
@keyframes drift-x { to { -webkit-mask-position: 64px center; mask-position: 64px center; } }
