:root {
  --green: #173f38;
  --green-deep: #10332d;
  --white: #fffaf0;
  --coral: #ee6b52;
  --yellow: #f2c94c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--green);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.055) 5px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px);
  background-size: auto, 9px 9px;
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
}

.page-block {
  position: relative;
  width: 100%;
}

#top {
  position: relative;
}

.quick-signup {
  --quick-signup-trigger-top: 28;
  position: fixed;
  top: 28px;
  right: 20px;
  max-width: calc(100vw - 40px);
  z-index: 12;
  display: inline-flex;
  min-height: 44px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid rgba(255, 250, 240, 0.8);
  border-radius: 50px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.quick-signup.is-parked {
  position: absolute;
  top: var(--quick-signup-stop, 0px);
}

.quick-signup:hover,
.quick-signup:focus-visible {
  color: var(--green);
  background: var(--white);
  outline: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(117, 185, 189, 0.16), transparent 30%),
    var(--green);
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(93deg, transparent 47%, rgba(255, 255, 255, 0.08) 49%, transparent 51%),
    linear-gradient(5deg, transparent 47%, rgba(255, 255, 255, 0.055) 49%, transparent 51%);
  background-size: 23px 19px, 31px 29px;
}

.hero-identity {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 3;
  width: min(92vw, 1000px);
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.intro-ready .hero-identity {
  animation: identity-appears 0.65s 2.15s cubic-bezier(0.22, 0.72, 0.25, 1) forwards;
}

.hero-identity h1 {
  margin: 0;
  line-height: 0;
}

.hero-logo {
  width: min(92vw, 820px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 0 rgba(16, 51, 45, 0.46));
  transform: translateY(24px);
}

.hero-identity p {
  margin: 25px 0 0;
  font: 700 clamp(17px, 2.2vw, 27px)/1.2 "Segoe Print", "Comic Sans MS", cursive;
  letter-spacing: 0.08em;
}

.chalk-animal {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 4;
  width: min(90vw, 520px);
  height: clamp(250px, 32vw, 330px);
  filter: drop-shadow(5px 8px 0 rgba(73, 52, 44, 0.32));
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92) rotate(-2deg);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.intro-ready .chalk-animal {
  animation: animal-sequence 2.15s 0.1s both;
}

.intro-duck {
  position: absolute;
  display: block;
  width: auto;
  object-fit: contain;
}

.duck-one {
  top: 0;
  left: 16%;
  height: 100%;
  transform: rotate(-4deg);
}

.duck-two {
  top: 29%;
  right: 20%;
  height: 56%;
  transform: rotate(4deg);
}

.hero-trail {
  position: absolute;
  top: calc(43% + 155px);
  left: 50%;
  z-index: 2;
  display: flex;
  width: 90px;
  height: calc(57% - 155px);
  padding-top: 15px;
  flex-direction: column;
  gap: 27px;
  align-items: center;
  transform: translateX(-50%);
}

.hero-trail span {
  --dash-angle: 0deg;
  display: block;
  width: 13px;
  height: 42px;
  flex: 0 0 auto;
  background: #fff4d6;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-12px) rotate(var(--dash-angle));
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.hero-trail span:nth-child(2) {
  --dash-angle: 2deg;
  margin-left: 6px;
}

.hero-trail span:nth-child(3) {
  --dash-angle: -3deg;
  margin-left: -3px;
}

.hero-trail .hero-trail-tail {
  --dash-angle: -3deg;
  margin-left: -3px;
  background: linear-gradient(to bottom, #fff4d6, rgba(255, 244, 214, 0));
}

.route-started .hero-trail .hero-trail-tail {
  background: #fff4d6;
}

.intro-complete .hero-trail span {
  animation: dash-appears 0.38s cubic-bezier(0.22, 0.72, 0.25, 1) forwards;
}

.intro-complete .hero-trail span:nth-child(2) { animation-delay: 0.12s; }
.intro-complete .hero-trail span:nth-child(3) { animation-delay: 0.24s; }

.story {
  position: relative;
  height: auto;
  max-width: 1380px;
  margin: 0 auto;
  padding-top: 105px;
  background: var(--green);
}

.sewing-pins {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sewing-pin {
  position: absolute;
  display: block;
  height: auto;
  opacity: 1;
  mix-blend-mode: normal;
  transform-origin: center;
}

.pin-warm {
  filter:
    url(#pin-warm-filter)
    drop-shadow(7px 9px 0 rgba(73, 52, 44, 0.24));
}

.pin-rust {
  filter:
    url(#pin-rust-filter)
    drop-shadow(6px 8px 0 rgba(73, 52, 44, 0.22));
}

.pin-forest {
  filter:
    url(#pin-forest-filter)
    drop-shadow(7px 9px 0 rgba(73, 52, 44, 0.25));
}

.pin-gold {
  filter:
    url(#pin-gold-filter)
    drop-shadow(6px 8px 0 rgba(73, 52, 44, 0.22));
}

.pin-berry {
  filter:
    url(#pin-berry-filter)
    drop-shadow(5px 7px 0 rgba(73, 52, 44, 0.22));
}

.pin-blue {
  filter:
    url(#pin-blue-filter)
    drop-shadow(5px 7px 0 rgba(73, 52, 44, 0.24));
}

.pin-lime {
  filter:
    url(#pin-lime-filter)
    drop-shadow(5px 7px 0 rgba(73, 52, 44, 0.22));
}

.pin-plum {
  filter:
    url(#pin-plum-filter)
    drop-shadow(5px 7px 0 rgba(73, 52, 44, 0.24));
}

.pin-one {
  right: auto;
  left: 78%;
  width: clamp(102px, 12.6vw, 180px);
  transform: rotate(13deg);
}

.pin-two {
  left: 44%;
  width: clamp(75px, 9vw, 129px);
  transform: rotate(-16deg);
}

.pin-three {
  right: auto;
  left: 25%;
  width: clamp(114px, 14.4vw, 204px);
  transform: rotate(9deg);
}

.pin-four {
  left: 7%;
  width: clamp(93px, 12vw, 174px);
  transform: rotate(-11deg);
}

.pin-five {
  right: auto;
  left: 38%;
  width: clamp(81px, 10.2vw, 147px);
  transform: rotate(21deg);
}

.pin-six {
  left: 18%;
  width: clamp(108px, 13.2vw, 192px);
  transform: rotate(-8deg);
}

.pin-seven {
  left: 12%;
  width: clamp(88px, 10.8vw, 154px);
  transform: rotate(-22deg);
}

.pin-eight {
  right: auto;
  left: 86%;
  width: clamp(72px, 8.4vw, 122px);
  transform: rotate(18deg);
}

.pin-nine {
  left: 64%;
  width: clamp(105px, 12.8vw, 184px);
  transform: rotate(-6deg);
}

.pin-ten {
  right: auto;
  left: 74%;
  width: clamp(96px, 11.6vw, 166px);
  transform: rotate(25deg);
}

.pin-eleven {
  left: 88%;
  width: clamp(86px, 10.4vw, 150px);
  transform: rotate(-17deg);
}

.pin-twelve {
  right: auto;
  left: 56%;
  width: clamp(74px, 8.8vw, 126px);
  transform: rotate(12deg);
}

.route-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-template {
  fill: none;
  stroke: none;
}

.route-dash {
  fill: none;
  stroke: var(--white);
  stroke-width: 13;
  stroke-linecap: round;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.route-dash.is-solid,
.route-dash.is-tail {
  opacity: 0.94;
}

.route-dash.is-tail {
  stroke: url(#route-tail-gradient);
}

.story-card {
  position: relative;
  left: auto;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 720px;
  padding: 145px max(40px, calc((100% - 1080px) / 2));
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.72s ease,
    transform 0.85s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.story-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-right {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.card-right .media-frame {
  order: 2;
}

.card-right .card-copy {
  order: 1;
  text-align: right;
}

.media-frame {
  position: relative;
  min-width: 0;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 22px 55px rgba(4, 20, 17, 0.35);
}

.media-frame img,
.media-frame video {
  height: 410px;
  object-fit: cover;
  background: #d7d0c0;
}

.media-stack {
  position: relative;
  height: 410px;
  overflow: hidden;
  background: #d7d0c0;
}

.media-stack .story-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 0.75s ease;
}

.media-stack .story-media-item.is-active {
  z-index: 1;
  opacity: 1;
}

.media-empty {
  display: flex;
  height: 410px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  color: #49342c;
  text-align: center;
  background: #f1d996;
}

.portrait {
  width: min(78%, 390px);
  justify-self: center;
}

.portrait video {
  height: 500px;
}

.portrait .media-stack,
.portrait .media-empty {
  height: 500px;
}

.story-card.story-without-copy {
  grid-template-columns: minmax(0, 1fr);
}

.story-card.story-without-copy .media-frame {
  order: initial;
  width: min(760px, 84%);
  grid-column: 1;
  justify-self: center;
}

.tilt-left {
  transform: rotate(-1.8deg);
}

.tilt-right {
  transform: rotate(1.5deg);
}

.tape {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 27px;
  opacity: 0.82;
  background: rgba(242, 201, 76, 0.82);
  box-shadow: inset 0 0 0 1px rgba(23, 63, 56, 0.08);
}

.tape-top {
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.tape-side {
  top: 45%;
  right: -36px;
  transform: rotate(88deg);
}

.tape-corner {
  top: 2px;
  left: -22px;
  transform: rotate(-42deg);
}

.card-copy h2,
.signup h2 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.card-copy p {
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.card-copy h2,
.card-copy p,
.signup h2,
.signup-button span,
.signup-button small,
.fact strong,
.fact span,
.site-footer {
  overflow-wrap: anywhere;
}

.signup {
  position: relative;
  top: auto;
  left: auto;
  z-index: 4;
  width: 100%;
  min-height: 815px;
  padding: 125px max(20px, calc((100% - 980px) / 2)) 80px;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.signup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signup-kicker {
  display: none;
}

.signup h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(46px, 6vw, 78px);
  paint-order: stroke fill;
  -webkit-text-stroke: 10px var(--green);
  text-shadow:
    5px 0 var(--green),
    -5px 0 var(--green),
    0 5px var(--green),
    0 -5px var(--green);
}

.signup-button {
  position: relative;
  display: inline-flex;
  min-width: min(330px, 92vw);
  min-height: 105px;
  margin-top: 38px;
  padding: 18px 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  background: var(--coral);
  border-radius: 48% 52% 43% 57% / 48% 44% 56% 52%;
  box-shadow: 6px 8px 0 var(--green-deep);
  transform: rotate(-1.5deg);
  transition: 0.2s ease;
}

.signup-button::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: inherit;
}

.signup-button:hover,
.signup-button:focus-visible {
  box-shadow: 3px 4px 0 var(--green-deep);
  outline: none;
  transform: translate(3px, 4px) rotate(1deg);
}

.signup-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 5px;
}

.signup-button span {
  position: relative;
  z-index: 1;
  font: 900 clamp(25px, 4vw, 38px)/1 "Segoe Print", "Comic Sans MS", cursive;
  letter-spacing: 0.04em;
}

.signup-button small {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  width: 100%;
  max-width: 980px;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px auto 0;
}

.fact {
  display: flex;
  min-height: 100px;
  padding: 5px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fact + .fact {
  border-left: 1px dashed rgba(255, 250, 240, 0.38);
}

.fact-icon {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 25px;
}

.fact strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 16px;
}

.fact span:last-child {
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
}

.site-footer {
  display: flex;
  min-height: 105px;
  padding: 28px clamp(22px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 250, 240, 0.75);
  font-size: 13px;
  background: var(--green);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

/* Лоскутный вариант */
.patchwork-page .hero {
  background-color: #214c46;
  background-image:
    linear-gradient(88deg, transparent calc(48% - 4px), rgba(255, 244, 215, 0.48) calc(48% - 4px) calc(48% + 3px), transparent calc(48% + 3px)),
    linear-gradient(2deg, transparent calc(52% - 4px), rgba(255, 244, 215, 0.48) calc(52% - 4px) calc(52% + 3px), transparent calc(52% + 3px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    conic-gradient(from 87deg at 48% 52%, #67878b 0 24%, #733f4a 0 51%, #214c46 0 76%, #d1a94e 0);
  background-size: 100% 100%, 100% 100%, 5px 5px, 100% 100%;
}

.patchwork-page .story {
  max-width: none;
  background-color: #214c46;
  background-image:
    linear-gradient(88deg, transparent calc(48% - 4px), rgba(255, 244, 215, 0.48) calc(48% - 4px) calc(48% + 3px), transparent calc(48% + 3px)),
    repeating-linear-gradient(2deg, transparent 0 447px, rgba(255, 244, 215, 0.48) 447px 453px, transparent 453px 897px, rgba(255, 244, 215, 0.48) 897px 900px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    conic-gradient(from 87deg at 48% 50%, #67878b 0 24%, #733f4a 0 51%, #214c46 0 76%, #d1a94e 0);
  background-size: 100% 900px, 100% 900px, 5px 5px, 100% 900px;
  background-repeat: repeat-y, repeat-y, repeat, repeat-y;
}

.patchwork-page .hero::after,
.patchwork-page .story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.patchwork-page .hero::after {
  background-image:
    radial-gradient(circle at calc(48% - 4px) 1px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at calc(48% + 4px) 19px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 1px calc(52% - 4px), rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 19px calc(52% + 4px), rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px);
  background-size: 100% 36px, 100% 36px, 36px 100%, 36px 100%;
  background-repeat: repeat-y, repeat-y, repeat-x, repeat-x;
}

.patchwork-page .story::after {
  background-image:
    radial-gradient(circle at calc(48% - 4px) 1px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at calc(48% + 4px) 19px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 1px 447px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 19px 453px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 1px 897px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px),
    radial-gradient(circle at 19px 3px, rgba(255, 244, 215, 0.88) 0 1.6px, transparent 2px);
  background-size: 100% 36px, 100% 36px, 36px 900px, 36px 900px, 36px 900px, 36px 900px;
  background-repeat: repeat-y, repeat-y, repeat, repeat, repeat, repeat;
}

.patchwork-page .route-art {
  z-index: 2;
}

.patchwork-page .story-card {
  z-index: 3;
}

.patchwork-page .quick-signup {
  color: var(--green);
  background: rgba(255, 250, 240, 0.16);
  border-color: var(--green);
}

.patchwork-page .quick-signup:hover,
.patchwork-page .quick-signup:focus-visible {
  color: var(--white);
  background: var(--green);
}

.patchwork-page .hero-logo {
  filter:
    drop-shadow(3px 0 0 #fff4d6)
    drop-shadow(-3px 0 0 #fff4d6)
    drop-shadow(0 3px 0 #fff4d6)
    drop-shadow(0 -3px 0 #fff4d6)
    drop-shadow(6px 9px 0 rgba(73, 52, 44, 0.36));
}

.patchwork-page .hero-identity p {
  text-shadow:
    2px 0 var(--green-deep),
    -2px 0 var(--green-deep),
    0 2px var(--green-deep),
    0 -2px var(--green-deep);
}

.patchwork-page .chalk-animal {
  filter:
    drop-shadow(2px 0 0 var(--green-deep))
    drop-shadow(-2px 0 0 var(--green-deep))
    drop-shadow(0 2px 0 var(--green-deep));
}

.patchwork-page .hero-trail span {
  filter:
    drop-shadow(2px 0 0 #49342c)
    drop-shadow(-2px 0 0 #49342c)
    drop-shadow(0 2px 0 #49342c)
    drop-shadow(0 -2px 0 #49342c);
}

.patchwork-page .story-card {
  --copy-color: var(--white);
  --copy-outline: var(--green-deep);
}

.patchwork-page .card-copy h2 {
  color: var(--copy-color);
  paint-order: stroke fill;
  -webkit-text-stroke: 3px var(--copy-outline);
}

.patchwork-page .card-copy p {
  color: var(--copy-color);
  text-shadow: 0 1px 2px var(--copy-outline);
}

.patchwork-page .stop-one {
  --copy-color: var(--green-deep);
  --copy-outline: rgba(255, 250, 240, 0.55);
}

.patchwork-page .fact {
  text-shadow: 0 1px 2px var(--green-deep);
}

.patchwork-page .route-dash {
  filter: drop-shadow(0 1px 1px rgba(16, 51, 45, 0.36));
}

.patchwork-page .quick-signup {
  color: #49342c;
  background: #fff4d6;
  border-color: #49342c;
  box-shadow: 3px 4px 0 rgba(73, 52, 44, 0.45);
}

.patchwork-page .quick-signup:hover,
.patchwork-page .quick-signup:focus-visible {
  color: #fff4d6;
  background: #49342c;
}

.patchwork-page .site-footer {
  background: #733f4a;
}

/* Более живая лоскутная фактура */
body.patchwork-page {
  position: relative;
  background: #51463c;
}

.patchwork-page main,
.patchwork-page .site-footer {
  position: relative;
  z-index: 2;
}

.patchwork-page .hero,
.patchwork-page .story {
  max-width: none;
  background: transparent;
}

.patchwork-page .hero::after,
.patchwork-page .story::after {
  display: none;
}

.quilt-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(145px, 14vw, 210px);
  padding: 3px;
  overflow: hidden;
  background: #4d4439;
}

.quilt-patch {
  position: relative;
  min-width: 0;
  margin: -5px;
  overflow: visible;
  border: 3px solid #50342d;
  border-radius: var(--corner, 8px 14px 6px 12px);
  box-shadow:
    0 0 0 2px rgba(255, 223, 153, 0.42),
    inset 0 0 0 2px rgba(64, 38, 31, 0.28),
    7px 9px 15px rgba(43, 29, 24, 0.42);
  isolation: isolate;
  transform: rotate(var(--tilt, 0deg)) scale(1.025);
}

.quilt-patch::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(68deg, transparent 0 9px, #4b2e28 9px 13px, transparent 13px 20px) top / 100% 17px no-repeat,
    repeating-linear-gradient(112deg, transparent 0 9px, #4b2e28 9px 13px, transparent 13px 20px) bottom / 100% 17px no-repeat,
    repeating-linear-gradient(22deg, transparent 0 9px, #4b2e28 9px 13px, transparent 13px 20px) left / 17px 100% no-repeat,
    repeating-linear-gradient(-22deg, transparent 0 9px, #4b2e28 9px 13px, transparent 13px 20px) right / 17px 100% no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 218, 151, 0.42));
}

.quilt-patch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.26;
  background-image:
    repeating-linear-gradient(3deg, transparent 0 3px, rgba(255, 255, 255, 0.14) 4px),
    repeating-linear-gradient(91deg, transparent 0 5px, rgba(40, 28, 23, 0.12) 6px);
  mix-blend-mode: soft-light;
}

.patch-gingham-yellow {
  background-color: #e4b817;
  background-image:
    linear-gradient(90deg, rgba(255, 222, 47, 0.68) 50%, transparent 50%),
    linear-gradient(rgba(255, 218, 36, 0.72) 50%, transparent 50%);
  background-size: 42px 42px;
}

.patch-stripe-green {
  background-color: #586a35;
  background-image: repeating-linear-gradient(0deg, transparent 0 17px, rgba(39, 69, 47, 0.38) 17px 24px);
}

.patch-dots-red {
  background-color: #a83f42;
  background-image: radial-gradient(circle, #f5d76e 0 6px, transparent 6.8px);
  background-size: 42px 42px;
  background-position: 4px 6px;
}

.patch-argyle-blue {
  background-color: #3e5f60;
  background-image:
    linear-gradient(45deg, rgba(34, 64, 67, 0.65) 25%, transparent 25% 75%, rgba(34, 64, 67, 0.65) 75%),
    linear-gradient(-45deg, rgba(103, 135, 133, 0.45) 25%, transparent 25% 75%, rgba(103, 135, 133, 0.45) 75%);
  background-size: 54px 54px;
}

.patch-plaid-red {
  background-color: #9f4042;
  background-image:
    linear-gradient(90deg, transparent 55%, rgba(196, 86, 86, 0.48) 55%),
    linear-gradient(transparent 55%, rgba(118, 43, 43, 0.4) 55%);
  background-size: 42px 42px;
}

.patch-dots-olive {
  background-color: #526037;
  background-image: radial-gradient(circle, #f0d473 0 5px, transparent 5.8px);
  background-size: 38px 38px;
  background-position: 7px 5px;
}

.patch-plaid-brown {
  background-color: #805536;
  background-image:
    linear-gradient(90deg, rgba(189, 131, 84, 0.36) 50%, transparent 50%),
    linear-gradient(rgba(70, 43, 31, 0.32) 50%, transparent 50%);
  background-size: 39px 39px;
}

.patch-stripe-orange {
  background-color: #dc7b2c;
  background-image: repeating-linear-gradient(0deg, transparent 0 14px, rgba(103, 65, 37, 0.28) 14px 20px);
}

.patch-argyle-olive {
  background-color: #718039;
  background-image:
    linear-gradient(45deg, rgba(57, 74, 40, 0.55) 25%, transparent 25% 75%, rgba(57, 74, 40, 0.55) 75%),
    linear-gradient(-45deg, rgba(180, 166, 63, 0.35) 25%, transparent 25% 75%, rgba(180, 166, 63, 0.35) 75%);
  background-size: 58px 58px;
}

.patch-stripe-blue {
  background-color: #355b5d;
  background-image: repeating-linear-gradient(0deg, transparent 0 18px, rgba(22, 48, 52, 0.54) 18px 25px);
}

.patch-plaid-lime {
  background-color: #92a34a;
  background-image:
    linear-gradient(90deg, rgba(207, 207, 104, 0.32) 50%, transparent 50%),
    linear-gradient(rgba(76, 98, 47, 0.3) 50%, transparent 50%);
  background-size: 40px 40px;
}

.patch-dots-brown {
  background-color: #875834;
  background-image: radial-gradient(circle, #fffaf0 0 5px, transparent 5.8px);
  background-size: 41px 41px;
  background-position: 5px 8px;
}

.patch-gingham-peach {
  background-color: #e98a42;
  background-image:
    linear-gradient(45deg, rgba(255, 183, 117, 0.5) 25%, transparent 25% 75%, rgba(255, 183, 117, 0.5) 75%),
    linear-gradient(-45deg, rgba(242, 163, 92, 0.45) 25%, transparent 25% 75%, rgba(242, 163, 92, 0.45) 75%);
  background-size: 58px 58px;
}

.patch-stripe-tan {
  background-color: #cbb56f;
  background-image: repeating-linear-gradient(0deg, transparent 0 13px, rgba(113, 81, 51, 0.34) 13px 18px);
}

.patchwork-page .route-dash {
  filter:
    drop-shadow(2px 0 0 #49342c)
    drop-shadow(-2px 0 0 #49342c)
    drop-shadow(0 2px 0 #49342c)
    drop-shadow(0 -2px 0 #49342c);
}

.patchwork-page .story-card {
  --copy-patch: #f1d996;
  --copy-ink: #49342c;
  --copy-stitch: #785344;
}

.patchwork-page .stop-two {
  --copy-patch: #31534f;
  --copy-ink: #fff4d6;
  --copy-stitch: #d9bd84;
}

.patchwork-page .stop-three {
  --copy-patch: #d39b43;
  --copy-ink: #3f3029;
  --copy-stitch: #604238;
}

.patchwork-page .stop-four {
  --copy-patch: #7e3f43;
  --copy-ink: #fff4d6;
  --copy-stitch: #e5c080;
}

.patchwork-page .stop-five {
  --copy-patch: #e69255;
  --copy-ink: #422f29;
  --copy-stitch: #70483a;
}

.patchwork-page .card-copy {
  position: relative;
  padding: clamp(24px, 3.5vw, 42px);
  color: var(--copy-ink);
  background: var(--copy-patch);
  border: 3px solid var(--copy-stitch);
  border-radius: 18px 8px 15px 6px / 9px 17px 8px 15px;
  box-shadow:
    5px 7px 0 rgba(73, 52, 44, 0.3),
    inset 0 0 24px rgba(255, 244, 214, 0.08);
  transform: rotate(-0.65deg);
}

.patchwork-page .card-right .card-copy {
  border-radius: 7px 18px 8px 15px / 16px 7px 18px 9px;
  transform: rotate(0.65deg);
}

.patchwork-page .card-copy::before,
.patchwork-page .signup h2::before,
.patchwork-page .fact::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 2px dashed var(--copy-stitch, #765044);
  border-radius: inherit;
  opacity: 0.78;
}

.patchwork-page .card-copy > *,
.patchwork-page .signup h2 > *,
.patchwork-page .fact > * {
  position: relative;
  z-index: 1;
}

.patchwork-page .card-copy h2 {
  color: var(--copy-ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.patchwork-page .card-copy p {
  color: var(--copy-ink);
  text-shadow: none;
}

.patchwork-page .hero-identity p {
  display: inline-block;
  padding: 10px 20px 12px;
  color: #fff4d6;
  background: #49342c;
  border: 2px dashed #e2bf7e;
  border-radius: 11px 5px 13px 7px;
  text-shadow: none;
  transform: rotate(-0.8deg);
}

.patchwork-page .signup h2 {
  position: relative;
  padding: clamp(18px, 3vw, 30px) clamp(24px, 5vw, 58px);
  color: #fff4d6;
  background: #31534f;
  border: 3px solid #d9bd84;
  border-radius: 16px 7px 14px 9px;
  box-shadow: 5px 7px 0 rgba(73, 52, 44, 0.34);
  -webkit-text-stroke: 0;
  text-shadow: none;
  --copy-stitch: #d9bd84;
}

.patchwork-page .facts {
  gap: clamp(8px, 2vw, 20px);
}

.patchwork-page .fact {
  position: relative;
  margin: 0;
  padding: 16px 20px 30px;
  color: #49342c;
  background: #f1d996;
  border: 3px solid #785344;
  border-radius: 12px 5px 15px 8px;
  box-shadow: 4px 5px 0 rgba(73, 52, 44, 0.3);
  text-shadow: none;
  --copy-stitch: #785344;
}

.patchwork-page .fact > .fact-duck {
  position: absolute;
  z-index: 4;
  display: block;
  width: auto;
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 rgba(73, 52, 44, 0.3));
}

.fact-duck-one {
  top: -76px;
  left: 20%;
  height: 165px;
  transform: translateX(-50%) rotate(-3deg);
}

.fact-duck-two {
  top: -66px;
  left: 60%;
  height: 90px;
  transform: translateX(-50%) rotate(3deg);
}

.patchwork-page .fact:nth-child(2) {
  color: #fff4d6;
  background: #7e3f43;
  border-color: #e5c080;
  border-radius: 5px 14px 7px 16px;
  --copy-stitch: #e5c080;
}

.patchwork-page .fact:nth-child(3) {
  background: #e69255;
  border-radius: 15px 7px 11px 5px;
}

.patchwork-page .fact + .fact {
  border-left-width: 3px;
}

.patchwork-page .fact-icon,
.patchwork-page .fact strong,
.patchwork-page .fact span:last-child {
  color: inherit;
}

.patchwork-page .site-footer {
  color: var(--white);
  text-shadow:
    1px 0 #49342c,
    -1px 0 #49342c,
    0 1px #49342c,
    0 -1px #49342c;
}

.patchwork-page .site-footer {
  background: transparent;
}

@media (max-width: 760px) {
  .quilt-background {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 145px;
  }

  .quilt-patch {
    border-width: 3px;
  }

  .quilt-patch::before {
    inset: -7px;
    background-size: 100% 14px, 100% 14px, 14px 100%, 14px 100%;
  }
}

@keyframes animal-sequence {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.92) rotate(-2deg);
    animation-timing-function: cubic-bezier(0.2, 0.78, 0.28, 1);
  }

  34%,
  72% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1) rotate(0);
  }

  72% {
    animation-timing-function: cubic-bezier(0.4, 0, 0.72, 0.32);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -55%, 0) scale(0.94) rotate(2deg);
  }
}

@keyframes identity-appears {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes dash-appears {
  to { opacity: 0.96; transform: translateY(0) rotate(var(--dash-angle, 0deg)); }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .story-card {
    min-height: 660px;
    padding: 125px 38px;
    grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
    gap: 34px;
  }

  .card-right {
    grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  }

  .media-frame img,
  .media-frame video,
  .media-stack,
  .media-empty {
    height: 350px;
  }

  .portrait video,
  .portrait .media-stack,
  .portrait .media-empty {
    height: 430px;
  }

  .patchwork-page .card-copy {
    padding: 26px 24px;
  }

  .card-copy h2 {
    font-size: clamp(35px, 4.8vw, 50px);
  }

  .card-copy p {
    font-size: 16px;
  }

  .signup {
    padding-inline: 34px;
  }
}

@media (max-width: 760px) {
  .quick-signup {
    --quick-signup-trigger-top: 12;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    max-width: calc(100vw - 24px);
    min-height: 44px;
    padding-inline: 15px;
    font-size: 10px;
  }

  .hero {
    min-height: max(620px, 100svh);
  }

  .hero-identity {
    top: 45%;
    width: calc(100% - 24px);
  }

  .hero-identity h1 {
    line-height: 0;
  }

  .hero-logo {
    width: min(94vw, 620px);
    transform: translateY(14px);
  }

  .chalk-animal {
    top: 42%;
    width: min(94vw, 430px);
    height: clamp(205px, 72vw, 270px);
  }

  .duck-one {
    left: 19%;
  }

  .duck-two {
    top: 31%;
    right: 16%;
  }

  .hero-identity p {
    max-width: calc(100vw - 36px);
    margin-top: 18px;
    padding: 8px 14px 10px;
    font-size: clamp(14px, 4.5vw, 17px);
    letter-spacing: 0.045em;
  }

  .hero-trail {
    top: calc(45% + 108px);
    height: calc(55% - 108px);
    gap: 24px;
  }

  .hero-trail span {
    width: 11px;
    height: 38px;
  }

  .story {
    height: auto;
    padding-top: 58px;
  }

  .route-art {
    left: 0;
    width: 100%;
    height: 100%;
  }

  .route-dash {
    stroke-width: 10;
  }

  .story-card,
  .card-right {
    display: grid;
    width: 100%;
    min-height: 0;
    padding: 105px 18px 115px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-content: center;
  }

  .story-card .media-frame,
  .card-right .media-frame {
    order: 1;
    width: min(100%, 560px);
    grid-column: 1;
    justify-self: center;
  }

  .story-card .card-copy,
  .card-right .card-copy {
    order: 2;
    width: min(100%, 560px);
    grid-column: 1;
    justify-self: center;
    text-align: left;
  }

  .story-card.story-without-copy .media-frame {
    width: min(100%, 560px);
  }

  .media-frame {
    padding: 7px;
  }

  .media-frame img,
  .media-frame video,
  .media-stack,
  .media-empty {
    height: clamp(220px, 70vw, 335px);
  }

  .portrait {
    width: min(88%, 370px) !important;
  }

  .portrait video,
  .portrait .media-stack,
  .portrait .media-empty {
    height: clamp(330px, 112vw, 470px);
  }

  .tape {
    width: 64px;
    height: 21px;
  }

  .tape-side {
    right: -20px;
  }

  .card-copy h2 {
    font-size: clamp(30px, 10vw, 43px);
    line-height: 1.02;
  }

  .card-copy p {
    margin-top: 16px;
    font-size: clamp(14px, 4.3vw, 17px);
    line-height: 1.5;
  }

  .patchwork-page .card-copy {
    padding: 24px 20px 26px;
  }

  .sewing-pin {
    width: clamp(52px, 19vw, 76px);
    opacity: 1;
  }

  .pin-one { right: auto; left: 68%; }
  .pin-two { left: 7%; }
  .pin-three { right: auto; left: 59%; }
  .pin-four { left: 21%; }
  .pin-five { right: auto; left: 76%; }
  .pin-six { left: 39%; }
  .pin-seven { left: 9%; }
  .pin-eight { right: auto; left: 80%; }
  .pin-nine { left: 52%; }
  .pin-ten { right: auto; left: 66%; }
  .pin-eleven { left: 15%; }
  .pin-twelve { right: auto; left: 46%; }

  .signup {
    top: auto;
    min-height: 0;
    padding: 140px 18px 110px;
  }

  .signup h2 {
    width: 100%;
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1.02;
    -webkit-text-stroke-width: 0;
  }

  .patchwork-page .signup h2 {
    padding: 22px 18px 24px;
  }

  .signup-button {
    width: min(100%, 370px);
    min-width: 0;
    min-height: 92px;
    margin-top: 28px;
    padding: 17px 20px;
  }

  .signup-button span {
    font-size: clamp(24px, 8vw, 32px);
  }

  .facts {
    width: min(100%, 430px);
    grid-template-columns: minmax(0, 1fr);
    gap: 68px;
    margin-top: 100px;
  }

  .fact {
    width: 100%;
    min-height: 142px;
    padding: 26px 20px 30px;
  }

  .patchwork-page .fact {
    padding: 26px 20px 34px;
  }

  .fact-icon {
    margin-bottom: 10px;
    font-size: 29px;
  }

  .fact strong {
    font-size: 18px;
  }

  .fact span:last-child {
    font-size: 14px;
    line-height: 1.4;
  }

  .fact-duck-one {
    top: -76px;
    left: 24%;
    height: 137px;
  }

  .fact-duck-two {
    top: -72px;
    left: 70%;
    height: 88px;
  }

  .site-footer {
    min-height: 132px;
    padding: 30px 20px;
    gap: 16px;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .story-card,
  .card-right {
    padding-inline: 14px;
  }

  .patchwork-page .card-copy {
    padding: 22px 17px 24px;
  }

  .signup {
    padding-inline: 14px;
  }

  .signup-button small {
    font-size: 9px;
  }

  .quilt-background {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 125px;
  }

  .pin-eight {
    left: 74%;
  }
}

body.intro-disabled .chalk-animal,
body.admin-preview .chalk-animal,
body.admin-preview .quick-signup {
  display: none;
}

body.intro-disabled .hero-identity,
body.admin-preview .hero-identity {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: none;
}

body.intro-disabled .hero-trail span,
body.admin-preview .hero-trail span {
  opacity: 0.96;
  transform: translateY(0) rotate(var(--dash-angle, 0deg));
  animation: none;
}

body.admin-preview .story-card,
body.admin-preview .signup {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .chalk-animal {
    display: none;
  }

  .hero-identity {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
