/* Offscreen: a macOS 27 (dark mode) desktop built to be filmed.
   Desk is 1600x900 points; the camera scales it onto a 1920x1080 stage. */

:root {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --win: #232323;
  --side: #292929;
  --line: rgba(255,255,255,.07);
  --text: #ececec;
  --text2: #9b9b9b;
  --cap: #2f2f2f;
  --cap-line: rgba(255,255,255,.075);
  --blue: #1f5ad8;
  --sym: #3d8ef7;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--ui); -webkit-font-smoothing: antialiased; color: var(--text); cursor: default; }
body.render #start { display: none; }

#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #000; flex: none; }
body.render #viewport { display: block; }
#desk { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; background: #0b130c; }
#fx { position: fixed; inset: 0; pointer-events: none; background: #000; z-index: 5; }   /* outside the scaled stage: covers the whole window, no edge bleed */

#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; z-index: 10; cursor: pointer; }
#start div { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; }
#start b { font: 600 44px/1 Georgia, serif; letter-spacing: .5px; }
#start span { font-size: 17px; opacity: .9; }
#start small { font-size: 13px; opacity: .55; }
#start.hide { display: none; }

/* ---------- wallpaper, menu bar, dock, desktop icons ---------- */
.wall { position: absolute; inset: 0; background: url(assets/mac/forest.jpg) center/cover; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 12%, rgba(0,0,0,0) 80%, rgba(0,0,0,.25)); }

.menubar { position: absolute; left: 0; top: 0; width: 1600px; height: 28px; display: flex; align-items: center; padding: 0 14px 0 16px; color: #fff; font-size: 13.5px; text-shadow: 0 0 6px rgba(0,0,0,.35); z-index: 5000; }
.menubar .apple { width: 15px; height: 17px; margin-right: 20px; }
.menubar .app { font-weight: 700; margin-right: 19px; }
.menubar .m { margin-right: 19px; font-weight: 500; }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 17px; font-weight: 500; }
.menubar svg { display: block; }

.dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); height: 66px; padding: 6px 8px; display: flex; align-items: flex-end; gap: 4px; border-radius: 24px; background: rgba(60,60,60,.32); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28), 0 8px 30px rgba(0,0,0,.25); z-index: 4900; }
.dock .ic { position: relative; width: 54px; height: 54px; }
.dock .ic img { width: 54px; height: 54px; display: block; }
.dock .ic.run::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.75); }
.dock .sep { width: 1px; height: 46px; margin: 0 6px 4px; background: rgba(255,255,255,.22); }

.dicon { position: absolute; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 500; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.dicon img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.dicon .shot { width: 62px; height: 40px; object-fit: cover; border: 2px solid #fff; border-radius: 2px; margin: 12px 0; filter: none; box-shadow: 0 2px 5px rgba(0,0,0,.5); }

/* ---------- windows ---------- */
.win { position: absolute; border-radius: 20px; background: var(--win); overflow: hidden; transform-origin: 50% 50%;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.85), inset 0 0 0 .5px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.28); }
.win.inactive { box-shadow: 0 0 0 .5px rgba(0,0,0,.8), inset 0 0 0 .5px rgba(255,255,255,.12), 0 12px 34px rgba(0,0,0,.38); }
.tl { position: absolute; left: 18px; top: 18px; display: flex; gap: 9px; z-index: 3; }
.tl i { width: 14px; height: 14px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.tl i:nth-child(1) { background: #ff5f57; }
.tl i:nth-child(2) { background: #febc2e; }
.tl i:nth-child(3) { background: #28c840; }
.win.inactive .tl i { background: #474747; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }

/* Finder */
.finder { display: flex; }
.finder .side { width: 158px; flex: none; background: var(--side); border-right: 1px solid rgba(0,0,0,.35); padding: 56px 8px 0; font-size: 13px; overflow: hidden; }
.finder .side .h { color: #8a8a8a; font-size: 11px; font-weight: 600; padding: 12px 8px 5px; }
.finder .side .it { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 7px; color: #e6e6e6; white-space: nowrap; }
.finder .side .it.sel { background: rgba(255,255,255,.1); }
.finder .side .it svg { width: 17px; height: 17px; flex: none; }
.finder .side .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin: 0 3px; }
.finder .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ftb { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 9px; }
.cap { height: 36px; border-radius: 18px; background: var(--cap); box-shadow: inset 0 0 0 .5px var(--cap-line), 0 1px 2px rgba(0,0,0,.25); display: flex; align-items: center; padding: 0 6px; gap: 2px; color: #dcdcdc; flex: none; }
.cap svg { width: 36px; height: 24px; display: block; }
.cap .on { background: rgba(255,255,255,.1); border-radius: 13px; }
.cap.round { width: 36px; padding: 0; justify-content: center; }
.ftb .title { font-size: 15px; font-weight: 700; color: #f2f2f2; margin: 0 8px; white-space: nowrap; flex: 1 0 auto; }
.tabbar { height: 26px; margin: 0 9px 0 9px; display: flex; gap: 6px; flex: none; }
.tabbar .tab { flex: 1; border-radius: 13px; background: #3a3a37; box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #e8e8e8; }
.tabbar .plus { width: 26px; border-radius: 13px; background: var(--cap); box-shadow: inset 0 0 0 .5px var(--cap-line); display: flex; align-items: center; justify-content: center; }
.fcontent { flex: 1; position: relative; overflow: hidden; }
.fcontent.drop::after { content: ""; position: absolute; inset: 4px; border-radius: 12px; box-shadow: inset 0 0 0 3px #3b82f6; background: rgba(59,130,246,.08); }

.grid { position: absolute; left: 12px; top: 12px; right: 12px; display: grid; grid-template-columns: repeat(var(--cols), 112px); grid-auto-rows: 118px; }
.item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; }
.item .thumb { width: 84px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 8px; padding: 3px; }
.item .thumb img { max-width: 70px; max-height: 66px; display: block; border-radius: 3px; box-shadow: 0 0 0 .5px rgba(255,255,255,.15), 0 1px 3px rgba(0,0,0,.4); }
.item .thumb img.folder { max-width: 76px; max-height: 76px; border-radius: 0; box-shadow: none; }
.item .thumb .vid { position: relative; }
.item .thumb .vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(0,0,0,.35) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M8 6l6 4-6 4z' fill='white'/></svg>") center/20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.item .lbl { font-size: 12px; line-height: 16px; padding: 0 5px; border-radius: 4px; color: #e9e9e9; white-space: nowrap; }
.item.sel .thumb { background: rgba(255,255,255,.12); }
.item.sel .lbl { background: var(--blue); color: #fff; }
.item.dim { opacity: .45; }

.list { position: absolute; inset: 0; font-size: 13px; }
.list .hdr { height: 28px; display: flex; align-items: center; color: #a3a3a3; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.08); padding-left: 10px; }
.list .hdr span { border-left: 1px solid rgba(255,255,255,.1); padding-left: 8px; }
.list .hdr span:first-child { border-left: 0; color: #e6e6e6; font-weight: 600; padding-left: 26px; }
.list .row { height: 24px; margin: 2px 8px; border-radius: 6px; display: flex; align-items: center; padding-left: 2px; color: #e8e8e8; white-space: nowrap; }
.list .row:nth-child(even) { background: rgba(255,255,255,.035); }
.list .row.sel { background: var(--blue) !important; color: #fff; }
.list .row.sel span { color: #fff !important; }
.list .row .n { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.list .row .n img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.list .row .n .ph { width: 16px; height: 13px; object-fit: cover; border-radius: 2px; }
.list .row .chev { width: 14px; flex: none; color: #8a8a8a; font-size: 10px; text-align: center; }
.list .row span { color: #b9b9b9; overflow: hidden; text-overflow: ellipsis; }
.list .row span.n { color: inherit; }

/* QuickTime + webcam */
.qt { background: #000; }
.qt .bar { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: #262626; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #e5e5e5; z-index: 2; box-shadow: 0 .5px 0 rgba(0,0,0,.6); }
.qt .tl { top: 7px; left: 10px; gap: 8px; }
.qt .tl i { width: 12px; height: 12px; }
.qt .media { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; overflow: hidden; background: #000; }
.qt .media video, .qt .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qt .ctl { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 34px; border-radius: 17px; background: rgba(30,30,30,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; z-index: 3; }
.qt .ctl .track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); position: relative; }
.qt .ctl .track b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #fff; }
.qt .rec { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); height: 30px; padding: 0 12px 0 6px; border-radius: 15px; background: rgba(20,20,20,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; z-index: 3; }
.qt .rec i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; }
.qt .rec i::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #ff3b30; }

/* Preview */
.pv { display: flex; flex-direction: column; background: #1c1c1c; }
.pv .ptb { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 86px; background: #262626; box-shadow: 0 .5px 0 rgba(0,0,0,.7); position: relative; z-index: 2; }
.pv .ptb .t { display: flex; flex-direction: column; margin-left: 6px; flex: 1; }
.pv .ptb .t b { font-size: 13.5px; font-weight: 700; color: #f0f0f0; }
.pv .ptb .t small { font-size: 11px; color: #9a9a9a; }
.pv .pbody { flex: 1; display: flex; min-height: 0; }
.pv .thumbs { width: 140px; flex: none; background: #252525; border-right: 1px solid rgba(0,0,0,.4); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: hidden; }
.pv .thumbs .th { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #9a9a9a; }
.pv .thumbs .th img { width: 96px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.5); border-radius: 1px; outline: 3px solid transparent; outline-offset: 1px; }
.pv .thumbs .th.on img { outline-color: #6e6e6e; }
.pv .pages { flex: 1; position: relative; overflow: hidden; background: #1c1c1c; }
.pv .scroller { position: absolute; left: 24px; right: 24px; top: 16px; }
.pv .page { position: relative; width: 100%; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pv .page img { width: 100%; display: block; }
.pv .sel { position: absolute; background: rgba(60,130,255,.36); mix-blend-mode: multiply; }

/* Quick Look */
.ql { background: #1e1e1e; display: flex; flex-direction: column; }
.ql .qbar { height: 40px; flex: none; display: flex; align-items: center; padding: 0 10px; gap: 8px; background: #262626; position: relative; }
.ql .qbar .x { width: 26px; height: 26px; border-radius: 13px; background: var(--cap); box-shadow: inset 0 0 0 .5px var(--cap-line); display: flex; align-items: center; justify-content: center; }
.ql .qbar .name { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: #ececec; pointer-events: none; }
.ql .qbar .open { margin-left: auto; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--cap); box-shadow: inset 0 0 0 .5px var(--cap-line); font-size: 12px; display: flex; align-items: center; color: #e4e4e4; }
.ql .qimg { flex: 1; position: relative; overflow: hidden; background: #3a2c22; }

/* the notebook photo inside Quick Look */
.note { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 40% 30%, #6b5442, #33241a 75%); }
.note .paper { position: absolute; left: 34px; top: 26px; width: 432px; height: 600px; transform: rotate(-1.6deg); border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 52px, rgba(214,70,70,.55) 52px, rgba(214,70,70,.55) 54px, transparent 54px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(70,120,190,.32) 33px 34px),
    linear-gradient(160deg, #f7f2e4, #ece4cf 70%, #e2d8bd);
  box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.35); }
.note .paper::after { content: ""; position: absolute; inset: 0; background: radial-gradient(140% 100% at 20% 10%, rgba(255,250,235,.25), rgba(0,0,0,.14) 80%); border-radius: 3px; }
.note .hw { position: absolute; font-family: "Bradley Hand", "Noteworthy", cursive; color: #1d2a44; white-space: nowrap; }
.note .hw.b { font-weight: 700; }
.note .ring { position: absolute; border: 2.5px solid rgba(196,40,40,.85); border-radius: 50%; }
.note .ul { position: absolute; height: 3px; background: #1d2a44; border-radius: 2px; opacity: .85; }
.note .sticky { position: absolute; padding: 14px 14px; font-family: "Noteworthy", "Marker Felt", cursive; font-size: 17px; line-height: 23px; color: #2b2b2b; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.note .polaroid { position: absolute; background: #f6f6f2; padding: 8px 8px 30px; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.note .polaroid img { width: 120px; height: 150px; object-fit: cover; display: block; }
.note .tape { position: absolute; width: 70px; height: 22px; background: rgba(235,225,190,.7); box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* Arc */
.arc { display: flex; background: #2d2c45; }
.arc .aside { width: 210px; flex: none; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; color: #fff; background: linear-gradient(180deg, #3d3a66, #2b2947 70%); }
.arc .aside .nav { display: flex; gap: 12px; align-items: center; height: 18px; padding-left: 70px; opacity: .7; }
.arc .url { height: 30px; border-radius: 8px; background: rgba(255,255,255,.12); display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 8px; white-space: nowrap; overflow: hidden; }
.arc .pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 6px; }
.arc .pins i { height: 34px; border-radius: 8px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.arc .pins i b { width: 14px; height: 14px; border-radius: 4px; display: block; }
.arc .tab { height: 30px; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 12.5px; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; }
.arc .tab.on { background: rgba(255,255,255,.2); box-shadow: 0 1px 3px rgba(0,0,0,.15); color: #fff; }
.arc .tab .fav { width: 14px; height: 14px; border-radius: 3px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.arc .sec { font-size: 11px; color: rgba(255,255,255,.5); padding: 6px 8px 0; }
.arc .page { flex: 1; margin: 8px 8px 8px 0; border-radius: 10px; background: #fff; overflow: hidden; position: relative; color: #202124; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.g-top { display: flex; align-items: center; gap: 22px; padding: 18px 22px 0; }
.g-logo { font: 500 25px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.5px; }
.g-box { flex: 1; max-width: 430px; height: 40px; border-radius: 20px; box-shadow: 0 1px 6px rgba(32,33,36,.28); display: flex; align-items: center; padding: 0 16px; font-size: 14.5px; gap: 10px; }
.g-box .caret { width: 1px; height: 18px; background: #202124; }
.g-tabs { display: flex; gap: 20px; padding: 14px 0 9px 128px; font-size: 13px; color: #5f6368; border-bottom: 1px solid #ebebeb; }
.g-tabs .on { color: #1a73e8; box-shadow: 0 9px 0 -6px #1a73e8; }
.g-res { padding: 8px 0 0 128px; width: 560px; }
.g-meta { font-size: 11px; color: #70757a; margin: 6px 0 12px; }
.g-r { margin-bottom: 18px; }
.g-r .site { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #202124; }
.g-r .site i { width: 24px; height: 24px; border-radius: 50%; background: #f1f3f4; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 700; color: #5f6368; flex: none; }
.g-r .site small { display: block; font-size: 11.5px; color: #4d5156; }
.g-r .tt { font-size: 18px; color: #1a0dab; margin: 5px 0 3px; line-height: 1.25; }
.g-r .sn { font-size: 13px; color: #4d5156; line-height: 1.5; }
.g-r .sn b { color: #5f6368; }

/* Preview image windows (maps) */
.img { display: flex; flex-direction: column; background: #1c1c1c; }
.img .ib { height: 38px; flex: none; background: #262626; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: #e8e8e8; position: relative; }
.img .ib .tl { top: 12px; left: 12px; gap: 8px; }
.img .ib .tl i { width: 12px; height: 12px; }
.img .im { flex: 1; position: relative; overflow: hidden; }
.img .im svg, .img .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Stickies */
.stk { border-radius: 4px; background: #fff7a8; color: #2a2a2a; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.stk .sb { height: 14px; background: #f7ea6c; }
.stk .st { padding: 8px 10px; font: 13px/18px "Helvetica Neue", sans-serif; white-space: pre-line; }

/* lock screen */
.lock { position: absolute; inset: 0; z-index: 8000; overflow: hidden; }
.lock { background: #0d1a10; }
.lock .bg { position: absolute; inset: -160px; background: url(assets/mac/forest.jpg) center/cover; filter: blur(22px) brightness(.72) saturate(1.15); }
.lock .date { position: absolute; left: 0; right: 0; top: 70px; text-align: center; font-size: 22px; font-weight: 600; color: rgba(255,255,255,.88); }
.lock .time { position: absolute; left: 0; right: 0; top: 92px; text-align: center; font: 600 132px/1.1 "SF Pro Rounded", var(--ui); color: rgba(255,255,255,.82); letter-spacing: -2px; text-shadow: 0 2px 30px rgba(0,0,0,.15); }
.lock .user { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.lock .av { width: 58px; height: 58px; border-radius: 50%; background: url(assets/photos/karan-avatar.jpg) 50% 34%/175%; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.lock .nm { font-size: 15px; font-weight: 600; }
.lock .pw { width: 190px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.lock .pw .dots { color: #fff; font-size: 15px; letter-spacing: 3px; }

/* cursor and drag ghost */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 30px; z-index: 9500; pointer-events: none; transform-origin: 2px 2px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }
.ghost { position: absolute; left: 0; top: 0; z-index: 9400; pointer-events: none; }
.ghost img { position: absolute; width: 70px; border-radius: 3px; opacity: .78; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.ghost .badge { position: absolute; left: 62px; top: -10px; min-width: 22px; height: 22px; border-radius: 11px; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 6px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.marquee { position: absolute; z-index: 5; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); pointer-events: none; }

/* ---------- digital overlay ---------- */
#grain { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; mix-blend-mode: overlay; opacity: var(--grain, .14); }
#lines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.55) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: var(--lines, .06); }
#vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(125% 120% at 50% 48%, transparent 58%, rgba(0,0,0,.6) 100%); opacity: var(--vig, .5); }
.media.webcam video { filter: contrast(1.05) saturate(.93); }

/* copy badge on the drag ghost (option-drag) */
.ghost .copy { position: absolute; left: 30px; top: 46px; width: 20px; height: 20px; border-radius: 50%; background: #34c759; color: #fff; font: 700 17px/20px var(--ui); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ---------- Notes ---------- */
.notes { display: flex; background: #1e1e1e; }
.notes .nside { width: 210px; flex: none; background: #262626; border-right: 1px solid rgba(0,0,0,.45); padding: 56px 8px 0; position: relative; }
.notes .ntools { position: absolute; top: 15px; left: 100px; }
.notes .nfolder { font-size: 11px; font-weight: 600; color: #8a8a8a; padding: 0 10px 6px; }
.notes .nrow { padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.notes .nrow b { display: block; font-size: 13px; color: #f0f0f0; margin-bottom: 2px; }
.notes .nrow span { display: block; font-size: 11.5px; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes .nrow span i { font-style: normal; color: #cfcfcf; margin-right: 6px; }
.notes .nrow.sel { background: rgba(255,214,10,.3); }
.notes .nmain { flex: 1; position: relative; overflow: hidden; }
.notes .ntb { height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 0 16px; color: #bbb; font-size: 15px; }
.notes .ntb svg { width: 20px; height: 20px; }
.notes .npage { position: absolute; left: 0; right: 0; top: 52px; padding: 4px 28px; display: none; }
.notes .ndate { text-align: center; font-size: 11px; color: #8a8a8a; margin-bottom: 14px; }
.notes .nh { font-size: 23px; font-weight: 700; color: #f4f4f4; margin-bottom: 10px; }
.notes .nl { font-size: 15px; line-height: 25px; color: #e9e9e9; }
.notes .caret { display: inline-block; width: 2px; height: 18px; background: #ffd60a; vertical-align: -3px; margin-left: 1px; }

/* ---------- the pitch PDF pages (812 x 507.5) ---------- */
.pv .page { width: 812px; height: 507.5px; overflow: hidden; }
.pdfp { position: relative; width: 812px; height: 507.5px; background: #f4efe6; color: #1c2624; overflow: hidden; font-family: var(--ui); }
.pv .thumbs .mini { width: 96px; height: 60px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.5); outline: 3px solid transparent; outline-offset: 1px; }
.pv .thumbs .th.on .mini { outline-color: #6e6e6e; }
.pv .thumbs .mini .pdfp { transform: scale(.11823); transform-origin: 0 0; }
.p1 { display: flex; height: 100%; }
.p1 .l { flex: 1.15; position: relative; padding: 44px 50px; }
.p1 .r { flex: 1; background-size: cover; background-position: center 30%; }
.p1 .logo { height: 24px; display: block; }
.p1 .ttl { font: 400 88px/1 "New York", Georgia, serif; letter-spacing: -1px; margin-top: 118px; }
.p1 .sub { font: italic 26px/1.2 "New York", Georgia, serif; color: #a23b2a; margin-top: 14px; }
.p1 .foot { position: absolute; left: 50px; bottom: 40px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #6f6f6f; }
.pc { position: relative; height: 100%; padding: 64px 70px; }
.pc .k, .pn .k { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #a23b2a; font-weight: 600; }
.pc .big { font: 400 98px/1 "New York", Georgia, serif; letter-spacing: -1.5px; margin: 40px 0 28px; }
.pc .big2 { font: 400 80px/1 "New York", Georgia, serif; letter-spacing: -1px; margin: 40px 0 28px; }
.pc .line { font-size: 27px; line-height: 1.45; color: #1c2624; }
.pc .small { position: absolute; left: 70px; bottom: 54px; font-size: 16px; color: #5f5f5f; }
.pn { position: relative; height: 100%; padding: 52px 70px; }
.pn .ttl2 { font: 400 46px/1.05 "New York", Georgia, serif; letter-spacing: -.5px; }
.pn .cols { display: flex; gap: 64px; margin-top: 34px; }
.pn .col { flex: 1; border-top: 1px solid #cbc3b3; padding-top: 16px; }
.pn .film { font: italic 28px/1.2 "New York", Georgia, serif; margin-bottom: 6px; }
.pn .film span { font-style: normal; font-size: 18px; color: #7d7d7d; }
.pn .lab { font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #6f6f6f; margin-top: 14px; }
.pn .num { font-size: 48px; font-weight: 500; line-height: 1.1; letter-spacing: -.5px; }
.pn .num.red { color: #a23b2a; }
.pn .india { position: absolute; left: 70px; bottom: 62px; font-size: 17px; color: #1c2624; }
.pn .src { position: absolute; left: 70px; bottom: 34px; font-size: 11px; color: #8d8d8d; }

/* ---------- Google Maps in an Arc window (sidebar hidden) ---------- */
.gmaps { background: #3d3a66; }
.gmaps .page { margin: 6px; font-family: Arial, Helvetica, sans-serif; }
.gm-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 150px; background: #fff; box-shadow: 1px 0 4px rgba(0,0,0,.15); z-index: 2; padding: 34px 10px 0; color: #202124; }
.gm-photo { height: 64px; border-radius: 6px; margin-bottom: 8px; background: linear-gradient(180deg, #b9d3e6 0%, #9fc3d8 45%, #5c8a73 46%, #3f6b52 70%, #6f8f6a 100%); }
.gm-name { font-size: 14px; font-weight: 700; }
.gm-rate { font-size: 10.5px; color: #70757a; margin-top: 2px; } .gm-rate span { color: #fbbc04; letter-spacing: -1px; }
.gm-kind { font-size: 10.5px; color: #70757a; margin: 1px 0 8px; }
.gm-acts { display: flex; gap: 9px; margin-bottom: 8px; } .gm-acts i { width: 22px; height: 22px; border-radius: 50%; background: #e8f0fe; box-shadow: inset 0 0 0 6px #e8f0fe, inset 0 0 0 14px #1a73e8; }
.gm-acts i:first-child { background: #1a73e8; box-shadow: none; }
.gm-addr { font-size: 10px; color: #3c4043; line-height: 15px; }
.gm-map { position: absolute; left: 150px; right: 0; top: 0; bottom: 0; overflow: hidden; }
.gm-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gm-search { position: absolute; left: 8px; top: 8px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-size: 11px; display: flex; align-items: center; gap: 18px; color: #202124; }
.gm-search span { color: #70757a; font-size: 14px; }
.gm-zoom { position: absolute; right: 8px; bottom: 10px; width: 24px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.gm-zoom b { height: 22px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #666; font-weight: 400; }

/* ---------- PDF additions ---------- */
.pc .big3 { font: 400 56px/1.08 "New York", Georgia, serif; letter-spacing: -.8px; margin: 34px 0 26px; max-width: 640px; }
.pc .line { font-size: 23px; line-height: 1.5; max-width: 660px; }
.pv .page .pdfp .flogo, .pdfp .flogo { position: absolute; right: 44px; bottom: 32px; height: 15px; width: auto; opacity: .85; }
.pn .ttl2 { font-size: 34px; line-height: 1.15; }
.pn .cols { margin-top: 26px; }
.pn .num { font-size: 42px; }
.pn .india { bottom: 112px; font-size: 16px; }
.pn .tech { position: absolute; left: 70px; bottom: 66px; font-size: 21px; font-weight: 600; color: #1c2624; }
.pn .src { bottom: 34px; }

/* ---------- Notes bullets ---------- */
.notes .nl.b { position: relative; padding-left: 18px; }
.notes .nl.b::before { content: "•"; position: absolute; left: 3px; color: #e9e9e9; }

/* ---------- filmed-off-a-screen layers ---------- */
#subpix { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, #ff2a2a 0 1px, #2aff2a 1px 2px, #2a5cff 2px 3px); mix-blend-mode: multiply; opacity: var(--subpix, .07); }
#moire { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0 1.6px, rgba(0,0,0,.9) 1.6px 3.3px); mix-blend-mode: soft-light; opacity: var(--moire, .05); }
#band { position: absolute; left: 0; right: 0; top: 0; height: 260px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.55) 50%, transparent); mix-blend-mode: soft-light; opacity: var(--band, .08); }
#grade { position: absolute; inset: 0; pointer-events: none; background: #ff7fc8; mix-blend-mode: soft-light; opacity: var(--grade, .04); }


/* phones: ask for landscape; touch devices get "Tap to play" */
#rotate { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: #000; z-index: 20; color: #fff; text-align: center; }
#rotate div { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#rotate svg { animation: tilt 2.4s ease-in-out infinite; }
#rotate span { font-size: 18px; font-weight: 600; }
#rotate small { font-size: 13px; opacity: .55; }
@keyframes tilt { 0%, 30% { transform: rotate(0deg); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }
body.touch #start small { display: none; }
