/* Hand-drawn editorial marks. Product UI, forms, and data tables intentionally stay precise. */
.eyebrow > span {
  width: 46px;
  height: 11px;
  flex: 0 0 46px;
  border-radius: 0;
  background: currentColor;
  transform: rotate(-2deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M3 14 C14 3 25 22 39 11 S62 19 75 9 S89 15 97 7' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24'%3E%3Cpath d='M3 14 C14 3 25 22 39 11 S62 19 75 9 S89 15 97 7' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.eyebrow-light > span { transform: rotate(2deg) scaleY(-1); }

.script {
  position: relative;
  z-index: 0;
  display: table;
  width: max-content;
  max-width: 100%;
}

.script::after {
  position: absolute;
  z-index: -1;
  right: -7px;
  bottom: -8px;
  left: -5px;
  height: 10px;
  background: currentColor;
  content: "";
  opacity: .42;
  transform: rotate(-1deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 18'%3E%3Cpath d='M3 11 C20 4 34 15 53 9 S87 13 105 7 S139 14 177 6' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 18'%3E%3Cpath d='M3 11 C20 4 34 15 53 9 S87 13 105 7 S139 14 177 6' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.chapter-copy .script::after,
.intelligence-lead .script::after { opacity: .28; }

.deep-prose h2::after {
  width: 88px;
  height: 12px;
  border-radius: 0;
  background: var(--coral);
  transform: rotate(-2deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 22'%3E%3Cpath d='M4 13 C22 4 37 18 56 10 S91 16 108 8 S133 12 146 6' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 22'%3E%3Cpath d='M4 13 C22 4 37 18 56 10 S91 16 108 8 S133 12 146 6' fill='none' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.spectrum-line i {
  height: 15px;
  background: var(--ink);
  transform: rotate(-1deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24'%3E%3Cpath d='M3 13 C31 2 55 21 85 10 S140 18 169 8 S222 19 251 9 S279 13 297 6' fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-dasharray='12 12'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24'%3E%3Cpath d='M3 13 C31 2 55 21 85 10 S140 18 169 8 S222 19 251 9 S279 13 297 6' fill='none' stroke='black' stroke-width='6' stroke-linecap='round' stroke-dasharray='12 12'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.platform-schematic > footer i,
.map-line {
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cpath d='M2 10 C25 2 43 16 67 8 S111 15 134 7 S176 14 218 5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cpath d='M2 10 C25 2 43 16 67 8 S111 15 134 7 S176 14 218 5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.platform-schematic > footer i { color: #151f3b; transform: rotate(1deg); }
.map-line { color: var(--rev-ink); }

@media (max-width: 600px) {
  .spectrum-line i { width: 15px; height: 58px; transform: rotate(90deg); }
}

/* A one-time hand-drawn invitation makes the embedded product feel usable. */
.demo-invite {
  position: absolute;
  z-index: 4;
  top: -62px;
  right: 32px;
  width: 205px;
  height: 125px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-7px) rotate(2deg);
  transition: opacity .25s ease, transform .35s ease;
}

.demo-invite strong {
  position: absolute;
  right: 0;
  top: 0;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--coral);
  color: var(--ink);
  font: 800 12px "Outfit", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.demo-invite svg {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 150px;
  height: 92px;
  overflow: visible;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.demo-invite path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
}

.demo-frame-wrap.is-inviting .demo-invite {
  opacity: 1;
  transform: translateY(0) rotate(2deg);
}

.demo-frame-wrap.is-inviting .demo-invite path {
  animation: demo-arrow-draw .9s .25s cubic-bezier(.2,.7,.25,1) forwards;
}

.demo-frame-wrap.has-engaged .demo-invite {
  opacity: 0;
  transform: translateY(5px) rotate(2deg);
}

@keyframes demo-arrow-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 700px) {
  .demo-invite { top: 8px; right: 8px; width: 172px; transform: translateY(-5px) scale(.88) rotate(2deg); transform-origin: top right; }
  .demo-frame-wrap.is-inviting .demo-invite { transform: translateY(0) scale(.88) rotate(2deg); }
  .demo-frame-wrap.has-engaged .demo-invite { transform: translateY(5px) scale(.88) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-invite,
  .demo-frame-wrap.is-inviting .demo-invite { transition: none; }
  .demo-frame-wrap.is-inviting .demo-invite path { animation: none; stroke-dashoffset: 0; }
}

/* The campaign declaration reads like an engrossed document, not a web form. */
.declaration-paper {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.declaration-heading > p,
.declaration-heading > small,
.declaration-fields label,
.declaration-form > small {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.declaration-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 94px);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.055em;
}

.declaration-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.declaration-copy p:first-child::first-letter {
  margin-top: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.declaration-fields label {
  font-size: 16px;
  font-weight: 600;
}

.declaration-fields input,
.declaration-fields textarea {
  font-family: "Italianno", "Brush Script MT", cursive;
  font-size: 31px;
  line-height: 1.15;
}

.declaration-fields input::placeholder,
.declaration-fields textarea::placeholder {
  color: #746a57;
  font-family: "Italianno", "Brush Script MT", cursive;
  opacity: .72;
}

.declaration-fields select {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
}

.declaration-signatures span {
  font-family: "Italianno", "Brush Script MT", cursive;
  font-size: 35px;
  font-style: normal;
}

@media (max-width: 600px) {
  .declaration-heading h2 { font-size: 52px; }
  .declaration-copy { font-size: 18px; }
  .declaration-fields input,
  .declaration-fields textarea { font-size: 27px; }
}
