/* The small proofs: real Terminal 42 surfaces, drawn in the demo agency's own brand
   (dark navy, cream paper, amber, its serif). They scale with their own width. */

.pf { margin: 0; container-type: inline-size; }
.pf * { box-sizing: border-box; }

/* ---------- the proposal deck and its open and dwell tracking ---------- */
.deck { position: relative; aspect-ratio: 16 / 9; margin-top: 7cqw; }
.deck__sl { position: absolute; inset: 0; overflow: hidden; border-radius: 2.6cqw 2.6cqw 0 0; background: #12161f; }
.deck__sl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck__sl--3 { transform: translate(9%, -12%) scale(.8); transform-origin: 100% 0; border-radius: 2.6cqw; filter: brightness(.62) saturate(.9); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .35); }
.deck__sl--2 { transform: translate(4.5%, -6%) scale(.9); transform-origin: 100% 0; border-radius: 2.6cqw; filter: brightness(.78); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .35); }
.deck__sl--1 { box-shadow: 0 -1px 0 rgba(255, 255, 255, .08) inset; }
.deck__sl--1::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, .5) 0%, rgba(10, 12, 20, 0) 30%, rgba(10, 12, 20, .1) 50%, rgba(10, 12, 20, .78) 100%); }
.deck__ag { position: absolute; z-index: 1; left: 5cqw; top: 4.2cqw; font: 400 max(10px, 3.2cqw)/1 var(--f-agency); color: #f3ebdf; letter-spacing: .01em; }
.deck__x { position: absolute; z-index: 1; left: 5cqw; right: 5cqw; bottom: 4.4cqw; display: grid; gap: 1.4cqw; color: #f6efe3; }
.deck__k { font-size: max(8px, 2.15cqw); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .82; }
.deck__t { font: italic 400 max(20px, 7.4cqw)/.95 var(--f-agency); letter-spacing: -.015em; }

.dwell { position: relative; padding: 4.2cqw 5cqw 4.4cqw; border-radius: 0 0 2.6cqw 2.6cqw; background: #12161f; color: #e9e1d3; box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .4), 0 1cqw 3cqw rgba(0, 0, 0, .25); font-family: var(--f-mono); font-size: max(10px, 2.6cqw); }
.dwell__h { display: flex; justify-content: space-between; padding-bottom: 2.6cqw; letter-spacing: .1em; text-transform: uppercase; color: #e4a03b; }
.dwell__l li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; align-items: center; gap: 3cqw; padding: .9cqw 0; color: rgba(233, 225, 211, .66); }
.dwell__l i { display: block; height: 3px; border-radius: 3px; background: rgba(233, 225, 211, .12); position: relative; overflow: hidden; }
.dwell__l i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(233, 225, 211, .5); transform-origin: 0 50%; transform: scaleX(calc(var(--w) * var(--fill, 1))); }
.dwell__l b { font-weight: 400; text-align: right; }
.dwell__l .is-hot { color: #f6efe3; }
.dwell__l .is-hot i::after { background: #e4a03b; }
.dwell__l .is-hot b { color: #e4a03b; }

/* ---------- a day on the trip link that fixed itself ---------- */
.day {
  padding: 5.4cqw 5.6cqw 5cqw; border-radius: 3.4cqw; background: #12161f; color: #f3ebdf;
  box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .42), 0 1cqw 3cqw rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(243, 235, 223, .06);
}
.day__top { display: flex; justify-content: space-between; align-items: center; font-size: max(9px, 2.4cqw); }
.day__top .mini-ag i { background: #1e222c; }
.day__live { display: inline-flex; align-items: center; gap: 1.6cqw; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 235, 223, .62); }
.day__live::before { content: ""; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #e4a03b; box-shadow: 0 0 0 .9cqw rgba(228, 160, 59, .22); }
.day__k { margin-top: 6cqw; font-size: max(9px, 2.4cqw); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 235, 223, .66); }
.day__t { margin-top: 1.2cqw; font: italic 400 max(30px, 11.5cqw)/.95 var(--f-agency); letter-spacing: -.02em; }
.day__wx { display: inline-flex; align-items: center; gap: 1.8cqw; margin-top: 3.4cqw; padding: 1.4cqw 3cqw 1.4cqw 2.4cqw; border-radius: 99px; background: rgba(228, 160, 59, .14); color: #f0b45a; font-family: var(--f-mono); font-size: max(10px, 2.55cqw); letter-spacing: .04em; }
.day__wx svg { width: max(12px, 3.2cqw); height: auto; }
.day__l { margin-top: 4cqw; }
.day__l li { display: grid; grid-template-columns: 10cqw minmax(0, 1fr) auto; align-items: baseline; gap: 2.6cqw; padding: 2.5cqw 0; border-top: 1px solid rgba(243, 235, 223, .1); font-size: max(12px, 3.35cqw); }
.day__l b { font-family: var(--f-mono); font-weight: 400; font-size: .86em; color: rgba(243, 235, 223, .6); }
.day__l span { font-weight: 500; }
.day__l em { font-style: normal; font-family: var(--f-mono); font-size: max(9px, 2.3cqw); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.day__l .is-moved span { color: rgba(243, 235, 223, .42); text-decoration: line-through; text-decoration-color: rgba(228, 160, 59, .8); text-decoration-thickness: 1px; }
.day__l .is-moved b { color: rgba(243, 235, 223, .32); }
.day__l .is-moved em { color: rgba(243, 235, 223, .46); }
.day__l .is-new em { color: #12161f; background: #efe6d8; padding: .5cqw 1.6cqw; border-radius: 99px; }
.day__f { margin-top: 3cqw; padding-top: 3cqw; border-top: 1px solid rgba(243, 235, 223, .1); font-family: var(--f-mono); font-size: max(9px, 2.3cqw); letter-spacing: .06em; color: rgba(243, 235, 223, .5); }

/* ---------- the invoice, settled in parts ---------- */
.inv {
  position: relative; padding: 5.6cqw 6cqw 5.2cqw; border-radius: 1.4cqw; background: #f6f0e5; color: #1b1a1d;
  box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .4), 0 1cqw 3cqw rgba(0, 0, 0, .22);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%);
}
.inv__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 3.4cqw; border-bottom: 1px solid rgba(27, 26, 29, .16); }
.inv__ag { font: 400 max(13px, 4cqw)/1 var(--f-agency); }
.inv__no { font-family: var(--f-mono); font-size: max(9px, 2.3cqw); letter-spacing: .12em; text-transform: uppercase; color: rgba(27, 26, 29, .55); }
.inv__t { margin-top: 4.4cqw; font: 400 max(20px, 6.2cqw)/1 var(--f-agency); letter-spacing: -.01em; }
.inv__to { margin-top: 1.4cqw; font-size: max(11px, 2.9cqw); color: rgba(27, 26, 29, .6); }
.inv__l { margin-top: 4cqw; }
.inv__l li { display: flex; justify-content: space-between; gap: 3cqw; padding: 2.1cqw 0; border-top: 1px solid rgba(27, 26, 29, .1); font-size: max(11px, 3cqw); }
.inv__l li span { color: rgba(27, 26, 29, .66); }
.inv__l b { font-weight: 560; font-variant-numeric: tabular-nums; }
.inv__l .is-paid span::before { content: ""; display: inline-block; width: 1.5cqw; height: 1.5cqw; margin-right: 1.8cqw; border-radius: 50%; background: #3f7a55; vertical-align: .15em; }
.inv__l .is-paid b { color: #2f6a45; font-weight: 500; }
.inv__l .is-last { background: linear-gradient(90deg, rgba(196, 128, 31, .12), rgba(196, 128, 31, 0)); margin: 0 -2cqw; padding-left: 2cqw; padding-right: 2cqw; }
.inv__bal { border-top: 1.5px solid #1b1a1d !important; padding-top: 3cqw !important; }
.inv__bal span { color: #1b1a1d !important; font-weight: 600; }
.inv__stamp {
  position: absolute; right: 5cqw; top: 25cqw; padding: 1.4cqw 2.6cqw; border: 2px solid #b8431f; border-radius: 1cqw; color: #b8431f;
  font-family: var(--f-mono); font-size: max(9px, 2.5cqw); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-9deg); box-shadow: inset 0 0 0 2px #f6f0e5, inset 0 0 0 3px rgba(184, 67, 31, .5); opacity: .9; mix-blend-mode: multiply;
}

/* ---------- the keepsake scrapbook ---------- */
.book {
  position: relative; padding: 5.4cqw 6cqw 5cqw; border-radius: 1.2cqw; background: #f4ecdd; color: #2b231d;
  box-shadow: 0 4cqw 10cqw rgba(0, 0, 0, .4), 0 1cqw 3cqw rgba(0, 0, 0, .22), inset 2.4cqw 0 2.4cqw -2cqw rgba(80, 50, 20, .14);
  background-image: radial-gradient(rgba(120, 90, 60, .12) 1px, transparent 1.2px); background-size: 3.4cqw 3.4cqw;
}
.book__k { font-family: var(--f-mono); font-size: max(9px, 2.3cqw); letter-spacing: .14em; text-transform: uppercase; color: rgba(43, 35, 29, .56); }
.book__t { margin-top: 1.6cqw; font: italic 400 max(24px, 8.2cqw)/1 var(--f-agency); letter-spacing: -.015em; }
.book__pr { position: relative; height: 41cqw; margin-top: 4cqw; }
.print { position: absolute; top: 0; width: 36cqw; padding: 1.8cqw 1.8cqw 0; background: #fffdf8; box-shadow: 0 1.6cqw 4cqw rgba(60, 40, 20, .26), 0 .3cqw .8cqw rgba(60, 40, 20, .18); }
.print img { width: 100%; aspect-ratio: 1 / .86; object-fit: cover; }
.print em { display: block; padding: 1.6cqw .4cqw 2.2cqw; font: italic 400 max(10px, 2.75cqw)/1.15 var(--f-agency); color: #4a3b30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print--a { left: 0; transform: rotate(-5deg); }
.print--b { left: 26cqw; top: 3cqw; transform: rotate(3deg); z-index: 1; }
.print--c { right: 0; transform: rotate(-2deg); top: .5cqw; z-index: 2; }
/* on narrow screens the deck's back slides stay inside the gutter */
@media (orientation: portrait), (max-width: 760px) {
  .deck__sl--3 { transform: translate(0, -12%) scale(.88); }
  .deck__sl--2 { transform: translate(0, -6%) scale(.94); }
}
.book__f { margin-top: 3.4cqw; padding-top: 3cqw; border-top: 1px solid rgba(43, 35, 29, .14); font-size: max(10px, 2.7cqw); color: rgba(43, 35, 29, .66); }
