/* ===== Footer (Framer desktop export — rgb(245,245,245), ticker, 4 stripes, meta bar) ===== */
.footer {
  --footer-bg: rgb(245, 245, 245);
  --footer-text: rgb(5, 5, 5);
  --footer-muted: rgb(184, 184, 184);
  --footer-label-opacity: 0.5;
  --footer-input-border: rgb(226, 228, 227);
  --footer-btn: rgb(66, 66, 66);
  --footer-meta-bg: rgb(5, 5, 5);
  --footer-font: var(--font-display, 'Apfel Grotezk', var(--font-sans));
  /* Meta bar: same sans as header logo / nav (not display) */
  --footer-meta-font: var(--font-sans, 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --footer-max: min(100vw - 2.5rem, 1580px);

  position: relative;
  z-index: 12;

  background: var(--footer-bg);
  padding: 0;
  font-family: var(--footer-font);
  color: var(--footer-text);
}

.footer-inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.75rem) clamp(1.25rem, 4vw, 2rem) clamp(3.25rem, 6.5vw, 4.75rem);
  font-family: var(--footer-font);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.footer-label {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--footer-font);
  color: var(--footer-text);
  opacity: var(--footer-label-opacity);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--footer-font);
  color: var(--footer-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
  line-height: 1.45;
}

.footer-nav a:hover {
  opacity: 0.65;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact a,
.footer-contact p {
  font-size: 1.125rem;
  font-family: var(--footer-font);
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
  margin: 0;
  line-height: 1.55;
}

.footer-contact a {
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.65;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.65rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(20, 20, 20);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  opacity: 0.72;
  transform: translateY(-2px);
}

.footer-social-link svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Subscribe */
.footer-subscribe-title {
  margin: 0 0 0.95rem;
  font-family: var(--footer-font);
  font-size: clamp(1.5rem, 2.35vw, 1.875rem);
  font-weight: 700;
  color: var(--footer-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.footer-sub-desc {
  margin: 0 0 1.65rem;
  font-size: 1.0625rem;
  font-family: var(--footer-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--footer-text);
  opacity: 0.7;
  max-width: 28rem;
}

/* Grid: input grows, button fixed — avoids flex shrink bugs in narrow columns */
.footer-sub-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem 1rem;
  max-width: 100%;
  width: 100%;
}

.footer-sub-input {
  min-width: 0;
  width: 100%;
  padding: 0.85rem 0;
  font-size: 1.125rem;
  font-family: var(--footer-font);
  color: rgb(23, 23, 23);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--footer-input-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.footer-sub-input::placeholder {
  color: rgb(184, 184, 184);
}

.footer-sub-input:focus {
  border-bottom-color: rgb(140, 140, 140);
}

.footer-sub-btn {
  width: 56px;
  height: 56px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-btn);
  color: #ffffff;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.footer-sub-btn svg {
  width: 22px;
  height: 22px;
}

.footer-sub-btn:hover {
  background: rgb(45, 45, 45);
  transform: scale(1.04);
}

.footer-sub-btn:active {
  transform: scale(0.98);
}

/* Marquee — tall band like Framer ticker */
.footer-marquee {
  width: 100%;
  overflow: hidden;
  min-height: clamp(11rem, 28vw, 18rem);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 2%,
    #000 98%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 2%,
    #000 98%,
    transparent 100%
  );
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee-scroll 55s linear infinite;
  will-change: transform;
}

@keyframes footer-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.footer-marquee-segment {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding-right: 0.35rem;
}

.footer-marquee-unit {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-marquee-word {
  font-family: var(--font-oswald, var(--footer-font));
  font-size: clamp(4.25rem, 13.5vw, 10.5rem);
  font-weight: 700;
  color: rgb(31, 31, 31);
  letter-spacing: -0.035em;
  line-height: 0.9;
  white-space: nowrap;
}

.footer-marquee-tm {
  font-family: var(--font-oswald, var(--footer-font));
  font-size: clamp(1.5rem, 4.5vw, 3.15rem);
  font-weight: 600;
  color: rgb(31, 31, 31);
  line-height: 1;
  margin-left: 0.05em;
  margin-top: 0.2em;
}

.footer-marquee-sep {
  font-family: var(--font-oswald, var(--footer-font));
  font-size: clamp(4.25rem, 13.5vw, 10.5rem);
  font-weight: 700;
  color: rgb(31, 31, 31);
  letter-spacing: -0.035em;
  line-height: 0.9;
  white-space: pre;
}

/* Framer “Color spacer” stack — 4 stripes */
.footer-ending-stripes {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
}

.footer-ending-stripes__line {
  display: block;
  width: 100%;
  height: clamp(7px, 1.1vw, 10px);
  flex-shrink: 0;
}

.footer-ending-stripes__line--1 {
  background-color: rgb(91, 240, 158);
}

.footer-ending-stripes__line--2 {
  background-color: rgba(78, 245, 126, 0.8);
}

.footer-ending-stripes__line--3 {
  background-color: rgb(255, 157, 128);
}

.footer-ending-stripes__line--4 {
  background-color: rgba(47, 158, 79, 0.73);
}

/* Tech details — Framer “Tech details” bar */
.footer-meta {
  background: var(--footer-meta-bg);
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.2rem) clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--footer-meta-font);
}

/* Full-width row, three equal bands — same spread idea as header .nav (space across the bar) */
.footer-meta-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(0.8125rem, 1.15vw, 0.875rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}

.footer-meta-branding {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
}

.footer-meta-made-label {
  margin: 0;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  font-weight: 500;
}

.footer-meta-made-name {
  margin: 0;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-meta-spacer {
  display: none;
}

.footer-meta-updated-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.footer-meta-updated-line {
  margin: 0;
  font-family: inherit;
  line-height: 1.35;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
}

.footer-meta-updated-label {
  display: inline;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.footer-meta-updated-value {
  display: inline;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer-meta-copy {
  margin: 0;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  text-align: right;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  text-transform: none;
  font-weight: 500;
}

@media (max-width: 900px) {
  .footer-meta {
    padding: 1.1rem 1.25rem 1.15rem;
  }

  .footer-meta-inner {
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 1.25rem;
  }

  .footer-meta-branding {
    flex: 1 1 calc(50% - 0.75rem);
    justify-content: flex-start;
  }

  .footer-meta-updated-block {
    flex: 1 1 calc(50% - 0.75rem);
    align-items: flex-end;
    text-align: right;
  }

  .footer-meta-copy {
    flex: 1 1 100%;
    text-align: center;
  }
}

/*
 * Subscribe: footer stays 3 columns until 768px — third column can be ~220–320px wide.
 * Side-by-side field + circle looks broken there. Stack from tablet down through phone.
 */
@media (max-width: 1024px) {
  .footer-subscribe {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .footer-sub-desc {
    max-width: none;
  }

  .footer-sub-form {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: stretch;
    align-items: stretch;
    gap: 1.1rem;
    width: 100%;
    max-width: 100%;
  }

  .footer-sub-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: max(1rem, 16px);
    padding: 0.85rem 0 0.7rem;
  }

  .footer-sub-btn {
    justify-self: start;
    width: 52px;
    height: 52px;
    min-width: 48px;
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 3.5rem 1.25rem 2.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .footer-sub-form {
    gap: 1.2rem;
  }

  .footer-subscribe-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .footer-sub-desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .footer-marquee {
    min-height: clamp(9rem, 38vw, 13rem);
    padding: 1.5rem 0;
  }

  .footer-marquee-track {
    animation-duration: 40s;
  }

  .footer-meta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .footer-meta-branding {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-meta-updated-block {
    flex: 1 1 auto;
    align-items: center;
    text-align: center;
  }

  .footer-meta-updated-line {
    white-space: normal;
  }

  .footer-meta-copy {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-marquee-track {
    animation: none;
    transform: none;
  }

  .footer-social-link:hover {
    transform: none;
  }

  .footer-sub-btn:hover {
    transform: none;
  }
}
