/*
 * The display's faces, drawn as the design's mockups draw them (design/mockups/*.html), on the
 * app's 1280×800 reference canvas. A .screen is any size at 16:10; site.js sets --k to its width
 * over 1280, and the face inside is scaled by it, so every number here is a mockup dp.
 */
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-radius: calc(26px * var(--k, 1)); isolation: isolate; }
.screen.portrait { aspect-ratio: 10 / 16; }
.face {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px; overflow: hidden;
  transform-origin: 0 0; transform: scale(var(--k, 1));
  color: #fff; background: #000;
  font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.3; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-align: left;
}
.portrait > .face { width: 800px; height: 1280px; }

.face .slides, .face .slide { position: absolute; inset: 0; }
/* Hidden slides leave the render entirely, and only a face on screen moves its photo. */
.face .slide { opacity: 0; visibility: hidden; transition: opacity 2.4s ease, visibility 0s 2.4s; overflow: hidden; }
.face .slide.on { opacity: 1; visibility: visible; transition: opacity 2.4s ease, visibility 0s; }
.face .slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transform-origin: 60% 50%; }
.face.live .slide img { animation: kenburns 40s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }

.face .vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .32)); }
.face .clock { font-family: Outfit, Inter, system-ui, sans-serif; font-weight: 200; letter-spacing: -.025em; line-height: .9; font-variant-numeric: tabular-nums; }
.face .shadow { text-shadow: 0 2px 28px rgba(0, 0, 0, .32), 0 1px 3px rgba(0, 0, 0, .35); }
.face .icon { display: inline-block; width: 24px; height: 24px; flex: none; }
.face .icon svg { width: 100%; height: 100%; display: block; }
.face .shadow .icon svg { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.face .glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .16);
}
.face .credit { position: absolute; top: 10px; left: 35px; font-size: 12px; letter-spacing: .02em; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.face .battery { position: absolute; top: 10px; right: 35px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.face .battery i { position: relative; width: 20px; height: 11px; border: 1.2px solid currentColor; border-radius: 2.5px; }
.face .battery i::before { content: ""; position: absolute; left: 1.2px; top: 1.2px; bottom: 1.2px; width: calc((100% - 2.4px) * .82); background: currentColor; border-radius: 1px; }
.face .battery i::after { content: ""; position: absolute; right: -3.2px; top: 2.3px; width: 1.5px; height: 4px; background: currentColor; border-radius: 1px; }
.face .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.face .pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 11px 20px 11px 16px; border-radius: 999px; font-size: 19px; text-shadow: none; }
.face .pill .icon { width: 26px; height: 26px; }
.face .pill b { font-weight: 600; }
.face .lo { opacity: .75; }
.face .wd { font-size: 19px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.face .md { font: 300 44px/1.1 Outfit, system-ui, sans-serif; margin-top: 6px; }
.face [data-dial] { position: absolute; }

/* A · Classic Hub */
.f-a .scrim { position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(to top, rgba(0,0,0,.52), rgba(0,0,0,.16) 55%, transparent); }
.f-a .time { position: absolute; left: 64px; bottom: 58px; }
.f-a .time .clock { font-size: 188px; }
.f-a .date { font-size: 30px; margin-top: 14px; opacity: .94; }
.f-a .wx, .f-h .wx { position: absolute; right: 64px; bottom: 64px; text-align: right; }
.f-a .now, .f-h .now { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.f-a .now .icon, .f-h .now .icon { width: 68px; height: 68px; }
.f-a .temp, .f-h .temp { font: 200 96px/1 Outfit, system-ui, sans-serif; letter-spacing: -.02em; }
.f-a .cond, .f-h .cond { font-size: 22px; opacity: .92; margin-top: 6px; }

/* B · Centered Hero */
.f-b .scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(0,0,0,.36), transparent 78%); }
.f-b .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.f-b .date { font-size: 22px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.f-b .clock { font-size: 310px; font-weight: 100; line-height: .86; margin: 10px 0 30px; }
.f-b .strip { display: flex; align-items: center; gap: 28px; font-size: 23px; }
.f-b .strip .icon { width: 36px; height: 36px; }
.f-b .seg { display: flex; align-items: center; gap: 12px; }
.f-b .bar { width: 1px; height: 30px; background: rgba(255,255,255,.4); }
.f-b .big { font: 300 40px/1 Outfit, system-ui, sans-serif; }
.f-b .credit { top: auto; left: 50%; transform: translateX(-50%); bottom: 20px; }

/* C · Glass Panel */
.f-c .panel {
  position: absolute; top: 24px; right: 24px; bottom: 24px; width: 420px; border-radius: 28px; padding: 40px 36px 30px;
  background: rgba(16,18,24,.36); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column;
}
.f-c .clock { font-size: 132px; }
.f-c .date { font-size: 21px; margin-top: 10px; opacity: .9; }
.f-c hr { border: 0; height: 1px; background: rgba(255,255,255,.16); margin: 28px 0 24px; }
.f-c .now { display: flex; align-items: center; gap: 18px; }
.f-c .now .icon { width: 64px; height: 64px; }
.f-c .temp { font: 200 80px/1 Outfit, system-ui, sans-serif; }
.f-c .meta { font-size: 16px; line-height: 1.45; opacity: .9; }
.f-c .meta b { font-size: 19px; font-weight: 500; display: block; }
.f-c .label { font-size: 13px; font-weight: 600; opacity: .62; margin: 26px 0 12px; }
.f-c .parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.f-c .part { padding: 12px 0 10px; border-radius: 16px; background: rgba(255,255,255,.07); }
.f-c .part .t { font-size: 13px; opacity: .72; }
.f-c .part .icon { width: 32px; height: 32px; margin: 8px 0 6px; }
.f-c .part .v { font: 400 22px/1 Outfit, system-ui, sans-serif; }
.f-c .p, .f-e .p { font-size: 12px; margin-top: 6px; color: #9fd0ff; display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 16px; }
.f-c .p .icon, .f-e .p .icon { width: 12px; height: 12px; margin: 0; }
.f-c .summary { font-size: 16px; line-height: 1.5; opacity: .9; margin-top: 18px; }
.f-c .summary b { font-weight: 600; }
.f-c .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; opacity: .7; }
.f-c .foot span { display: inline-flex; align-items: center; gap: 6px; }
.f-c .foot .icon { width: 16px; height: 16px; }
.f-c .credit { top: auto; left: 28px; bottom: 22px; }

/* D · Day Timeline and E · Week Ahead share the top half */
.f-d .scrim-t, .f-e .scrim-t { position: absolute; inset: 0 0 auto 0; height: 45%; background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent); }
.f-d .scrim-b, .f-e .scrim-b { position: absolute; inset: auto 0 0 0; height: 44%; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.28) 60%, transparent); }
.f-d .time, .f-e .time { position: absolute; left: 64px; top: 52px; }
.f-d .time .clock, .f-e .time .clock { font-size: 152px; }
.f-d .date, .f-e .date { font-size: 26px; margin-top: 10px; opacity: .94; }
.f-d .now, .f-e .now { position: absolute; right: 64px; top: 62px; text-align: right; }
.f-d .row, .f-e .row { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.f-d .row .icon, .f-e .row .icon { width: 60px; height: 60px; }
.f-d .temp, .f-e .temp { font: 200 88px/1 Outfit, system-ui, sans-serif; }
.f-d .cond, .f-e .cond { font-size: 20px; opacity: .92; margin-top: 6px; }
.f-d .sum { font-size: 17px; opacity: .78; margin-top: 4px; }
.f-d .chart { position: absolute; left: 64px; right: 64px; bottom: 26px; height: 210px; }
.f-d .chart svg { width: 100%; height: 100%; overflow: visible; }
.f-d .chart text { fill: #fff; font: 15px Inter, system-ui, sans-serif; }
.f-d .chart .hour { opacity: .7; font-size: 14px; }
.f-d .chart .t { font: 400 22px Outfit, system-ui, sans-serif; }
.f-d .chart .pct { fill: #9fd0ff; font-size: 12px; }
.f-e .days { position: absolute; left: 64px; right: 64px; bottom: 52px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.f-e .day { border-radius: 22px; padding: 18px 10px 16px; text-align: center; }
.f-e .day.today { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.34); }
.f-e .day .n { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.f-e .day > .icon { width: 44px; height: 44px; margin: 12px 0 8px; }
.f-e .hl { font: 400 26px/1 Outfit, system-ui, sans-serif; }
.f-e .hl small { font-size: 20px; opacity: .65; }

/* F · Weather First */
.f-f .scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,.18) 55%, transparent 75%), linear-gradient(to top, rgba(0,0,0,.4), transparent 40%); }
.f-f .hero { position: absolute; left: 64px; top: 112px; }
.f-f .hero .row { display: flex; align-items: flex-start; gap: 22px; }
.f-f .hero .row .icon { width: 120px; height: 120px; margin-top: 46px; }
.f-f .hero .temp { font: 100 300px/.86 Outfit, system-ui, sans-serif; letter-spacing: -.04em; }
.f-f .hero .cond { font-size: 36px; margin-top: 14px; }
.f-f .hero .detail { font-size: 21px; opacity: .85; margin-top: 8px; }
.f-f .hero .detail b { font-weight: 600; }
.f-f .clockbox { position: absolute; right: 64px; top: 52px; text-align: right; }
.f-f .clockbox .clock { font-size: 104px; }
.f-f .clockbox .date { font-size: 21px; opacity: .9; margin-top: 6px; }
.f-f .parts { position: absolute; left: 64px; bottom: 54px; display: flex; gap: 44px; }
.f-f .part { display: flex; align-items: center; gap: 12px; }
.f-f .part .icon { width: 34px; height: 34px; }
.f-f .part .t { font-size: 14px; opacity: .72; }
.f-f .part .v { font: 400 26px/1.1 Outfit, system-ui, sans-serif; }
.f-f .bar { width: 1px; background: rgba(255,255,255,.3); }
.f-f .battery { top: 10px; }

/* G · Dial Hero */
.f-g .scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 66% 62% at 50% 50%, rgba(0,0,0,.36), rgba(0,0,0,.12) 60%, transparent 82%); }
.f-g [data-dial] { left: 370px; top: 130px; width: 540px; height: 540px; }
.f-g .day { position: absolute; right: 950px; top: 400px; transform: translateY(-50%); text-align: right; white-space: nowrap; }
.f-g .wx { position: absolute; left: 950px; top: 400px; transform: translateY(-50%); white-space: nowrap; }
.f-g .now { display: flex; align-items: center; gap: 14px; }
.f-g .now .icon { width: 52px; height: 52px; }
.f-g .temp { font: 200 72px/1 Outfit, system-ui, sans-serif; letter-spacing: -.02em; }
.f-g .cond { font-size: 20px; opacity: .94; margin-top: 8px; }
.f-g .line { font-size: 16.5px; opacity: .8; margin-top: 4px; }

/* H · Corner Dial */
.f-h .scrim { position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(0,0,0,.54), rgba(0,0,0,.18) 55%, transparent); }
.f-h [data-dial] { left: 64px; bottom: 56px; width: 330px; height: 330px; }
.f-h .day { position: absolute; left: 428px; bottom: 74px; white-space: nowrap; }

/* I · Forecast Ring */
.f-i .scrim { position: absolute; inset: 0; background: radial-gradient(circle 330px at 916px 400px, rgba(0,0,0,.42), rgba(0,0,0,.2) 70%, transparent), linear-gradient(to right, rgba(0,0,0,.42), rgba(0,0,0,.12) 46%, transparent 62%); }
.f-i [data-dial] { left: 616px; top: 100px; width: 600px; height: 600px; }
.f-i .left { position: absolute; left: 64px; top: 400px; transform: translateY(-50%); white-space: nowrap; }
.f-i .now { display: flex; align-items: center; gap: 18px; margin-top: 54px; }
.f-i .now .icon { width: 72px; height: 72px; }
.f-i .temp { font: 200 120px/1 Outfit, system-ui, sans-serif; letter-spacing: -.02em; }
.f-i .cond { font-size: 24px; opacity: .94; margin-top: 8px; }

/* J · Daylight Dial */
.f-j .scrim { position: absolute; inset: 0; background: radial-gradient(circle 320px at 344px 400px, rgba(0,0,0,.4), rgba(0,0,0,.18) 70%, transparent), linear-gradient(to left, rgba(0,0,0,.44), rgba(0,0,0,.12) 46%, transparent 62%); }
.f-j [data-dial] { left: 64px; top: 120px; width: 560px; height: 560px; }
.f-j .right { position: absolute; left: 720px; top: 400px; transform: translateY(-50%); white-space: nowrap; }
.f-j .next { font: 300 56px/1.08 Outfit, system-ui, sans-serif; margin-top: 46px; letter-spacing: -.01em; }
.f-j .sun { display: flex; align-items: center; gap: 22px; margin-top: 14px; font-size: 20px; opacity: .92; }
.f-j .sun span { display: inline-flex; align-items: center; gap: 8px; }
.f-j .sun .icon { width: 26px; height: 26px; }
.f-j .len { font-size: 17px; opacity: .78; margin-top: 6px; }
.f-j .rule { height: 1px; background: rgba(255,255,255,.26); margin: 30px 0 26px; width: 420px; }
.f-j .now { display: flex; align-items: center; gap: 16px; }
.f-j .now .icon { width: 56px; height: 56px; }
.f-j .temp { font: 200 76px/1 Outfit, system-ui, sans-serif; }
.f-j .meta { font-size: 19px; line-height: 1.45; }
.f-j .meta span { display: block; font-size: 16.5px; opacity: .8; }

/* Portraits, on an 800×1280 canvas: A along the bottom, B's hours over its minutes, G stacked. */
.f-pa .scrim, .f-pb .scrim, .f-pg .scrim { position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.16) 60%, transparent); }
.f-pa .block { position: absolute; left: 56px; right: 56px; bottom: 72px; }
.f-pa .clock { font-size: 220px; }
.f-pa .date { font-size: 32px; margin-top: 16px; opacity: .94; }
.f-pa .wxrow { display: flex; align-items: center; gap: 18px; margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.3); }
.f-pa .wxrow .icon { width: 64px; height: 64px; }
.f-pa .temp { font: 200 92px/1 Outfit, system-ui, sans-serif; }
.f-pa .cond { font-size: 24px; line-height: 1.35; opacity: .92; margin-left: 8px; }
.f-pb .scrim, .f-pg .scrim { height: 100%; background: radial-gradient(ellipse 80% 55% at 50% 50%, rgba(0,0,0,.4), transparent 80%); }
.f-pb .center, .f-pg .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.f-pb .date { font-size: 26px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.f-pb .stack { display: flex; flex-direction: column; font: 100 400px/.8 Outfit, system-ui, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 40px 0 50px; }
.f-pb .line, .f-pg .line { font-size: 28px; opacity: .94; }
.f-pg .md { margin-bottom: 64px; }
.f-pg [data-dial] { position: relative; width: 600px; height: 600px; margin-bottom: 64px; }
.f-pg .line b { font: 200 64px/1 Outfit, system-ui, sans-serif; vertical-align: -10px; margin-right: 10px; }

/* The night face: no photo, warm low-energy text. */
.f-night { --night: #ff8a5c; color: var(--night); }
.f-night .wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.f-night .clock { font-size: 260px; font-weight: 100; opacity: .72; }
.f-night .row { display: flex; gap: 22px; align-items: center; margin-top: 26px; font-size: 22px; opacity: .5; }
.f-night .row .icon { width: 26px; height: 26px; }
.f-night .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.f-night .battery { color: var(--night); opacity: .42; text-shadow: none; }

/* The dock, over a dimmed face. */
.face .dim { position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.face .dock { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 999px; }
.face .dock .btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.face .dock .btn .icon { width: 26px; height: 26px; }
.face .dock .mic { width: 84px; height: 84px; background: #fff; color: #1b1d22; margin: 0 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.face .dock .mic .icon { width: 34px; height: 34px; }
.face .dock .sep { width: 1px; height: 32px; background: rgba(255,255,255,.22); margin: 0 4px; }
.face .compact { position: absolute; left: 64px; top: 52px; }
.face .compact .clock { font-size: 104px; }
.face .compact .date { font-size: 21px; opacity: .9; margin-top: 6px; }
.face .photo-card { position: absolute; left: 64px; bottom: 150px; width: 380px; padding: 18px 20px; border-radius: 20px; font-size: 15px; line-height: 1.5; }
.face .photo-card b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.face .photo-card span { opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .face.live .slide img { animation: none; }
  .face .slide { transition-duration: .01s; }
}
