/* the MacBook Pro 14" with live snow: real proportions (3024 x 1964 display, notch, aluminium base).
   --p is one macOS point, scaled with the screen so the whole desktop stays in proportion */
.stage { margin: 46px auto 0; max-width: 1140px; position: relative; }
.macbook { position: relative; filter: drop-shadow(0 34px 34px rgba(15, 27, 61, .22)) drop-shadow(0 8px 10px rgba(15, 27, 61, .12)); }
.lid { position: relative; margin: 0 6%; padding: 1.45% 1.45% 1.9%; background: #060607; border-radius: clamp(10px, 2.3vw, 24px) clamp(10px, 2.3vw, 24px) 3px 3px;
  box-shadow: inset 0 0 0 1px #5b5e66, inset 0 0 0 2px #1d1e22, inset 0 0 0 3px #0b0b0d; }
.screen { position: relative; aspect-ratio: 3024 / 1964; border-radius: clamp(5px, 1.05vw, 11px) clamp(5px, 1.05vw, 11px) 2px 2px; overflow: hidden; container-type: inline-size;
  --p: max(calc(100cqw / 1512 * 1.25), .5px); background: #0f1f47 url(/assets/wp/hero.webp) center / cover; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--body); -webkit-font-smoothing: antialiased; }
.base { position: relative; height: 0; padding-top: 2.6%; border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%;
  background: linear-gradient(#8d9098 0, #55585f 7%, #3a3c42 22%, #2b2c31 60%, #151619 100%); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14.5%; height: 46%; transform: translateX(-50%); border-radius: 0 0 14px 14px / 0 0 100% 100%;
  background: linear-gradient(#1b1c20, #34363c); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.base::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: -3px; height: 6px; border-radius: 50%; background: rgba(15, 27, 61, .35); filter: blur(4px); z-index: -1; }

.notch { position: absolute; z-index: 6; top: 0; left: 50%; transform: translateX(-50%); width: 12.6%; height: calc(var(--p) * 30); background: #000; border-radius: 0 0 calc(var(--p) * 9) calc(var(--p) * 9); }
.notch::after { content: ""; position: absolute; left: 50%; top: 42%; width: calc(var(--p) * 6); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a5a, #07080c 60%); }
.menubar { position: absolute; z-index: 5; inset: 0 0 auto; height: calc(var(--p) * 30); padding: 0 calc(var(--p) * 14); display: flex; align-items: center; justify-content: space-between;
  background: rgba(8, 14, 34, .38); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); color: #fff; font-size: calc(var(--p) * 13); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.menubar .l, .menubar .r { display: flex; align-items: center; gap: calc(var(--p) * 19); }
.menubar .r { gap: calc(var(--p) * 15); }
.menubar b { font-weight: 700; }
.menubar .apple { width: calc(var(--p) * 15); height: calc(var(--p) * 15); margin-top: calc(var(--p) * -2); }
.menubar .ico { width: calc(var(--p) * 15); height: calc(var(--p) * 15); }
.menubar .batt { width: calc(var(--p) * 26); height: calc(var(--p) * 12); }
.menubar .nev { width: calc(var(--p) * 16); height: calc(var(--p) * 16); }

.win { position: absolute; z-index: 2; left: 8%; top: 19%; width: 46%; height: 44%; display: grid; grid-template-columns: 31% 1fr; overflow: hidden; cursor: grab; touch-action: none;
  border-radius: calc(var(--p) * 12); background: rgba(251, 251, 253, .97); color: #1d2129;
  box-shadow: 0 calc(var(--p) * 22) calc(var(--p) * 55) rgba(0, 0, 0, .5), 0 0 0 .5px rgba(0, 0, 0, .4), inset 0 0 0 .5px rgba(255, 255, 255, .7); }
.win.drag { cursor: grabbing; }
.win .side { background: rgba(229, 232, 239, .94); border-right: .5px solid rgba(0, 0, 0, .1); padding: calc(var(--p) * 12) calc(var(--p) * 9); display: flex; flex-direction: column; gap: calc(var(--p) * 1); font-size: calc(var(--p) * 12); color: #262a33; min-width: 0; }
.win .lights { display: flex; gap: calc(var(--p) * 8); padding: calc(var(--p) * 2) calc(var(--p) * 5) calc(var(--p) * 12); }
.win .lights i { width: calc(var(--p) * 12); aspect-ratio: 1; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.win .lights i:nth-child(2) { background: #febc2e; } .win .lights i:nth-child(3) { background: #28c840; }
.win .side p { margin: calc(var(--p) * 9) 0 calc(var(--p) * 3) calc(var(--p) * 7); font-size: calc(var(--p) * 10.5); font-weight: 600; color: rgba(38, 42, 51, .5); }
.win .side span { display: flex; align-items: center; gap: calc(var(--p) * 7); padding: calc(var(--p) * 4) calc(var(--p) * 7); border-radius: calc(var(--p) * 6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .side span.on { background: rgba(0, 0, 0, .085); }
.win .side svg { width: calc(var(--p) * 15); height: calc(var(--p) * 15); flex: none; color: #2f7cf6; }
.win .tag { width: calc(var(--p) * 9); height: calc(var(--p) * 9); border-radius: 50%; margin: 0 calc(var(--p) * 3); flex: none; }
.win .main { display: flex; flex-direction: column; min-width: 0; }
.win .tb { height: calc(var(--p) * 46); flex: none; display: flex; align-items: center; gap: calc(var(--p) * 12); padding: 0 calc(var(--p) * 14); color: #5c6270; border-bottom: .5px solid rgba(0, 0, 0, .09); }
.win .tb svg { width: calc(var(--p) * 16); height: calc(var(--p) * 16); flex: none; }
.win .tb b { font-size: calc(var(--p) * 13); font-weight: 700; color: #1d2129; margin-left: calc(var(--p) * 2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .tb .push { margin-left: auto; }
.win .files { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--p) * 14) calc(var(--p) * 6); padding: calc(var(--p) * 18) calc(var(--p) * 10); align-content: start; }
.win figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--p) * 5); min-width: 0; }
.win figcaption { font-size: calc(var(--p) * 11); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .folder { width: calc(var(--p) * 62); height: calc(var(--p) * 50); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 50'%3E%3Cdefs%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2362b9f3'/%3E%3Cstop offset='1' stop-color='%233d97e3'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2397d4fb'/%3E%3Cstop offset='1' stop-color='%235fb2ef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 6.5A3.5 3.5 0 0 1 6.5 3h15.2l4.6 4.6h31.2A3.5 3.5 0 0 1 61 11.1V44a3.5 3.5 0 0 1-3.5 3.5h-51A3.5 3.5 0 0 1 3 44z' fill='url(%23a)'/%3E%3Crect x='3' y='12' width='58' height='35.5' rx='3.5' fill='url(%23b)'/%3E%3Crect x='3.5' y='12.4' width='57' height='1' rx='.5' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat; }
.win .thumb { width: calc(var(--p) * 62); height: calc(var(--p) * 42); margin: calc(var(--p) * 4) 0; background: url(/assets/wp/xmas-rooftops-thumb.webp) center / cover; outline: calc(var(--p) * 2.5) solid #fff; box-shadow: 0 calc(var(--p) * 1.5) calc(var(--p) * 4) rgba(0, 0, 0, .3); border-radius: 1px; }
.win .doc { position: relative; width: calc(var(--p) * 40); height: calc(var(--p) * 50); border-radius: calc(var(--p) * 3); background: #fff repeating-linear-gradient(#fff 0 calc(var(--p) * 5), #e4e6eb calc(var(--p) * 5) calc(var(--p) * 6)) calc(var(--p) * 6) calc(var(--p) * 8) / calc(100% - var(--p) * 12) 45% no-repeat; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), 0 calc(var(--p) * 1) calc(var(--p) * 3) rgba(0, 0, 0, .15); }
.win .doc em { position: absolute; left: 0; right: 0; bottom: calc(var(--p) * 7); text-align: center; font: 800 calc(var(--p) * 8.5) / 1 -apple-system, var(--body); color: #e5484d; font-style: normal; }

.dock { position: absolute; z-index: 1; left: 50%; bottom: calc(var(--p) * 4); transform: translateX(-50%); display: flex; align-items: center; gap: calc(var(--p) * 5); padding: calc(var(--p) * 5) calc(var(--p) * 6);
  border-radius: calc(var(--p) * 17); background: rgba(255, 255, 255, .2); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .25); }
.dock .d { position: relative; width: calc(var(--p) * 48); aspect-ratio: 1; border-radius: 22.5%; background: var(--i) center / cover, linear-gradient(160deg, #eef2f9, #b7c3d8); box-shadow: 0 calc(var(--p) * 2) calc(var(--p) * 5) rgba(0, 0, 0, .3); }
.dock .d.me { background: var(--i) center / 122% no-repeat; box-shadow: none; }
.dock .d.on::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--p) * -4.5); width: calc(var(--p) * 4); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .85); }
.dock .sep { align-self: stretch; width: 1px; margin: calc(var(--p) * 5) calc(var(--p) * 2); background: rgba(255, 255, 255, .35); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.stage .sprite { position: absolute; z-index: 3; pointer-events: none; }
.hint { position: absolute; z-index: 5; right: 3%; top: calc(var(--p) * 30 + 4%); background: rgba(255,255,255,.94); color: var(--ink); font: 600 13px var(--body); padding: 9px 13px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); display: flex; gap: 8px; align-items: center; transition: opacity .4s; }
.hint.gone { opacity: 0; }
.hint svg { color: var(--red); }
@media (max-width: 640px) {
  .hint { font-size: 11px; padding: 6px 9px; border-radius: 9px; }
  .lid { margin: 0 4%; }
  .menubar span:nth-of-type(n+3), .menubar .ico:not(.nev):nth-of-type(-n+4) { display: none; }
  .win { left: 5%; width: 64%; height: 54%; }
  .dock .d:nth-child(4), .dock .d:nth-child(6), .dock .d:nth-child(7) { display: none; }
}

.stage-cap { display: none; }
@media (max-width: 640px) { .hint { display: none; } .stage-cap { display: block; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); } .win { height: 46%; } }
.reel .cap { text-wrap: balance; line-height: 1.75; }
.screen { text-align: left; }

/* phones: lighter pictures and no costly filters */
@media (max-width: 760px) {
  .screen { background-image: url(/assets/wp/hero-1100.webp); }
  .macbook { filter: none; }
  .lid { box-shadow: inset 0 0 0 1px #5b5e66, inset 0 0 0 2px #1d1e22, inset 0 0 0 3px #0b0b0d, 0 24px 30px -18px rgba(15, 27, 61, .45); }
  .menubar, .dock { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menubar { background: rgba(8, 14, 34, .55); }
  .dock { background: rgba(255, 255, 255, .3); }
  .win { background: #fbfbfd; }
}
