
html, body { background: #000; }
.words-screen, .daily-screen, .gallery-screen { background: #000; border-top: 0; }

.message-photo > img, .fm-room, .fm-sharp { filter: brightness(.78) saturate(.5); }
.fm-room { filter: blur(4px) brightness(.72) saturate(.45); }

@media (min-width: 901px) and (min-aspect-ratio: 5/4) and (min-height: 600px) {
  :root { --foot: 72px; }
  .home-hero { height: 100svh; }


  .words-screen {
    position: relative; height: 100svh; min-height: 0; padding: 0;
    display: block; overflow: hidden;
  }
  .message-photo {
    position: absolute; inset: 0; width: auto; aspect-ratio: auto;
    border-radius: 0; box-shadow: none; background: #000;
  }
  .message-photo > img { object-fit: cover; object-position: 50% 0%; }
  .message-photo::before, .message-photo::after {
    content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  }
  .message-photo::before { top: 0; height: 22%; background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent); }
  .message-photo::after { bottom: 0; height: 32%; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.82) 40%, transparent); }
  .words-heading {
    position: absolute; z-index: 3; top: 0; left: 0; right: 0;
    padding: clamp(1rem, 3vh, 1.8rem) 1rem 0;
  }
  .words-heading h2 { font-size: clamp(1.8rem, 2.7vw, 3rem); }
  .words-heading h2 br { display: none; }
  .words-footnote {
    position: absolute; z-index: 3; left: 50%; bottom: clamp(1.2rem, 4vh, 2.4rem);
    transform: translateX(-50%); width: min(52rem, calc(100% - 2rem));
    color: #f3efe9; font-size: clamp(1.1rem, 1.4vw, 1.35rem); text-shadow: 0 1px 14px rgba(0,0,0,.9);
  }

  .daily-screen { height: calc(100svh - var(--foot)); min-height: 0; padding: clamp(1.4rem, 4vh, 2.6rem) 0 clamp(.8rem, 2vh, 1.4rem); justify-content: space-between; gap: 0; }
  .fm-show { width: 100%; gap: clamp(.8rem, 2vh, 1.2rem); }
  .fm-show .fm-shot { --ratio: 3.2; border-radius: 0; box-shadow: none; }
  body > footer { height: var(--foot); padding-top: 0; padding-bottom: 0; border-top: 1px solid rgba(255,255,255,.08); }
}



.fm-cell { display: block; background: none; box-shadow: none; overflow: visible; perspective: 160px; }
.fm-cell::after { z-index: 4; }
.fm-cell .fh {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; font-weight: inherit;
  backface-visibility: hidden;
}
.fm-cell .fh-top { top: 0; border-radius: 4px 4px 0 0; transform-origin: 50% 100%; background: linear-gradient(180deg, #24282d, #1c1f23); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.fm-cell .fh-bot { bottom: 0; border-radius: 0 0 4px 4px; transform-origin: 50% 0; background: linear-gradient(180deg, #15181b, #191c20); }
.fm-cell .fh i { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-style: normal; }
.fm-cell .fh-top i { top: 0; }
.fm-cell .fh-bot i { top: -100%; }
.fm-cell .fh-fall, .fm-cell .fh-land { z-index: 2; }
.fm-cell .fh-fall { background: linear-gradient(180deg, #2a2e33, #202327); }


.page-dots { display: none; }
@media (min-width: 901px) and (min-aspect-ratio: 5/4) and (min-height: 600px) {
  .page-dots {
    position: fixed; z-index: 30; right: clamp(.8rem, 1.6vw, 1.6rem); top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: .75rem;
  }
  .page-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35);
    transition: background .2s, transform .2s;
  }
  .page-dots button:hover { background: rgba(255,255,255,.5); }
  .page-dots button[aria-current] { background: #f3efe9; border-color: #f3efe9; transform: scale(1.15); }
  .page-dots button:focus-visible { outline: 2px solid #d7bc96; outline-offset: 3px; }
}




.fm-tab { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem; font-size: 1.02rem; }
.fm-tab svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 901px) and (min-aspect-ratio: 5/4) and (min-height: 600px) {
  .fm-tab { padding: .95rem 1.7rem; font-size: 1.12rem; }
  .fm-tab svg { width: 1.4rem; height: 1.4rem; }
}
.fm-tabs { max-width: 100%; }
@media (max-width: 560px) {
  .fm-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .fm-tab { justify-content: center; padding: .7rem .6rem; font-size: .92rem; }
}

.home-hero ~ * .site-header, body > .site-header { border-bottom: 0; }

.page-next { display: none; }
@media (min-width: 901px) and (min-aspect-ratio: 5/4) and (min-height: 600px) {
  .page-dots .page-next {
    display: grid; place-items: center; width: 34px; height: 34px; margin: .5rem auto 0; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; background: rgba(243,239,233,.92); color: #111; transform: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.45); animation: page-nudge 1.4s ease-in-out 1.2s 3;
  }
  .page-dots .page-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .page-dots .page-next[hidden] { display: none; }
  .page-dots .page-next:hover { background: #fff; }
  .page-dots { align-items: center; }
}
@keyframes page-nudge { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .page-dots .page-next { animation: none; } }

.home-hero-content .button {
  min-height: 4rem; padding: 1rem 2.1rem; gap: .75rem; border-radius: 4px;
  font-size: 1.2rem; font-weight: 700; letter-spacing: .005em; text-transform: none;
}
.home-hero-content .button-get svg { flex: none; }
.home-hero-content > p.get-other {
  margin: 1.05rem 0 0; max-width: 34rem; font-size: 1rem; letter-spacing: .01em;
  color: rgba(255, 255, 255, .74);
}
.get-other a { color: #f3efe9; text-decoration: underline; text-underline-offset: 3px; }
.get-other strong { color: #f3efe9; }
@media (max-width: 560px) {
  .home-hero-content .button { width: 100%; min-height: 3.4rem; font-size: 1.05rem; }
  .home-hero-content .hero-actions { display: flex; }
  .home-hero-content > p.get-other { font-size: .88rem; margin-top: .75rem; }
}
@media (min-width: 901px) and (min-aspect-ratio: 5/4) and (min-height: 600px) {
  .home-hero-content {
    position: absolute; z-index: 2; width: auto; padding: 0;
    top: calc(50% + .042 * max(100%, 56.28vw) + 3.25rem + 1.4rem);
    left: max(1.5rem, 50% - .4234 * max(100%, 177.68svh));
  }
  .home-hero-content > p:first-of-type { margin-bottom: 1.15rem; }
}

.words-footnote span { display: inline-block; }
