.foot {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding-bottom: 18px;
}

/* paper, like the landing card */
.card {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(40px, 7vw, 76px) 6vw 0;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 45% 55% at 50% 30%, rgba(242, 170, 182, 0.26), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 0%, rgba(79, 196, 198, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(240, 216, 112, 0.2), transparent 70%),
    var(--color-paper);
  box-shadow: 0 1px 2px rgba(30, 28, 34, 0.04), 0 30px 70px -34px rgba(30, 28, 34, 0.28);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(36, 31, 38, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.hi {
  margin: 0;
  font: 700 clamp(72px, 15vw, 168px)/0.9 var(--font-hand);
  color: var(--color-ink);
}
.hi em {
  --o: 0.035em;
  display: inline-block;
  font-style: normal;
  color: var(--color-petal);
  text-shadow:
    var(--o) 0 var(--color-ink), calc(var(--o) * -1) 0 var(--color-ink),
    0 var(--o) var(--color-ink), 0 calc(var(--o) * -1) var(--color-ink),
    calc(var(--o) * 0.7) calc(var(--o) * 0.7) var(--color-ink), calc(var(--o) * -0.7) calc(var(--o) * 0.7) var(--color-ink),
    calc(var(--o) * 0.7) calc(var(--o) * -0.7) var(--color-ink), calc(var(--o) * -0.7) calc(var(--o) * -0.7) var(--color-ink),
    0 0.06em rgba(36, 31, 38, 0.14);
  transform-origin: 30% 90%;
}
/* a little wave hello when it comes into view */
:host([in-view]) .hi em { animation: wave 1.4s cubic-bezier(0.3, 0.8, 0.3, 1) 0.3s; }
@keyframes wave {
  20% { rotate: -9deg; } 40% { rotate: 7deg; } 60% { rotate: -5deg; } 80% { rotate: 3deg; } 100% { rotate: 0deg; }
}

.lede {
  margin: clamp(12px, 2vw, 20px) 0 0;
  font: italic 500 clamp(19px, 2.4vw, 26px)/1.35 var(--font-serif);
  color: var(--color-name);
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(24px, 3.4vw, 34px);
}

/* hand-drawn arrow pointing at the button (draws itself in) */
.arrow {
  position: absolute;
  right: calc(100% - 6px);
  top: -34px;
  width: 84px;
  overflow: visible;
}
.arrow path {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
:host([in-view]) .arrow path { animation: draw 0.9s ease-in-out 0.6s forwards; }
:host([in-view]) .arrow .head { animation-delay: 1.35s; animation-duration: 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px 16px 20px;
  border-radius: 99px;
  font: 600 16px/1 var(--font-ui);
  color: var(--color-ink);
  text-decoration: none;
  /* glossy petal button with an ink outline and a printed "lip", like a sticker */
  background: linear-gradient(180deg, var(--color-petal-light), var(--color-petal));
  border: 2px solid var(--color-ink);
  box-shadow: 0 4px 0 var(--color-ink), 0 16px 30px -14px rgba(36, 31, 38, 0.5);
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--color-ink), 0 20px 34px -14px rgba(36, 31, 38, 0.5); }
.btn:active { translate: 0 3px; box-shadow: 0 1px 0 var(--color-ink), 0 10px 20px -14px rgba(36, 31, 38, 0.5); }
.btn-icon { display: inline-flex; width: 18px; }

.socials { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(36, 31, 38, 0.14);
  transition: translate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, border-color 0.25s ease;
}
.social svg { width: 22px; }
button.social { padding: 0; cursor: pointer; font: inherit; }
.social:hover { translate: 0 -3px; color: var(--color-petal-shade); border-color: var(--color-petal); }

/* ---------- the meadow ---------- */
.meadow {
  position: relative;
  width: calc(100% + 12vw);
  height: clamp(96px, 12vw, 130px);
  margin-top: clamp(28px, 5vw, 52px);
}
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.ground path {
  fill: none;
  stroke: var(--color-leaf);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.6;
}

.sprout {
  position: absolute;
  left: var(--x);
  bottom: 10px;
  width: calc(var(--size) * var(--k, 1));
  translate: -50% 0;
  transform-origin: 50% 100%;
  scale: 1 0;
}
.sprout ss-flower {
  display: block;
  --flower-size: calc(var(--size) * var(--k, 1));
  transform-origin: 50% 100%;
  animation: sway var(--sway) ease-in-out calc(var(--i) * -0.7s) infinite alternate;
}
:host([in-view]) .sprout { animation: sprout 0.9s cubic-bezier(0.3, 0.9, 0.35, 1.15) calc(0.2s + var(--i) * 0.07s) forwards; }
@keyframes sprout { to { scale: 1 1; } }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; } }

/* phones: fewer, so the meadow doesn't crowd */
@media (max-width: 600px) {
  .meadow { --k: 0.72; }
  .sprout:nth-child(3n + 1) { display: none; }
  .arrow { display: none; }
}

.fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 18px 8px 6px;
  font: italic 500 15px/1.3 var(--font-serif);
  color: var(--color-name);
}
/* long text wraps by words, never past the edge */
.fine span { min-width: 0; overflow-wrap: anywhere; }
.fine-credit { text-align: right; }
.fine.single { justify-content: center; }
@media (max-width: 600px) {
  .fine { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .fine-credit { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sprout { scale: 1; animation: none !important; }
  .sprout ss-flower, :host([in-view]) .hi em { animation: none; }
  .arrow path { stroke-dashoffset: 0; animation: none !important; }
}

/* compact (pages that have their own contact card): just the meadow and the small print */
:host([compact]) .hi, :host([compact]) .lede, :host([compact]) .actions { display: none; }
:host([compact]) .card { padding-top: 0; }
:host([compact]) .meadow { margin-top: 18px; }

