/* =====================================================================
   Rehan OS — styles
   1. tokens + base   2. shared content (windows, sheets, plain page)
   3. plain page      4. desktop page frame   5. desktop   6. phone
   ===================================================================== */

/* ---------- 1. tokens + base ---------- */
:root {
  --ink: #1d1d1f;
  --ink-2: #48484d;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --paper: #f5f5f7;
  /* Midnight navy: the one accent. Buttons use the gradient for a lit, premium surface. */
  --accent: #1f2d5c;
  --accent-ink: #2b3f86;
  --accent-grad: linear-gradient(180deg, #3a4f96 0%, #22306a 48%, #151e42 100%);
  --accent-lift: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px -8px rgba(16, 24, 56, 0.85);
  --avatar-bg: linear-gradient(160deg, #e4e9ff, #a9b8ec);
  --blue: #2f6bff;
  --live: #30d158;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--font); font-size: 0.82em; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.07); border: 1px solid rgba(0, 0, 0, 0.08); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.g { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 9999; background: #000; color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.22); display: inline-block; flex: none; }

/* ---------- 2. shared content ---------- */
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.display { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 12px; text-wrap: balance; }
.app h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; margin: 0 0 6px; text-wrap: balance; }
.app h3 { font-size: 15px; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 4px; }
.app p { margin: 0 0 12px; }
.app__head { margin-bottom: 20px; }
.app__sub { color: var(--ink-3); margin: 0; }
.lede { font-size: 16px; color: var(--ink-2); }
.muted { color: var(--ink-3); font-weight: 500; }
.note { font-size: 13px; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 650; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.96); transition-duration: 0.08s; }
.btn--accent { background: var(--accent-grad); color: #fff; box-shadow: var(--accent-lift); }
.btn--accent:hover { filter: brightness(1.18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--quiet { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.btn--quiet:hover { background: rgba(0, 0, 0, 0.1); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.row-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.small-links a { font-weight: 600; color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 4px 11px 4px 9px; border-radius: 999px; margin: 0; }
.pill--live { background: rgba(48, 209, 88, 0.14); color: #137a34; }

.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.055); color: var(--ink-2); }

.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin: 0 0 6px; letter-spacing: 0.01em; }
.tag--live { background: rgba(48, 209, 88, 0.15); color: #137a34; }
.tag--concept { background: rgba(255, 159, 10, 0.16); color: #9a5800; }
.tag--uni { background: rgba(175, 82, 222, 0.14); color: #7a2fa3; }

/* welcome */
.welcome__me { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.welcome__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--avatar-bg); padding: 6px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35); }
.ask { font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 22px 0 10px !important; }
.paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.path {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--spring), box-shadow 0.3s, border-color 0.2s;
}
.path:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.3); border-color: rgba(0, 0, 0, 0.14); }
.path:active { transform: scale(0.985); transition-duration: 0.08s; }
.path__icon { width: 44px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); }
.path__text { flex: 1; display: grid; }
.path__text strong { font-size: 15px; }
.path__text small { font-size: 13px; color: var(--ink-3); }
.path__go { color: var(--ink-3); font-size: 18px; transition: transform 0.3s var(--spring); }
.path:hover .path__go { transform: translateX(3px); color: var(--ink); }
.welcome__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }

/* projects (plain page + phone) */
.projects { display: grid; gap: 22px; }
.project { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.project__kind { color: var(--ink-3); font-size: 13.5px; margin: 0 0 12px !important; }
.project h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.shots img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.noshot { display: grid; place-items: center; gap: 6px; aspect-ratio: 16 / 7; border-radius: 12px; background: repeating-linear-gradient(135deg, #f0f0f3 0 10px, #e9e9ee 10px 20px); color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.noshot .g { font-size: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.facts div { background: var(--paper); border-radius: 12px; padding: 8px 12px; }
.facts dt { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 0; font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.project__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 !important; }

.archive { margin-top: 32px; }
.archive h3 { font-size: 17px; }
.archive__grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.archive__grid a { display: block; text-decoration: none; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--spring), box-shadow 0.3s; }
.archive__grid a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.35); }
.archive__grid img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.archive__grid span { display: grid; padding: 8px 10px 10px; }
.archive__grid strong { font-size: 13.5px; }
.archive__grid small { font-size: 12px; color: var(--ink-3); }

/* résumé paper */
.pdfbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pdfbar__name { flex: 1; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.paper { background: #fff; border-radius: 4px; padding: 36px 40px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 40px -12px rgba(0, 0, 0, 0.3); font-size: 13.5px; }
.paper__name { font-size: 26px !important; margin: 0 0 2px !important; }
.paper__role { color: var(--accent-ink); font-weight: 650; margin: 0 0 4px !important; }
.paper__contact { color: var(--ink-3); font-size: 12px; }
.paper hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.paper h3 { font-size: 11.5px !important; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 18px 0 8px !important; }
.paper__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.paper__list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.paper__list span { color: var(--ink-3); font-size: 12.5px; }
.paper__note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 14px !important; }

/* ---- shared app building blocks ---- */
/* Grouped card: the white rounded group on a soft grey ground, like System Settings. */
.app { --card: #fff; --ground: #f2f2f6; --hair: rgba(0, 0, 0, 0.07); }
.ic {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 18px;
  background: linear-gradient(160deg, var(--c1, #3a4f96), var(--c2, #151e42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 4px 10px -4px var(--c2, rgba(0, 0, 0, 0.5));
}
.ic .g { stroke-width: 2; }
.txt-h { font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 22px 4px 10px !important; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(47, 107, 255, 0.07); color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px !important; }
.callout > .g { flex: none; font-size: 18px; margin-top: 2px; color: var(--accent-ink); }
.callout--good { background: rgba(48, 209, 88, 0.1); }
.callout--good > .g { color: #1d8f43; stroke-width: 2.4; }

/* experience */
.xp { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden; }
.xp__item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; }
.xp__item + .xp__item::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--hair); }
.xp__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -8px var(--c2); }
.xp__main { min-width: 0; }
.xp__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.xp__top h3 { margin: 0 !important; font-size: 15.5px !important; }
.xp__when { font-size: 12px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp__org { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin: 1px 0 6px !important; }
.xp__now { font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: rgba(48, 209, 88, 0.15); color: #137a34; }
.xp__what { font-size: 13.5px; color: var(--ink-2); margin: 0 0 6px !important; }
.xp__win { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--accent-ink); background: rgba(43, 63, 134, 0.08); padding: 4px 10px; border-radius: 999px; margin: 2px 0 0 !important; }
.xp__win .g { stroke-width: 2.2; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 0; }
.meta-grid div { position: relative; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.meta-grid .g { font-size: 20px; color: var(--accent-ink); margin-bottom: 8px; display: block; }
.meta-grid dt { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.meta-grid dd { margin: 2px 0 0; font-weight: 650; font-size: 13.5px; line-height: 1.4; }

/* stack */
.stackgroup { background: var(--card); border-radius: 18px; padding: 14px 16px 16px; margin-bottom: 12px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.stackgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 14.5px !important; margin: 0 0 12px !important; }
.stackgroup .ic { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.stackgroup__n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3); background: rgba(0, 0, 0, 0.05); border-radius: 999px; padding: 2px 9px; }
.stackgroup .chips { margin: 0; gap: 8px; }
.stackgroup .chips li { display: inline-flex; align-items: center; gap: 7px; background: var(--ground); color: var(--ink); padding: 7px 12px; font-size: 13px; font-weight: 600; border-radius: 10px; }
.stackgroup .chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(160deg, var(--c1), var(--c2)); }

/* services */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.services li { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); transition: transform 0.35s var(--spring), box-shadow 0.3s; }
.services li:hover { transform: translateY(-3px); box-shadow: 0 0 0 0.5px var(--hair), 0 14px 28px -16px rgba(0, 0, 0, 0.35); }
.services .ic { margin-bottom: 12px; }
.services h3 { font-size: 15px !important; }
.services p { color: var(--ink-3); font-size: 13.5px; margin: 0; line-height: 1.5; }

/* process: a vertical stepper */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 14px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(rgba(43, 63, 134, 0.35), rgba(43, 63, 134, 0.08)); }
.steps__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--accent-grad); box-shadow: var(--accent-lift); }
.steps__n::before { content: counter(s); }
.steps li > div { background: var(--card); border-radius: 16px; padding: 12px 16px 14px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.steps h3 { display: flex; align-items: center; gap: 8px; font-size: 15px !important; margin: 0 0 4px !important; }
.steps h3 .g { color: var(--accent-ink); font-size: 16px; }
.steps p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }

/* agency */
.modes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.modes li { display: grid; align-content: start; gap: 4px; background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.modes .ic { margin-bottom: 8px; }
.modes b { font-size: 14.5px; line-height: 1.3; }
.modes li > span:last-child { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.terms { margin: 0; display: grid; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.terms div { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 12px 16px; align-items: baseline; }
.terms div + div::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.terms dt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.terms dt .g { color: var(--accent-ink); font-size: 15px; }
.terms dd { margin: 0; color: var(--ink-2); font-size: 13.5px; }

/* bookings */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 8px; }
.mock { margin: 0; position: relative; background: var(--card); border-radius: 20px; padding: 16px 12px 14px; box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.mock--before { background: linear-gradient(180deg, #fff 40%, #fff6f5); }
.mock--after { background: linear-gradient(180deg, #fff 40%, #f2fbf4); }
.mock__label { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.mock--before .mock__label { background: rgba(255, 59, 48, 0.12); color: #c4271c; }
.mock--after .mock__label { background: rgba(48, 209, 88, 0.15); color: #137a34; }
.mock__screen { aspect-ratio: 9 / 18; max-width: 150px; margin: 14px auto 0; border-radius: 26px; border: 5px solid #1d1d1f; background: #fff; padding: 26px 11px 14px; display: flex; flex-direction: column; gap: 7px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px #3a3a3e, 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
.mock__island { position: absolute; top: 6px; left: 50%; width: 38%; height: 11px; margin-left: -19%; border-radius: 999px; background: #1d1d1f; }
.mock__logo { width: 40%; height: 9px; border-radius: 4px; background: #d6d6db; margin-bottom: 6px; }
.mock__line { height: 6px; border-radius: 3px; background: #ececf0; width: 90%; }
.mock__line--l { height: 10px; width: 75%; background: #c9c9cf; }
.mock__line--s { width: 55%; }
.mock__plain { font-size: 7px; color: #9a9aa0; }
.mock__tiny { font-size: 6px; color: #b0b0b6; margin-top: auto; text-decoration: underline; }
.mock__cta { font-size: 8.5px; font-weight: 700; color: #fff; background: var(--accent-grad); border-radius: 999px; padding: 7px; text-align: center; margin: 4px 0; box-shadow: 0 4px 10px -4px rgba(21, 30, 66, 0.7); }
.mock__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mock__bar span { font-size: 8px; font-weight: 700; text-align: center; padding: 6px; border-radius: 10px; background: #1d1d1f; color: #fff; }
.mock__bar span + span { background: var(--accent-grad); }
.mock figcaption { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; text-align: center; line-height: 1.45; }
.mock__note { text-align: center; margin: 0 0 4px !important; font-size: 12px !important; }
.fixlist { list-style: none; padding: 0; margin: 0; display: grid; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.fixlist li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; font-size: 14px; }
.fixlist li + li::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: 1px solid var(--hair); }
.fixlist .g { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: #30c85a; stroke-width: 3; margin-top: 0; }

/* evidence */
.ev { display: grid; gap: 10px; margin-bottom: 14px; }
.ev__total { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px; border-radius: 20px; color: #fff; background: var(--accent-grad); box-shadow: var(--accent-lift); }
.ev__total .ev__t { color: rgba(255, 255, 255, 0.78); }
.ev__n { font-size: 46px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev__n--sm { display: block; font-size: 30px; color: #d6301a; margin-bottom: 2px; }
.ev__t { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ev__card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ev__ring { --p: var(--v); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(#ff6b3d calc(var(--p) * 1%), rgba(0, 0, 0, 0.07) 0); }
.ev__ring b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.js .is-shown .ev__ring, .mode-doc .ev__ring { animation: ring 1.2s var(--spring) both; }
.js .is-shown .ev__card + .ev__card .ev__ring { animation-delay: 0.15s; }
@keyframes ring { from { --p: 0; } }

/* contact: a contact card */
.card-me { display: grid; justify-items: center; text-align: center; padding: 6px 0 4px; }
.card-me__avatar { width: 92px; height: 92px; border-radius: 50%; padding: 8px; background: var(--avatar-bg); box-shadow: 0 10px 24px -10px rgba(21, 30, 66, 0.55); margin-bottom: 12px; }
.card-me h2 { font-size: 22px !important; margin: 0 0 2px !important; }
.card-me__role { color: var(--ink-2); font-weight: 550; margin: 0 0 6px !important; }
.card-me__where { font-size: 12.5px; color: var(--ink-3); margin: 0 !important; text-wrap: balance; max-width: 34ch; }
.card-me__where .g { margin-right: 4px; }
.contacts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 0.5px var(--hair), 0 1px 3px rgba(0, 0, 0, 0.05); }
.contacts li { position: relative; }
.contacts li + li::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; border-top: 1px solid var(--hair); }
.contacts a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; text-decoration: none; transition: background-color 0.2s; }
.contacts a:hover { background: rgba(0, 0, 0, 0.03); }
.contacts a:active { background: rgba(0, 0, 0, 0.06); }
.contacts img { width: 40px; height: 40px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)); }
.contacts span { display: grid; flex: 1; min-width: 0; }
.contacts small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.contacts strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contacts__go { color: #c4c4c9; font-size: 16px; transition: transform 0.3s var(--spring); }
.contacts a:hover .contacts__go { transform: translateX(2px); color: var(--ink-3); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 !important; }
.socials a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background-color 0.2s; }
.socials a:hover { background: rgba(0, 0, 0, 0.09); color: var(--ink); }

/* terminal */
.term { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #e6e6ea; background: transparent; padding: 14px 16px 18px; min-height: 100%; cursor: text; }
.term__l { white-space: pre-wrap; word-break: break-word; }
.term a { color: #7cc4ff; }
.term__line { display: flex; gap: 8px; align-items: center; }
.term__prompt { color: #30d158; flex: none; }
.term__in { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; outline: none; caret-color: #30d158; }
.t-acc { color: #9db4ff; } .t-cmd { color: #fff; font-weight: 500; } .t-dim { color: #8e8e96; } .t-ok { color: #30d158; }

/* settings + trash */
.walls { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.wallpick { width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.wallpick__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: #333 center / cover; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--spring), box-shadow 0.2s; }
.wallpick:hover .wallpick__img { transform: translateY(-2px); }
.wallpick[aria-pressed="true"] .wallpick__img { box-shadow: 0 0 0 3px var(--blue), 0 6px 14px -8px rgba(0, 0, 0, 0.4); }
.wallpick__name { display: block; font-size: 12.5px; font-weight: 600; margin-top: 6px; text-align: center; }
.empty { display: grid; justify-items: center; text-align: center; padding: 18px 10px; }
.empty img { width: 88px; height: 88px; opacity: 0.85; margin-bottom: 8px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2)); }
.empty p { color: var(--ink-3); max-width: 300px; }

/* ---------- 3. plain page ---------- */
.os, .phone { display: none; }
.mode-desktop .os, .mode-phone .phone { display: block; }
.doc--hidden { display: none !important; }
/* The text fallback never paints in desktop or phone mode, so it can't flash behind the OS while main.js loads. */
:is(.mode-desktop, .mode-phone) :is(#dochead, #doc) { display: none !important; }
.dochead { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px max(20px, calc((100vw - 980px) / 2)); background: rgba(245, 245, 247, 0.82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--line); }
.dochead[hidden] { display: none; }
.dochead__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.dochead__nav { display: flex; gap: 16px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.dochead__nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.dochead__nav a:hover { color: var(--ink); }
.dochead__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); }
.dochead__os { font-size: 13.5px; font-weight: 650; padding: 7px 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.doc { max-width: 980px; margin: 0 auto; padding: 28px 20px 120px; }
.doc .app { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.doc .app--welcome .display { font-size: clamp(32px, 5vw, 52px); }
.docfoot { padding: 30px 0; color: var(--ink-3); font-size: 13.5px; }
.docfoot__credit { font-size: 12px; }
.callbar { display: none; }
@media (max-width: 899px) {
  .mode-doc .callbar, .no-js .callbar { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 20px; background: rgba(29, 29, 31, 0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px; color: #fff; font-weight: 650; text-decoration: none; }
  .callbar a:nth-child(2) { background: #25a35a; }
  .dochead__nav { display: none; }
  .dochead { justify-content: space-between; }
  .beforeafter { grid-template-columns: 1fr 1fr; }
}
html:not(.js) .callbar { display: none; }

/* ---------- 4. desktop page frame ---------- */
.mode-desktop body { background: #07070b; overflow: hidden; }

/* ---------- 5. desktop ---------- */
.os { position: fixed; inset: 0; overflow: hidden; color: #fff; font-size: 13px; line-height: 1.4; user-select: none; -webkit-user-select: none; background: #0d0d14; }
.os.is-behind { pointer-events: none; }
.os .win__body, .os .menu, .os input { user-select: text; -webkit-user-select: text; }
.wall { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, #3b2a6b, transparent 60%), radial-gradient(90% 80% at 90% 90%, #b24a2a, transparent 60%), #0d0d18; }
.wall__img { position: absolute; inset: -3%; background: center / cover no-repeat; opacity: 0; transition: opacity 0.9s ease; animation: ken 60s ease-in-out infinite alternate; }
.wall__img.is-on { opacity: 1; }
@keyframes ken { from { transform: scale(1.04); } to { transform: scale(1) translate3d(-1%, 0, 0); } }
.wall__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 18%, transparent 70%, rgba(0, 0, 0, 0.35)), radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.35)); }

.glass-dark { background: rgba(28, 28, 34, 0.42); }
.menubar {
  position: absolute; z-index: 9000; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  background: rgba(18, 18, 24, 0.38); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 500;
}
.menubar__l, .menubar__r { display: flex; align-items: center; gap: 2px; height: 100%; }
.mb-btn, .mb-icon { height: 24px; padding: 0 10px; border-radius: 6px; background: none; border: 0; color: #fff; display: inline-flex; align-items: center; cursor: default; text-decoration: none; font-size: 13px; font-weight: 500; }
.mb-btn:hover, .mb-btn[aria-expanded="true"], .mb-icon:hover { background: rgba(255, 255, 255, 0.18); }
.mb-deco:hover { background: none; }
.mb-icon { padding: 0 7px; font-size: 15px; }
.mb-icon .g--battery { width: 1.35em; }
.mb-logo { font-size: 16px; padding: 0 10px 0 8px; }
.mb-app { font-weight: 750; padding: 0 10px 0 4px; }
.mb-live { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; font-weight: 550; color: rgba(255, 255, 255, 0.92); }
.mb-plain {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 11px 0 9px; margin: 0 6px; border-radius: 999px;
  background: #fff; color: #111; font-weight: 700; font-size: 12.5px; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--spring), background 0.2s;
}
.mb-plain:hover { transform: translateY(-1px) scale(1.03); background: #e6ebff; }
.mb-plain:active { transform: scale(0.96); }
.mb-clock { padding: 0 8px 0 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.menu {
  position: fixed; z-index: 9500; top: 34px; min-width: 240px; padding: 5px; border-radius: 11px; color: var(--ink);
  background: rgba(246, 246, 248, 0.82); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 14px 40px -6px rgba(0, 0, 0, 0.45); transform-origin: top left;
}
.menu.is-in { animation: pop 0.18s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-3px); } }
.menu__i { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; padding: 4px 10px; border-radius: 6px; background: none; border: 0; font-size: 13.5px; text-align: left; cursor: default; color: var(--ink); }
.menu__i:hover, .menu__i:focus-visible { background: var(--blue); color: #fff; outline: none; }
.menu__i kbd { background: none; border: 0; color: inherit; opacity: 0.55; font-weight: 500; }
.menu hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); margin: 5px 8px; }
.menu--ctx { top: 0; left: 0; min-width: 210px; }

/* widgets */
.widgets { position: absolute; z-index: 2; top: 48px; left: 20px; width: 296px; display: grid; gap: 14px; transition: opacity 0.8s 0.2s, transform 0.9s 0.2s var(--spring); }
.os:not(.is-live) .widgets { opacity: 0; transform: translateX(-16px); }
.widget {
  border-radius: 22px; padding: 16px; color: #fff;
  background: rgba(24, 24, 30, 0.38); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.widget--me { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; }
.widget__avatar { width: 64px; height: 64px; border-radius: 50%; padding: 6px; background: var(--avatar-bg); }
.widget__name { margin: 0; font-weight: 750; font-size: 15px; letter-spacing: -0.01em; }
.widget__role { margin: 0 0 6px; font-size: 12.5px; opacity: 0.75; }
.widget .pill--live { background: rgba(48, 209, 88, 0.2); color: #b6f5c8; font-size: 11.5px; padding: 3px 9px 3px 8px; }
.widget__row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wbtn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; height: 34px; border-radius: 11px; border: 0; font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; background: var(--accent-grad); color: #fff; box-shadow: var(--accent-lift), 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.25s var(--spring), filter 0.2s; }
.wbtn--light { background: rgba(255, 255, 255, 0.92); color: #111; }
.wbtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wbtn:active { transform: scale(0.96); }
.widget--clock { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.aclock { position: relative; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, #e9e9ee); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.aclock i { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: #b0b0b6; border-radius: 1px; transform-origin: 1px 38px; transform: rotate(calc(var(--i) * 30deg)); }
.aclock i:nth-of-type(3n + 1) { background: #1d1d1f; height: 8px; }
.aclock span { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; }
.aclock__h { width: 4px; height: 24px; margin-left: -2px; background: #1d1d1f; }
.aclock__m { width: 3px; height: 34px; margin-left: -1.5px; background: #1d1d1f; }
.aclock__s { width: 1.5px; height: 36px; margin-left: -0.75px; background: var(--accent-ink); }
.aclock__c { width: 7px; height: 7px; left: calc(50% - 3.5px) !important; bottom: calc(50% - 3.5px) !important; border-radius: 50% !important; background: var(--accent-ink); }
.widget__k { margin: 0; font-size: 12px; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.widget__big { margin: 0; font-size: 34px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.widget__small { margin: 2px 0 0; font-size: 12px; opacity: 0.72; }
.widget--stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 10px; }
.widget--stats div { display: grid; text-align: center; gap: 2px; }
.widget--stats b { font-size: 20px; letter-spacing: -0.03em; }
.widget--stats span { font-size: 11px; opacity: 0.72; line-height: 1.25; }
@media (max-width: 1180px) { .widgets { display: none; } }

/* desktop icons */
.desk-icons { position: absolute; z-index: 2; top: 46px; right: 14px; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; transition: opacity 0.8s 0.3s; }
.os:not(.is-live) .desk-icons { opacity: 0; }
.dicon { width: 96px; display: grid; justify-items: center; gap: 4px; padding: 6px 4px; background: none; border: 0; color: #fff; cursor: default; border-radius: 10px; }
.dicon .tile { width: 60px; height: 60px; transition: transform 0.3s var(--spring); }

.dicon span { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.dicon:hover img, .dicon:hover .tile { transform: translateY(-2px); }
.dicon.is-sel img, .dicon.is-sel .tile { background: rgba(255, 255, 255, 0.16); border-radius: 12px; }
.dicon.is-sel span { background: var(--blue); text-shadow: none; }
.marquee { position: absolute; z-index: 3; background: rgba(90, 140, 255, 0.16); border: 1px solid rgba(140, 180, 255, 0.85); border-radius: 2px; pointer-events: none; }

/* windows */
.wins { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.win {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: auto; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 13px; color: var(--ink); background: rgba(250, 250, 252, 0.9);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35), inset 0 0.5px 0 rgba(255, 255, 255, 0.7), 0 22px 70px -10px rgba(0, 0, 0, 0.55), 0 6px 18px -6px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity; contain: layout;
}
.win[hidden] { display: none; }
.win:focus { outline: none; }
.win:not(.is-focused) { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 14px 40px -12px rgba(0, 0, 0, 0.45); }
.win.is-max { border-radius: 10px; }
.win__bar { position: relative; flex: none; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: rgba(236, 236, 240, 0.72); border-bottom: 1px solid rgba(0, 0, 0, 0.08); cursor: default; touch-action: none; }
.win.is-drag .win__bar { cursor: grabbing; }
.lights { display: flex; gap: 8px; position: relative; z-index: 2; }
.light { width: 12.5px; height: 12.5px; border-radius: 50%; border: 0; padding: 0; position: relative; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); cursor: default; }
.light--close { background: #ff5f57; } .light--min { background: #febc2e; } .light--max { background: #28c840; }
.win:not(.is-focused) .light { background: #d1d1d6; }
.light::before { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; line-height: 1; font-weight: 800; color: rgba(0, 0, 0, 0.55); opacity: 0; }
.light--close::before { content: "×"; font-size: 12px; } .light--min::before { content: "–"; } .light--max::before { content: "+"; }
.lights:hover .light::before { opacity: 1; }
.lights:hover .light--close { background: #ff5f57; } .lights:hover .light--min { background: #febc2e; } .lights:hover .light--max { background: #28c840; }
.win__title { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 7px; font-weight: 650; font-size: 13px; color: #3a3a3c; pointer-events: none; }
.win__title img { width: 18px; height: 18px; }
.win:not(.is-focused) .win__title { color: #9a9aa0; }
.win__body { flex: 1; min-height: 0; overflow: auto; padding: 24px 28px 30px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.25) transparent; }
.win__body > .app { animation: none; }
.win__grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }
.win.is-closing { pointer-events: none; }

.win--terminal { background: rgba(20, 20, 24, 0.9); color: #e6e6ea; }
.win--terminal .win__bar { background: rgba(40, 40, 46, 0.85); border-bottom-color: rgba(255, 255, 255, 0.06); }
.win--terminal .win__title { color: #a1a1aa; }
.win--terminal .win__title::before { content: "guest — rehan-os — zsh"; }
.win--terminal .win__body { padding: 0; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.win--resume .win__body { background: #d9d9de; }
.win--resume .pdfbar { position: sticky; top: -24px; z-index: 2; margin: -24px -28px 18px; padding: 10px 16px; background: rgba(236, 236, 240, 0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.win--work .win__body, .win--project .win__body { padding: 0; }
.win--welcome .win__body { padding: 26px 30px 28px; }

/* ---- app chrome inside windows and sheets ---- */
/* Grouped ground: white cards sit on soft grey, like a native settings pane. */
.win:not(.win--terminal):not(.win--resume):not(.win--work):not(.win--project) .win__body,
.sheet:not(:has(.app--terminal)) { background: #f2f2f6; }
.app__icon { display: none; }
.win .app__head:has(.app__icon), .sheet .app__head:has(.app__icon) {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; align-content: center;
  margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.win .app__icon, .sheet .app__icon { display: block; grid-row: span 3; width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.win .app__head .eyebrow, .sheet .app__head .eyebrow { margin: 0 0 2px; }
.win .app__head h2, .sheet .app__head h2 { margin: 0 0 3px; font-size: 22px; }
.win .app__head .app__sub, .sheet .app__head .app__sub { font-size: 13.5px; line-height: 1.45; }

/* Action bar: the window's main buttons stay in reach at the bottom. */
.win .row-links {
  position: sticky; bottom: -30px; z-index: 3; margin: 24px -28px -30px; padding: 14px 28px 16px;
  background: rgba(246, 246, 249, 0.82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.win .row-links .btn:first-child { margin-right: auto; }
.sheet .row-links {
  position: sticky; bottom: calc(-40px - env(safe-area-inset-bottom)); z-index: 3;
  margin: 22px -18px calc(-40px - env(safe-area-inset-bottom)); padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(246, 246, 249, 0.86); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.sheet .row-links .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; }

/* Entrance: content settles in just after the window lands. */
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
.js .is-shown .app > :not(.row-links) { animation: rise 0.6s var(--spring) both; }
.js .is-shown .app > :nth-child(2) { animation-delay: 0.04s; }
.js .is-shown .app > :nth-child(3) { animation-delay: 0.08s; }
.js .is-shown .app > :nth-child(4) { animation-delay: 0.12s; }
.js .is-shown .app > :nth-child(5) { animation-delay: 0.16s; }
.js .is-shown .app > :nth-child(n+6) { animation-delay: 0.2s; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > * { animation: rise 0.6s var(--spring) both; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > :nth-child(1) { animation-delay: 0.1s; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > :nth-child(2) { animation-delay: 0.15s; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > :nth-child(3) { animation-delay: 0.2s; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > :nth-child(4) { animation-delay: 0.25s; }
.js .is-shown :is(.xp, .services, .steps, .modes, .fixlist, .ev, .meta-grid) > :nth-child(n+5) { animation-delay: 0.3s; }

/* Phone sheets: tighter grids */
.sheet .modes { grid-template-columns: 1fr; }
.sheet .modes li { grid-template-columns: 36px 1fr; column-gap: 12px; }
.sheet .modes .ic { grid-row: span 2; margin: 0; }
.sheet .terms div { grid-template-columns: 96px 1fr; }
.sheet .services { grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .services li { padding: 14px; }
.sheet .services p { font-size: 12.5px; }
.sheet .beforeafter { gap: 8px; }
.sheet .mock { padding: 14px 8px 12px; }
.sheet .mock__screen { max-width: 128px; }

/* Finder */
.finder { display: grid; grid-template-columns: 196px 1fr; min-height: 100%; }
.finder__side { background: rgba(232, 232, 237, 0.65); border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100%; max-height: 100%; }
.finder__k { margin: 10px 8px 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: none; }
.fside { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; background: none; border: 0; text-align: left; font-size: 13.5px; font-weight: 550; color: var(--ink); text-decoration: none; cursor: default; }
.fside .g { color: var(--blue); font-size: 15px; }
.fside span { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.fside:hover { background: rgba(0, 0, 0, 0.05); }
.fside.is-on { background: rgba(0, 0, 0, 0.09); }
.finder__tags { margin-top: auto; }
.finder__tags p { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 4px 8px; color: var(--ink-2); }
.lbl { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.lbl--live { background: var(--live); } .lbl--concept { background: #ff9f0a; } .lbl--uni { background: #af52de; }
.finder__main { min-width: 0; overflow: auto; }
.finder__tool { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 22px 12px; background: rgba(250, 250, 252, 0.88); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.finder__title { margin: 0 !important; font-size: 18px !important; }
.finder__hint { font-size: 12px; color: var(--ink-3); }
.finder__view { padding: 18px 22px 26px; }
.finder__intro { color: var(--ink-3); font-size: 13px; margin: 0 0 16px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.file { width: 100%; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 8px; border-radius: 14px; cursor: default; }
.file__thumb { width: 100%; aspect-ratio: 16 / 10.5; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 10px 22px -12px rgba(0, 0, 0, 0.45); transition: transform 0.35s var(--spring), box-shadow 0.3s; }
.file__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.file__none { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 30px; background: repeating-linear-gradient(135deg, #f0f0f3 0 10px, #e9e9ee 10px 20px); }
.file:hover .file__thumb { transform: translateY(-3px) scale(1.015); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 18px 30px -14px rgba(0, 0, 0, 0.5); }
.file__name { font-weight: 700; font-size: 13.5px; padding: 1px 8px; border-radius: 6px; }
.file__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.file.is-sel { background: rgba(47, 107, 255, 0.1); }
.file.is-sel .file__name { background: var(--blue); color: #fff; }
.finder .archive { margin: 0; }
.finder .archive > h3, .finder .archive > .app__sub { display: none; }
.finder .archive__grid { margin: 0; }

/* project browser window */
.browser { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 8px; }
.browser__nav { display: inline-flex; gap: 10px; color: #a1a1a6; font-size: 16px; }
.browser__url { flex: 1; max-width: 520px; margin: 0 auto; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.06); font-size: 13px; font-weight: 550; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__url .g { font-size: 12px; color: var(--ink-3); }
.browser__live { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 650; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.browser__live:hover { background: #000; }
.ppage__stage { background: #0f0f12; padding: 0; }
.ppage__hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: opacity 0.14s, transform 0.4s var(--spring); }
.ppage__hero.is-swap { opacity: 0; transform: scale(0.99); }
.ppage__stage .noshot { margin: 0; border-radius: 0; aspect-ratio: 16 / 6; }
.ppage__thumbs { display: flex; gap: 8px; padding: 10px 16px; background: #1a1a1e; overflow-x: auto; }
.pthumb { flex: none; width: 104px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; cursor: pointer; opacity: 0.55; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); transition: opacity 0.2s, transform 0.3s var(--spring), box-shadow 0.2s; }
.pthumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.pthumb:hover { opacity: 0.85; }
.pthumb.is-on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.ppage__info { display: grid; grid-template-columns: minmax(200px, 0.8fr) 1.4fr; gap: 28px; padding: 26px 30px 34px; }
.ppage__info h3 { font-size: 26px; letter-spacing: -0.03em; margin: 0 0 8px; }
.ppage__info .project__body p:first-child { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 1100px) { .ppage__info { grid-template-columns: 1fr; gap: 0; } }
/* Wide project window: screenshot on the left, an inspector panel on the right. */
.win--project .win__body { container-type: inline-size; }
@container (min-width: 760px) {
  .ppage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
  .ppage__stage { grid-column: 1; grid-row: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
  .ppage__stage .noshot { height: 100%; aspect-ratio: auto; align-content: center; }
  .ppage__thumbs { grid-column: 1; grid-row: 2; }
  .ppage__info { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; gap: 0; padding: 22px 20px 20px; overflow: auto; background: #f2f2f6; border-left: 1px solid rgba(0, 0, 0, 0.08); }
  .ppage__info h3 { font-size: 22px; }
  .ppage__info .project__body { display: flex; flex-direction: column; flex: 1; }
  .ppage__info .project__body p:first-child { font-size: 14px; line-height: 1.55; }
  .ppage__info .facts { margin: 4px 0 14px; display: grid; gap: 8px; }
  .ppage__info .facts div { background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05); }
  .ppage__info .chips li { background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
  .ppage__info .project__links { margin-top: auto !important; padding-top: 18px; flex-direction: column; }
  .ppage__info .project__links .btn { justify-content: center; min-height: 42px; }
}


/* dock */
.dock { position: absolute; z-index: 8000; left: 50%; bottom: 8px; transform: translateX(-50%); transition: transform 0.9s 0.1s var(--spring), opacity 0.6s; }
.os:not(.is-live) .dock { transform: translate(-50%, 120px); opacity: 0; }
.dock__list {
  /* Fixed height: magnified icons grow up out of the bar instead of stretching it. */
  list-style: none; margin: 0; display: flex; align-items: flex-end; gap: 4px; padding: 0 8px 6px; height: 66px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px -18px rgba(0, 0, 0, 0.6);
}
.dock__li { display: flex; }
.dock__item { --sz: 54px; --lift: 0px; position: relative; width: var(--sz); height: var(--sz); padding: 0; border: 0; background: none; cursor: default; transform: translateY(var(--lift)); }
.dock__item .tile { width: 100%; height: 100%; }
.dock__item:active .tile { filter: brightness(0.82); }
.dock__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px); white-space: nowrap; font-size: 12.5px; font-weight: 550; color: #fff; padding: 4px 10px; border-radius: 7px; background: rgba(30, 30, 34, 0.78); backdrop-filter: blur(20px); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.2s var(--spring); }
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { opacity: 1; transform: translate(-50%, 0); }
.dock__run { position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); opacity: 0; transition: opacity 0.3s; }
.dock__item.is-running .dock__run { opacity: 1; }
.dock__sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255, 255, 255, 0.3); }

/* app icons: each SVG carries its own squircle, light and glyph */
.tile { position: relative; display: block; aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32)); -webkit-user-drag: none; }
.tile--xs { width: 28px; height: 28px; }
.tile--xs img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.tile--desk { width: 60px; height: 60px; }

/* Spotlight */
.spot { position: absolute; inset: 0; z-index: 9600; display: grid; justify-items: center; align-items: start; padding-top: 18vh; }
.spot[hidden] { display: none; }
.spot__panel { width: min(660px, 90vw); border-radius: 18px; overflow: hidden; color: var(--ink); background: rgba(246, 246, 248, 0.84); backdrop-filter: blur(50px) saturate(180%); -webkit-backdrop-filter: blur(50px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 80px -10px rgba(0, 0, 0, 0.6); }
.spot__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 22px; color: var(--ink-3); }
.spot__bar input { flex: 1; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 450; color: var(--ink); outline: none; min-width: 0; }
.spot__bar kbd { font-size: 11px; }
.spot__list { list-style: none; margin: 0; padding: 6px; border-top: 1px solid var(--line); max-height: 50vh; overflow: auto; }
.spot__i { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 550; cursor: default; }
.spot__i img { width: 28px; height: 28px; }
.spot__i span { flex: 1; }
.spot__i small { font-size: 12px; color: var(--ink-3); }
.spot__i[aria-selected="true"], .spot__i:hover { background: var(--blue); color: #fff; }
.spot__i[aria-selected="true"] small, .spot__i:hover small { color: rgba(255, 255, 255, 0.8); }
.spot__none { padding: 14px; color: var(--ink-3); font-size: 14px; }

/* notifications */
.notes { position: absolute; z-index: 9400; top: 40px; right: 12px; display: grid; gap: 8px; }
.note-card { position: relative; width: 370px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 14px; border-radius: 18px; color: var(--ink); background: rgba(246, 246, 248, 0.8); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 16px 40px -10px rgba(0, 0, 0, 0.5); touch-action: pan-y; cursor: grab; }
.note-card img { width: 38px; height: 38px; border-radius: 10px; background: var(--avatar-bg); padding: 3px; }
.note-card__t { margin: 0; font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; }
.note-card__t small { font-weight: 500; color: var(--ink-3); font-size: 12px; margin-right: 18px; }
.note-card__b { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.note-card__a { display: flex; gap: 6px; margin: 10px 0 0; }
.note-card__a button { flex: 1; height: 30px; border-radius: 9px; border: 0; background: rgba(0, 0, 0, 0.07); font-weight: 650; font-size: 12.5px; cursor: pointer; }
.note-card__a button:first-child { background: var(--accent-grad); color: #fff; box-shadow: var(--accent-lift); }
.note-card__x { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 11px; background: rgba(246, 246, 248, 0.95); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.15s; cursor: pointer; }
.note-card:hover .note-card__x, .note-card__x:focus-visible { opacity: 1; }

/* ---------- 6. phone ---------- */
.mode-phone body { background: #000; overflow: hidden; }
.phone { position: fixed; inset: 0; overflow: hidden; color: #fff; }
.phone .wall__img { animation: none; inset: 0; }
.phone .wall__shade { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.5)); }
.ph-home { position: absolute; inset: 0; overflow-y: auto; padding: max(12px, env(safe-area-inset-top)) 18px 150px; transform-origin: 50% 20%; overscroll-behavior: contain; }
.ph-status { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ph-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-city { font-size: 12px; opacity: 0.75; font-weight: 600; flex: 1; }
.ph-plain { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; background: #fff; color: #111; font-weight: 750; font-size: 13.5px; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.ph-plain:active { transform: scale(0.95); }
.ph-widget { border-radius: 26px; padding: 16px; margin-bottom: 14px; background: rgba(24, 24, 30, 0.42); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 30px -20px rgba(0, 0, 0, 0.7); }
.ph-widget--me { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; }
.ph-widget--me > img { width: 64px; height: 64px; border-radius: 50%; padding: 6px; background: var(--avatar-bg); }
.ph-name { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 800; }
.ph-role { margin: 0 0 6px; font-size: 13px; opacity: 0.8; }
.ph-widget .pill--live { background: rgba(48, 209, 88, 0.22); color: #c4f7d2; font-size: 12px; padding: 3px 10px 3px 8px; }
.ph-widget--who h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.ph-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-chips button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; font-size: 13px; transition: transform 0.25s var(--spring); }
.ph-chips button:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.24); }
.ph-chips img { width: 26px; height: 26px; }
.ph-grid { list-style: none; padding: 6px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.ph-app { width: 100%; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #fff; }
.ph-app span:last-child { font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); text-align: center; line-height: 1.2; }
.tile--ph { width: min(62px, 17vw); --sz: 60px; border-radius: 24%; }
.ph-app:active .tile { transform: scale(0.92); filter: brightness(0.85); transition: transform 0.1s; }
.ph-dock { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 10px 8px; border-radius: 32px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ph-dock a { display: grid; justify-items: center; gap: 4px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 650; }
.ph-dock .tile--ph { width: min(54px, 14vw); }
.ph-dock a:active .tile { transform: scale(0.92); }
.sheets { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: max(14px, env(safe-area-inset-top)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); pointer-events: auto; will-change: transform; }
.sheet__head { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; touch-action: none; }
.sheet__grab { position: absolute; left: 50%; top: 7px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(0, 0, 0, 0.2); }
.sheet__title { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; }
.sheet__x { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.07); font-size: 16px; }
.sheet__body { flex: 1; overflow-y: auto; padding: 6px 18px calc(40px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet:has(.app--terminal) { background: #141418; color: #e6e6ea; }
.sheet:has(.app--terminal) .sheet__x { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sheet:has(.app--terminal) .sheet__body { padding: 0; }
.sheet .project { padding: 14px; }
.sheet .shots { grid-template-columns: 1fr; }
.sheet .shots img:not(:first-child) { display: none; }
.sheet .paper { padding: 22px 18px; }


/* ---------- Apple-style continuous corners ----------
   corner-shape turns a circular corner into a smooth superellipse, the
   "squircle" curve Apple uses on windows, widgets and icons. The radii are a
   touch larger because a squircle corner reads tighter than a round one.
   Browsers without support keep the plain rounded corners above. */
@supports (corner-shape: squircle) {
  .win, .widget, .dock__list, .menu, .spot__panel, .note-card, .ph-widget, .ph-dock, .sheet,
  .path, .project, .services li, .steps li, .contacts a, .terms, .facts div, .meta-grid div,
  .archive__grid a, .file__thumb, .file, .wallpick__img, .paper, .noshot, .shots img, .ppage__thumbs .pthumb,
  .btn, .wbtn, .mb-plain, .ph-plain, .ph-chips button, .browser__url, .browser__live,
  .welcome__avatar, .widget__avatar, .mock__screen, .dicon.is-sel .tile, .aclock, .chips li, .tag, .pill,
  .xp, .xp__logo, .stackgroup, .modes li, .mock, .fixlist, .ev__total, .ev__card, .ic, .steps li > div, .callout {
    corner-shape: superellipse(1.6);
  }
  .win { border-radius: 18px; }
  .win.is-max { border-radius: 14px; }
  .widget { border-radius: 28px; }
  .dock__list { border-radius: 30px; }
  .menu { border-radius: 14px; }
  .spot__panel { border-radius: 24px; }
  .note-card { border-radius: 24px; }
  .path, .project, .contacts a, .terms, .services li, .steps li { border-radius: 20px; }
  .file__thumb { border-radius: 14px; }
  .archive__grid a { border-radius: 16px; }
  .ph-widget { border-radius: 32px; }
  .ph-dock { border-radius: 38px; }
  .sheet { border-radius: 32px 32px 0 0; }
  .mock__screen { border-radius: 28px; }
  .xp, .stackgroup, .modes li, .mock, .fixlist, .ev__total, .ev__card, .terms, .contacts { border-radius: 22px; }
  .services li, .meta-grid div, .steps li > div, .callout { border-radius: 20px; }
  .ic { border-radius: 11px; } .xp__logo { border-radius: 14px; }
  /* circles stay circles */
  .welcome__avatar, .widget__avatar, .aclock, .chips li, .tag, .pill, .btn, .wbtn, .mb-plain, .ph-plain { corner-shape: round; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .wall__img { animation: none; }
}
