/* CP-1 Project Applications portal — self-hosted, no external dependencies (CSP friendly). */
:root {
    --bg: #070d1f;
    --bg-2: #0c1530;
    --surface: rgba(255, 255, 255, .055);
    --surface-hover: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .22);
    --text: #eef3ff;
    --muted: #9fb0d3;
    --accent: #38bdf8;
    --accent-2: #22c55e;
    --accent-3: #a78bfa;
    --radius: 20px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
body.portal {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    padding: .6rem 1rem; border-radius: 10px; background: #fff; color: #0b1530; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Animated backdrop ---------- */
.backdrop {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(1200px 600px at 80% -10%, #142a5c 0%, transparent 60%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.aurora {
    position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
    filter: blur(90px); opacity: .35; mix-blend-mode: screen;
    animation: drift 26s ease-in-out infinite alternate;
}
.aurora--a { background: #1d4ed8; top: -25vmax; left: -15vmax; }
.aurora--b { background: #0ea5e9; top: 10vmax; right: -25vmax; animation-duration: 32s; animation-delay: -8s; opacity: .25; }
.aurora--c { background: #7c3aed; bottom: -35vmax; left: 20vmax; animation-duration: 38s; animation-delay: -16s; opacity: .22; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
    100% { transform: translate3d(-4vmax, 8vmax, 0) scale(.95); }
}
.grid-floor {
    position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 55vh;
    background-image:
        linear-gradient(rgba(56, 189, 248, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, .14) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    animation: floor 4s linear infinite;
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }

.rails { position: absolute; left: 0; right: 0; top: 18vh; width: 100%; height: 60vh; opacity: .9; }
.rail { fill: none; stroke: rgba(148, 197, 255, .16); stroke-width: 1.5; }
.streak {
    fill: none; stroke: url(#streak); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 220 1800; stroke-dashoffset: 2020;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, .9));
    animation: streak 5.5s cubic-bezier(.55, 0, .3, 1) infinite;
}
.streak--2 { animation-delay: -2.6s; animation-duration: 6.5s; }
@keyframes streak { to { stroke-dashoffset: 0; } }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    padding: env(safe-area-inset-top) 0 0;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(7, 13, 31, .55);
    border-bottom: 1px solid var(--border);
}
.topbar__inner {
    max-width: 1240px; margin: 0 auto; padding: .7rem clamp(1rem, 4vw, 2rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand__mark {
    display: inline-flex; align-items: center; padding: .55rem .9rem; border-radius: 12px;
    background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    transition: transform .4s var(--ease-spring);
}
.brand:hover .brand__mark { transform: translateY(-1px) scale(1.02); }
.brand__mark img { width: clamp(170px, 30vw, 300px); height: auto; }
.topbar__actions { display: flex; align-items: center; gap: .6rem; }

.switcher { position: relative; }
.switcher__button {
    display: flex; align-items: center; gap: .65rem; cursor: pointer;
    padding: .45rem .8rem .45rem .7rem; border-radius: 999px;
    color: var(--text); font: inherit;
    background: var(--surface); border: 1px solid var(--border);
    transition: background .25s, border-color .25s, transform .25s var(--ease-spring);
}
.switcher__button:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.switcher__button:active { transform: scale(.97); }
.switcher__dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2.4s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.switcher__label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.switcher__label small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.switcher__label strong { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.switcher__chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease-out); }
.switcher__button[aria-expanded="true"] .switcher__chevron { transform: rotate(180deg); }
.switcher__menu {
    position: absolute; right: 0; top: calc(100% + .6rem); width: min(340px, calc(100vw - 2rem));
    padding: .5rem; border-radius: 16px;
    background: rgba(12, 21, 48, .96); border: 1px solid var(--border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    transform-origin: top right; animation: pop .28s var(--ease-out);
}
.switcher__menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.switcher__heading { margin: .35rem .6rem .5rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.switcher__item {
    display: flex; gap: .75rem; align-items: center; padding: .65rem; border-radius: 12px;
    transition: background .2s;
}
.switcher__item:hover, .switcher__item:focus-visible { background: var(--surface-hover); }
.switcher__item.is-active { background: rgba(56, 189, 248, .12); }
.switcher__code {
    flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    font-weight: 700; font-size: .85rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.switcher__meta { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.3; }
.switcher__meta small { color: var(--muted); font-size: .76rem; }
.btn-signin {
    padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff;
}

/* ---------- Layout ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 4rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 8vh, 5rem) 0 1.5rem; text-align: center; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem;
    padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; letter-spacing: .04em; color: #cfe3ff;
    background: rgba(56, 189, 248, .10); border: 1px solid rgba(56, 189, 248, .28);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero__title {
    margin: 0; font-size: clamp(2.2rem, 6.5vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.hero__code {
    font-size: .38em; letter-spacing: .3em; font-weight: 700; color: var(--muted);
    padding-left: .3em; /* balance letter-spacing */
}
.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 25%, #a78bfa 50%, #7dd3fc 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero__subtitle { margin: 1rem auto 0; max-width: 46rem; color: var(--muted); font-size: clamp(.95rem, 2.2vw, 1.12rem); }

/* High-speed train */
.train { position: relative; height: 34px; max-width: 560px; margin: 1.8rem auto 0; overflow: hidden; }
.train__track {
    position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(148, 197, 255, .45) 0 14px, transparent 14px 22px);
    animation: sleepers .5s linear infinite;
}
@keyframes sleepers { to { background-position: -22px 0; } }
.train__body {
    position: absolute; bottom: 10px; left: 0; display: flex; gap: 3px;
    animation: run 7s cubic-bezier(.65, 0, .35, 1) infinite;
}
.train__car, .train__nose {
    height: 14px; border-radius: 4px; background: linear-gradient(180deg, #f8fafc, #cbd5e1);
    box-shadow: inset 0 -3px 0 #0ea5e9, 0 0 18px rgba(125, 211, 252, .55);
}
.train__car { width: 54px; }
.train__nose { order: 3; width: 62px; border-radius: 4px 22px 4px 4px; }
@keyframes run {
    0% { transform: translateX(-200px); }
    45%, 55% { transform: translateX(calc(280px - 90px)); }
    100% { transform: translateX(760px); }
}

/* Search */
.search {
    position: relative; max-width: 560px; margin: 1.6rem auto 0;
}
.search input {
    width: 100%; padding: 1rem 3.2rem 1rem 3rem; border-radius: 16px;
    font: inherit; font-size: 1rem; color: var(--text);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    transition: border-color .25s, background .25s, box-shadow .25s;
    -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8193b8; }
.search input:focus { outline: none; border-color: rgba(56, 189, 248, .6); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(56, 189, 248, .15), 0 10px 40px rgba(0, 0, 0, .3); }
.search__icon { position: absolute; left: 1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search__kbd {
    position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
    padding: .15rem .5rem; border-radius: 6px; font-size: .78rem; color: var(--muted);
    border: 1px solid var(--border-strong);
}

/* ---------- Category menu (animated) ---------- */
.menu { display: flex; justify-content: center; margin: 1.8rem 0 1.6rem; }
.menu__track {
    position: relative; display: flex; gap: .25rem; padding: .3rem; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
    max-width: 100%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.menu__track::-webkit-scrollbar { display: none; }
.menu__chip {
    position: relative; z-index: 1; flex: none; cursor: pointer; scroll-snap-align: center;
    padding: .6rem 1.05rem; border: 0; border-radius: 999px; background: none;
    font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
    transition: color .3s;
}
.menu__chip:hover { color: var(--text); }
.menu__chip:focus-visible { outline-offset: -2px; }
.menu__chip.is-active { color: #04121f; }
.menu__count {
    display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: .25rem; padding: 0 .35rem;
    border-radius: 999px; font-size: .72rem; background: rgba(255, 255, 255, .12);
}
.menu__chip.is-active .menu__count { background: rgba(4, 18, 31, .15); }
.menu__indicator {
    position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: 0; width: 0; border-radius: 999px;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #818cf8);
    box-shadow: 0 6px 24px rgba(56, 189, 248, .45);
    transition: transform .5s var(--ease-spring), width .5s var(--ease-spring);
}

/* ---------- App tiles ---------- */
.apps__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: clamp(.85rem, 2vw, 1.25rem);
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tile-wrap {
    perspective: 900px;
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.tile-wrap.is-hidden { display: none; }
/* After the initial load, re-shown items appear quickly instead of replaying the delayed entrance. */
.is-ready .tile-wrap:not(.is-entering), .is-ready .resource-wrap:not(.is-entering) { animation: enter .3s var(--ease-out) both; }
.tile-wrap.is-entering, .resource-wrap.is-entering { animation: enter .5s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.97); } }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.tile {
    --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s, background .3s;
}
.tile::before { /* animated gradient border */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, #38bdf8 75%, #a78bfa 85%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s;
}
.tile__glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 189, 248, .18), transparent 45%);
}
.tile:hover, .tile:focus-visible {
    border-color: rgba(125, 211, 252, .35);
    box-shadow: 0 22px 50px rgba(2, 8, 23, .55), 0 0 0 1px rgba(56, 189, 248, .15);
    background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}
.tile:hover .tile__glow, .tile:focus-visible .tile__glow { opacity: 1; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; animation: spin 3s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.tile:active { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(.98); }

.tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.tile__icon {
    position: relative; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
    transform: translateZ(30px);
    transition: transform .5s var(--ease-spring);
}
.tile__icon img { width: 46px; height: 46px; border-radius: 50%; }
.tile:hover .tile__icon { transform: translateZ(40px) rotate(-6deg) scale(1.08); }
.tile__badge {
    margin-left: auto; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #052e16; background: linear-gradient(135deg, #86efac, #22c55e);
}
.tile__badge[hidden] { display: none; }
.tile__code { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; transform: translateZ(20px); }
.tile__name { font-size: .95rem; font-weight: 600; color: #cfe3ff; margin-top: .1rem; overflow-wrap: anywhere; hyphens: auto; }
.tile__desc { margin-top: .55rem; font-size: .86rem; line-height: 1.45; color: var(--muted); flex: 1; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; gap: .5rem; }
.tile__tag {
    padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .03em;
    color: #bae6fd; background: rgba(56, 189, 248, .10); border: 1px solid rgba(56, 189, 248, .22);
}
.tile-wrap[data-category="quality"] .tile__tag { color: #ddd6fe; background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .28); }
.tile-wrap[data-category="construction"] .tile__tag { color: #bbf7d0; background: rgba(34, 197, 94, .10); border-color: rgba(34, 197, 94, .26); }
.tile__go { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: #e0f2fe; }
.tile__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-spring); }
.tile:hover .tile__go svg { transform: translateX(4px); }
.tile.is-launching { animation: launch .45s var(--ease-out) forwards; }
@keyframes launch { to { transform: scale(1.04); box-shadow: 0 0 0 2px #38bdf8, 0 30px 80px rgba(56, 189, 248, .45); } }

.empty { text-align: center; color: var(--muted); padding: 2rem 0 0; }
.empty[hidden] { display: none; }

/* ---------- Resources ---------- */
.section-head { margin: 3.5rem 0 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.section-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.resources__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.resource-wrap.is-hidden { display: none; }
.resource {
    display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border);
    transition: background .25s, border-color .25s, transform .35s var(--ease-spring);
}
.resource:hover, .resource:focus-visible { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-3px); }
.resource__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(249, 115, 22, .2)); }
.resource__icon svg { width: 22px; height: 22px; fill: none; stroke: #fcd34d; stroke-width: 1.8; stroke-linejoin: round; }
.resource__text { display: flex; flex-direction: column; min-width: 0; }
.resource__text strong { font-size: .95rem; font-weight: 600; }
.resource__text small { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.resource__arrow { margin-left: auto; flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .35s var(--ease-spring), stroke .25s; }
.resource:hover .resource__arrow { transform: translate(3px, -3px); stroke: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(3, 7, 18, .5); padding-bottom: env(safe-area-inset-bottom); }
.footer__inner {
    max-width: 1240px; margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 2rem);
    display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .08em; }
.footer__brand img { width: 120px; padding: .45rem .6rem; border-radius: 10px; background: #fff; }
.footer__contact { font-style: normal; color: var(--muted); font-size: .8rem; line-height: 1.6; text-align: right; }

/* ---------- Reveal-on-load ---------- */
.reveal { animation: rise .8s var(--ease-out) both; }
.hero > .reveal:nth-child(2) { animation-delay: .08s; }
.hero > .reveal:nth-child(3) { animation-delay: .16s; }
.hero > .reveal:nth-child(4) { animation-delay: .24s; }
.hero > .reveal:nth-child(5) { animation-delay: .32s; }
.menu.reveal { animation-delay: .4s; }
.tile-wrap, .resource-wrap { animation: rise .6s var(--ease-out) both; animation-delay: calc(.45s + var(--i, 0) * 55ms); }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
    .apps__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .switcher__label small { display: none; }
    .hero { padding-top: 2rem; }
    .train { margin-top: 1.2rem; }
    .search__kbd { display: none; }
    .menu { justify-content: flex-start; margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)); margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)); padding: 0 clamp(1rem, 4vw, 2rem); }
    .apps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile { padding: 1rem; }
    .tile__icon { width: 48px; height: 48px; border-radius: 14px; }
    .tile__icon img { width: 38px; height: 38px; }
    .tile__desc { display: none; }
    .tile__code { font-size: 1.35rem; }
    .tile__name { font-size: .84rem; }
    .tile__foot { margin-top: .8rem; }
    .tile__go { display: none; }
    .footer__contact { text-align: left; }
    .grid-floor { height: 35vh; }
}
@media (max-width: 560px) {
    .topbar { position: relative; }
    .topbar__inner { flex-wrap: wrap; justify-content: center; row-gap: .6rem; padding-top: .8rem; padding-bottom: .8rem; }
    .brand { flex: 1 0 100%; justify-content: center; }
    .brand__mark { width: 100%; max-width: 420px; justify-content: center; }
    .brand__mark img { width: 100%; }
    .topbar__actions { flex: 1 0 100%; justify-content: center; }
    .switcher { width: 100%; max-width: 420px; }
    .switcher__button { width: 100%; justify-content: space-between; }
    .switcher__label { flex: 1; }
    .switcher__menu { left: 0; right: 0; width: auto; transform-origin: top center; }
    html { scroll-padding-top: 1rem; }
    .search input { font-size: 16px; padding-right: 1rem; } /* 16px stops iOS zoom-on-focus */
}
@media (hover: none) {
    .tile { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .streak, .train__body { display: none; }
    .tile { transform: none !important; }
}
