@font-face {
  font-family: "Ventennio";
  src: url("./assets/fonts/Ventennio-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("./assets/fonts/Futura-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --poster-divider-space: 0;
  --paper: #ead8b8;
  --paper-shadow: #d3b78b;
  --ink: #171310;
  --ink-soft: rgba(23, 19, 16, 0.78);
  --rust: #9e2b18;
  --rust-deep: #7f2214;
  --raspberry: #d3165b;
  --raspberry-deep: #aa1148;
  --navy: #17364c;
  --blue: #1674e6;
  --blue-deep: #0e49c1;
  --blue-ink: #0f367d;
  --blue-soft: rgba(10, 41, 108, 0.36);
  --white-soft: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 24px 54px rgba(32, 18, 10, 0.12);
  --shadow-blue: 0 28px 60px rgba(3, 35, 108, 0.18);
  --font-poster-title: "Ventennio", "League Spartan", "Arial Black", sans-serif;
  --font-display: "League Spartan", "Arial Black", sans-serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.085'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(
      180deg,
      #efe2ca 0%,
      #efe2ca 60%,
      #1b7ef1 60%,
      #0e49c1 100%
    );
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
}

.page-shell {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    linear-gradient(
      180deg,
      #efe2ca 0%,
      #efe2ca 60%,
      #1b7ef1 60%,
      #0e49c1 100%
    );
}

@media (min-width: 720px) {
  .page-shell {
    max-width: 460px;
    margin-inline: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 18px 44px rgba(19, 18, 15, 0.28);
  }
}

.hero {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: clamp(40rem, calc(var(--hero-vh, 100svh) - 1.3rem), 53rem);
  overflow: clip;
  background-color: #efe2ca;
  background-image:
    var(--paper-noise),
    radial-gradient(circle at 12% 10%, rgba(255, 251, 245, 0.95), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(209, 170, 117, 0.18), transparent 18rem),
    radial-gradient(circle at 46% 56%, rgba(159, 121, 71, 0.09), transparent 25rem),
    linear-gradient(180deg, #f4e8d3, #ead8b8 74%, #e7d2ae);
  background-size: 240px 240px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-blend-mode: multiply, normal, multiply, multiply, normal;
  box-shadow:
    inset 0 0 0 1px rgba(102, 72, 39, 0.08),
    inset 0 0 96px rgba(94, 61, 24, 0.12),
    inset 0 24px 28px rgba(255, 251, 245, 0.18),
    inset 0 -26px 44px rgba(98, 66, 30, 0.08),
    0 10px 24px rgba(89, 63, 31, 0.16);
  -webkit-mask: url("./rip.svg") center top / 100% 100% no-repeat;
  mask: url("./rip.svg") center top / 100% 100% no-repeat;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(84, 54, 22, 0.08), transparent 12%, transparent 88%, rgba(84, 54, 22, 0.08)),
    linear-gradient(180deg, rgba(84, 54, 22, 0.05), transparent 10%, transparent 88%, rgba(84, 54, 22, 0.09));
  mix-blend-mode: multiply;
}

.hero::after {
  background:
    radial-gradient(circle at 44% 74%, rgba(255, 255, 255, 0.14), transparent 15rem),
    radial-gradient(circle at 64% 56%, rgba(23, 19, 16, 0.09), transparent 24rem);
}

.hero-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 250, 242, 0.46), transparent 24rem),
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.1), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
  mix-blend-mode: overlay;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.cta-footer {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.support-button:active,
.scroll-arrow:active {
  transform: scale(0.96);
}

.hero-grid {
  display: block;
  min-height: inherit;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 2rem 1rem 8rem;
  width: min(18rem, 100%);
}

.hero-title {
  display: grid;
  gap: 0.15rem;
  font-family: var(--font-poster-title);
  font-size: clamp(3.7rem, 18.75vw, 5.2rem);
  line-height: 0.82;
  text-wrap: balance;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 244, 225, 0.16);
}

.story-block {
  position: relative;
  display: grid;
  gap: 0.4rem;
  width: min(11rem, 100%);
  margin-top: 1.20rem;
}

.story-window {
  position: relative;
  min-height: 6.1rem;
}

.story-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  font-family: "Futura", var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 6vw, 1.65rem);
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  transition-property: opacity, transform, filter;
  transition-duration: 520ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(6px);
  text-wrap: pretty;
}

.story-line.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.story-line.is-leaving {
  opacity: 0;
  transform: translate3d(0, -0.75rem, 0);
  filter: blur(4px);
}

.poster-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.poster-stage::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 20%;
  background: radial-gradient(circle at 50% 50%, rgba(23, 19, 16, 0.24), transparent 72%);
  filter: blur(28px);
  opacity: 0.28;
}

.poster-panel {
  margin: 0;
  position: absolute;
  inset: 0 0 var(--poster-divider-space) 0;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 100%;
  opacity: 0;
  transform: translate3d(1rem, 1.2rem, 0) scale(1.03);
  transition-property: opacity, transform, filter;
  transition-duration: 650ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(7px) contrast(1.03) saturate(0.92) drop-shadow(0 18px 28px rgba(24, 17, 12, 0.22));
}

.poster-panel.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0) contrast(1.03) saturate(0.92) drop-shadow(0 18px 28px rgba(24, 17, 12, 0.22));
}

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 18px 40px rgba(32, 18, 10, 0.22);
  transform: translateX(-50%);
  transition-property: transform, box-shadow;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  animation: arrow-bob 1.8s ease-in-out infinite;
}

.scroll-arrow:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 22px 46px rgba(32, 18, 10, 0.22);
}

.scroll-arrow svg {
  width: 1.7rem;
  height: 1.7rem;
}

.cta-section {
  position: relative;
  z-index: 1;
  margin-top: -2.35rem;
  padding-top: 2.35rem;
  overflow: clip;
  background:
    linear-gradient(140deg, var(--blue) 0%, #1b7ef1 48%, var(--blue-deep) 100%);
  color: #fbfdff;
  box-shadow: inset 0 2.5rem 1.5rem rgba(31, 22, 15, 0.5);
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.cta-section::before {
  right: -12rem;
  top: 5rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.cta-section::after {
  right: -4rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(0, 24, 89, 0.24), rgba(0, 24, 89, 0));
}

.cta-inner,
.cta-footer {
  position: relative;
  z-index: 2;
}

.cta-inner {
  display: grid;
  gap: 2rem;
  padding: 1.25rem 1rem 3rem;
}

.iv-logo {
  width: 9.8rem;
  max-width: 70%;
  justify-self: center;
  filter: drop-shadow(0 6px 12px rgba(0, 22, 82, 0.18));
}

.cta-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.cta-title {
  display: grid;
  gap: 0.02em;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7vw, 4rem);
  line-height: 0.88;
  text-wrap: balance;
}

.cta-title-contrast {
  color: rgba(8, 39, 112, 0.88);
}

.cta-claim {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: center;
  gap: 0.55rem 0.8rem;
  width: fit-content;
  max-width: min(100%, 24rem);
  margin-inline: auto;
  color: rgba(249, 252, 255, 0.96);
  text-wrap: balance;
}

.cta-claim strong {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 13vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  transform: translateY(-0.3rem);
}

.marker-accent {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.16em 0;
  border-radius: 0.18em;
  background: var(--raspberry);
  color: #fff;
}

.marker-accent::before {
  content: none;
}

.cta-claim .marker-accent-value {
  display: block;
  transform: translateY(0.3rem);
}

.cta-claim > span {
  width: 9.6ch;
  padding-bottom: 0.28rem;
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.04;
  text-align: left;
  justify-self: start;
}

.cta-tax-block {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.tax-form-shell {
  width: min(100%, 24rem);
  padding: 0.24rem;
  border-radius: 1.6rem;
  background: rgba(5, 28, 86, 0.16);
  box-shadow:
    0 24px 44px rgba(5, 28, 86, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tax-form-card {
  overflow: hidden;
  border-radius: calc(1.6rem - 0.24rem);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border: 2px solid rgba(17, 16, 15, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

.tax-form-head {
  padding: 0.82rem 1rem 0.78rem;
  background: rgba(17, 16, 15, 0.96);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
}

.tax-form-body {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  padding: 0.75rem 1rem 1rem;
}

.tax-form-label {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tax-form-code {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.tax-form-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tax-form-code-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  min-height: 4rem;
  padding: 0rem 0.4rem 0;
  border: 2px solid rgba(17, 16, 15, 0.95);
  border-radius: 1rem;
  background: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 14vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.tax-form-code-value {
  display: block;
  transform: translateY(0.3rem);
}

.cta-support-line {
  width: min(100%, 24rem);
  font-size: clamp(1.12rem, 4.3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.08;
  color: rgba(249, 252, 255, 0.96);
  text-wrap: pretty;
  text-align: center;
}

.cta-support-accent {
  font-weight: 800;
}

.hand-underline {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.hand-underline::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: -0.16em;
  height: 0.5em;
  background: var(--raspberry);
  border-radius: 50% 50% 999px 999px / 34% 34% 74% 74%;
  clip-path: polygon(0 66%, 7% 44%, 18% 28%, 32% 20%, 47% 17%, 62% 21%, 77% 32%, 91% 48%, 100% 68%, 95% 86%, 78% 76%, 59% 68%, 40% 70%, 21% 80%, 5% 84%);
  opacity: 0.96;
  transform: rotate(-1deg) skewX(-3deg);
  transform-origin: center;
}

.hand-underline-strong::after {
  left: -0.08em;
  right: -0.08em;
  bottom: -0.02em;
  height: 0.28em;
  border-radius: 50% 50% 999px 999px / 28% 28% 78% 78%;
  clip-path: polygon(0 70%, 7% 48%, 18% 34%, 31% 26%, 45% 22%, 59% 24%, 73% 33%, 88% 50%, 100% 74%, 95% 90%, 79% 79%, 62% 70%, 45% 68%, 27% 75%, 10% 88%);
  transform: rotate(-0.8deg) skewX(-3deg);
}

.video-shell {
  display: grid;
}

.video-frame {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 9 / 16;
  justify-self: center;
  border-radius: 2rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.84);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(238, 246, 255, 0.1), rgba(5, 26, 84, 0.24)),
    linear-gradient(180deg, rgba(0, 38, 115, 0.16), rgba(0, 41, 128, 0.5)),
    linear-gradient(180deg, rgba(149, 194, 255, 0.55), rgba(10, 56, 150, 0.85));
  box-shadow: var(--shadow-blue);
}

.campaign-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #082770;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 16rem);
  min-height: 3.5rem;
  padding: 1rem 1.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--raspberry);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.14rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 36px rgba(0, 18, 72, 0.22);
  transition-property: transform, background-color, color;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.support-button:hover {
  background: var(--raspberry-deep);
}

.donation-button {
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
}

.donation-button:hover {
  background: #fff;
}

.cta-footer {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1rem 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(4, 33, 94, 0.24);
  font-size: 0.78rem;
  font-weight: 600;
}

@keyframes arrow-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.45rem);
  }
}

@media (min-width: 720px) {
  .cta-inner,
  .cta-footer {
    width: 100%;
    margin: 0;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 1rem 2.2rem;
  }

  .cta-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cta-footer {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: left;
    padding: 1.1rem 1rem 1.45rem;
  }
}

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

  .story-line,
  .poster-panel,
  .support-button,
  .scroll-arrow {
    transition-duration: 0ms;
  }

  .scroll-arrow {
    animation: none;
  }
}
