:root{
  --ink:#17201A; --muted:#404941; --line:#E3EAE2; --outline:#717971;
  --primary:#2D6A47; --primary-ink:#FFFFFF; --pc:#B4F1C8; --pc-ink:#0A2E19;
  --tonal:#D1E8D6; --tonal-ink:#0C1F14; --surface:#F1F7F0; --card:#FFFFFF;
  --stage:#151A17;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none}
body{background:var(--stage);font-family:'Figtree',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
button{font:inherit;cursor:pointer}
a{color:var(--primary)}a:hover{color:#1B4D31}
:focus-visible{outline:2px solid #4C9A6B;outline-offset:2px}
.strong{font-weight:700}.big{font-size:18px}.muted{color:var(--muted);font-size:14px;line-height:1.45}.meta{font-size:12.5px;color:var(--muted)}
.center{text-align:center}

/* ---------- stage + device ---------- */
.stage{position:fixed;inset:0;overflow:hidden;padding:56px 24px 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px}
.device{position:relative;width:396px;height:842px;padding:5px;border-radius:58px;
  background:linear-gradient(150deg,#4A504C 0%,#232825 38%,#3A403C 62%,#1C201E 100%);
  box-shadow:0 60px 100px rgba(0,0,0,.55),0 20px 40px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.1)}
.btn-power,.btn-volume{position:absolute;right:-4px;width:5px;border-radius:0 3px 3px 0;background:linear-gradient(90deg,#2A2F2C,#565D58)}
.btn-power{top:196px;height:74px}.btn-volume{top:300px;height:118px}
.bezel{width:100%;height:100%;padding:9px;border-radius:53px;background:#030403}
.screen{width:100%;height:100%;border-radius:44px;overflow:hidden;position:relative;display:flex;flex-direction:column;background:var(--surface);color:var(--ink)}
.camera{position:absolute;top:13px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#0A0B0B;box-shadow:inset 0 0 0 3px #161818,inset 2px -2px 3px rgba(80,110,160,.35);z-index:6}
.caption{margin:0;font-size:14px;color:#8E9C92;text-align:center}

/* wallpaper (lock + home) */
.wallpaper{position:absolute;inset:0;overflow:hidden;z-index:0;background:#1F3A2B;display:none}
.screen[data-screen=lock] .wallpaper,.screen[data-screen=home] .wallpaper{display:block}
.screen[data-screen=lock],.screen[data-screen=home]{color:#fff}
.shape{position:absolute;display:block}
.s1{width:460px;height:460px;border-radius:50%;background:#2F6B4C;top:-120px;left:-170px}
.s2{width:380px;height:380px;border-radius:50%;background:#9ED7B2;bottom:-110px;right:-150px}
.s3{width:230px;height:120px;border-radius:60px;background:#F0C892;top:420px;left:-40px;transform:rotate(-24deg)}
.s4{width:120px;height:120px;border-radius:36px;background:#CFE7F1;top:250px;right:26px;transform:rotate(16deg)}

.statusbar{height:42px;flex:0 0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600;position:relative;z-index:5}
.status-icons{display:flex;gap:6px;align-items:center}

/* views */
.view{display:none;position:relative;z-index:1;flex:1 1 auto;min-height:0;flex-direction:column}
.screen[data-screen=lock] .view-lock,.screen[data-screen=home] .view-home{display:flex}
.screen.in-app .view-app{display:flex}
.view-home{animation:homeIn .3s cubic-bezier(.2,.8,.2,1)}
.view-app{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;animation:appOpen .28s cubic-bezier(.2,.8,.2,1)}
.view-app::-webkit-scrollbar{display:none}
@keyframes appOpen{from{transform:scale(.88);opacity:0}to{transform:none;opacity:1}}
@keyframes homeIn{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.view-home,.view-app{animation:none}}

/* ---------- lock ---------- */
.view-lock{align-items:center;color:#fff}
.clock{margin-top:40px;font-family:'Outfit',sans-serif;font-weight:300;font-size:128px;line-height:.9;text-align:center;letter-spacing:-2px;color:#F4FBF5}
.clock .mm{color:#D2F3DD}
.lock-date{margin-top:18px;font-size:16px;font-weight:600}
.notif{margin:34px 16px 0;align-self:stretch;padding:14px 16px;border-radius:24px;border:0;background:rgba(250,253,250,.92);color:var(--ink);display:flex;gap:12px;align-items:flex-start;text-align:left}
.notif-text{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px}
.notif-text .strong{font-size:15px}
.lock-bottom{margin-top:auto;width:100%;padding:0 30px 14px;display:flex;align-items:flex-end;justify-content:space-between}
.round-hint{width:52px;height:52px;border-radius:50%;background:rgba(10,20,14,.45);display:flex;align-items:center;justify-content:center}
.unlock{min-height:64px;padding:0 14px;border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600}

/* ---------- home ---------- */
.glance{padding:14px 26px 0}
.glance-date{font-size:15px;font-weight:600}
.glance h1{margin:4px 0 0;font-family:'Outfit',sans-serif;font-size:30px;font-weight:500;line-height:1.1}
.widget{margin:18px 16px 0;padding:18px;border-radius:30px;background:#F4FAF3;color:var(--ink);display:flex;flex-direction:column;gap:14px}
.widget-top{display:flex;gap:14px;align-items:center}
.avatar{width:56px;height:56px;border-radius:50%;background:var(--pc);color:var(--pc-ink);display:flex;align-items:center;justify-content:center;font-family:'Outfit',sans-serif;font-size:20px;font-weight:600;flex:0 0 auto}
.avatar.sm{width:36px;height:36px;font-size:14px;background:var(--primary);color:#fff}
.avatar.lg{width:72px;height:72px;font-size:26px}
.avatar.xl{width:80px;height:80px;font-size:28px}
.row2{display:flex;gap:10px}
.btn{flex:1;min-height:44px;border-radius:22px;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:600;font-size:14px;padding:0 18px}
.btn.filled{background:var(--primary);color:var(--primary-ink)}
.btn.filled:hover{background:#245a3b;color:#fff}
.btn.tonal{background:var(--tonal);color:var(--tonal-ink)}
.btn.outline{background:transparent;border:1px solid var(--outline);color:var(--primary)}
.btn.sm{flex:0 0 auto}
.btn.wide{flex:0 0 auto;width:100%;min-height:48px;font-size:15px}
.apps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 4px;padding:24px 12px 0}
.app{background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:7px;color:#fff}
.app .icon{width:58px;height:58px;border-radius:50%;background:#D7F5E0;color:var(--pc-ink);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.app .icon.wish{background:#F6DDB8;color:#3A2400}
.app svg,.dock-icon svg,.sq svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app .icon.wish svg{fill:currentColor;stroke:none}
.app .label{font-size:12.5px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.dock{margin-top:auto;padding:0 16px 8px;display:flex;flex-direction:column;gap:14px}
.dock-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;justify-items:center}
.dock-icon{width:58px;height:58px;border-radius:50%;background:#fff;color:var(--primary);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.dock-icon svg{width:24px;height:24px}
.search{width:100%;min-height:54px;border-radius:27px;border:0;background:#F4FAF3;display:flex;align-items:center;gap:12px;padding:0 20px;color:var(--muted);font-size:15px;text-align:left;box-shadow:0 2px 6px rgba(0,0,0,.2)}

/* ---------- apps ---------- */
.appbar{padding:0 8px;display:flex;align-items:center;position:sticky;top:0;background:var(--surface);z-index:2}
.back{width:48px;height:48px;border-radius:50%;border:0;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center}
.back:hover{background:#E3EAE2}
.page{display:none;padding:0 16px 28px;flex-direction:column;gap:12px}
.page.is-open{display:flex}
.page h2:focus{outline:none}
.page h2{margin:0;padding:18px 8px 8px;font-family:'Outfit',sans-serif;font-size:32px;font-weight:500;line-height:1.15}
.card{background:var(--card);border-radius:28px;padding:18px 20px}
.card.text{margin:0;font-size:15px;line-height:1.6}
.profile{display:flex;gap:16px;align-items:center}
.list{padding:0;overflow:hidden}
.li{padding:14px 20px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);font-size:14px}
.li:last-child{border-bottom:0}
.li span:first-child{color:var(--muted);flex:0 0 auto}
.li span:last-child{font-weight:600;text-align:right}
.kicker{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--primary)}
.kicker.pad{padding:6px 8px 0}
.group{display:flex;flex-direction:column;gap:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{padding:7px 14px;border-radius:10px;border:1px solid #C1CCC2;font-size:14px;font-weight:500}
.project{display:flex;flex-direction:column;gap:14px;padding:18px}
.project-head{display:flex;gap:14px;align-items:center}
.tile{width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-family:'Outfit',sans-serif;font-size:20px;font-weight:600;flex:0 0 auto}
.tile.xl{width:72px;height:72px;font-size:32px;border-radius:22px}
.t-gold{background:#F6DDB8;color:#3A2400}.t-green{background:var(--pc);color:var(--pc-ink)}.t-blue{background:#BFE9F7;color:#04323D}.t-sand{background:#E9E1F6;color:#25163F}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tags span{padding:4px 10px;border-radius:8px;background:#E9F1E8;font-size:12.5px;font-weight:600;color:#33423A}
.row-btns{display:flex;gap:8px;flex-wrap:wrap}
.notif-card{display:flex;gap:14px;padding:16px 18px;border-radius:24px}
.notif-card>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.notif-card a{font-size:14px;font-weight:600;margin-top:4px}
.dot{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.dot svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dot.g{background:var(--pc);color:var(--pc-ink)}.dot.b{background:#BFE9F7;color:#04323D}
.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--outline);border-radius:22px;overflow:hidden}
.seg{min-height:44px;border:0;background:#fff;color:var(--ink);font-weight:600;font-size:14px}
.seg+.seg{border-left:1px solid var(--outline)}
.seg.is-on{background:var(--tonal);color:var(--tonal-ink)}
.timeline{display:flex;flex-direction:column;gap:12px}
.timeline[hidden]{display:none}
.t-item{display:flex;gap:14px}
.t-rail{width:12px;flex:0 0 auto;position:relative}
.t-rail::before{content:"";position:absolute;top:22px;left:0;width:12px;height:12px;border-radius:50%;background:var(--primary)}
.t-rail::after{content:"";position:absolute;top:40px;bottom:-12px;left:5px;width:2px;background:#C1CCC2}
.t-item:last-child .t-rail::after{display:none}
.t-card{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:24px}
.t-card .org{font-size:14px;font-weight:600;color:var(--primary)}
.t-card ul{margin:8px 0 0;padding-left:18px;font-size:14px;line-height:1.5;color:#2A332D}
.contact{display:flex;flex-direction:column;align-items:center;gap:16px}
.contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.contact-actions a{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:600}
.sq{width:52px;height:52px;border-radius:18px;background:var(--tonal);color:var(--tonal-ink);display:flex;align-items:center;justify-content:center}
.sq svg{width:22px;height:22px}
.form{display:flex;flex-direction:column;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
.form input,.form textarea{min-height:48px;padding:12px 14px;border-radius:12px;border:1px solid var(--outline);font:inherit;font-size:15px;font-weight:400;color:var(--ink);background:#fff}
.form textarea{resize:vertical}
.form .btn{flex:0 0 auto;min-height:48px;font-size:15px}
.wish-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:24px 20px}
.wish-hero p{margin:0}
.credit{margin:4px 8px 0;font-size:12.5px;line-height:1.5;color:var(--muted)}

.snackbar{position:absolute;left:16px;right:16px;bottom:40px;padding:8px 8px 8px 18px;border-radius:12px;background:#2A322C;color:#EEF4EC;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;z-index:7}
.snackbar[hidden]{display:none}
.snackbar button{min-height:44px;padding:0 12px;border:0;background:transparent;color:#9DDAB2;font-weight:700;font-size:14px}

.gesture{height:28px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;z-index:5}
.gesture button{width:140px;height:28px;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center}
.gesture span{width:112px;height:4px;border-radius:2px;background:#1C241E}
.screen[data-screen=lock] .gesture span,.screen[data-screen=home] .gesture span{background:#fff}

/* ---------- empty sections ---------- */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:28px 20px}
.empty-icon{width:52px;height:52px;border-radius:50%;background:var(--tonal);color:var(--tonal-ink);display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.empty-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.project .meta{line-height:1.45}

/* ---------- the wish simulator: the phone turns sideways ---------- */
.device{transition:width .45s cubic-bezier(.2,.8,.2,1),height .45s cubic-bezier(.2,.8,.2,1)}
.device.landscape{width:842px;height:396px}
.device.landscape .btn-power{right:auto;top:-4px;left:196px;width:74px;height:5px;border-radius:3px 3px 0 0;background:linear-gradient(0deg,#2A2F2C,#565D58)}
.device.landscape .btn-volume{right:auto;top:-4px;left:300px;width:118px;height:5px;border-radius:3px 3px 0 0;background:linear-gradient(0deg,#2A2F2C,#565D58)}
.device.landscape .camera{top:50%;left:13px;margin:-7px 0 0}
.wish-layer{display:none;position:absolute;inset:0;z-index:8;background:#000}
.screen.in-wish .wish-layer{display:block}
.screen.in-wish .statusbar,.screen.in-wish .gesture,.screen.in-wish .view{display:none}
/* app.js lays the simulator out at least 560px tall (its layout overlaps below that),
   shrinks it to the screen, and turns it sideways on a phone held upright */
.wish-stage{position:absolute;top:0;left:0;width:100%;height:100%;transform-origin:0 0;overflow:hidden}
.wish-frame{position:absolute;top:0;left:0;border:0;display:block;background:#fff;transform-origin:0 0}
.wish-exit{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);min-height:32px;padding:0 14px 0 10px;border-radius:16px;border:0;background:rgba(20,26,22,.78);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;z-index:2}
.wish-exit:hover{background:rgba(20,26,22,.95)}
.wish-credit{position:absolute;left:50%;transform:translateX(-50%);bottom:10px;padding:4px 10px;white-space:nowrap;border-radius:12px;background:rgba(20,26,22,.6);color:#E6EFE7;font-size:11px;text-decoration:none;z-index:2}
.wish-credit:hover{color:#fff;background:rgba(20,26,22,.85)}
.screen.in-wish .camera{z-index:9}

/* ---------- on a real phone: the site is the screen ---------- */
@media (max-width:560px), (max-height:500px) and (pointer:coarse){
  .stage{padding:0;gap:0}
  .caption,.hw,.statusbar,.gesture{display:none}
  .device{width:100%;height:100vh;height:100dvh;padding:0;border-radius:0;background:#000;box-shadow:none}
  .bezel{padding:0;border-radius:0}
  .screen{border-radius:0}
  .topgap{height:env(safe-area-inset-top);min-height:12px}
  .lock-bottom{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .dock{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .device.landscape{width:100%;height:100vh;height:100dvh}
  .wish-exit{bottom:calc(8px + env(safe-area-inset-bottom))}
}
/* short laptop screens: app.js zooms the phone down so it fits */
@media (min-width:561px) and (max-height:960px) and (pointer:fine){
  .stage{padding:20px 24px;gap:14px}
}

/* a phone held sideways: the screens keep a phone's width in the middle and scroll inside
   (the wish simulator, which is sideways anyway, still fills the screen) */
@media (max-height:500px) and (pointer:coarse) and (orientation:landscape){
  .view-lock,.view-home,.view-app{width:100%;max-width:480px;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  .view-lock::-webkit-scrollbar,.view-home::-webkit-scrollbar{display:none}
  .clock{margin-top:12px;font-size:84px}
  .notif{margin-top:18px}
  .lock-bottom{margin-top:24px}
  .dock{margin-top:24px}
}
