/* Shared scenic footer. Keep this stylesheet isolated from page-level layout. */
footer.scene-footer,
footer.scene-footer * { box-sizing: border-box; }

footer.scene-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--teal-light, #7FB8B1);
  background: #eef3f0;
  padding: clamp(58px, 7vw, 92px) clamp(16px, 3vw, 42px) clamp(320px, 23vw, 360px);
}

footer.scene-footer .scene-footer__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: #e8f0ee;
  transform: scale(1.01);
}

footer.scene-footer .scene-footer__backdrop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

footer.scene-footer .scene-footer__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248,246,241,.08), rgba(6,48,45,.04) 62%, rgba(6,48,45,.14)),
    radial-gradient(ellipse at 50% 32%, rgba(248,246,241,.20), transparent 58%);
}

footer.scene-footer .scene-footer__panel {
  position: relative;
  z-index: 2;
  isolation: isolate;
  --footer-panel-tail: clamp(300px, 27vw, 390px);
  width: min(1160px, 100%);
  max-width: 1160px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 66px);
  padding-bottom: clamp(140px, 11vw, 175px);
  color: var(--teal-light, #7FB8B1);
  background: var(--teal-ink, #06302D);
  border: 1px solid rgba(198,226,221,.42);
  border-bottom: 0;
  border-radius: clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px) 0 0;
  box-shadow: 0 24px 70px rgba(6,48,45,.24), inset 0 1px 0 rgba(255,255,255,.08);
}

footer.scene-footer .scene-footer__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1px;
  right: -1px;
  bottom: calc(-1 * var(--footer-panel-tail));
  height: calc(var(--footer-panel-tail) + 1px);
  background: var(--teal-ink, #06302D);
  border-left: 1px solid rgba(198,226,221,.42);
  border-right: 1px solid rgba(198,226,221,.42);
}

footer.scene-footer .scene-footer__foreground {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  aspect-ratio: 1925 / 817;
  filter: drop-shadow(0 -10px 22px rgba(6,48,45,.08));
}

footer.scene-footer .scene-footer__foreground > img {
  display: block;
  width: 100%;
  height: auto;
}

footer.scene-footer .foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(24px, 4vw, 54px);
  padding-bottom: 0;
  border-bottom: 0;
}

footer.scene-footer .foot-brand .wm {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--teal-tint, #DCF1EF);
}

footer.scene-footer .foot-brand .rs {
  margin-top: 5px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--teal-light, #7FB8B1);
}

footer.scene-footer .foot-brand p {
  max-width: 260px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
}

footer.scene-footer .foot-col h3,
footer.scene-footer .foot-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-tint, #DCF1EF);
}

footer.scene-footer .foot-col a {
  display: block;
  padding: 4px 0;
  color: var(--teal-light, #7FB8B1);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

footer.scene-footer .foot-col a:hover { color: var(--paper, #F8F6F1); }

footer.scene-footer .disclaimer {
  max-width: 900px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(127,184,177,.25);
  color: var(--teal-light, #7FB8B1);
  font-family: var(--sans, Arial, sans-serif);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
}

footer.scene-footer .disclaimer p {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
footer.scene-footer .disclaimer b,
footer.scene-footer .disclaimer strong { color: var(--teal-light, #7FB8B1); }

footer.scene-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--teal-light, #7FB8B1);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (min-width: 701px) and (max-width: 1000px) {
  footer.scene-footer { padding-bottom: 270px; }
}

@media (max-width: 900px) {
  footer.scene-footer .foot-top { grid-template-columns: 1fr 1fr; }
  footer.scene-footer .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  footer.scene-footer { padding: 34px 14px 240px; }
  footer.scene-footer .scene-footer__backdrop {
    transform: none;
  }
  footer.scene-footer .scene-footer__backdrop > img {
    inset: auto auto 0 50%;
    width: auto;
    min-width: 100%;
    height: 62%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center bottom;
  }
  footer.scene-footer .scene-footer__panel {
    padding: 30px 24px 132px;
    border-radius: 24px 24px 0 0;
  }
  footer.scene-footer .scene-footer__panel::after {
    bottom: -235px;
    height: 236px;
  }
  footer.scene-footer .scene-footer__foreground { width: 185%; }
}

@media (prefers-reduced-motion: reduce) {
  footer.scene-footer .scene-footer__backdrop { transform: none; }
}
