/* Coplost Enterprises — Seed Lattice footer (Solstice Console identity)
   Independent of Appily chrome strips / river footers. */

.ce-ft {
  --ce-ft-night: #10150f;
  --ce-ft-ink: #171c16;
  --ce-ft-mute: #4a5548;
  --ce-ft-paper: #eef1ea;
  --ce-ft-panel: #f7f8f4;
  --ce-ft-line: rgba(16, 21, 15, 0.12);
  --ce-ft-flare: #ff4d1a;
  --ce-ft-flare-deep: #d63b0f;
  --ce-ft-chlor: #4f7a38;
  --ce-ft-chlor-soft: #dce8d2;
  --ce-ft-display: "Sora", "Avenir Next", sans-serif;
  --ce-ft-serif: "Literata", Georgia, serif;
  --ce-ft-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ce-ft-radius: 1.25rem;
  --ce-ft-radius-sm: 0.85rem;
  --ce-ft-max: var(--sc-max, 1180px);
  --ce-ft-inline: clamp(1rem, 2.8vw, 1.5rem);

  position: relative;
  isolation: isolate;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--ce-ft-inline) 1.4rem;
  background:
    radial-gradient(680px 320px at 12% 0%, rgba(79, 122, 56, 0.18), transparent 55%),
    radial-gradient(520px 280px at 92% 18%, rgba(255, 77, 26, 0.14), transparent 50%),
    linear-gradient(165deg, #0e130d 0%, var(--ce-ft-night) 48%, #151b14 100%);
  color: rgba(244, 246, 241, 0.92);
  font-family: var(--ce-ft-display);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Clear break from any dark page section above so it does not read as a second footer */
  box-shadow: 0 -1px 0 rgba(16, 21, 15, 0.06);
}

.ce-ft::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  opacity: 0.45;
  z-index: 0;
}

.ce-ft-frame {
  position: relative;
  z-index: 1;
  width: min(var(--ce-ft-max), 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.85rem);
}

/* Asymmetric primary lattice: brand+newsletter | nav matrix | reach */
.ce-ft-lattice {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.55fr) minmax(12rem, 0.85fr);
  grid-template-areas: "signal matrix reach";
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: start;
}

.ce-ft-signal { grid-area: signal; }
.ce-ft-matrix { grid-area: matrix; }
.ce-ft-reach { grid-area: reach; }

.ce-ft-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ce-ft-chlor-soft);
}

.ce-ft-wordmark {
  margin: 0 0 0.65rem;
  font-family: var(--ce-ft-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.ce-ft-wordmark span {
  display: block;
  color: var(--ce-ft-flare);
}

.ce-ft-lede {
  margin: 0 0 1.15rem;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 246, 241, 0.92);
}

/* Newsletter plate — interactive surface */
.ce-ft-subscribe {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--ce-ft-radius);
  background: linear-gradient(160deg, rgba(247, 248, 244, 0.08), rgba(247, 248, 244, 0.03));
  border: 1px solid rgba(244, 246, 241, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s var(--ce-ft-ease), transform 0.35s var(--ce-ft-ease), box-shadow 0.35s ease;
}

.ce-ft-subscribe:focus-within {
  border-color: rgba(255, 77, 26, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ce-ft-subscribe label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(244, 246, 241, 0.92);
}

.ce-ft-subscribe-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.ce-ft-subscribe input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border-radius: var(--ce-ft-radius-sm);
  border: 1px solid rgba(244, 246, 241, 0.16);
  background: rgba(16, 21, 15, 0.55);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ce-ft-subscribe input[type="email"]::placeholder {
  color: rgba(244, 246, 241, 0.68);
}

.ce-ft-subscribe input[type="email"]:focus {
  border-color: var(--ce-ft-flare);
  background: rgba(16, 21, 15, 0.75);
}

.ce-ft-subscribe button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.72rem 1.05rem;
  border-radius: var(--ce-ft-radius-sm);
  background: var(--ce-ft-flare);
  color: #10150f;
  font-family: var(--ce-ft-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.3s var(--ce-ft-ease), box-shadow 0.3s ease, color 0.2s ease;
}

.ce-ft-subscribe button:hover {
  background: var(--ce-ft-flare-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 77, 26, 0.35);
}

.ce-ft-subscribe button:active {
  transform: translateY(0);
}

.ce-ft-subscribe-note {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(244, 246, 241, 0.55);
}

.ce-ft-subscribe.is-ok {
  border-color: rgba(79, 122, 56, 0.65);
}

.ce-ft-subscribe.is-ok .ce-ft-subscribe-note {
  color: var(--ce-ft-chlor-soft);
}

/* Nav matrix — micro-interactive columns */
.ce-ft-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ce-ft-col {
  padding: 0.95rem 0.9rem 1.05rem;
  border-radius: var(--ce-ft-radius);
  background: rgba(247, 248, 244, 0.04);
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ce-ft-ease),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.ce-ft-col:hover {
  transform: translateY(-4px);
  background: rgba(247, 248, 244, 0.07);
  border-color: rgba(255, 77, 26, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.ce-ft-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce-ft-flare);
}

.ce-ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ce-ft-col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(244, 246, 241, 0.88);
  padding: 0.2rem 0;
  transition: color 0.22s ease, transform 0.3s var(--ce-ft-ease);
}

.ce-ft-col a::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ce-ft-chlor);
  transition: width 0.3s var(--ce-ft-ease);
  flex-shrink: 0;
}

.ce-ft-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.ce-ft-col a:hover::before {
  width: 0.7rem;
}

/* Reach — plain text channels (no button tiles) */
.ce-ft-reach {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.ce-ft-reach-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce-ft-chlor-soft);
}

.ce-ft-social {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ce-ft-social a {
  display: grid;
  gap: 0.12rem;
  text-decoration: none;
  color: rgba(244, 246, 241, 0.92);
  transition: color 0.2s ease, transform 0.3s var(--ce-ft-ease);
}

.ce-ft-social-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 232, 210, 0.78);
}

.ce-ft-social-value {
  font-family: var(--ce-ft-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  word-break: break-word;
}

.ce-ft-social a:hover {
  transform: translateX(3px);
}

.ce-ft-social a:hover .ce-ft-social-value {
  color: var(--ce-ft-flare);
}

.ce-ft-social a:hover .ce-ft-social-label {
  color: rgba(244, 246, 241, 0.9);
}

.ce-ft-capsule {
  padding: 0.85rem 0.9rem;
  border-radius: var(--ce-ft-radius-sm);
  background: var(--ce-ft-chlor-soft);
  color: var(--ce-ft-night);
  font-size: 0.72rem;
  line-height: 1.45;
}

.ce-ft-capsule strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Legal ribbon — single continuous footer band (not a second footer block) */
.ce-ft-legalband {
  display: block;
  margin-top: clamp(0.85rem, 2vw, 1.25rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 246, 241, 0.1);
}

.ce-ft-disclaimer {
  margin: 0;
  max-width: 62ch;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(244, 246, 241, 0.58);
}

.ce-ft-disclaimer a {
  color: rgba(244, 246, 241, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ce-ft-disclaimer a:hover {
  color: var(--ce-ft-flare);
  border-bottom-color: rgba(255, 77, 26, 0.55);
}

.ce-ft-meta {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  color: rgba(244, 246, 241, 0.5);
  font-variant-numeric: tabular-nums;
}

/* Scroll-to-top orb */
.ce-ft-top {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--ce-ft-flare);
  color: #10150f;
  box-shadow: 0 12px 28px rgba(255, 77, 26, 0.35);
  transition: transform 0.35s var(--ce-ft-ease), background 0.2s ease, opacity 0.3s ease, box-shadow 0.3s ease, color 0.2s ease;
}

.ce-ft-top:hover {
  background: var(--ce-ft-flare-deep);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(255, 77, 26, 0.42);
}

.ce-ft-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ce-ft-top svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.35s var(--ce-ft-ease);
}

.ce-ft-top:hover svg {
  transform: translateY(-2px);
}

.ce-ft-top-float {
  position: fixed;
  right: calc(var(--sc-dial-gutter, 4.5rem) + 0.85rem);
  bottom: 1.15rem;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
}

@media (max-width: 820px) {
  .ce-ft-top-float {
    right: 1rem;
    bottom: 5.5rem;
  }
}

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

@media (max-width: 980px) {
  .ce-ft-lattice {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "signal signal"
      "matrix matrix"
      "reach  reach";
  }

  .ce-ft-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ce-ft-matrix {
    grid-template-columns: 1fr;
  }

  .ce-ft-subscribe-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ce-ft *,
  .ce-ft-top-float {
    transition: none !important;
  }
}
