/* THE FOOTER (his ruling, Wednesday 25 November 2026). Casa Momo's footer, measured on casamomo.at that day
   (phone 390 x 844, laptop 1440 x 900), with two changes he asked for:
     the colour   her soft black #302F2F (Casa Momo's terracotta is THEIR colour, not hers), the words the site's cream
     the name     AMANDA RESIDENCE cut in half by the bottom of the page, as Faizur's footer (his second reference);
                  Casa Momo's own name is whole. Phone: it slides left on its own, Casa Momo's ticker (80 px a second,
                  162px between one name and the next). Laptop: it stands still, the whole name across the screen
     the © line   above the name (the page ends at the cut, so nothing can sit under it)
   Casa Momo, phone: 72px above the tags; tags 28px; 16px to the links; links 24px, lines 28.8px, 8px apart; Menu and
     Socials side by side (12px apart), Contact under them 32px down; 48px to the next piece; the name 150px tall
   Casa Momo, laptop: 256px above the tags; tags 30px (15px words); 24px to the links; links 28.8px, lines 34.56px,
     12px apart; four columns 12px apart: Menu, Socials, (empty), Contact on the right; 80px to the next piece
   As the footer comes up, what is above the name rises slower than the page (Casa Momo: 0.116 px per px on a phone,
   0.226 on a laptop), so the page seems to lift off it. The name stays on the bottom edge. js/footer.js sizes the name.
   Its own colours, so the trial looks (?ink=black, ?bg=navy) never change it. */
.ft {
  --ft-bg: #302F2F;          /* her soft black ("Amanda's black is not actual black", 22 November 2026) */
  --ft-ink: #FFF0CA;         /* the site's cream */
  --ft-tag: rgba(255, 240, 202, .1);   /* Casa Momo's tags in its footer: cream at 10%, the words solid */
  position: relative;
  background: var(--ft-bg); color: var(--ft-ink);
  overflow: hidden; overflow: clip;
}
.ft-in { padding: 72px var(--gutter) 0; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 12px; }
.ft-contact { grid-column: 1 / -1; }
.ft .count { margin-bottom: 16px; }
.ft .ctag { color: var(--ft-ink); background: var(--ft-tag); }
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ft-links a { display: inline-block; font-size: 24px; line-height: 28.8px; letter-spacing: -.2px; }
.ft-small { margin: 48px 0 0; font-size: 15px; line-height: 15px; }

/* the name: only its top half shows (js/footer.js sets the box to half the letters' height and lifts the letters so
   their tops sit at the box's top; the footer's bottom edge cuts them) */
.ft-name { margin: 48px calc(-1 * var(--gutter)) 0; height: var(--ft-half, 75px); white-space: nowrap; }
.ft-track { display: flex; width: max-content; will-change: transform; }
.ft-word {
  display: block; flex: none;
  font-family: "Archivo", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase;
  font-size: var(--ft-fs, 200px); line-height: 1;
  margin-top: var(--ft-lift, 0px);
  padding-right: 162px;      /* Casa Momo: 162px from one name to the next */
}
.ft-word .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }   /* marks the baseline for js/footer.js */
/* the name's font follows the opening's (the trials by the link, ?font=...) */
html[data-font="gloock"] .ft-word { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: 0; }
html[data-font="serif"] .ft-word { font-family: "Display", Georgia, serif; font-weight: 400; letter-spacing: 0; }
html[data-font="space10"] .ft-word { font-family: "InterDisplay", Arial, sans-serif; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "opsz" 32; }
html[data-font="units"] .ft-word { font-family: "Jakarta", Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; }

/* the ticker (phone): two names in a row, the row moving left one name's width, again and again, at 80 px a second
   (js/footer.js sets the time from the name's width). It runs only while the footer is on the screen. Moved by the
   browser itself (a CSS animation), so it keeps the iPhone's 120 frames a second */
@media (prefers-reduced-motion: no-preference) {
  .ft-tick .ft-track { animation: ft-tick var(--ft-dur, 20s) linear infinite; animation-play-state: paused; }
  .ft-tick.ft-on .ft-track { animation-play-state: running; }
}
@keyframes ft-tick { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* the lift as it comes up, moved by the scroll itself where the browser can (as css/style.css); js/footer.js
   does it elsewhere. --ft-rise: how far it starts above its place (js/footer.js: the footer's height times 0.116,
   laptop 0.226) */
@supports (animation-timeline: view()) {
  .ft { view-timeline: --ft block; }
  @media (prefers-reduced-motion: no-preference) {
    .ft-top { animation: ft-rise linear both; animation-timeline: --ft; animation-range: entry 0% entry 100%; }
  }
}
@keyframes ft-rise { from { transform: translate3d(0, var(--ft-rise, -80px), 0); } to { transform: translate3d(0, 0, 0); } }

/* THE TEXTURE ON THE BLACK (his note, 25 November 2026: "I need texture ... what I'm interested in is the texture, not
   the colours; not too bold, the opacity not too high", five pictures he sent). To compare, by the link: ?tex=1 to 5,
   in the order he sent them: 1 the red wall, 2 the beige stucco, 3 the white linen, 4 the white plaster, 5 the white
   paper. HIS PICK (25 November 2026): 1, THE RED WALL, now the default; the others by ?tex=2 to 5, the plain black by
   ?tex=plain. His pictures are used as sent (site/img/texture, byte for byte);
   the browser takes only their grain: grey (no colour), evened out around the middle grey so the black stays the same
   black on average, the five brought to the same strength, then laid over the black in soft light, faintly. Loaded
   only once the page has fully loaded (js/footer.js sets data-tex), so it never slows the opening */
.ft[data-tex] { isolation: isolate; }
.ft[data-tex]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--tex-img) center / cover no-repeat;
  filter: grayscale(1) brightness(var(--tex-b)) contrast(var(--tex-c));
  mix-blend-mode: soft-light; opacity: var(--tex-o, .6);
}
/* brightness: the picture's average to the middle grey; contrast: its grain to the same strength as the others */
.ft[data-tex="1"] { --tex-img: url(../img/texture/tex-1.jpg); --tex-b: 2.5; --tex-c: 1.3; }
.ft[data-tex="2"] { --tex-img: url(../img/texture/tex-2.jpg); --tex-b: .6235; --tex-c: 2.16; }
.ft[data-tex="3"] { --tex-img: url(../img/texture/tex-3.jpg); --tex-b: .625; --tex-c: 1.4; }
.ft[data-tex="4"] { --tex-img: url(../img/texture/tex-4.jpg); --tex-b: .597; --tex-c: 3; }
.ft[data-tex="5"] { --tex-img: url(../img/texture/tex-5.jpg); --tex-b: .537; --tex-c: 7.5; }

/* ---------- laptop ---------- */
@media (min-width: 900px) {
  .ft-in { padding-top: 256px; }
  .ft-cols { grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
  .ft-contact { grid-column: 4; text-align: right; }
  .ft-contact .count { justify-content: flex-end; }
  .ft .count { margin-bottom: 24px; }
  .ft-links { gap: 12px; }
  .ft-links a { font-size: 28.8px; line-height: 34.56px; }
  .ft-small { margin-top: 80px; }
  .ft-name { margin-top: 80px; }
  .ft-word { padding-right: 0; }
  .ft-word + .ft-word { display: none; }   /* one name, standing still */
}
