/* hundred — 12 Footer (prefix ft-) */

.ft-footer {
  position: relative;
  /* clip, not hidden: hidden makes the footer the sticky scrollport and
     the mobile meta bar would never pin (same reason casa uses overflow-clip) */
  overflow: clip;
  min-height: 900px;
  padding: 100px 80px 0;
  background: var(--olive);
  color: var(--olive-text);
  display: flex;
  flex-direction: column;
}

/* ---- content layer ---- */

.ft-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.ft-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px 48px;
}

/* lead statement + newsletter */

.ft-lead {
  max-width: 560px;
}

.ft-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.ft-news {
  margin-top: 48px;
}

.ft-news__label {
  margin-bottom: 12px;
}

/* one pill, button inset right (casa interaction model) */
.ft-news__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 22px;
  border: 1px solid var(--olive-text);
  border-radius: var(--r-pill);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.ft-news__form:hover,
.ft-news__form:focus-within {
  border-color: var(--cream);
}

.ft-news__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ft-news__input::placeholder {
  color: var(--olive-text);
  opacity: 0.8;
}

.ft-news__input:focus-visible {
  outline: none;
}

.ft-news__btn {
  height: 40px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.ft-news__btn:hover {
  transform: scale(1.02);
  background: var(--cream);
}

.ft-news__btn:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* link columns */

.ft-cols {
  display: flex;
  gap: 80px;
}

.ft-col__head {
  color: var(--cream);
  margin-bottom: 22px;
}

.ft-col__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-link {
  display: inline-block;
  /* 10px padding grows the hit area to ~40px (spec); negative margin keeps the 12px list rhythm */
  padding-block: 10px;
  margin-block: -8px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--olive-text);
  transition: color var(--dur-fast) var(--ease-out);
}

.ft-link:hover {
  color: var(--cream);
}

.ft-link:focus-visible {
  outline: 2px solid var(--olive-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- bottom bar: sign-off inside the home shape, meta row (© / social) ---- */

/* end zone wraps the home shape + sign-off + meta row; it is the sticky
   containing block, so the mobile meta bar pins only through the reveal */
.ft-end {
  position: relative;
}

/* sign-off anchor: a zero-height slot the text hangs above via translateY.
   Desktop: fixed overlay inside the inner home, as before. Mobile flips it to
   sticky (below) so it rides the crown during the reveal, casa's pattern. */
.ft-love-slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 1;
  height: 0;
  pointer-events: none;
}

.ft-love {
  transform: translateY(-100%);
  text-align: center;
}

.ft-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 80px;
}

.ft-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.ft-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--olive-text);
  transition: color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.ft-social__link:hover {
  color: var(--cream);
  transform: scale(1.05);
}

.ft-social__link:focus-visible {
  outline: 2px solid var(--olive-text);
  outline-offset: 2px;
}

/* ---- arch reveal (scroll-driven; JS animates transform, scene opacity, base fill) ---- */

.ft-arch-stage {
  position: relative;
  z-index: 0;
  width: 100%;
  /* stage height = home shape height at full scale (aspect 142:97) */
  height: calc(min(60vw, 920px) * 0.6831);
  margin-top: 96px;
  pointer-events: none;
}

.ft-arch-scaler {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(60vw, 920px);
  aspect-ratio: 142 / 97;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  will-change: transform;
}

.ft-arch-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* defaults are the fully revealed state, so no-JS and reduced-motion get the
   finished composition; the script drives them from the resting state instead */
.ft-arch-base {
  fill: var(--olive);
}

.ft-arch-scene {
  opacity: 1;
}

/* ---- responsive ---- */

@media (max-width: 1023px) {
  .ft-footer {
    padding: 90px 40px 0;
  }

  .ft-meta {
    padding: 24px 40px;
  }

  .ft-cols {
    gap: 56px;
  }
}

@media (max-width: 767px) {
  .ft-footer {
    min-height: 0;
    padding: 96px 24px 0;
  }

  .ft-top {
    flex-direction: column;
    gap: 56px;
  }

  /* two equal columns from the left edge, second starting at the midline (casa grid) */
  .ft-cols {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .ft-link {
    font-size: 16px;
  }

  /* near-full-bleed home shape on small screens */
  .ft-arch-stage {
    height: calc(94vw * 0.6831);
    margin-top: 72px;
  }

  .ft-arch-scaler {
    width: 94vw;
  }

  /* pinned inside the dark crown as it peeks, settling into the inner home;
     96px clears the in-flow meta bar below */
  .ft-love-slot {
    position: sticky;
    bottom: 96px;
  }

  /* meta row leaves the overlay and becomes casa's pinned bar: it rides the
     viewport bottom while the footer scrolls in, then settles on clean olive
     below the home shape — © and the icons never sit on the painted scene */
  .ft-meta {
    position: sticky;
    z-index: 2;
    align-items: center;
    padding: 20px 24px;
  }
}

.ft-social__icon {
  display: block;
}

/* optical balancing: at an equal 24px box the solid disc reads heavier than the
   outlined mark, and the TikTok note reads lighter than both */
.ft-social__icon--fb {
  transform: scale(0.95);
}

.ft-social__icon--tt {
  transform: scale(1.06);
}
