:root {
  --bg: #180052;
  --cell: 70px;
  --gap: 10px;
  --font: "Segoe UI", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: #fff; font-family: var(--font); font-weight: 400; overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; transition: background 0.3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
a, button { touch-action: manipulation; }
svg { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.hscroll { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent; }
.hscroll::-webkit-scrollbar { height: 8px; width: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); }
.hscroll::-webkit-scrollbar-track { background: transparent; }

/* ---------- start ---------- */
.start { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.st-head { flex: none; height: 140px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px 0 120px; }
.st-title { font-size: 56px; font-weight: 300; letter-spacing: -0.5px; }
.st-user { display: flex; align-items: center; gap: 18px; }
.st-me { display: flex; align-items: center; gap: 12px; padding: 4px; }
.st-me:hover .st-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
.st-name { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.st-name span { font-size: 22px; font-weight: 300; }
.st-name small { font-size: 13px; opacity: 0.85; }
.st-avatar { width: 40px; height: 40px; display: grid; place-items: center; background: #2D89EF; font-size: 22px; font-weight: 300; }
.st-icon { width: 30px; height: 30px; padding: 3px; opacity: 0.9; }
.st-icon:hover { opacity: 1; }
.st-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; }
.st-groups { display: flex; gap: 80px; padding: 0 120px 0 120px; min-height: 100%; align-items: flex-start; width: max-content; }
.grp-name { font-size: 20px; font-weight: 300; height: 28px; margin-bottom: 18px; opacity: 0.95; }
.grp-cols { display: flex; gap: var(--gap); }
.col { display: grid; grid-template-columns: repeat(4, var(--cell)); grid-auto-rows: var(--cell); gap: var(--gap); grid-auto-flow: row dense; }
.st-allapps { position: absolute; left: 120px; bottom: 26px; width: 36px; height: 36px; opacity: 0.55; transition: opacity 0.2s; }
.st-allapps:hover { opacity: 1; }

.start.enter .col { animation: tileIn 0.7s cubic-bezier(0.1, 0.9, 0.2, 1) both; animation-delay: calc(var(--i) * 45ms); }
.start.enter .st-title { animation: tileIn 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
@keyframes tileIn { from { transform: translateX(90px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- tiles ---------- */
.tile { position: relative; display: block; overflow: hidden; background: var(--c); color: #fff; text-align: left; container-type: size; transition: transform 0.12s ease-out; transform-origin: center; }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0); transition: box-shadow 0.12s; pointer-events: none; z-index: 3; }
@media (hover: hover) { .tile:hover::after { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); } }
.t-s { grid-column: span 1; grid-row: span 1; }
.t-m { grid-column: span 2; grid-row: span 2; }
.t-w { grid-column: span 4; grid-row: span 2; }
.t-l { grid-column: span 4; grid-row: span 4; }
.t-faces { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.1, 0.9, 0.2, 1); }
.t-face { flex: 0 0 100%; height: 100%; position: relative; display: flex; overflow: hidden; }
.t-label { position: absolute; left: 10px; bottom: 7px; right: 10px; font-size: 13px; line-height: 1.2; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }

.f-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.t-face:has(.f-img)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); }
.f-icon { margin: auto; width: 40cqmin; height: 40cqmin; display: grid; place-items: center; }
.t-s .f-icon { width: 52cqmin; height: 52cqmin; }
.i-li { font-family: Arial, sans-serif; font-weight: 700; font-size: 26cqmin; letter-spacing: -1px; line-height: 1; }
.t-s .i-li { font-size: 46cqmin; }
.i-dz { width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
.f-me { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 34px; width: 100%; }
.f-name { font-size: 30cqh; font-weight: 300; line-height: 1; letter-spacing: -0.5px; }
.f-sub { font-size: 14px; line-height: 1.3; opacity: 0.95; }
.f-text { padding: 12px 14px 32px; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; height: max-content; }
.t-m .f-text { font-size: 12.5px; -webkit-line-clamp: 6; }
.t-l .f-text { font-size: 20px; font-weight: 300; -webkit-line-clamp: 8; }
.f-text.sm { font-size: 14px; }
.f-stat { display: flex; flex-direction: column; justify-content: center; padding: 0 16px 18px; gap: 2px; }
.f-num { font-size: 40cqh; font-weight: 300; line-height: 1; }
.f-cal { display: flex; flex-direction: column; padding: 10px 14px; }
.f-day { font-size: 46cqh; font-weight: 300; line-height: 1; }
.f-wd { font-size: 15px; }
.f-weather { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 0 14px 22px; width: 100%; }
.f-weather svg { width: 36cqmin; height: 36cqmin; }
.f-quote { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 16px 28px; }
.f-quote p { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.f-quote span { font-size: 12px; opacity: 0.85; }
.f-split { display: flex; width: 100%; }
.f-split .f-img { width: 50%; }
.f-split span { flex: 1; padding: 12px 14px; font-size: 16px; font-weight: 300; line-height: 1.25; }

/* welcome */
.f-hello { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px 20px 38px; width: 100%; }
.f-hey { font-size: 9.5cqw; font-weight: 300; line-height: 1.12; letter-spacing: -0.3px; }
.f-welcome { font-size: 5.6cqw; font-weight: 300; line-height: 1.35; opacity: 0.92; }

/* spotify */
.f-spot { display: flex; width: 100%; }
.f-art { height: 100%; aspect-ratio: 1; object-fit: cover; flex: none; display: block; pointer-events: none; }
.f-sp { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 12px 10px 14px; }
.f-sp-now { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #1ED760; font-weight: 600; }
.f-sp-logo { margin-left: auto; width: 18px; height: 18px; display: grid; }
.f-sp-logo svg { width: 100%; height: 100%; }
.f-sp-title { margin-top: auto; font-size: 15px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.f-sp-artist { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.f-sp-bar { display: block; height: 3px; background: rgba(255, 255, 255, 0.25); margin-top: 10px; border-radius: 2px; overflow: hidden; }
.f-sp-bar b { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; transition: width 1s linear; }
.f-sp-time { display: flex; justify-content: space-between; font-size: 10px; opacity: 0.6; margin-top: 4px; font-variant-numeric: tabular-nums; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2.5px; height: 100%; background: #1ED760; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.45s; animation-duration: 0.7s; }
.eq i:nth-child(3) { animation-delay: -0.2s; animation-duration: 1.1s; }
.eq i:nth-child(4) { animation-delay: -0.65s; animation-duration: 0.8s; }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* weather */
.f-wx { display: flex; flex-direction: column; padding: 10px 12px 10px 14px; width: 100%; }
.f-wx-ic { width: 30cqmin; height: 30cqmin; display: grid; margin-bottom: auto; }
.f-wx-ic svg { width: 100%; height: 100%; }
.f-wx-temp { font-size: 30cqh; font-weight: 300; line-height: 1; }
.f-wx-t { font-size: 14px; margin-top: 2px; }
.f-wx-s { font-size: 12px; opacity: 0.85; }

/* color-block covers (hover shows the work) */
.f-block { display: flex; align-items: flex-end; padding: 14px 16px 34px; width: 100%; }
.f-block span { font-size: 20px; font-weight: 300; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.t-m .f-block span { font-size: 15px; -webkit-line-clamp: 4; }
.t-l .f-block span { font-size: clamp(22px, 9.6cqw, 30px); line-height: 1.22; -webkit-line-clamp: 5; }
/* clamped lines: room under the last line so descenders (g, p, y) are never cut, in Segoe UI or Open Sans */
.f-block span, .f-quote p, .f-sp-title, .f-now-v { padding-bottom: 0.16em; }
.f-block span { max-width: 100%; overflow-wrap: break-word; }
.tile.hov .t-faces { transition-duration: 0.55s; }

/* websites */
.tile[data-id="clipbookweb"] .f-img, .tile[data-id="glimpse"] .f-img, .tile[data-id="educo"] .f-img { object-position: center top; }
.f-site { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px 14px 32px; width: 100%; }
.f-site-h { font-size: 26px; font-weight: 300; line-height: 1.1; }
.t-l .f-site-h { font-size: 40px; }
.t-l .f-site .f-sub { font-size: 17px; }

/* now playing app */
.np { display: flex; gap: 40px; align-items: flex-start; }
.np-art { width: min(calc(100vh - 220px), 460px); aspect-ratio: 1; object-fit: cover; display: block; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.np-info { width: 460px; }
.np-now { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1ED760; font-weight: 600; margin-bottom: 8px; }
.np-now .eq { height: 13px; }
.np-title { font-size: 40px; font-weight: 300; line-height: 1.1; }
.np-artist { font-size: 18px; font-weight: 300; opacity: 0.8; margin: 6px 0 22px; }
.np-embed { display: block; width: 100%; border: 0; border-radius: 12px; background: #282828; }

/* ---------- all apps ---------- */
.allapps { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); animation: hubIn 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.aa-head { flex: none; height: 140px; display: flex; align-items: center; padding-left: 120px; }
.aa-head h1 { font-size: 56px; font-weight: 300; }
.aa-head small { font-size: 22px; opacity: 0.8; margin-left: 12px; }
.aa-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 0 120px 90px; }
.aa-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 54px); grid-auto-columns: 260px; column-gap: 30px; row-gap: 6px; height: 100%; }
.aa-item { display: flex; align-items: center; gap: 12px; padding: 4px; font-size: 15px; text-align: left; }
.aa-item:hover { background: rgba(255, 255, 255, 0.12); }
.aa-ic { width: 42px; height: 42px; flex: none; background: var(--c); display: grid; place-items: center; overflow: hidden; }
.aa-ic .aa-svg { width: 26px; height: 26px; display: grid; place-items: center; container-type: size; }
.aa-ic .f-img { width: 42px; height: 42px; }
.aa-ic .f-text, .aa-ic .f-stat, .aa-ic .f-quote, .aa-ic .f-me, .aa-ic .f-cal { display: none; }
.allapps .st-allapps { left: 120px; }

/* ---------- apps ---------- */
.app { position: fixed; inset: 0; z-index: 40; background: #1d1d1d; }
.app-head { position: absolute; top: 0; left: 0; right: 0; height: 140px; display: flex; align-items: center; gap: 40px; padding-left: 40px; }
.app-back { width: 40px; height: 40px; flex: none; opacity: 0.9; }
.app-back:hover { opacity: 1; color: var(--c); filter: brightness(1.6); }
.app-title { font-size: 56px; font-weight: 300; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-scroll { position: absolute; top: 140px; left: 0; right: 0; bottom: 0; overflow-x: auto; overflow-y: hidden; }
.hub { display: flex; gap: 80px; height: 100%; padding: 0 120px 50px; width: max-content; align-items: flex-start; }
.app.in .hub, .app.in .app-title { animation: hubIn 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.app.in .app-title { animation-duration: 0.45s; }
@keyframes hubIn { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.sec { flex: none; }
.sec-h { font-size: 20px; font-weight: 300; margin-bottom: 20px; height: 28px; }
.hero { display: block; padding: 0; }
.hero img { display: block; height: min(calc(100vh - 210px), 640px); width: auto; max-width: max(50vw, calc(100vw - 680px)); object-fit: cover; }
.sec-text { width: 420px; padding-top: 6px; }
.p-title { font-size: 30px; font-weight: 300; line-height: 1.2; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags span { font-size: 13px; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, 0.45); }
.p-body { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); user-select: text; -webkit-user-select: text; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.w8-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 110px; height: 36px; padding: 0 16px; border: 2px solid var(--c, #2d89ef); background: var(--c, #2d89ef); font-size: 15px; font-weight: 600; }
.w8-btn:hover { filter: brightness(1.15); }
.w8-btn:active { transform: scale(0.97); }
.w8-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.8); }
.mini-tiles { display: grid; grid-template-rows: repeat(3, 150px); grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; }
.sec-more .mini-tiles .tile { grid-column: auto; grid-row: auto; }

.about-hero { display: flex; gap: 28px; width: 560px; }
.about-av { width: 130px; height: 130px; flex: none; background: var(--c); display: grid; place-items: center; font-size: 64px; font-weight: 300; }
.about-hi { font-size: 34px; font-weight: 300; margin-bottom: 10px; }
.about-lead { font-size: 18px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.facts { margin: 0; width: 330px; display: flex; flex-direction: column; gap: 16px; }
.facts dt { font-size: 14px; opacity: 0.6; }
.facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 300; line-height: 1.35; }
.qa { display: grid; grid-template-columns: repeat(2, 320px); gap: 26px 40px; }
.qa h3 { font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.qa p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

.svc-grid { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 280px; gap: 28px 30px; }
.svc img { width: 280px; height: 170px; object-fit: cover; display: block; margin-bottom: 10px; }
.svc h3 { font-size: 19px; font-weight: 400; margin-bottom: 4px; }
.svc p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }

.rev-grid { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 380px; gap: 40px 50px; }
.rev { margin: 0; }
.rev blockquote { margin: 0 0 14px; font-size: 24px; font-weight: 300; line-height: 1.35; }
.rev figcaption { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rev figcaption small { opacity: 0.6; margin-left: 4px; }
.rev-av { width: 36px; height: 36px; display: grid; place-items: center; background: var(--c); font-size: 17px; }

.ph-grid { --h: calc((100vh - 140px - 50px - 48px - 20px) / 3); display: grid; grid-template-rows: repeat(3, var(--h)); grid-auto-flow: column; grid-auto-columns: calc(var(--h) * 1.4); gap: 10px; }
.ph { position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.ph span { position: absolute; left: 10px; bottom: 8px; font-size: 13px; text-shadow: 0 0 8px rgba(0, 0, 0, 0.7); }
@media (hover: hover) { .ph:hover img { transform: scale(1.03); } }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; animation: fadeIn 0.2s both; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vw-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; padding: 8px; background: rgba(0, 0, 0, 0.5); }
.vw-nav { position: absolute; top: 50%; width: 52px; height: 80px; margin-top: -40px; padding: 14px 8px; background: rgba(0, 0, 0, 0.5); }
.vw-prev { left: 0; } .vw-next { right: 0; }
.vw-nav:hover, .vw-close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes fadeIn { from { opacity: 0; } }

/* splash */
.splash { position: fixed; inset: 0; z-index: 70; background: var(--c); display: grid; place-items: center; }
.splash.in .sp-icon { animation: spIn 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
.splash.in { animation: fadeIn 0.18s both; }
.splash.out { opacity: 0; transition: opacity 0.25s; }
.sp-icon .f-icon { width: 130px; height: 130px; }
.sp-name { font-size: 48px; font-weight: 300; }
@keyframes spIn { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- charms ---------- */
.charms { position: fixed; top: 0; right: 0; bottom: 0; width: 86px; z-index: 90; background: #111; display: flex; flex-direction: column; justify-content: center; gap: 4px; transform: translateX(100%); transition: transform 0.2s ease-out; }
.charms.on { transform: none; }
.charm { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; font-size: 12px; }
.charm svg { width: 32px; height: 32px; }
.charm-start svg { width: 40px; height: 40px; }
.charm:hover { background: #333; }
.clock { position: fixed; left: 50px; bottom: 50px; z-index: 90; background: rgba(0, 0, 0, 0.85); padding: 18px 34px 22px; opacity: 0; transform: translateY(10px); transition: 0.2s; pointer-events: none; }
.clock.on { opacity: 1; transform: none; }
.ck-time { font-size: 90px; font-weight: 300; line-height: 1; }
.ck-date { font-size: 28px; font-weight: 300; margin-top: 6px; }

/* ---------- panes ---------- */
.pane { position: fixed; top: 0; right: 0; bottom: 0; width: 346px; z-index: 95; background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, #fff 10%); border-left: 1px solid rgba(255, 255, 255, 0.15); overflow-y: auto; user-select: text; -webkit-user-select: text; }
.pane.in { animation: paneIn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) both; }
@keyframes paneIn { from { transform: translateX(60px); opacity: 0; } }
.pn-head { display: flex; align-items: center; gap: 14px; padding: 34px 24px 24px; }
.pn-back { width: 32px; height: 32px; flex: none; }
.pn-head h2 { font-size: 30px; font-weight: 300; }
.pn-body { padding: 0 24px 30px; }
.pn-p { font-size: 20px; font-weight: 300; margin-bottom: 6px; }
.pn-sub { font-size: 14px; opacity: 0.75; margin: 12px 0 10px; }
.pn-url { font-size: 13px; opacity: 0.7; margin-bottom: 16px; word-break: break-all; }
.pn-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 6px; font-size: 16px; text-align: left; }
.pn-row:hover { background: rgba(255, 255, 255, 0.12); }
.pn-row > svg, .pn-row > .i-li, .pn-row > .i-dz { width: 28px; height: 28px; flex: none; }
.pn-row > .i-li { font-size: 22px; display: grid; place-items: center; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.sw { aspect-ratio: 1; background: var(--s); border: 2px solid rgba(255, 255, 255, 0.2); }
.sw.on, .sw:hover { border-color: #fff; }
.pn-search { display: flex; height: 38px; margin-bottom: 18px; }
.pn-search input { flex: 1; min-width: 0; border: 2px solid #fff; border-right: 0; background: #fff; color: #000; font: inherit; font-size: 16px; padding: 0 10px; outline: none; border-radius: 0; -webkit-appearance: none; }
.pn-search button { width: 40px; background: #000; color: #fff; padding: 8px; border: 2px solid #fff; border-left: 0; }
.pn-results { display: flex; flex-direction: column; gap: 4px; }
.pn-res { display: flex; align-items: center; gap: 12px; padding: 6px; text-align: left; }
.pn-res:hover { background: rgba(255, 255, 255, 0.12); }
.pn-res img, .pn-res-ic { width: 44px; height: 44px; object-fit: cover; flex: none; }
.pn-res-ic { padding: 8px; background: rgba(255, 255, 255, 0.15); }
.pn-res b { display: block; font-weight: 400; font-size: 15px; }
.pn-res small { display: block; font-size: 12px; opacity: 0.7; }

/* user menu */
.menu { position: fixed; z-index: 96; background: #fff; color: #000; min-width: 190px; padding: 6px 0; border: 1px solid #c8c8c8; animation: fadeIn 0.12s both; }
.menu a, .menu button { display: block; width: 100%; padding: 9px 20px; font-size: 15px; text-align: left; }
.menu a:hover, .menu button:hover { background: #e5e5e5; }

/* ---------- lock ---------- */
.lock { position: fixed; inset: 0; z-index: 100; transition: transform 0.55s cubic-bezier(0.1, 0.9, 0.2, 1); touch-action: none; cursor: default; overflow: hidden; }
.lock.gone { transform: translateY(-100%) !important; pointer-events: none; }
.lock-bg { position: absolute; inset: 0; background: #0d0a1c; overflow: hidden; }
.lock-clock { position: absolute; left: 50px; bottom: 90px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.lock-time { font-size: 128px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.lock-date { font-size: 42px; font-weight: 300; margin-top: 4px; }
.lock-hint { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 14px; opacity: 0; animation: hint 0.6s 1.8s both; }
@keyframes hint { to { opacity: 0.8; } }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 110; transform: translate(-50%, 10px); background: #000; padding: 10px 18px; font-size: 14px; opacity: 0; transition: 0.2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- short screens: shrink tiles ---------- */
@media (min-width: 721px) and (max-height: 760px) {
  :root { --cell: 58px; --gap: 8px; }
  .st-head, .aa-head, .app-head { height: 110px; }
  .app-scroll { top: 110px; }
  .st-title, .app-title, .aa-head h1 { font-size: 46px; }
  .mini-tiles { grid-template-rows: repeat(3, 124px); grid-auto-columns: 124px; }
  .hero img { height: calc(100vh - 170px); }
  /* smaller tiles: stat numbers and their line shrink so the line never gets cut */
  .tile .f-sb { padding-bottom: 30px; }
  .tile .f-sb b { font-size: 34px; }
  .tile.t-l .f-sb b { font-size: 60px; }
  .tile.t-m .f-sb b { font-size: 26px; }
  .tile .f-sb span { font-size: 13px; }
  .tile.t-l .f-sb span { font-size: 16px; }
  .tile.t-m .f-block span { font-size: 12.5px; -webkit-line-clamp: 5; }
  .tile.t-m .f-block { padding: 10px 10px 28px; }
}

/* ---------- phone: Windows Phone style ---------- */
@media (max-width: 720px) {
  :root { --gap: 8px; --cell: calc((100vw - 24px - 3 * 8px) / 4); }
  body { overflow: auto; overflow-x: hidden; }
  .start { height: auto; min-height: 100dvh; }
  .st-head { height: auto; padding: calc(18px + env(safe-area-inset-top)) 12px 14px 14px; }
  .st-title { font-size: 40px; }
  .st-name span { font-size: 18px; }
  .st-avatar { width: 34px; height: 34px; font-size: 18px; }
  .st-icon { width: 28px; height: 28px; }
  .st-user { gap: 12px; }
  .st-scroll { overflow: visible; }
  .st-groups { flex-direction: column; align-items: stretch; gap: 22px; padding: 0 12px 90px; width: auto; }
  .grp-name { font-size: 17px; margin-bottom: 10px; height: auto; }
  .grp-cols { flex-direction: column; align-items: stretch; }
  .col { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .start.enter .col { animation-name: tileUp; }
  @keyframes tileUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .st-allapps { position: static; display: block; width: 44px; height: 44px; opacity: 0.85; margin: -60px 0 calc(28px + env(safe-area-inset-bottom)) auto; margin-right: 14px; }
  .t-l { grid-row: span 3; }
  .allapps .st-allapps { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; background: rgba(0, 0, 0, 0.35); border-radius: 50%; }
  .t-label { font-size: 12px; left: 8px; bottom: 5px; }
  .f-text { font-size: 13px; padding: 10px 10px 26px; }
  .t-m .f-text { font-size: 11px; -webkit-line-clamp: 5; }
  .t-l .f-text { font-size: 16px; }
  .f-sub, .f-wd { font-size: 12px; }
  .f-quote p { font-size: 13px; }
  .f-split span { font-size: 14px; }
  .f-me { padding: 0 10px 26px; }
  .f-hello { padding: 14px 14px 30px; gap: 8px; }
  .f-hey { font-size: min(8cqw, 11cqh); }
  .f-welcome { font-size: 4.8cqw; }
  .f-site-h, .t-l .f-site-h { font-size: 24px; }
  .t-l .f-site .f-sub { font-size: 13px; }
  .f-block { padding: 10px 10px 26px; }
  .f-block span { font-size: 17px; }
  .t-m .f-block span { font-size: 13px; }
  .t-l .f-block span { font-size: clamp(20px, 9cqw, 24px); }
  .f-site { padding: 10px 10px 26px; }
  .f-wx { padding: 8px 10px; }
  .f-wx-t { font-size: 12px; }
  .f-wx-s { font-size: 10.5px; }
  .np { flex-direction: column; gap: 22px; }
  .np-art { width: 100%; }
  .np-info { width: 100%; }
  .np-title { font-size: 30px; }

  .allapps { height: auto; min-height: 100dvh; }
  .aa-head { height: auto; padding: calc(18px + env(safe-area-inset-top)) 14px 14px; }
  .aa-head h1 { font-size: 40px; }
  .aa-scroll { overflow: visible; padding: 0 14px 90px; }
  .aa-list { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; height: auto; }

  .app { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .app-head { position: static; height: auto; gap: 14px; padding: calc(16px + env(safe-area-inset-top)) 14px 16px; }
  .app-back { width: 34px; height: 34px; }
  .app-title { font-size: 36px; }
  .app-scroll { position: static; overflow: visible; }
  .hub { flex-direction: column; gap: 34px; padding: 0 14px calc(40px + env(safe-area-inset-bottom)); width: auto; height: auto; }
  .sec { width: 100%; }
  .hero img { width: 100%; height: auto; max-width: none; max-height: none; }
  .sec-text { width: auto; }
  .p-title { font-size: 26px; }
  .mini-tiles { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100vw - 28px - 8px) / 2); gap: 8px; }
  .about-hero { width: auto; flex-direction: column; gap: 18px; }
  .about-av { width: 96px; height: 96px; font-size: 48px; }
  .facts { width: auto; }
  .qa { grid-template-columns: 1fr; }
  .svc-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; }
  .svc img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .rev-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; gap: 30px; }
  .rev blockquote { font-size: 21px; }
  .ph-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100vw - 28px - 10px) / 2 * 0.72); grid-auto-columns: auto; }

  .pane { width: 100%; border-left: 0; }
  .pn-head { padding-top: calc(24px + env(safe-area-inset-top)); }
  .charms { width: 78px; }
  .clock { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 12px 18px; }
  .ck-time { font-size: 56px; }
  .ck-date { font-size: 18px; }
  .lock-clock { left: 24px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .lock-time { font-size: 84px; }
  .lock-date { font-size: 26px; }
  .vw-nav { width: 44px; height: 64px; margin-top: -32px; padding: 12px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- fun pass: currently, DC time, text, sports, kern, recycle ---------- */
.f-now { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 16px 34px; width: 100%; gap: 2px; }
.f-now-k { font-size: 13px; opacity: 0.85; }
.f-now-v { font-size: 22px; font-weight: 300; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.f-dc { display: flex; flex-direction: column; padding: 10px 12px 10px 14px; width: 100%; }
.f-dc-time { font-size: 26cqh; font-weight: 300; line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; }
.f-dc-time small { font-size: 0.42em; margin-left: 3px; }
.f-dc-where { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.f-dc-line { font-size: 13px; margin-top: 6px; line-height: 1.25; }

.f-msg { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 10px 12px 26px; width: 100%; }
.f-bub { position: relative; background: #fff; color: #222; font-size: 14px; line-height: 1.3; padding: 7px 10px; max-width: 100%; }
.f-bub::after { content: ""; position: absolute; left: 10px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; border-left: 0; }
.f-msg-from { font-size: 11px; opacity: 0.8; margin-top: 4px; }

.f-team { display: flex; flex-direction: column; padding: 10px 14px 10px; width: 100%; }
.f-tm-ic { width: 34px; height: 34px; display: grid; }
.f-team > .f-tm-name { font-size: 18px; margin-top: auto; }
.f-tm-top { display: flex; align-items: center; gap: 8px; }
.f-tm-logo { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)); }
.f-tm-top .f-tm-name { font-size: 15px; font-weight: 600; }
.f-tm-rec { margin-left: auto; font-size: 13px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.f-tm-big { font-size: 30px; font-weight: 300; line-height: 1; margin-top: auto; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.f-tm-sub, .f-tm-next { font-size: 12px; opacity: 0.9; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-tm-next { opacity: 1; font-weight: 600; }
.f-tm-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.f-kern { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px 30px; width: 100%; gap: 8px; }
.f-kern-w { font-size: 44px; font-weight: 600; line-height: 1; white-space: nowrap; }
.f-kern-w i { font-style: normal; display: inline-block; transition: margin 0.6s cubic-bezier(0.1, 0.9, 0.2, 1); }
.f-kern-w i:nth-child(2) { margin-left: 0.22em; }
.f-kern-w i:nth-child(3) { margin-left: -0.05em; }
.f-kern-w i:nth-child(4) { margin-left: 0.3em; }
.f-kern-w i:nth-child(6) { margin-left: 0.18em; }
.f-kern-w i:nth-child(7) { margin-left: -0.04em; }
.tile[data-id="kern"]:hover .f-kern-w i { margin-left: 0; }
.f-kern-s { font-size: 13px; opacity: 0.8; }

.f-bin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; padding-bottom: 18px; }
.f-bin svg { width: 30cqh; height: 30cqh; }
.f-bin span { font-size: 12px; opacity: 0.85; }

/* Text Mo */
.chat { width: 460px; display: flex; flex-direction: column; gap: 18px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 300px); overflow-y: auto; padding-bottom: 6px; }
.msg { max-width: 82%; padding: 9px 13px; font-size: 16px; line-height: 1.4; animation: msgIn 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) both; user-select: text; -webkit-user-select: text; }
.msg.mo { align-self: flex-start; background: #fff; color: #222; }
.msg.you { align-self: flex-end; background: var(--c); color: #fff; }
.msg.cta { background: none; padding: 2px 0 0; color: #fff; }
.msg.cta .w8-btn { --c: #8C0095; }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #888; animation: blink 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes msgIn { from { transform: translateY(8px); opacity: 0; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.chip { height: 36px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, 0.8); font-size: 15px; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }

/* Sports */
.teams { display: flex; gap: 20px; }
.team { width: 330px; background: var(--c); padding: 22px 22px 24px; }
.team-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.team-top img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)); }
.team-top h3 { font-size: 22px; font-weight: 400; }
.team-top p { font-size: 15px; opacity: 0.85; margin-top: 2px; }
.team-big { font-size: 54px; font-weight: 300; line-height: 1; display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.team-big .f-tm-dot { width: 13px; height: 13px; }
.team-sub { font-size: 15px; opacity: 0.9; margin-top: 6px; }
.team-next { font-size: 17px; font-weight: 600; margin-top: 18px; }
.team .w8-btn { background: transparent; border-color: rgba(255, 255, 255, 0.85); }
.forever { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 300px; height: 230px; padding: 20px; background: #860038; }
.forever-ic { width: 46px; height: 46px; display: grid; margin-bottom: auto; }
.forever b { font-size: 24px; font-weight: 300; }
.forever small { font-size: 14px; line-height: 1.4; opacity: 0.88; }

/* Recycle Bin */
.rb-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.rb-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font-size: 14px; background: rgba(255, 255, 255, 0.08); }
.rb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.rb-btn svg { width: 18px; height: 18px; }
.rb-btn.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.rb-grid { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 230px; gap: 22px 20px; }
.rb-file { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rb-thumb { display: block; padding: 0; width: 230px; height: 150px; background: #fff; overflow: hidden; margin-bottom: 6px; }
.rb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: grayscale(0.35); transition: filter 0.3s, transform 0.3s; }
@media (hover: hover) { .rb-thumb:hover img { filter: none; transform: scale(1.03); } }
.rb-file b { font-weight: 600; font-size: 14px; word-break: break-all; }
.rb-file small { opacity: 0.7; line-height: 1.35; }
.rb-file a { align-self: flex-start; margin-top: 4px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.rb-status { margin-top: 20px; font-size: 13px; opacity: 0.6; }
.notepad { width: 360px; background: #fff; color: #111; }
.np-bar { font-size: 12px; padding: 7px 10px; background: #f0f0f0; color: #444; border-bottom: 1px solid #ddd; }
.notepad p { font-family: Consolas, "Lucida Console", Menlo, monospace; font-size: 14px; line-height: 1.6; padding: 14px 16px 26px; user-select: text; -webkit-user-select: text; }

/* Kern me */
.kg { width: min(760px, calc(100vw - 240px)); }
.kg-top { display: flex; justify-content: space-between; font-size: 15px; opacity: 0.75; margin-bottom: 30px; }
.kg-stage { position: relative; height: 1.25em; margin: 0 auto; font-size: clamp(64px, 11vw, 140px); font-weight: 600; line-height: 1.2; touch-action: none; }
.kg-l { position: absolute; top: 0; white-space: pre; line-height: 1.2; }
.kg-l.drag { cursor: ew-resize; }
.kg-l.drag:hover, .kg-l.on { color: #c9a8ff; }
.kg-ghost { color: transparent; -webkit-text-stroke: 1.5px #c9a8ff; pointer-events: none; }
.kg-final { display: block; text-align: center; font-weight: 300; }
.kg-final small { font-size: 0.3em; opacity: 0.7; }
.kg-hint { font-size: 14px; opacity: 0.7; margin-top: 34px; text-align: center; }
.kg-act { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.kg-act .w8-btn { --c: #6A00FF; }
.kg-res { font-size: 17px; min-height: 26px; text-align: center; }
.kg-res b { font-size: 26px; font-weight: 600; margin-right: 6px; }

@media (max-width: 720px) {
  .f-now { padding: 10px 10px 26px; }
  .f-now-k { font-size: 11px; }
  .f-now-v { font-size: 17px; }
  .f-dc { padding: 8px 10px; }
  .f-dc-where { font-size: 10.5px; }
  .f-dc-line { font-size: 11px; margin-top: 3px; }
  .f-msg { padding: 8px 8px 22px; }
  .f-bub { font-size: 12px; padding: 6px 8px; }
  .f-team { padding: 8px 10px; }
  .f-tm-big { font-size: 24px; }
  .f-tm-sub, .f-tm-next { font-size: 11px; }
  .f-kern-w { font-size: 34px; }
  .f-kern-s { font-size: 11px; }
  .chat { width: 100%; }
  .chat-log { max-height: none; }
  .teams { flex-direction: column; }
  .team, .forever { width: 100%; }
  .rb-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 18px 10px; }
  .rb-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .rb-bar { flex-wrap: wrap; }
  .notepad { width: 100%; }
  .kg { width: 100%; }
  .kg-stage { font-size: 17vw; }
}
.hero img.wide { width: max(50vw, calc(100vw - 680px)); height: auto; max-height: min(calc(100vh - 210px), 640px); object-fit: contain; }
@media (max-width: 720px) { .hero img.wide { width: 100%; max-height: none; } }

/* Off the clock */
.f-now-ic { width: 26px; height: 26px; display: grid; margin-bottom: auto; }
.f-now-ic svg { width: 100%; height: 100%; }
.life { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 40px 50px; }
.life-card { display: flex; flex-direction: column; align-items: flex-start; }
.life-ic { width: 44px; height: 44px; display: grid; margin-bottom: 18px; color: #F472D0; }
.life-card h3 { font-size: 26px; font-weight: 300; margin-bottom: 6px; }
.life-card p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.life-card .w8-btn { margin-top: 16px; --c: #D80073; }
@media (max-width: 720px) {
  .f-now-ic { width: 20px; height: 20px; }
  .life { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; gap: 30px; }
}

/* By the numbers */
.f-st { display: flex; flex-direction: column; justify-content: center; padding: 10px 16px 30px; width: 100%; gap: 4px; }
.f-st-n { font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -0.5px; }
.f-st-t { font-size: 14px; opacity: 0.9; }
.f-st-names { font-size: 20px; font-weight: 300; line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(2, 230px); gap: 34px 40px; }
.stat b { display: block; font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -1px; }
.stat span { display: block; font-size: 15px; margin-top: 8px; color: rgba(255, 255, 255, 0.8); }
.raised { display: flex; flex-direction: column; gap: 14px; width: 420px; }
.rz { background: #00A300; padding: 20px 22px; }
.rz-top { display: flex; align-items: baseline; gap: 12px; }
.rz-top b { font-size: 44px; font-weight: 300; line-height: 1; }
.rz-top span { font-size: 20px; }
.rz p { font-size: 15px; line-height: 1.5; margin: 10px 0 8px; }
.rz a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.rz-note { font-size: 13px; opacity: 0.6; margin-top: 14px; width: 420px; line-height: 1.5; }
@media (max-width: 720px) {
  .f-st { padding: 8px 10px 24px; }
  .f-st-n { font-size: 34px; }
  .f-st-t { font-size: 12px; }
  .f-st-names { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .stat b { font-size: 40px; }
  .raised, .rz-note { width: 100%; }
}

/* lock: wall of work */
.lock-wall { position: absolute; left: 50%; top: 50%; width: 175vmax; height: 175vmax; display: flex; gap: 22px; transform: translate(-50%, -50%) rotate(-14deg); }
.lw-col { flex: 1; display: flex; flex-direction: column; gap: 22px; animation: lwUp var(--d) linear infinite; animation-direction: var(--dir); }
.lw-col img { width: 100%; aspect-ratio: 1.4; object-fit: cover; object-position: top; border-radius: 10px; display: block; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
@keyframes lwUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }
.lock.gone .lw-col { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .lw-col { animation: none; } }
.lock-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 10, 28, 0.92) 0%, rgba(13, 10, 28, 0.72) 38%, rgba(13, 10, 28, 0.25) 75%), linear-gradient(0deg, rgba(13, 10, 28, 0.85) 0%, rgba(13, 10, 28, 0) 55%); }
.lock-badges { display: flex; gap: 34px; margin-top: 26px; }
.lock-badges span { display: flex; flex-direction: column; font-size: 14px; opacity: 0.85; }
.lock-badges b { font-size: 34px; font-weight: 300; line-height: 1.1; opacity: 1; }

/* covers that lead with a number */
.f-sb { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; }
.f-sb b { font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -0.5px; }
.f-sb span { font-size: 15px; font-weight: 400; opacity: 0.9; }
.t-l .f-sb b { font-size: 76px; }
.t-l .f-sb span { font-size: 18px; }
.t-m .f-sb b { font-size: 34px; }
.t-m .f-sb span { font-size: 12px; }
.p-stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.p-stat b { font-size: 52px; font-weight: 300; line-height: 1; color: #fff; }
.p-stat span { font-size: 16px; opacity: 0.8; }

/* big numbers tile */
.f-dash { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px 36px; width: 100%; }
.f-dash-n { font-size: 30cqw; font-weight: 300; line-height: 0.95; letter-spacing: -2px; }
.f-dash-t { font-size: 16px; margin-top: 6px; opacity: 0.95; }
.f-dash-row { display: flex; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.f-dash-row span { flex: 1; font-size: 11.5px; line-height: 1.25; opacity: 0.9; }
.f-dash-row b { display: block; font-size: 22px; font-weight: 300; opacity: 1; }
.f-dash-n { margin-top: auto; }
.f-dash-row { margin-top: 18px; }
.f-backers { gap: 2px; }
.f-backers .f-dash-t { margin: 0 0 10px; }
.f-bk { font-size: 34px; font-weight: 300; line-height: 1.15; }

@media (max-width: 720px) {
  .lock-wall { gap: 12px; }
  .lw-col { gap: 12px; }
  .lock-shade { background: linear-gradient(0deg, rgba(13, 10, 28, 0.97) 0%, rgba(13, 10, 28, 0.9) 42%, rgba(13, 10, 28, 0.35) 75%, rgba(13, 10, 28, 0.2) 100%); }
  .lock-badges { gap: 20px; margin-top: 18px; }
  .lock-badges b { font-size: 24px; }
  .lock-badges span { font-size: 11px; max-width: 110px; }
  .f-sb b { font-size: 34px; }
  .t-l .f-sb b { font-size: 52px; }
  .t-m .f-sb b { font-size: 26px; }
  .f-dash-t { font-size: 14px; }
  .f-dash-row b { font-size: 18px; }
  .f-dash-row span { font-size: 10.5px; }
  .f-bk { font-size: 26px; }
  .p-stat b { font-size: 40px; }
}

/* ---------- MoAmp (90s desktop player) ---------- */
.amp { --amp-lcd: #00e400; margin: 4px 0 18px; width: 100%; max-width: 460px; padding: 3px 4px 6px; background: linear-gradient(180deg, #3b3b52 0%, #26263a 100%); border: 1px solid #0d0d16; box-shadow: inset 1px 1px 0 #5c5c7a, inset -1px -1px 0 #12121c, 0 18px 40px rgba(0, 0, 0, 0.45); font-family: "VT323", ui-monospace, monospace; color: var(--amp-lcd); user-select: none; -webkit-user-select: none; }
.amp-bar { display: flex; align-items: center; gap: 8px; height: 16px; margin-bottom: 4px; }
.amp-bar i { flex: 1; height: 7px; background: repeating-linear-gradient(180deg, #c9a43a 0 1px, transparent 1px 3px); opacity: 0.85; }
.amp-bar span { font-size: 15px; letter-spacing: 3px; color: #e8d9a8; line-height: 1; }
.amp-main { display: flex; gap: 5px; }
.amp-lcd { flex: none; width: 168px; padding: 5px 7px 6px; background: #000; border: 1px solid #0a0a10; box-shadow: inset 1px 1px 0 #1b1b25; }
.amp-row { display: flex; align-items: center; gap: 8px; height: 34px; }
.amp-st { width: 12px; height: 12px; flex: none; }
.amp-st[data-s="play"] { background: var(--amp-lcd); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.amp-st[data-s="pause"] { background: linear-gradient(90deg, #c9c900 0 35%, transparent 35% 65%, #c9c900 65%); }
.amp-st[data-s="stop"] { background: #8a1f1f; }
.amp-time { font: inherit; font-size: 42px; line-height: 1; color: var(--amp-lcd); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: 2px; text-shadow: 0 0 6px rgba(0, 228, 0, 0.45); }
.amp-viz { display: block; width: 152px; height: 36px; image-rendering: pixelated; margin-top: 2px; }
.amp-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.amp-marq { background: #000; border: 1px solid #0a0a10; height: 26px; overflow: hidden; white-space: nowrap; font-size: 20px; line-height: 26px; padding: 0 6px; }
.amp-marq span { display: inline-block; animation: ampMarq 16s linear infinite; }
@keyframes ampMarq { to { transform: translateX(-50%); } }
.amp-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 17px; color: #9fb7c9; padding: 2px 2px 0; }
.amp-meta b { font-weight: 400; color: var(--amp-lcd); background: #000; padding: 0 4px; margin-right: 3px; }
.amp-led { color: #3d4b55; }
.amp-led.on { color: var(--amp-lcd); }
.amp-seek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; margin: 7px 0 6px; background: #12121c; border: 1px solid #0a0a10; box-shadow: inset 1px 1px 0 #000; cursor: pointer; }
.amp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 10px; background: linear-gradient(180deg, #e0d7b0, #9d915f); border: 1px solid #3d3724; }
.amp-seek::-moz-range-thumb { width: 28px; height: 10px; border-radius: 0; background: linear-gradient(180deg, #e0d7b0, #9d915f); border: 1px solid #3d3724; }
.amp-ctl { display: flex; align-items: center; gap: 2px; }
.amp-b { display: grid; place-items: center; width: 36px; height: 28px; padding: 0; background: linear-gradient(180deg, #8e8ea6, #5b5b73); border: 1px solid #10101a; box-shadow: inset 1px 1px 0 #c3c3d6, inset -1px -1px 0 #3a3a4d; color: #15151f; cursor: pointer; }
.amp-b svg { width: 13px; height: 13px; fill: currentColor; }
.amp-b:active { background: linear-gradient(180deg, #5b5b73, #7a7a92); box-shadow: inset 1px 1px 0 #3a3a4d; }
.amp-b:focus-visible { outline: 1px solid var(--amp-lcd); outline-offset: 1px; }
.amp-ej { margin-left: 8px; width: 30px; }
.amp-tag { margin-left: auto; font-size: 16px; color: #8d8da8; letter-spacing: 1px; }
.amp.on .amp-tag { color: #c9a43a; }
.np-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.np-embed { min-height: 152px; border-radius: 12px; background: #282828; margin-bottom: 4px; }
@media (max-width: 720px) {
  .amp { max-width: none; }
  .amp-lcd { width: 150px; padding: 4px 5px; }
  .amp-time { font-size: 36px; }
  .amp-viz { width: 138px; height: 33px; }
  .amp-meta { font-size: 15px; gap: 2px 7px; }
  .amp-b { width: 32px; }
  .amp-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .amp-marq span { animation: none; } }

/* ---------- boot screen ---------- */
.boot { position: fixed; inset: 0; z-index: 105; background: #000; cursor: default; }
.boot-logo { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 96px; height: 96px; display: grid; place-items: center; background: #2D89EF; color: #fff; font-size: 60px; font-weight: 300; line-height: 1; opacity: 0; }
.boot-dots { position: absolute; left: 50%; top: 72%; width: 46px; height: 46px; margin-left: -23px; opacity: 0; }
.boot.in .boot-logo { animation: bootIn 0.5s 0.25s both; }
.boot.in .boot-dots { animation: bootIn 0.3s 0.7s both; }
.boot-dots i { position: absolute; inset: 0; opacity: 0; }
.boot.in .boot-dots i { animation: bootOrbit 5.5s 0.7s infinite; }
.boot-dots i::after { content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; }
.boot.in .boot-dots i:nth-child(2) { animation-delay: 0.94s; }
.boot.in .boot-dots i:nth-child(3) { animation-delay: 1.18s; }
.boot.in .boot-dots i:nth-child(4) { animation-delay: 1.42s; }
.boot.in .boot-dots i:nth-child(5) { animation-delay: 1.66s; }
@keyframes bootOrbit {
  0% { transform: rotate(225deg); opacity: 1; animation-timing-function: ease-out; }
  7% { transform: rotate(345deg); animation-timing-function: linear; }
  30% { transform: rotate(455deg); animation-timing-function: ease-in-out; }
  39% { transform: rotate(690deg); animation-timing-function: linear; }
  70% { transform: rotate(815deg); opacity: 1; animation-timing-function: ease-out; }
  75% { transform: rotate(945deg); animation-timing-function: ease-out; }
  76%, 100% { transform: rotate(945deg); opacity: 0; }
}
.boot.out { transition: opacity 0.45s; opacity: 0; pointer-events: none; }
@keyframes bootIn { to { opacity: 1; } }

/* ---------- website tiles: a small browser window with the live site ---------- */
.f-web { position: absolute; inset: 0; padding: 10px 10px 30px; }
.t-s .f-web, .t-m .f-web { padding: 6px 6px 26px; }
.f-web-win { height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); overflow: hidden; }
.f-web-bar { flex: none; display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; background: #f1f1f1; border-bottom: 1px solid #d6d6d6; color: #333; font-size: 11px; line-height: 1; white-space: nowrap; }
.f-web-bar svg { width: 10px; height: 10px; flex: none; stroke: #2a8a3e; stroke-width: 1.6; fill: none; }
.f-web-bar svg rect { fill: #2a8a3e; stroke: none; }
.f-web-bar span { overflow: hidden; text-overflow: ellipsis; line-height: 1.35; padding-bottom: 1px; }
.f-web-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.f-web-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: webPan 10s ease-in-out infinite alternate; }
@keyframes webPan { to { object-position: 50% 100%; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .f-web-shot img { animation: none; } }

/* work: number tiles */
.f-bkw { justify-content: flex-end; padding-bottom: 34px; }
.f-bk-line { font-size: 24px; font-weight: 300; line-height: 1.2; }
/* project previews that aren't live sites: the work itself, tagged with what it is */
.f-app { position: relative; width: 100%; height: 100%; overflow: hidden; }
.f-app .f-img { animation: appDrift 12s ease-in-out infinite alternate; }
@keyframes appDrift { to { transform: scale(1.08); } }
.f-app-tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px 5px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .f-app .f-img { animation: none; } }
@media (max-width: 720px) { .f-bk-line { font-size: 19px; } .f-bkw { padding-bottom: 28px; } }
.f-app::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); pointer-events: none; }

/* Mo's photo: account picture, About, and the Welcome tile's second face */
.st-avatar, .about-av { overflow: hidden; }
.st-avatar img, .about-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-mo { position: absolute; inset: 0; }
.f-mo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }

/* project slide gallery (MiShMaSh deck, numbers blurred) */
.deck-grid { --h: calc((100vh - 140px - 50px - 48px - 60px) / 3); display: grid; grid-template-rows: repeat(3, var(--h)); grid-auto-flow: column; grid-auto-columns: calc(var(--h) * 16 / 9); gap: 10px; }
.deck-sl { display: block; padding: 0; overflow: hidden; background: #000; }
.deck-sl img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
@media (hover: hover) { .deck-sl:hover img { transform: scale(1.03); } }
.deck-note { margin-top: 12px; font-size: 13px; opacity: 0.75; max-width: 520px; }
@media (max-width: 720px) {
  .deck-grid { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-rows: auto; grid-auto-columns: auto; }
  .deck-sl img { height: auto; aspect-ratio: 16 / 9; }
}
