body{min-height:100vh}
.portal{width:min(1280px,100%);margin:auto;padding:22px 26px 52px}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:30px;align-items:center;padding:clamp(26px,5vw,56px);border:1px solid rgba(255,255,255,.08);border-radius:26px;background:linear-gradient(116deg,#071b36 0%,#0b2850 50%,#173f78 100%);color:#fff;box-shadow:0 26px 70px rgba(7,27,54,.2)}
.hero:before{content:"";position:absolute;inset:-35%;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 24% 72%,rgba(255,204,42,.14),transparent 25%),radial-gradient(ellipse at 78% 25%,rgba(73,133,255,.24),transparent 31%);animation:hero-atmosphere 13s ease-in-out infinite alternate}
.hero:after{content:"";position:absolute;width:360px;height:360px;left:-85px;bottom:-230px;border:1px solid rgba(255,204,42,.35);border-radius:50%;box-shadow:0 0 0 35px rgba(255,204,42,.06),0 0 0 70px rgba(255,204,42,.035);animation:hero-orbit 34s linear infinite}
.hero h1{position:relative;z-index:1;max-width:620px;margin:0;color:#fff;font-size:clamp(28px,4vw,46px);line-height:1.35;letter-spacing:-.03em;animation:hero-copy-in .75s cubic-bezier(.2,.7,.2,1) both}
.hero-brand{position:relative;z-index:1;justify-self:end;display:grid;place-items:center;width:min(340px,100%);padding:18px 17px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:#fff;box-shadow:0 18px 42px rgba(0,0,0,.18);animation:brand-entry .7s cubic-bezier(.2,.7,.2,1) both}
.hero-logo{display:block;width:100%;height:auto;object-fit:contain}
.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px;margin-top:16px}
.portal-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 16px;min-width:0;padding:22px;border:1px solid var(--ms-line);border-radius:20px;background:#fff;box-shadow:var(--ms-shadow);color:inherit;text-decoration:none;transition:transform .16s,border-color .16s,box-shadow .16s}
.portal-card:hover{transform:translateY(-2px);border-color:#b8c9eb;box-shadow:0 18px 48px rgba(7,27,54,.1)}
.portal-card:focus-visible{outline:3px solid #90adff;outline-offset:2px}
.card-icon{grid-row:1/3;display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:#eef3ff;color:var(--ms-blue)}
.card-icon.gold{background:#fff6d9;color:#815800}
.card-icon svg{width:28px;height:28px}
.portal-card h2{margin:0;color:var(--ms-navy);font-size:17px;line-height:1.5}
.portal-card p{grid-column:2;margin:0;color:var(--ms-muted);font-size:13px;line-height:1.7}
.card-go{grid-row:1/3;grid-column:3;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ms-navy);color:var(--ms-gold);transition:transform .16s}
.portal-card:hover .card-go{transform:translateX(-3px)}
.card-go svg{width:18px;height:18px}
.data-note{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px 16px;border:1px solid #eadca9;border-radius:15px;background:#fffaf0;color:#584817;font-size:13px}
.data-note svg{flex:0 0 22px;width:22px;height:22px;color:#9a6a00}
@keyframes hero-atmosphere{from{transform:translate3d(-2%,1%,0) scale(.98)}to{transform:translate3d(2%,-1%,0) scale(1.04)}}
@keyframes hero-orbit{to{transform:rotate(360deg)}}
@keyframes hero-copy-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes brand-entry{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:980px){.portal-grid{grid-template-columns:1fr}}
@media(max-width:760px){.portal{padding:14px 12px 36px}.hero{grid-template-columns:1fr;gap:16px;padding:26px 20px;border-radius:20px}.hero-brand{display:none}.hero{gap:0;padding:18px 18px;border-radius:18px}.hero h1{font-size:22px}.portal{padding-bottom:16px}.portal-grid{gap:10px;margin-top:10px}.portal-card{gap:2px 12px;padding:12px 14px;border-radius:16px}.card-icon{width:44px;height:44px;border-radius:13px}.card-icon svg{width:23px;height:23px}.portal-card h2{font-size:15px}.portal-card p{font-size:12px;line-height:1.5}.card-go{width:32px;height:32px}.card-go svg{width:16px;height:16px}.data-note{margin-top:10px;padding:9px 12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.hero:before,.hero:after,.hero h1,.hero-brand{animation:none!important}}
/* home sections: square, Apple-like tiles (icon on top, name below), grouped by what people do */
.hm-secs{display:grid;gap:26px;margin-top:18px}
.hm-sec[hidden]{display:none}
.hm-h{margin:0 6px 10px;color:var(--ms-navy);font-size:18px;line-height:1.5}
.hm-sec{--t1:#f4f7ff;--t2:#dfe8ff;--ic:#1746b5}
.hm-sec[data-tone=gold]{--t1:#fffaf0;--t2:#ffecb8;--ic:#815800}
.hm-sec[data-tone=mint]{--t1:#f3fbf6;--t2:#d2efdf;--ic:#0c6b3d}
.hm-sec[data-tone=slate]{--t1:#f5f7fa;--t2:#dde3ec;--ic:#071b36}
.hm-sec .portal-grid,.hm-sec.portal-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px;margin-top:0}
.hm-sec .pc-wrap{position:relative;display:block}
.hm-sec .portal-card{aspect-ratio:1/1;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:8px;width:100%;box-sizing:border-box;padding:16px;border:1px solid rgba(255,255,255,.75);border-radius:28px;background:linear-gradient(160deg,var(--t1),var(--t2));box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 10px 26px rgba(7,27,54,.08);transition:transform .18s,box-shadow .18s}
.hm-sec .portal-card:hover{transform:translateY(-3px) scale(1.02);border-color:rgba(255,255,255,.9);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 18px 38px rgba(7,27,54,.14)}
.hm-sec .portal-card:active{transform:scale(.97)}
.hm-sec .card-icon{grid-row:auto;width:50px;height:50px;border-radius:16px;background:#fff;color:var(--ic);box-shadow:0 4px 12px rgba(7,27,54,.1)}
.hm-sec .card-icon.gold{background:#fff;color:var(--ic)}
.hm-sec .card-icon svg{width:26px;height:26px}
.hm-sec .portal-card h2{margin:0;color:var(--ms-navy);font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hm-sec .portal-card p{display:none}
.hm-sec .pc-star{position:absolute;top:10px;left:10px;z-index:2;width:28px;height:28px;background:rgba(255,255,255,.85);border-color:transparent}
.hm-sec .pc-star svg{width:15px;height:15px}
@media(max-width:560px){.hm-sec .portal-grid,.hm-sec.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hm-sec .portal-card{border-radius:24px;padding:14px}.hm-h{font-size:16.5px}}
@media(prefers-reduced-motion:reduce){.hm-sec .portal-card{transition:none}}

/* a tile with its clay picture: the picture fills the top, whole and centered; the name sits below it */
.hm-sec .portal-card.has-art{position:relative;justify-content:flex-end;gap:6px;padding:10px 12px 14px}
.hm-sec .portal-card.has-art .card-icon{display:none}
.hm-sec .tile-art{position:absolute;inset:12px 12px 52px;width:calc(100% - 24px);height:calc(100% - 64px);object-fit:contain;object-position:center;display:block;filter:drop-shadow(0 8px 10px rgba(7,27,54,.14));transition:transform .25s}
.hm-sec .portal-card.has-art:hover .tile-art{transform:scale(1.06) translateY(-2px)}
.hm-sec .portal-card.has-art h2{flex:none;width:100%;text-align:center;font-size:14.5px}
@media(prefers-reduced-motion:reduce){.hm-sec .tile-art{transition:none}}

/* my tasks */
.mt{margin-top:16px;display:grid;gap:10px;padding:14px 16px;border:1px solid var(--ms-line);border-radius:20px;background:linear-gradient(180deg,#f5f8ff,#fff);box-shadow:var(--ms-shadow)}
.mt[hidden]{display:none}
.mt-head{display:flex;align-items:center;gap:10px}.mt-head h2{margin:0;color:var(--ms-navy);font-size:17px}
.mt-n{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#ff3b30;color:#fff;font-size:13px;font-weight:800}
.mt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:8px}
.mt-it{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 12px;border:1px solid var(--ms-line);border-radius:16px;background:#fff;color:var(--ms-navy);text-decoration:none;transition:border-color .15s,transform .15s}
.mt-it:hover{border-color:#90adff;transform:translateY(-1px)}
.mt-ic{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#eef3ff;color:#1746b5}.mt-ic svg{width:20px;height:20px}
.mt-tx{font-size:13.5px;font-weight:800;line-height:1.7}
.mt-empty{display:flex;align-items:center;gap:10px;color:var(--ms-muted);font-size:14px;font-weight:700}.mt-empty svg{width:22px;height:22px;color:#14804a;background:#e8f7ee;border-radius:50%;padding:3px}

/* visitors: the tiles keep a gap from the banner */
.portal-grid.anon{margin-top:22px}

/* the sections that are not built yet: grey, each with the milestone that switches it on */
.soon{cursor:pointer}
.hm-sec .portal-card.soon{background:linear-gradient(160deg,#f6f7f9,#e8ebf0);box-shadow:none;border-color:#e1e5ec}
.hm-sec .soon .tile-art{filter:grayscale(1) opacity(.72) drop-shadow(0 6px 8px rgba(7,27,54,.1))}
.hm-sec .portal-card.soon:hover .tile-art{transform:none;filter:grayscale(.6) opacity(.9) drop-shadow(0 6px 8px rgba(7,27,54,.12))}
.hm-sec .soon h2{color:#6b7587}
.hm-sec .soon .soon-code{display:block;margin:2px auto 0;padding:2px 9px;border-radius:999px;background:#fff;border:1px solid #dfe4ec;color:#6b7587;font-size:11px;font-weight:800;text-align:center;width:max-content;max-width:100%}
.soon .soon-code b{font-weight:800}
.hm-sec .portal-card.soon.has-art .tile-art{inset:10px 12px 78px;height:calc(100% - 88px)}
.hm-sec .portal-card.soon.has-art{padding-bottom:10px}
