/* Closing CTA (a full screen in the accent, animation to come) and the site footer.
   The footer carries the contact details; it has no "Contact" heading by design. */

/* ── CTA ── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  margin-top: var(--section);
  padding: clamp(96px, 12vw, 160px) 0;
  border-radius: 28px 28px 0 0;
  background: var(--accent); color: var(--on-accent);
}
.cta__inner { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(32px, 4vw, 56px); }
.cta__title {
  max-width: 11ch;
  font-size: clamp(56px, 9vw, 168px); font-weight: 600; line-height: 0.94; letter-spacing: -0.045em;
}
.cta .btn { background: var(--light); color: var(--dark); }
.cta .btn:hover { background: var(--dark); color: var(--light); }

/* ── footer ── */
.foot {
  background: var(--dark); color: color-mix(in srgb, var(--light) 62%, var(--dark));
  padding: clamp(56px, 7vw, 96px) 0 32px;
  font-size: 15px;
}
.foot a { color: var(--light); transition: color 0.2s; }
.foot a:hover { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.foot .brand { color: var(--light); --logo-sign: color-mix(in srgb, var(--accent) 45%, #fff); }
.foot .brand svg { height: 30px; width: auto; }
.foot__col h3 {
  margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0;
  color: color-mix(in srgb, var(--light) 46%, var(--dark));
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__bottom {
  display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--light) 12%, var(--dark));
  font-size: 13px;
}

@media (max-width: 900px) {
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top > .brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cta { border-radius: 22px 22px 0 0; }
}

/* ── CTA art: the sign assembles like a machined part ──
   Guides (the slot axes) and crop marks draw first, then the three pieces slide in along their
   45° axes and lock; afterwards a slow float and a passing sheen. cta.js sets [data-anim] and
   .is-in; without JS or with reduced motion the sign is simply shown assembled. */
.cta__inner { position: relative; z-index: 1; }
.cta__art {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: min(44vw, 600px); aspect-ratio: 1; transform: translateY(-50%);
}
.cta__art svg { width: 100%; height: 100%; overflow: visible; }
.cta__guide { fill: none; stroke: rgb(255 255 255 / 0.28); stroke-width: 0.6; stroke-dasharray: 420; }
.cta__mark { fill: none; stroke: rgb(255 255 255 / 0.55); stroke-width: 1; }
.cta__face { fill: url(#cta-face); }
.cta__side { fill: #1531c2; }
.cta__sheen { mix-blend-mode: soft-light; }

/* initial state, only once JS has armed the animation */
.cta[data-anim] .cta__guide { stroke-dashoffset: 420; transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.cta[data-anim] .cta__mark { opacity: 0; transition: opacity 0.6s ease 0.5s; }
.cta[data-anim] .cta__p {
  opacity: 0; transform: translate(var(--dx), var(--dy));
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.68, 1) var(--d), opacity 0.5s ease var(--d);
}
.cta[data-anim].is-in .cta__guide { stroke-dashoffset: 0; }
.cta[data-anim].is-in .cta__mark { opacity: 1; }
.cta[data-anim].is-in .cta__p { opacity: 1; transform: none; }

/* idle: a slow float and a sheen every few seconds */
.cta[data-anim].is-in .cta__sign { animation: cta-float 8s ease-in-out 2.4s infinite; }
@keyframes cta-float { 50% { transform: translate(-3px, -8px); } }
.cta__sheen rect { transform: translateX(-340px); }
.cta[data-anim].is-in .cta__sheen rect { animation: cta-sheen 7s cubic-bezier(0.4, 0, 0.2, 1) 2.2s infinite; }
@keyframes cta-sheen { 0% { transform: translateX(-340px); } 30%, 100% { transform: translateX(340px); } }

@media (max-width: 800px) {
  .cta { align-items: flex-start; }
  .cta__art { top: auto; bottom: 6vw; right: -10vw; width: 86vw; transform: none; }
}

/* keep the text out of the sign's column: the art is positioned, so reserve its width */
.cta { --art: min(40vw, 560px); }
.cta__art { width: var(--art); }
.cta__inner { padding-right: calc(var(--gutter) + var(--art) + clamp(32px, 4vw, 72px)); }
.cta__title { font-size: clamp(56px, 7.2vw, 136px); }
@media (max-width: 800px) {
  .cta__art { width: 86vw; }
  .cta__inner { padding-right: var(--gutter); }
}

/* phones and tablets: text, then the sign in the flow under it, the pair centred on the screen */
@media (max-width: 800px) {
  .cta { flex-direction: column; align-items: stretch; justify-content: center; padding: clamp(88px, 16vw, 128px) 0 clamp(56px, 10vw, 88px); }
  .cta__art {
    position: relative; order: 2; top: auto; right: auto; bottom: auto; transform: none;
    width: min(64vw, 380px); margin: clamp(40px, 9vw, 72px) auto 0;
  }
  .cta__inner { padding-right: var(--gutter); }
}
