/* Site-level helpers layered on the design Tailwind theme. */
:root {
  --font-title: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: min(1280px, calc(100% - 3rem));
  --hero-ink: #140016;
  --hero-ink-soft: #2b002e;
  --hero-accent: #fdaaf8;
  --hero-accent-deep: #943796;
  --hero-fg: #faf5fb;
  --line: rgba(75, 6, 79, 0.12);
  --paper: #faf9fd;
  --white: #ffffff;
  --muted: #4f434d;
}

html {
  scroll-behavior: smooth;
}

/* Dark hero: transparent header until scroll (MFAS-style) */
body.has-dark-hero .site-header {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

body.has-dark-hero .site-header .font-title-lg,
body.has-dark-hero .site-header .site-nav a:not([aria-current="page"]) {
  color: rgba(250, 245, 251, 0.92);
}

body.has-dark-hero .site-header .font-label-sm {
  color: var(--hero-accent);
}

body.has-dark-hero .site-header .site-nav a:not([aria-current="page"]):hover {
  color: #fff;
}

body.has-dark-hero .site-header #mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.has-dark-hero .site-header.is-scrolled,
body.has-dark-hero .site-header:has(#mobile-nav:not(.hidden)) {
  background: rgba(20, 0, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

body.has-dark-hero .site-header #mobile-nav {
  background: rgba(20, 0, 22, 0.96);
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.has-dark-hero .site-header #mobile-nav a:not([class*="bg-primary"]) {
  color: rgba(250, 245, 251, 0.88);
}

/*
 * Sitewide title font — Syne only.
 * Covers semantic headings, design tokens, and title-sized utilities.
 * Manrope remains for body/label copy only.
 */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
.font-display-mobile,
.font-headline-lg,
.font-headline-lg-mobile,
.font-headline-md,
.font-headline-sm,
.font-title,
.font-title-lg,
[class*="font-display"],
[class*="font-headline"],
[class*="font-title"],
.text-display,
.text-display-mobile,
.text-headline-lg,
.text-headline-lg-mobile,
.text-headline-md,
.text-headline-sm,
.text-title-lg,
[class*="text-display"],
[class*="text-headline"],
[class*="text-title"],
.hero-title,
.hero-brand,
.hero-type,
.footer-brand-name,
.footer-tag,
.footer-label,
.footer-giant,
.proof-item strong,
.site-header .font-title-lg {
  font-family: "Syne", var(--font-title) !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ——— Hero buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-accent {
  background: var(--hero-accent-deep);
  color: #fff;
}

.btn-accent:hover {
  background: #781b7c;
}

.btn-line {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.55);
  opacity: 0.95;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Full-viewport hero (MFAS composition) ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--hero-fg);
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, rgba(20, 0, 22, 0.35) 0%, rgba(20, 0, 22, 0.82) 52%, rgba(20, 0, 22, 0.94) 100%),
    linear-gradient(120deg, #3a0740 0%, #140016 45%, #2b002e 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, #943796 0%, transparent 68%);
  animation: float-a 14s var(--ease) infinite alternate;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 480px;
  max-height: 480px;
  bottom: 8%;
  left: -10%;
  background: radial-gradient(circle, #4b064f 0%, transparent 70%);
  animation: float-b 18s var(--ease) infinite alternate;
}

.orb-c {
  width: 22vw;
  height: 22vw;
  max-width: 280px;
  max-height: 280px;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(253, 170, 248, 0.55) 0%, transparent 70%);
  animation: float-c 11s var(--ease) infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-beam {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 48%, transparent 62%);
  transform: rotate(-8deg);
  animation: beam 12s var(--ease) infinite alternate;
}

.hero-stage {
  position: relative;
  z-index: 1;
  padding: 8.5rem 0 1.5rem;
  max-width: 920px;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.25rem);
  margin-right: auto;
  width: var(--shell);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-stage--portrait {
  max-width: var(--shell);
  width: min(var(--shell), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 2.25rem;
  max-width: 36rem;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: end;
  width: min(100%, 560px);
  margin-bottom: -1.25rem;
  pointer-events: none;
  isolation: isolate;
}

/* Soft purple bloom so the cutout sits in the hero light, not on top of it */
.hero-portrait::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 2%;
  top: 12%;
  bottom: 4%;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 55% 42%, rgba(148, 55, 150, 0.42) 0%, transparent 72%),
    radial-gradient(ellipse 80% 50% at 50% 88%, rgba(20, 0, 22, 0.55) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(84svh, 820px);
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  filter:
    drop-shadow(0 18px 36px rgba(10, 0, 14, 0.45))
    drop-shadow(0 0 42px rgba(148, 55, 150, 0.28));
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 28%, #000 100%),
    radial-gradient(ellipse 92% 96% at 50% 46%, #000 58%, transparent 100%);
  mask-image:
    linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 28%, #000 100%),
    radial-gradient(ellipse 92% 96% at 50% 46%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 46%;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(20, 0, 22, 0.88) 0%,
      rgba(20, 0, 22, 0.42) 34%,
      rgba(58, 7, 64, 0.12) 62%,
      transparent 100%
    );
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--shell)) / 2));
  left: auto;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  text-decoration: none;
  color: rgba(250, 245, 251, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(-50%);
  pointer-events: auto;
}

.hero-scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 3.25rem;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--hero-accent);
  animation: scroll-fall 1.6s var(--ease) infinite;
}

.hero-scroll:hover {
  color: var(--hero-accent);
}

/* Shared hero Syne weight — brand + headline stay matched */
.hero-brand,
.hero h1,
.hero-title,
.hero-title .hero-type {
  font-weight: 700;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  color: var(--hero-accent);
}

.hero h1,
.hero-title {
  max-width: 12ch;
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--hero-fg);
}

.hero-type {
  white-space: pre-wrap;
  font-weight: inherit;
}

.hero-accent {
  color: var(--hero-accent);
}

.hero-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.12em;
  background: var(--hero-accent);
  vertical-align: -0.05em;
  opacity: 0;
  pointer-events: none;
}

.hero-title.is-typing .hero-caret {
  opacity: 1;
  animation: caret-blink 0.9s steps(1) infinite;
}

.hero-title.is-typed .hero-caret {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.hero-lede {
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(250, 245, 251, 0.82);
  margin: 0;
  font-family: var(--font-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-marquee {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 1rem 0;
  animation: marquee 32s linear infinite;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 245, 251, 0.55);
}

.marquee-track span::after {
  content: "·";
  margin-left: 2.5rem;
  color: var(--hero-accent);
}

.anim-in {
  opacity: 0;
  transform: translateY(28px);
}

body.is-ready .anim-in {
  animation: rise-in 0.9s var(--ease-out) both;
}

.anim-in[data-delay="1"] {
  animation-delay: 0.12s;
}

.anim-in[data-delay="2"] {
  animation-delay: 0.24s;
}

.anim-in[data-delay="3"] {
  animation-delay: 0.36s;
}

/* Proof band under hero */
.band.proof {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 0;
  background: var(--paper);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(75, 6, 79, 0.06);
}

.proof-item {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #2b002e;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 8%, 0) scale(1.08);
  }
}

@keyframes float-b {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(6%, -5%, 0);
  }
}

@keyframes float-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(-8%, 6%, 0) scale(1.1);
  }
}

@keyframes beam {
  from {
    transform: rotate(-8deg) translateX(-2%);
  }
  to {
    transform: rotate(-6deg) translateX(3%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(280%);
    opacity: 0;
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero-stage {
    margin-left: auto;
    margin-right: auto;
    padding: 7.5rem 1rem 1.5rem;
  }

  .hero-stage--portrait {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
    gap: 0.5rem;
    padding-bottom: 0;
  }

  .hero-copy {
    order: 1;
    max-width: 40rem;
    width: 100%;
    padding-bottom: 1rem;
  }

  .hero-portrait {
    order: 0;
    width: min(78vw, 360px);
    margin-top: 0.25rem;
    margin-bottom: -0.75rem;
  }

  .hero-portrait img {
    max-height: min(46svh, 400px);
  }

  .hero-portrait::after {
    height: 48%;
  }

  .hero-scroll {
    right: 0.85rem;
  }

  .proof-row {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(1),
  .proof-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .proof-row {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .hero h1,
  .hero-title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a,
  .orb-b,
  .orb-c,
  .hero-beam,
  .marquee-track,
  .hero-scroll-line::after,
  .hero-caret,
  .anim-in,
  body.is-ready .anim-in {
    animation: none !important;
  }

  .anim-in {
    opacity: 1;
    transform: none;
  }

  .hero-caret {
    opacity: 0;
  }
}

/* Inner-page hero titles (non home) keep type animation support */
main section:first-of-type > .max-w-\[1280px\] .hero-title:not(.hero .hero-title),
main > .flex > section:first-of-type .hero-title:not(.hero .hero-title) {
  letter-spacing: -0.02em;
}

/* ——— Footer (MFAS composition) ——— */
.site-footer {
  position: relative;
  background: var(--hero-ink);
  color: rgba(250, 245, 251, 0.86);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 clamp(4.5rem, 12vw, 7.5rem);
}

.footer-top {
  position: relative;
  z-index: 1;
}

.footer-giant {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  margin: 0;
  padding: 0 max(1.25rem, calc((100% - var(--shell)) / 2));
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(6rem, 24vw, 16rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.footer-type {
  white-space: pre;
}

.footer-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.72em;
  margin-left: 0.08em;
  background: rgba(253, 170, 248, 0.55);
  vertical-align: 0.02em;
  animation: caret-blink 0.9s steps(1) infinite;
}

.footer-giant.is-typed .footer-caret {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.9fr 0.95fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.footer-logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
}

.footer-tag {
  margin: 0 0 0.85rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--hero-accent);
}

.footer-lede {
  max-width: 28rem;
  color: rgba(250, 245, 251, 0.72);
  margin: 0 0 1.25rem;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
}

.footer-meta a {
  color: var(--hero-accent);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.footer-meta a:hover {
  border-bottom-color: currentColor;
}

.footer-meta span {
  color: rgba(250, 245, 251, 0.55);
  font-size: 0.95rem;
}

.footer-about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 170, 248, 0.45);
  padding-bottom: 0.15rem;
  width: fit-content;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.footer-about-link:hover {
  color: var(--hero-accent);
  border-bottom-color: var(--hero-accent);
  gap: 0.65rem;
}

.footer-col {
  min-width: 0;
}

.footer-label {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-accent);
  border-bottom: 1px solid rgba(253, 170, 248, 0.28);
}

.footer-brand .footer-label {
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links li:last-child {
  border-bottom: 0;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  text-decoration: none;
  color: rgba(250, 245, 251, 0.88);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-link-go {
  color: rgba(253, 170, 248, 0.55);
  font-size: 0.95rem;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 0.35rem;
}

.footer-links a:hover .footer-link-go {
  opacity: 1;
  transform: translateX(0);
  color: var(--hero-accent);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 245, 251, 0.75);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-social a:hover {
  background: var(--hero-accent-deep);
  color: #fff;
}

.footer-social svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(250, 245, 251, 0.5);
}

.footer-base a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-base a:hover {
  color: var(--hero-accent);
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.75rem;
  background: var(--hero-ink);
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--hero-accent-deep);
}

.to-top[hidden] {
  display: inline-flex !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
  }

  .footer-giant {
    font-size: clamp(4.5rem, 28vw, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-caret {
    animation: none !important;
    opacity: 0;
  }
}
