@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root,
.theme-classic {
  --ink: #26344d;
  --ink-deep: #17233a;
  --muted: #617087;
  --accent: #d4125c;
  --accent-deep: #aa0b49;
  --accent-glow: rgba(212, 18, 92, 0.55);
  --green: #7fbf36;
  --paper: #ffffff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

.theme-modern {
  --ink: #d9e7f3;
  --ink-deep: #0d2234;
  --muted: #7ea0b8;
  --accent: #18d7f2;
  --accent-deep: #00a9c6;
  --accent-glow: rgba(24, 215, 242, 0.55);
  --green: #9ee632;
  --paper: #f4fbfd;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rv-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  isolation: isolate;
}

.rv-footer__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .55s var(--ease);
}

.rv-footer__mark-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.rv-footer__mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), filter .55s var(--ease);
}

.rv-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rv-footer__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .4s var(--ease), letter-spacing .55s var(--ease);
}

.rv-footer__version {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  white-space: nowrap;
}

.rv-footer__version[hidden] {
  display: none !important;
}

.rv-footer__brand {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rv-footer__wordmark {
  display: none;
}

.rv-footer__shine,
.rv-footer__bloom,
.rv-footer__ring,
.rv-footer__scan {
  pointer-events: none;
}

.rv-footer__berry {
  position: absolute;
  z-index: 0;
  width: 170px;
  height: 210px;
  background: url("../assets/images/raspberry-corner-color.webp") center/contain no-repeat;
  transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s var(--ease);
}

.rv-footer__berry--right {
  right: 1%;
  bottom: -46%;
  transform: rotate(-12deg);
}

.rv-footer__berry--left {
  left: -1%;
  top: -54%;
  transform: rotate(168deg);
  opacity: .28;
}

/* Cinematic — classic magenta / modern cyan */
.rv-footer--cinematic {
  color: #fff;
  background:
    radial-gradient(90% 160% at 50% 130%, var(--accent-glow), transparent 58%),
    linear-gradient(90deg, #10192c 0%, var(--ink-deep) 50%, #1a1030 100%);
}

.theme-modern .rv-footer--cinematic {
  background:
    radial-gradient(90% 160% at 50% 130%, var(--accent-glow), transparent 58%),
    linear-gradient(90deg, #071821 0%, #0d2234 48%, #12364a 100%);
}

.rv-footer--cinematic::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), var(--accent), transparent);
  transform: scaleX(.35);
  transform-origin: center;
  transition: transform .7s var(--ease), opacity .4s;
}

.rv-footer--cinematic .rv-footer__version {
  color: rgba(255, 255, 255, 0.5);
}

.rv-footer--cinematic .rv-footer__kicker {
  color: rgba(255, 255, 255, 0.58);
}

.rv-footer--cinematic .rv-footer__brand {
  background: linear-gradient(90deg, #fff 0%, #fff 36%, var(--accent) 72%, #fff 100%);
  background-size: 240% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .8s var(--ease);
}

.rv-footer--cinematic .rv-footer__wordmark {
  display: block;
  width: 132px;
  height: auto;
  margin-left: 6px;
  filter: brightness(0) invert(1);
  opacity: .92;
  transition: opacity .4s, transform .55s var(--ease), filter .55s;
}

.rv-footer--cinematic .rv-footer__mark {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 24px var(--accent-glow);
}

.rv-footer--cinematic .rv-footer__berry--right {
  opacity: .42;
  filter: saturate(1.15);
}

.rv-footer--cinematic .rv-footer__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 30%, rgba(255, 255, 255, 0.2) 48%, transparent 66%);
  transform: translateX(-80%);
  opacity: 0;
}

.rv-footer--cinematic .rv-footer__bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}

.rv-footer--cinematic .rv-footer__scan {
  position: absolute;
  inset: 2px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, var(--accent), transparent);
  opacity: 0;
  transform: translateX(-100%);
}

.rv-footer--cinematic .rv-footer__ring {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  opacity: 0;
}

.rv-footer--cinematic:hover::before,
.rv-footer--cinematic:focus-within::before {
  transform: scaleX(1);
}

.rv-footer--cinematic:hover .rv-footer__link,
.rv-footer--cinematic:focus-within .rv-footer__link {
  transform: translateY(-2px) scale(1.045);
}

.rv-footer--cinematic:hover .rv-footer__version,
.rv-footer--cinematic:focus-within .rv-footer__version {
  color: rgba(255, 255, 255, 0.88);
}

.rv-footer--cinematic:hover .rv-footer__kicker,
.rv-footer--cinematic:focus-within .rv-footer__kicker {
  color: #fff;
  letter-spacing: 0.28em;
}

.rv-footer--cinematic:hover .rv-footer__brand,
.rv-footer--cinematic:focus-within .rv-footer__brand {
  background-position: 100% 0;
}

.rv-footer--cinematic:hover .rv-footer__mark,
.rv-footer--cinematic:focus-within .rv-footer__mark {
  transform: rotate(-8deg) scale(1.12);
  filter: saturate(1.25);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 28px var(--accent-glow),
    0 0 56px var(--accent-glow);
}

.rv-footer--cinematic:hover .rv-footer__wordmark,
.rv-footer--cinematic:focus-within .rv-footer__wordmark {
  opacity: 1;
  transform: translateX(6px);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--accent-glow));
}

.rv-footer--cinematic:hover .rv-footer__berry--right,
.rv-footer--cinematic:focus-within .rv-footer__berry--right {
  opacity: .78;
  transform: rotate(-4deg) translate(-18px, -10px) scale(1.18);
  filter: saturate(1.4) drop-shadow(0 0 18px var(--accent-glow));
}

.rv-footer--cinematic:hover .rv-footer__berry--left,
.rv-footer--cinematic:focus-within .rv-footer__berry--left {
  opacity: .5;
  transform: rotate(158deg) translate(12px, 8px) scale(1.1);
}

.rv-footer--cinematic:hover .rv-footer__shine,
.rv-footer--cinematic:focus-within .rv-footer__shine {
  opacity: 1;
  animation: rv-shine .95s var(--ease);
}

.rv-footer--cinematic:hover .rv-footer__bloom,
.rv-footer--cinematic:focus-within .rv-footer__bloom {
  opacity: 1;
  animation: rv-bloom .9s var(--ease);
}

.rv-footer--cinematic:hover .rv-footer__scan,
.rv-footer--cinematic:focus-within .rv-footer__scan {
  opacity: .9;
  animation: rv-scan .85s var(--ease);
}

.rv-footer--cinematic:hover .rv-footer__ring,
.rv-footer--cinematic:focus-within .rv-footer__ring {
  animation: rv-ring 1.05s var(--ease);
}

.rv-footer--cinematic:hover .rv-footer__ring--delay,
.rv-footer--cinematic:focus-within .rv-footer__ring--delay {
  animation-delay: .16s;
}

.rv-footer--cinematic .rv-footer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

/* Compact light bar — raspberry wash, not a blank strip */
.rv-footer--light {
  color: var(--ink);
  background:
    radial-gradient(120% 180% at 88% 140%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(90% 160% at 8% -40%, color-mix(in srgb, var(--green) 14%, transparent), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fbf4f7 100%);
}

.theme-modern .rv-footer--light {
  color: #d9e7f3;
  background:
    radial-gradient(120% 180% at 88% 140%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    radial-gradient(90% 160% at 8% -40%, color-mix(in srgb, var(--green) 18%, transparent), transparent 50%),
    linear-gradient(180deg, #13283b 0%, #0d2234 100%);
}

.rv-footer--light::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), transparent);
  opacity: .55;
  transform: scaleX(.4);
  transition: transform .7s var(--ease);
}

.rv-footer--light .rv-footer__link {
  gap: 10px;
}

.rv-footer--light .rv-footer__mark-wrap,
.rv-footer--light .rv-footer__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.rv-footer--light .rv-footer__copy {
  display: grid;
  grid-template-columns: auto auto;
  grid-auto-rows: min-content;
  column-gap: 6px;
  row-gap: 1px;
  align-items: baseline;
}

.rv-footer--light .rv-footer__version {
  grid-column: 1 / -1;
  color: var(--muted);
}

.rv-footer--light .rv-footer__kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.rv-footer--light .rv-footer__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .35s, text-shadow .45s;
}

.theme-modern .rv-footer--light .rv-footer__brand {
  color: #f7fbff;
}

.rv-footer--light .rv-footer__berry--right {
  width: 120px;
  height: 150px;
  right: 2%;
  bottom: -58%;
  opacity: .34;
}

.rv-footer--light .rv-footer__berry--left {
  width: 100px;
  height: 130px;
  opacity: .18;
}

.rv-footer--light .rv-footer__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 32%, color-mix(in srgb, var(--accent) 35%, #fff) 50%, transparent 68%);
  transform: translateX(-80%);
  opacity: 0;
}

.rv-footer--light .rv-footer__ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  opacity: 0;
}

.rv-footer--light:hover::before,
.rv-footer--light:focus-within::before {
  transform: scaleX(1);
}

.rv-footer--light:hover .rv-footer__link,
.rv-footer--light:focus-within .rv-footer__link {
  transform: translateY(-1px) scale(1.05);
}

.rv-footer--light:hover .rv-footer__version,
.rv-footer--light:focus-within .rv-footer__version {
  color: var(--ink);
}

.theme-modern .rv-footer--light:hover .rv-footer__version,
.theme-modern .rv-footer--light:focus-within .rv-footer__version {
  color: #fff;
}

.rv-footer--light:hover .rv-footer__brand,
.rv-footer--light:focus-within .rv-footer__brand {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}

.rv-footer--light:hover .rv-footer__kicker,
.rv-footer--light:focus-within .rv-footer__kicker {
  color: var(--ink);
  letter-spacing: 0.08em;
}

.theme-modern .rv-footer--light:hover .rv-footer__kicker,
.theme-modern .rv-footer--light:focus-within .rv-footer__kicker {
  color: #fff;
}

.rv-footer--light:hover .rv-footer__mark,
.rv-footer--light:focus-within .rv-footer__mark {
  transform: rotate(-10deg) scale(1.18);
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--accent-glow);
}

.rv-footer--light:hover .rv-footer__berry--right,
.rv-footer--light:focus-within .rv-footer__berry--right {
  opacity: .7;
  transform: rotate(-2deg) translate(-14px, -8px) scale(1.2);
  filter: saturate(1.35) drop-shadow(0 0 12px var(--accent-glow));
}

.rv-footer--light:hover .rv-footer__berry--left,
.rv-footer--light:focus-within .rv-footer__berry--left {
  opacity: .4;
  transform: rotate(160deg) scale(1.12);
}

.rv-footer--light:hover .rv-footer__shine,
.rv-footer--light:focus-within .rv-footer__shine {
  opacity: 1;
  animation: rv-shine .9s var(--ease);
}

.rv-footer--light:hover .rv-footer__ring,
.rv-footer--light:focus-within .rv-footer__ring {
  animation: rv-ring .95s var(--ease);
}

.rv-footer--light .rv-footer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

@keyframes rv-shine {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}

@keyframes rv-bloom {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(9); }
}

@keyframes rv-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes rv-ring {
  0% { opacity: .8; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.85); }
}

/* Overlay chip — idle raspberry, hover reveals credit. Parent iframe stays out of document flow. */
html.rv-embed-mark,
html.rv-embed-mark body {
  background: transparent;
  color-scheme: none;
}

.rv-footer--mark {
  --ease: cubic-bezier(.45, .08, .18, 1);
  justify-content: flex-end;
  align-items: flex-end;
  padding: 6px;
}

.rv-footer--mark .rv-footer__orbit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
  animation: rv-mark-orbit 6.5s linear infinite;
}

.rv-footer--mark .rv-footer__bloom {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  transform: translate(50%, 50%) scale(.2);
  opacity: 0;
  pointer-events: none;
}

.rv-footer--mark .rv-footer__scan {
  position: absolute;
  right: 6px;
  bottom: 22px;
  z-index: 3;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
}

.rv-footer--mark .rv-footer__link {
  position: relative;
  inset: auto;
  z-index: 2;
  height: 40px;
  width: max-content;
  max-width: 40px;
  padding: 4px;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 0% 120%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%),
    color-mix(in srgb, var(--ink-deep) 94%, #000);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
    0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent);
  transition:
    max-width 1.15s var(--ease),
    height 1.15s var(--ease),
    padding 1.15s var(--ease),
    gap .9s var(--ease),
    transform 1.15s var(--ease),
    box-shadow 1.15s var(--ease),
    background 1.15s var(--ease);
}

.theme-modern .rv-footer--mark .rv-footer__link {
  background:
    radial-gradient(120% 180% at 0% 120%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 55%),
    linear-gradient(180deg, #12364a 0%, #0d2234 100%);
}

.rv-footer--mark .rv-footer__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(108deg, transparent 30%, color-mix(in srgb, #fff 55%, var(--accent)) 48%, transparent 66%);
  transform: translateX(-80%);
  opacity: 0;
  pointer-events: none;
}

.rv-footer--mark .rv-footer__mark-wrap,
.rv-footer--mark .rv-footer__mark {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rv-footer--mark .rv-footer__ring {
  position: absolute;
  inset: -7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.rv-footer--mark .rv-footer__mark {
  animation: rv-mark-idle 3.4s var(--ease) infinite;
}

.rv-footer--mark .rv-footer__copy {
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .7s var(--ease) .15s, max-width 1.15s var(--ease);
}

.rv-footer--mark .rv-footer__version {
  display: none;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, #fff 62%, var(--accent));
}

.rv-footer--mark .rv-footer__kicker {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, #fff 70%, var(--accent));
  transition: color .9s var(--ease), letter-spacing 1.2s var(--ease);
}

.rv-footer--mark .rv-footer__brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--accent) 78%, #fff 100%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.6s var(--ease);
}

.rv-footer--mark.is-open .rv-footer__orbit {
  animation: none;
  opacity: 0;
  transition: opacity .4s;
}

.rv-footer--mark.is-open .rv-footer__link,
.rv-footer--mark:focus-within .rv-footer__link {
  max-width: 292px;
  padding: 4px 16px 4px 4px;
  gap: 10px;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 14px 36px var(--accent-glow);
}

.rv-footer--mark.has-version.is-open .rv-footer__link,
.rv-footer--mark.has-version:focus-within .rv-footer__link {
  height: 54px;
}

.rv-footer--mark.is-open .rv-footer__copy,
.rv-footer--mark:focus-within .rv-footer__copy {
  opacity: 1;
  max-width: 196px;
}

.rv-footer--mark.has-version.is-open .rv-footer__version,
.rv-footer--mark.has-version:focus-within .rv-footer__version {
  display: block;
}

.rv-footer--mark.is-open .rv-footer__kicker,
.rv-footer--mark:focus-within .rv-footer__kicker {
  color: #fff;
  letter-spacing: 0.22em;
}

.rv-footer--mark.is-open .rv-footer__brand,
.rv-footer--mark:focus-within .rv-footer__brand {
  background-position: 100% 0;
}

.rv-footer--mark.is-open .rv-footer__mark,
.rv-footer--mark:focus-within .rv-footer__mark {
  animation: none;
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--accent-glow);
}

.rv-footer--mark.is-open .rv-footer__shine,
.rv-footer--mark:focus-within .rv-footer__shine {
  opacity: 1;
  animation: rv-shine 1.85s var(--ease) .12s both;
}

.rv-footer--mark.is-open .rv-footer__bloom,
.rv-footer--mark:focus-within .rv-footer__bloom {
  opacity: 1;
  animation: rv-mark-bloom 2s var(--ease) both;
}

.rv-footer--mark.is-open .rv-footer__scan,
.rv-footer--mark:focus-within .rv-footer__scan {
  opacity: .9;
  width: calc(100% - 16px);
  animation: rv-scan 1.8s var(--ease) .18s both;
}

.rv-footer--mark.is-open .rv-footer__ring,
.rv-footer--mark:focus-within .rv-footer__ring {
  animation: rv-ring 2.1s var(--ease) .08s both;
}

.rv-footer--mark.is-open .rv-footer__ring--delay,
.rv-footer--mark:focus-within .rv-footer__ring--delay {
  animation-delay: .42s;
}

.rv-footer--mark .rv-footer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes rv-mark-idle {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
    transform: rotate(0deg);
  }
  40% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 26%, transparent);
    transform: rotate(-6deg);
  }
  70% {
    transform: rotate(3deg);
  }
}

@keyframes rv-mark-orbit {
  from { transform: rotate(0deg) scale(1); opacity: .55; }
  50% { transform: rotate(180deg) scale(1.08); opacity: 1; }
  to { transform: rotate(360deg) scale(1); opacity: .55; }
}

@keyframes rv-mark-bloom {
  0% { opacity: .9; transform: translate(50%, 50%) scale(.2); }
  100% { opacity: 0; transform: translate(50%, 50%) scale(11); }
}

@media (max-width: 560px) {
  .rv-footer--cinematic .rv-footer__wordmark {
    display: none;
  }

  .rv-footer__berry--left {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-footer *,
  .rv-footer *::before,
  .rv-footer *::after {
    animation: none !important;
    transition: none !important;
  }
}
