.rv-site-footer {
  --footer-ink: #151e2e;
  --footer-paper: #fff4de;
  --footer-muted: #c2cad1;
  --footer-line: #fff4de24;
  --footer-accent: #ffab8e;
  --footer-gutter: clamp(1rem, 4.5vw, 4.875rem);
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--footer-ink);
  color: var(--footer-paper);
  border-top: 1px solid #4a5c6a;
  font: 400 1rem/1.45 var(--font, system-ui, sans-serif);
}

.rv-footer-wrap {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-left: max(var(--footer-gutter), env(safe-area-inset-left));
  padding-right: max(var(--footer-gutter), env(safe-area-inset-right));
}

.rv-footer-cover {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: var(--footer-ink);
}

.rv-footer-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 max(29%, calc(50% - 260px));
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.rv-footer-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 20%;
}

.rv-footer-cover::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #151e2e 24%, #151e2ef2 34%, #151e2e42 63%, transparent 80%),
    linear-gradient(0deg, #151e2e 1%, #151e2e79 32%, #151e2e16 70%);
}

.rv-footer-identity {
  padding-block: clamp(1.9rem, 4vw, 3.6rem) clamp(1.4rem, 3vw, 2.7rem);
}

.rv-site-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .23em;
}

.rv-site-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.rv-site-footer a:hover { text-decoration: underline; }

.rv-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(.55rem, 1.5vw, .9rem);
  min-height: 44px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: 1;
}

.rv-footer-brand img {
  flex: none;
  width: clamp(36px, 4.5vw, 50px);
  height: auto;
}

.rv-footer-description {
  max-width: 29ch;
  margin: .65rem 0 .95rem;
  color: var(--footer-paper);
  font-size: clamp(.98rem, 1.4vw, 1.1rem);
}

.rv-site-footer .rv-footer-action {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 45px;
  padding: .4rem .85rem;
  border-radius: 6px;
  background: var(--footer-accent);
  color: #212235;
  font-weight: 740;
}
.rv-footer-action .icon { transition: transform .18s ease; }
.rv-footer-action:hover .icon { transform: translateX(3px); }

.rv-footer-name-note {
  max-width: 46ch;
  margin: .75rem 0 0;
  color: var(--footer-muted);
  font-size: .8rem;
}

.rv-footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem clamp(1rem, 3vw, 3.5rem);
  padding-block: 0 1rem;
}

.rv-footer-group {
  padding-top: .85rem;
  border-top: 1px solid var(--footer-line);
}

.rv-footer-group h2 {
  margin: 0 0 .16rem;
  color: var(--footer-accent);
  font: 660 .74rem/1.4 var(--label, ui-monospace, monospace);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rv-footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-footer-group a,
.rv-footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .3rem;
  overflow-wrap: anywhere;
}

.rv-footer-group a { font-weight: 640; }
.rv-footer-group .rv-footer-email { flex-direction: column; align-items: flex-start; justify-content: center; }
.rv-footer-email-address { color: var(--footer-muted); font-size: .84em; font-weight: 480; }

.rv-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: start;
  column-gap: .8rem;
  padding-bottom: max(.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: .86rem;
}

.rv-footer-projects {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(.75rem, 2vw, 1.4rem);
  font-size: .8rem;
}

.rv-footer-top { justify-self: end; gap: .45rem; }
.rv-footer-top .icon { transform: rotate(-90deg); }
.rv-site-footer .icon { flex: none; }

@media (width > 760px) {
  .rv-footer-identity { padding-block-end: 1.25rem; }
}

@media (max-width: 760px) {
  .rv-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .rv-footer-bottom { grid-template-columns: 1fr auto; }
  .rv-footer-projects { grid-column: 1 / -1; grid-row: 2; }
  .rv-footer-art { inset-inline-start: 0; mask-image: none; }
  .rv-footer-art img { object-position: 65% 44%; }
  .rv-footer-cover::after {
    background:
      linear-gradient(90deg, #151e2eea 8%, #151e2ebf 44%, #151e2e36 84%),
      linear-gradient(0deg, #151e2e 0%, #151e2e64 50%, transparent 100%);
  }
}

@media (max-width: 460px) {
  .rv-footer-group a { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-footer-action .icon { transition: none; }
}
