/* outro: closing photo, thanks in three columns, hand-over to the notify sign-up, credits. */

.outro { overflow: hidden; }
#outro, #outro * { font-feature-settings: "calt" 0; }

.ou-head { position: relative; z-index: 2; }
.ou-title {
  margin: .9rem 0 0; max-width: 13ch;
  font: 900 clamp(2.8rem, 10vw, 7.5rem)/.92 var(--font-display); letter-spacing: -.035em;
}
.ou-title em { font-style: italic; font-weight: 700; color: var(--primary); padding-right: .08em; }

/* ---- Photo ---- */
.ou-photo { margin: clamp(-1.4rem, -2.2vw, -.8rem) calc(var(--gutter) * -1) 0; position: relative; z-index: 1; }
.ou-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg2);
  transition: transform 1.4s var(--ease), opacity 1.2s var(--ease);
}
/* Entrance only when JS is running (no-JS shows the photo as is). */
.ou-photo.is-armed .ou-frame { transform: scale(.94); opacity: .2; }
.ou-photo.is-armed.is-in .ou-frame { transform: none; opacity: 1; }
.ou-img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover; object-position: 50% 55%;
  will-change: transform;
}
.ou-frame-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / .5) 0%, transparent 22%, transparent 72%, rgb(var(--bg-rgb) / .6) 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgb(var(--bg-rgb) / .45) 100%);
}
.ou-stamp {
  position: absolute; left: 1rem; bottom: .9rem; margin: 0;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgb(var(--bg-rgb) / .6); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 .78rem/1 var(--font); color: var(--ink);
}
.ou-stamp .mono { color: var(--primary); font-weight: 700; }
.ou-caption { margin: .8rem var(--gutter) 0; font-size: .86rem; color: var(--muted); }
.ou-credit { color: var(--dim); white-space: nowrap; }

@media (min-width: 760px) {
  .ou-photo { margin-inline: auto; max-width: var(--wide); }
  .ou-frame { aspect-ratio: 2 / 1; border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
  .ou-stamp { left: 1.4rem; bottom: 1.3rem; }
  .ou-caption { margin-inline: 0; }
}

/* ---- Thanks ---- */
.ou-body { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ou-cols { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 900px) { .ou-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ou-thanks { padding-top: 1rem; border-top: 2px solid var(--primary); }
.ou-sub { margin: 0 0 .6rem; font: 700 .74rem/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.ou-thanks p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.65; color: var(--text); }
.ou-thanks strong { color: var(--ink); }

/* ---- Hand-over to the notify sign-up ---- */
.ou-next {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .8rem 1.5rem;
}
.ou-next p { margin: 0; max-width: 42rem; font: 700 clamp(1.15rem, 2.4vw, 1.5rem)/1.35 var(--font); color: var(--ink); }
.ou-next-link {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font: 700 .8rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); text-decoration: none;
}
.ou-next-link span { display: inline-block; animation: ou-nudge 1.8s var(--ease) infinite; }
.ou-next-link:hover { color: var(--ink); }

.ou-credits { margin: 2rem 0 0; font: 500 .74rem/1.5 var(--font-mono); letter-spacing: .04em; color: var(--dim); }

@keyframes ou-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .ou-frame { transform: none; opacity: 1; }
  .ou-next-link span { animation: none; }
}
@media (max-width: 420px) {
  .ou-stamp { font-size: .7rem; padding: .38rem .6rem; bottom: .6rem; left: .6rem; }
}
