/* The name's font: DM Serif Display, or Gloock with ?font=gloock (his two choices, 22 November 2026).
   Every size, gap and colour below copies Casa Momo's page as measured on 22 November 2026 (docs/MOTION.md,
   docs/DESIGN.md). Colours (his ruling, 22 November 2026, latest): Casa Momo's cream for every word (the name,
   the line, Menu, the statement); Book Now cream with blue text; the page Amanda's blue (where Casa Momo has its
   dark green). No black. */
@font-face { font-family: "Display"; src: url(../fonts/dm-serif-display-400.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Gloock"; src: url(../fonts/gloock-400.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: "InterDisplay"; src: url(../fonts/inter-display-variable.woff2) format("woff2-variations"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Jakarta"; src: url(../fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: "Text"; src: url(../fonts/inter-tight-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Text"; src: url(../fonts/inter-tight-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blue: #3AB5FF;      /* Amanda's blue, from her logo (Casa Momo's dark green #0E1201) */
  --ink: #302F2F;       /* her soft black (not used: his ruling, no black) */
  --light: #FFF0CA;     /* the words: Casa Momo's cream (HIS CHOICE, 23 November 2026: "cream, not the black") */
  --light-07: rgba(255, 240, 202, .07);
  --light-80: rgba(255, 240, 202, .8);
  --gutter: 12px;       /* Casa Momo: 12px on a phone, 48px on a laptop */
}

/* THE WORDS' COLOUR: he chose cream (above) on 23 November 2026 ("I don't want the black"). Her black stays only as
   a look by the link, ?ink=black, for comparing */
html[data-ink="black"] { --light: #302F2F; --light-07: rgba(48, 47, 47, .07); --light-80: rgba(48, 47, 47, .8); }
/* THE PAGE'S COLOUR: her blue (above), or the navy he sent to compare (23 November 2026), by the link: ?bg=navy */
html[data-bg="navy"] { --blue: #080F29; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--blue);
  color: var(--light);
  font-family: "Text", -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.is-opening { overflow: hidden; height: 100vh; height: 100svh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- top of the screen: Casa Momo shows only "Menu" on a phone; its small name fades in at the top
   left once you have scrolled half a screen (js/scroll.js) ---------- */
.top {
  position: fixed; z-index: 20; inset: 0 0 auto 0;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 0;
  opacity: 0;               /* fades in during the opening */
  pointer-events: none;
}
.top > * { pointer-events: auto; }
/* THE GLASS TOP BAR, only by the link: ?top=glass (his ruling, 23 November 2026: off by default, there to compare).
   Once the opening is scrolled past (when the small name appears), the whole top bar blurs whatever passes under it.
   Glass only: NO colour, no tint, no gradient, no line (his words). js/scroll.js adds .glass at that moment */
html[data-top="glass"] .top { padding-bottom: 12px; }
html[data-top="glass"] .top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);   /* 12px: less of the blue beside a card spreads in */
  background: none;
  opacity: 0; transition: opacity .45s ease;
}
html[data-top="glass"] .top.glass::before { opacity: 1; }
.brand {                     /* Casa Momo: its name 20px tall at the top left (27px on a laptop); sized by scroll.js */
  margin-right: auto; opacity: 0;
  font-family: "Archivo", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em;   /* Shed's look (his ruling, 23 November) */
  text-transform: uppercase; white-space: nowrap;
  font-size: 18px; line-height: 1; color: var(--light);   /* smaller (his ruling, 23 November 2026: "too big"); it was 27px */
}
html[data-font="gloock"] .brand { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: 0; }
.menu {                      /* Casa Momo: 15px, padding 7 12 8, corners 2px, its own colour at 7% behind */
  font-size: 15px; line-height: 15px; padding: 7px 12px 8px; border-radius: 2px;
  color: var(--light); background: var(--light-07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);   /* Casa Momo's glass */
}
.nav { display: none; }
.top .btn-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; }
.hero-in { position: absolute; inset: 0; will-change: transform; }   /* drifts down 0.2 px per px scrolled */

.frame {
  position: absolute; inset: 0;
  z-index: 0; isolation: isolate;   /* its photos stack inside it, always under the name and the line */
  clip-path: inset(50%);                            /* closed; the opening opens it (Casa Momo's capsule) */
  will-change: clip-path;
}
/* the picture: his video, full screen behind the capsule (the capsule is a window onto it, nothing is shrunk) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
/* the laptop's photos (his ruling: the video on phones only): stacked full-screen pictures; quick cuts in the box,
   then slow zoom and soft fade */
.slides, .slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides[hidden] { display: none; }
.slides img { object-fit: cover; opacity: 0; will-change: transform, opacity; }
.slides img.on { opacity: 1; }
/* the phone's opening (his ruling, 23 November 2026): his 7 photos stacked, each new one on top, revealed from the
   top down with Shed's drip (clip-path, set by js/opening.js). 5% taller than the screen and lifted 5%, so it can
   sink 4.5% of its height while it shows (Shed) and never leave a gap at the top */
.slides .drip-w { position: absolute; inset: 0; visibility: hidden; }   /* no standing layer: only the photo on show is drawn */
.slides img.drip { top: -5%; height: 105%; opacity: 1; }

/* the name: placed by the opening script (transform from the top-left corner). Casa Momo: line height 0.9.
   Each letter is its own piece: Casa Momo's letters rise 40px (of 54) out of a 1px blur, one after another. */
.name { margin: 0; font-weight: 400; }
.word {
  position: absolute; left: 0; top: 0; z-index: 10;
  font-family: "Archivo", Arial, sans-serif; font-weight: 800; letter-spacing: -.01em;   /* Shed's look (his ruling, 23 November) */
  text-transform: uppercase;
  line-height: .9; white-space: nowrap;
  transform-origin: 0 0; color: var(--light);
  visibility: hidden;        /* shown once the script has placed it */
}
.word .ink { display: inline-block; }
.word .l { display: inline-block; }
html[data-font="gloock"] .word { font-family: "Gloock", Georgia, serif; font-weight: 400; letter-spacing: 0; }
/* THE NAME'S FONT (his ruling, 23 November 2026: "the reference for that, Shed"): Archivo ExtraBold, a free font close
   to Shed's Owners Bold (paid), set tight as Shed (-1px at 100px). The fonts it replaces stay as trials by the link:
   ?font=serif (DM Serif Display, the font until 23 November), gloock, space10, units */
html[data-font="serif"] .word, html[data-font="serif"] .brand { font-family: "Display", Georgia, serif; font-weight: 400; letter-spacing: 0; }
html[data-font="space10"] .word, html[data-font="space10"] .brand { font-family: "InterDisplay", Arial, sans-serif; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "opsz" 32; }
html[data-font="units"] .word, html[data-font="units"] .brand { font-family: "Jakarta", Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; }

/* the line and Book Now: Casa Momo 24px, line height 1.2, letter spacing -0.2px, 320px wide; button 12px under.
   Casa Momo puts each word in its own mask (padding 0 1.44px 4px) and raises it from 100px below, tilted 8deg. */
.hero-text { position: absolute; z-index: 10; left: var(--gutter); top: 0; width: 320px; color: var(--light); }
.hero-line { visibility: hidden; }                          /* shown once the script has split it into words */
.hero-line.split { visibility: visible; }
.hero-line {
  margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.2px;
  display: flex; flex-wrap: wrap; column-gap: .28em;
}
.hero-line .m { display: block; overflow: hidden; padding: 0 .06em 4px; margin: 0 -.06em -4px; }
.hero-line .m > span { display: block; }
.hero-line .br { flex-basis: 100%; height: 0; }          /* his line break: always his two lines */
.btn {                       /* Casa Momo: 15px, padding 7 10, corners 2px, gap 6, cream with its page colour as text */
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 15px; line-height: 18px; padding: 7px 10px; border-radius: 2px;
  background: var(--light); color: var(--blue); opacity: 0;
}
.arrow { display: block; width: 12px; height: 12px; padding: 1px; }     /* Casa Momo: a 10px arrow in a 12px box */
.arrow svg { display: block; width: 10px; height: 10px; overflow: visible; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1; }

/* ---------- the statement (Casa Momo: 96px above and below, 44px words, lines 44px apart, letter spacing
   -1.1px, its text font; "Between" on the left, the rest on the right; every word 15% until lit) ---------- */
.statement {
  padding: 96px var(--gutter);
  font-size: 44px; line-height: 44px; letter-spacing: -.025em;
}
.statement p { margin: 0; }
.st-lead { text-align: left; }
.st-body { text-align: right; }
.statement .w { opacity: .15; }

/* ---------- the wide photo (Casa Momo: 300px tall on a phone, the full screen on a laptop) ---------- */
.band { position: relative; height: 300px; overflow: hidden; }
.band-box { position: absolute; inset: 0; transform: scale(.9); will-change: transform, clip-path; }
.band-pic { position: absolute; left: 0; right: 0; top: -15%; height: 130%; will-change: transform; }
.band-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
/* the pool's other layouts (?pool=, js/scroll.js): still = his cut's shape, 4:3, the picture still in it; tall = the
   whole photo, 3:4, still; screen = as tall as the screen, the picture moving as Casa Momo's */
.band-exact { height: auto; }
.band-exact .band-pic { top: 0; height: 100%; }
.band-still { aspect-ratio: 1792 / 1338; }   /* the exact shape of his cut (A4-2F), so nothing of it is cut off */
.band-tall { aspect-ratio: 3 / 4; }
.band-screen { height: 100vh; height: 100svh; }
.tags {                      /* Casa Momo: bottom right, 12px in (48px on a laptop), 2px apart, faded in */
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  display: flex; gap: 2px; opacity: 0;
}
.tag {                       /* Casa Momo: 13px, padding 8, corners 2px; the room in a round tag, padding 8 12 */
  font-size: 13px; line-height: 13px; padding: 8px; border-radius: 2px;
  background: var(--blue); color: var(--light); white-space: nowrap;
}
.tag-pill { padding: 8px 12px; border-radius: 64px; }

/* ---------- Apartments (Casa Momo, measured 22 November 2026; motion in js/apartments.js) ----------
   the heading row: the count in two tags on the left, "Apartments" on the right, 96px above */
.apts-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 96px var(--gutter) 0;
}
.count { display: flex; gap: 2px; align-items: center; }
.ctag {                      /* Casa Momo: 13px, cream at 80% on cream at 7%; the number square 28px, the word round */
  font-size: 13px; line-height: 13px; padding: 8px 12px; border-radius: 64px;
  color: var(--light-80); background: var(--light-07); white-space: nowrap;
}
.ctag-sq { width: 28px; height: 28px; padding: 0; border-radius: 2px; display: grid; place-items: center; }
.apts-title {                /* Casa Momo: 36px, lines 36px, letter spacing -1px, each word in its own mask */
  margin: 0; font-weight: 400; font-size: 36px; line-height: 36px; letter-spacing: -1px;
  display: flex; flex-wrap: wrap; column-gap: .28em; justify-content: flex-end;
}
.m { display: block; overflow: hidden; padding: 0 .06em 4px; margin: 0 -.06em -4px; }
.m > span { display: block; }

/* the cards: one column on a phone, 48px apart; a square photo, 12px, then the name and the chips */
.apts { padding: 12px var(--gutter) 96px; }
.apts-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.card { display: flex; flex-direction: column; gap: 12px; will-change: opacity; }
.card-pic { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.card-pic img {              /* the picture is 116% of the frame and moves up through it as you scroll */
  position: absolute; left: 0; top: 0; width: 100%; height: 116%;
  object-fit: cover; will-change: transform;
}
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.card-name {                 /* Casa Momo: 22px, lines 22px, each word in its own mask */
  margin: 0; font-weight: 400; font-size: 22px; line-height: 22px;
  display: flex; flex-wrap: wrap; column-gap: .28em;
}
.chips { display: flex; gap: 2px; align-items: center; }
.chip {                      /* Casa Momo: 28px tall, cream at 7%, round; icon 20px box and words at 80% */
  display: flex; align-items: center; gap: 6px; height: 28px;
  padding: 4px 12px 4px 10px; border-radius: 64px; background: var(--light-07);
  font-size: 13px; line-height: 13px; white-space: nowrap;
}
.chip-sq { padding: 4px 8px 4px 6px; border-radius: 2px; }   /* the size: square corners */
.chip-tx { padding: 4px 12px; }                               /* words only */
.chip .t { opacity: .8; }
.chip sup { font-size: 8px; line-height: 8px; vertical-align: top; margin-left: 1px; }
.ic { display: grid; place-items: center; width: 20px; height: 20px; opacity: .8; }
.ic svg { display: block; overflow: visible; }
.chip-sq .ic svg { width: 14px; height: 14px; }
.ic svg[viewBox="0 0 15 16"] { width: 15px; height: 16px; }
.ic path, .ic circle { fill: none; stroke: var(--light); stroke-width: 1; stroke-linecap: round; }

.next { height: 100vh; height: 100svh; }

/* ---------- laptop: Casa Momo's 48px margins, the links and Book Now at the top right ---------- */
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .top { padding-top: 38px; }
  .menu { display: none; }
  .nav { display: flex; gap: 2px; padding: 0 4px; border-radius: 2px; color: var(--light); background: var(--light-07);
         -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .nav a { font-size: 17px; line-height: 20px; padding: 7px 8px; }
  .top .btn-nav { display: inline-flex; margin-top: 0; font-size: 17px; line-height: 20px; opacity: 1; }
  .brand { font-size: 38.4px; }                     /* capitals 27px tall, as Casa Momo's on a laptop */
  .hero-text { width: 432px; }
  .hero-line { font-size: 28.8px; }
  .hero-text .btn { font-size: 17px; line-height: 20px; }
  /* Casa Momo laptop: 256px above, 64px below, 112.5px words at 1440 wide, lines 0.95 */
  .statement { padding: 256px var(--gutter) 64px; font-size: 7.8125vw; line-height: .95; letter-spacing: -.024em; }
  .band { height: 100vh; height: 100svh; }
  .band-exact { height: auto; }
  .band-box { transform: scale(.5); }
  .tag { font-size: 15px; line-height: 15px; padding: 7px 8px 8px; }
  .tag-pill { padding: 7px 12px 8px; }
  /* Apartments, laptop: 256px above, the count 15px tags, "Apartments" 72px; two columns 12px apart, rows 128px
     apart; a square card and a 3:2 card side by side, swapping sides each row */
  .apts-head { padding: 256px var(--gutter) 0; }
  .ctag { font-size: 15px; line-height: 15px; padding: 7px 12px 8px; }
  .ctag-sq { width: 30px; height: 30px; padding: 0; }
  .apts-title { font-size: 72px; line-height: 72px; letter-spacing: -.9px; }
  .apts { padding: 32px var(--gutter) 256px; }
  .apts-grid { grid-template-columns: 1fr 1fr; gap: 128px 12px; align-items: start; }
  .card-wide .card-pic { aspect-ratio: 3 / 2; }
  .card-row { align-items: flex-start; min-height: 30px; }
  .card-name { font-size: 21.6px; line-height: 21.6px; }
  .chip { height: 30px; padding: 5px 12px 5px 10px; font-size: 15px; line-height: 15px; }
  .chip-sq { padding: 5px 8px 5px 6px; }
  .chip-tx { padding: 5px 12px; }
}
