/* =========================================================================
   Hues OS — huesnetwork.com
   A desktop made of liquid glass over a live hue wallpaper.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mb-h: 32px;
  --dock-ic: 54px;
  --dock-pad: 8px;
  --dock-h: calc(var(--dock-ic) + var(--dock-pad) * 2 + 10px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: linear(0, 0.0413, 0.1426, 0.2753, 0.4185, 0.5576, 0.6831, 0.7901, 0.8766, 0.9429, 0.9909, 1.0232, 1.0426, 1.052, 1.0542, 1.0515, 1.0457, 1.0384, 1.0306, 1.0231, 1.0164, 1.0107, 1.0062, 1.0027, 1.0002, 0.9986, 0.9976, 0.9971, 0.9971, 0.9972, 0.9976, 0.998, 0.9984, 0.9988, 1);
  --spring-soft: linear(0, 0.0473, 0.1561, 0.2901, 0.4267, 0.553, 0.6626, 0.7534, 0.8257, 0.8815, 0.923, 0.9531, 0.974, 0.988, 0.9969, 1.0022, 1.005, 1.0061, 1.0062, 1.0058, 1.005, 1.0041, 1.0033, 1.0025, 1.0019, 1.0014, 1);

  --accent: #0a7cff;
  --accent-ink: #fff;
  --brand-yellow: #fecc6a;

  /* light glass */
  --text: #1d1d1f;
  --text-2: rgba(29, 29, 31, .66);
  --text-3: rgba(29, 29, 31, .44);
  --sep: rgba(0, 0, 0, .09);
  --ctl: rgba(0, 0, 0, .055);
  --ctl-h: rgba(0, 0, 0, .09);
  --win-bg: rgba(244, 244, 248, .70);
  --win-solid: rgba(255, 255, 255, .80);
  --win-side: rgba(255, 255, 255, .46);
  --panel: rgba(255, 255, 255, .86);
  /* liquid glass: a clear shell over the wallpaper; ink flips with what is behind it */
  --glass-top: rgba(255, 255, 255, .30);
  --glass-bot: rgba(255, 255, 255, .18);
  --glass-ink: #fff;
  --glass-ink-2: rgba(255, 255, 255, .78);
  --glass-ink-3: rgba(255, 255, 255, .58);
  --glass-tshadow: 0 1px 2px rgba(0, 0, 0, .3);
  --glass-hover: rgba(255, 255, 255, .16);
  --glass-sel: rgba(255, 255, 255, .28);
  --glass-cap: rgba(255, 255, 255, .2);
  --pill: rgba(255, 255, 255, .64);
  --rim-hi: rgba(255, 255, 255, .95);
  --rim-lo: rgba(255, 255, 255, .25);
  --menu-bg: rgba(240, 240, 246, .74);
  --field: rgba(255, 255, 255, .7);
  --shadow-win: 0 0 0 .5px rgba(0, 0, 0, .2), 0 30px 80px -12px rgba(0, 0, 0, .48), 0 10px 28px rgba(0, 0, 0, .16);
  --shadow-win-off: 0 0 0 .5px rgba(0, 0, 0, .16), 0 18px 46px -12px rgba(0, 0, 0, .32);
  --shadow-pop: 0 0 0 .5px rgba(0, 0, 0, .14), 0 18px 50px rgba(0, 0, 0, .28);
  --tl-off: #d0d0d6;
  --tile-bg: #1d1d1f;
  --tile-fg: #fff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #0a84ff;
    --text: #f5f5f7;
    --text-2: rgba(245, 245, 247, .7);
    --text-3: rgba(245, 245, 247, .45);
    --sep: rgba(255, 255, 255, .1);
    --ctl: rgba(255, 255, 255, .08);
    --ctl-h: rgba(255, 255, 255, .13);
    --win-bg: rgba(30, 30, 36, .62);
    --win-solid: rgba(38, 38, 44, .78);
    --win-side: rgba(255, 255, 255, .07);
    --panel: rgba(32, 32, 40, .86);
    --glass-top: rgba(36, 36, 48, .42);
    --glass-bot: rgba(16, 16, 24, .34);
    --pill: rgba(255, 255, 255, .11);
    --rim-hi: rgba(255, 255, 255, .5);
    --rim-lo: rgba(255, 255, 255, .08);
    --menu-bg: rgba(40, 40, 48, .72);
    --field: rgba(255, 255, 255, .07);
    --shadow-win: 0 0 0 .5px rgba(0, 0, 0, .6), 0 30px 80px -12px rgba(0, 0, 0, .7), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-win-off: 0 0 0 .5px rgba(0, 0, 0, .5), 0 18px 46px -12px rgba(0, 0, 0, .5);
    --tl-off: #4b4b52;
    --tile-bg: rgba(255, 255, 255, .16);
    --tile-fg: #fff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #0a84ff;
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, .7);
  --text-3: rgba(245, 245, 247, .45);
  --sep: rgba(255, 255, 255, .1);
  --ctl: rgba(255, 255, 255, .08);
  --ctl-h: rgba(255, 255, 255, .13);
  --win-bg: rgba(30, 30, 36, .62);
  --win-solid: rgba(38, 38, 44, .78);
  --win-side: rgba(255, 255, 255, .07);
  --panel: rgba(32, 32, 40, .86);
  --glass-top: rgba(36, 36, 48, .42);
  --glass-bot: rgba(16, 16, 24, .34);
  --pill: rgba(255, 255, 255, .11);
  --rim-hi: rgba(255, 255, 255, .5);
  --rim-lo: rgba(255, 255, 255, .08);
  --menu-bg: rgba(40, 40, 48, .72);
  --field: rgba(255, 255, 255, .07);
  --shadow-win: 0 0 0 .5px rgba(0, 0, 0, .6), 0 30px 80px -12px rgba(0, 0, 0, .7), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-win-off: 0 0 0 .5px rgba(0, 0, 0, .5), 0 18px 46px -12px rgba(0, 0, 0, .5);
  --tl-off: #4b4b52;
  --tile-bg: rgba(255, 255, 255, .16);
  --tile-fg: #fff;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
/* what shows wherever the wallpaper doesn't reach (behind the browser's bars, on overscroll);
   os.js keeps --edge-top / --edge-bottom equal to the wallpaper's own edges */
html { background: var(--edge-top, #12427a) linear-gradient(var(--edge-top, #12427a), var(--edge-bottom, #2d6aa3)) fixed; }
.edge-t, .edge-b { position: fixed; left: 0; right: 0; z-index: 0; pointer-events: none; }
.edge-t { top: 0; height: max(1px, env(safe-area-inset-top)); background: var(--edge-top, #12427a); }
.edge-b { bottom: 0; height: max(1px, env(safe-area-inset-bottom)); background: var(--edge-bottom, #2d6aa3); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font: 13px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: default; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { top: 44px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gl { width: 18px; height: 18px; flex: none; }
.ic { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }

/* ---------------------------------------------------------------- wallpaper */
#wallpaper { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; }
.wall-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(90% 55% at 50% 100%, #4aa0e0 0%, transparent 70%),
    radial-gradient(120% 60% at 50% 110%, #eaf6ff 0%, transparent 55%),
    linear-gradient(180deg, #06172e 0%, #06172e 22%, #0f3c73 58%, #1d5fa3 100%);
}
.no-gl .wall-fallback, .no-js .wall-fallback { display: block; }
.no-gl #wallpaper, .no-js #wallpaper { display: none; }

/* ---------------------------------------------------------------- menu bar */
.menubar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--mb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  color: #fff;
  font-size: 13px; font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  background: linear-gradient(rgba(0, 0, 0, .26), rgba(0, 0, 0, 0));
}
.mb-l, .mb-r { display: flex; align-items: center; gap: 1px; height: 100%; }
.mb-btn {
  height: 24px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background-color .15s;
}
.mb-btn:hover, .mb-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .2); }
.mb-btn:active { background: rgba(255, 255, 255, .28); }
.mb-logo { padding: 0 11px; }
.mb-mark { height: 15px; width: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.mb-app b { font-weight: 700; }
.mb-ico { padding: 0 8px; }
.mb-ico .gl { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.mb-clock { padding: 0 10px; font-variant-numeric: tabular-nums; }

/* menus */
.menu, .nt, .cc, .sp-box, .sp-results { isolation: isolate; }
.nt, .sp-results { position: relative; }
.menu {
  position: fixed; z-index: 70;
  top: calc(var(--mb-h) + 2px);
  min-width: 240px; max-height: calc(100vh - var(--mb-h) - 20px); overflow: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: var(--shadow-pop), inset 0 0 0 .5px var(--rim-hi);
  color: var(--text);
  transform-origin: top left;
  animation: menu-in .18s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
.mi {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  min-height: 26px; padding: 3px 10px;
  border-radius: 8px;
  font-size: 13px; text-align: left;
  white-space: nowrap;
}
.mi[data-indent] { padding-left: 26px; color: var(--text-2); }
.mi:hover, .mi:focus-visible, .mi.is-hot { background: var(--accent); color: var(--accent-ink); outline: none; }
.mi:hover kbd, .mi.is-hot kbd { color: rgba(255, 255, 255, .8); }
.mi-t { flex: 1; }
.mi kbd { font: inherit; color: var(--text-3); }
.mi-ext { width: 13px; height: 13px; opacity: .6; }
.mi-check { width: 12px; flex: none; }
.mi[aria-checked="true"] .mi-check::before { content: "✓"; font-weight: 700; }
.mi:disabled { opacity: .4; pointer-events: none; }
.ms { height: 1px; margin: 5px 10px; border: 0; background: var(--sep); }
.mi-wins:empty { display: none; }
.mi-wins::before { content: ""; display: block; height: 1px; margin: 5px 10px; background: var(--sep); }

/* ---------------------------------------------------------------- desktop */
.desktop { position: fixed; inset: 0; z-index: 10; }

/* hero logo — the "h" itself is drawn in glass by the wallpaper shader */
.hero {
  position: absolute; left: 50%; top: 47%;
  translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.hero-logo {
  width: clamp(150px, min(23vw, calc((100vh - 260px) * .62)), 330px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(8, 4, 40, .3)) drop-shadow(0 10px 30px rgba(8, 4, 40, .24));
}
.hero-mark { transition: opacity .9s var(--ease); }
.gl-glass .hero-mark { opacity: 0; }
.hero-hues { --logo-hues: #fffdf9; }
.hero-network, .sl-logo { --logo-network: #fff; }
.hero-tag {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  padding-left: .34em;
}

/* desktop icons */
.icons {
  position: absolute;
  top: calc(var(--mb-h) + 16px); right: 14px;
  bottom: calc(var(--dock-h) + 20px);
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 106px);
  direction: rtl; gap: 4px 6px;
}
.dicon {
  direction: ltr;
  width: 94px; height: 106px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 4px;
  touch-action: none;
}
.dicon-art { position: relative; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 14px; transition: background-color .15s; }
.dicon-art .ic { position: relative; width: 68px; height: 68px; transition: transform .3s var(--spring); }
.dicon:hover .dicon-art .ic { transform: translateY(-2px) scale(1.03); }
.dicon-temp { font: inherit; color: inherit; }
.lbl-s, .ph-back { display: none; }
.dicon-label {
  max-width: 90px; padding: 1px 6px; border-radius: 5px;
  color: #fff; font-size: 12px; font-weight: 500; line-height: 1.25; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* over the bright clouds wallpaper, labels and the wordmark carry a deeper shadow */
.wall-sky .dicon-label { text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 0 1px rgba(0, 0, 0, .7), 0 0 10px rgba(6, 23, 46, .45); }
.wall-sky .hero-logo { filter: drop-shadow(0 2px 14px rgba(6, 23, 46, .35)); }
.dicon.is-sel .dicon-art, .dicon:focus-visible .dicon-art { background: rgba(0, 0, 0, .24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.dicon.is-sel .dicon-label, .dicon:focus-visible .dicon-label { background: var(--accent); text-shadow: none; }
.dicon:focus-visible { outline: none; }
.dicon.is-dragging { opacity: .85; z-index: 5; }
.dicon.is-pressed .dicon-art .ic { transform: scale(.93); transition: transform .12s; }

/* widgets */
.widgets {
  position: absolute; left: 18px; top: calc(var(--mb-h) + 16px);
  display: grid; grid-template-columns: 158px 158px; gap: 14px;
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.widget {
  position: relative;
  border-radius: 24px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 34px rgba(0, 0, 0, .16);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}
.w-sm { height: 158px; }
.w-md { grid-column: span 2; }
.w-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
/* Weather, like iOS: a greeting and a sky for the part of the day (set on <html> before first paint) */
.w-wx {
  display: flex; flex-direction: column; padding: 12px 15px 13px; overflow: hidden; isolation: isolate;
  --sky: linear-gradient(180deg, #2f7fd8, #63a8ec);
  background: var(--sky);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 34px rgba(0, 0, 0, .2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: background .8s;
}
[data-daypart="morning"] .w-wx { --sky: linear-gradient(180deg, #3f8fdf 0%, #72b5ee 58%, #f4c88f 100%); }
[data-daypart="afternoon"] .w-wx { --sky: linear-gradient(180deg, #1e6fd2 0%, #4b9de9 62%, #82c0f3 100%); }
[data-daypart="evening"] .w-wx { --sky: linear-gradient(180deg, #2c3a7a 0%, #8a4f88 56%, #ef8b5c 100%); }
[data-daypart="night"] .w-wx { --sky: linear-gradient(180deg, #060c22 0%, #111d41 60%, #1f2d58 100%); }
.w-wx > p { position: relative; z-index: 1; }
.w-wx-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* the weather tints the sky: grey for cloud, slate for rain and storms, milky for fog */
.w-wx[data-sky="cloudy"] .w-wx-sky { background: linear-gradient(180deg, rgba(126, 138, 160, .55), rgba(98, 110, 132, .45)); }
.w-wx[data-sky="rain"] .w-wx-sky, .w-wx[data-sky="storm"] .w-wx-sky {
  background: repeating-linear-gradient(104deg, rgba(255, 255, 255, 0) 0 11px, rgba(255, 255, 255, .13) 11px 12px) 0 0 / 120px 120px,
              linear-gradient(180deg, rgba(58, 70, 92, .62), rgba(44, 54, 74, .55));
  animation: wx-rain .7s linear infinite;
}
.w-wx[data-sky="storm"] .w-wx-sky { background-color: rgba(30, 30, 52, .3); }
.w-wx[data-sky="fog"] .w-wx-sky { background: linear-gradient(180deg, rgba(205, 210, 220, .38), rgba(170, 178, 190, .3)); }
@keyframes wx-rain { to { background-position: -26px 120px, 0 0; } }
/* clear skies: a warm sun glow by day, stars at night */
[data-daypart="morning"] .w-wx[data-sky="clear"] .w-wx-sky, [data-daypart="afternoon"] .w-wx[data-sky="clear"] .w-wx-sky {
  background: radial-gradient(circle at 86% 10%, rgba(255, 236, 170, .55), rgba(255, 236, 170, 0) 46%);
  animation: wx-glow 6s ease-in-out infinite alternate;
}
[data-daypart="night"] .w-wx[data-sky="clear"] .w-wx-sky, [data-daypart="night"] .w-wx[data-sky="cloudy"] .w-wx-sky::after {
  background:
    radial-gradient(1px 1px at 18% 22%, #fff, transparent), radial-gradient(1px 1px at 62% 12%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 82% 34%, #fff, transparent), radial-gradient(1px 1px at 40% 44%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, .7), transparent), radial-gradient(1.2px 1.2px at 28% 62%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 70% 52%, rgba(255, 255, 255, .6), transparent), radial-gradient(1px 1px at 10% 84%, rgba(255, 255, 255, .6), transparent);
  animation: wx-twinkle 4s ease-in-out infinite alternate;
}
[data-daypart="evening"] .w-wx[data-sky="clear"] .w-wx-sky { background: radial-gradient(ellipse at 50% 112%, rgba(255, 196, 120, .55), rgba(255, 196, 120, 0) 62%); }
@keyframes wx-glow { from { opacity: .75; } to { opacity: 1; } }
@keyframes wx-twinkle { from { opacity: .55; } to { opacity: 1; } }
.w-wx-hi { font-size: 13.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
.w-wx-loc { font-size: 11.5px; font-weight: 500; opacity: .85; }
.w-wx-t { margin-top: 3px; font: 400 40px/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.w-wx.is-time .w-wx-t { font-size: 34px; margin-top: 7px; }
.w-wx-ic { margin-top: auto; height: 20px; }
.w-wx-ic svg { width: 20px; height: 20px; display: block; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.w-wx-c { font-size: 12px; font-weight: 600; line-height: 1.25; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-wx-hl { font-size: 12px; font-weight: 500; opacity: .92; white-space: pre; }
.w-stat { display: flex; flex-direction: column; justify-content: flex-end; }
.w-big { font: 600 46px/1 var(--font-d); letter-spacing: -.02em; margin: 6px 0 8px; }
.w-sub { font-size: 12.5px; opacity: .9; }
.w-sub b { font-weight: 700; }
.w-say { padding: 18px 20px 20px; }
.w-say-l { margin-top: 8px; font: 700 27px/1.05 var(--font-d); letter-spacing: -.02em; }
.w-say-s { margin-top: 6px; font-size: 15px; opacity: .88; }
.w-svc ul { margin-top: 10px; display: grid; gap: 2px; }
.w-svc a { display: flex; align-items: center; gap: 10px; padding: 5px 6px; margin: 0 -6px; border-radius: 10px; font-size: 13.5px; font-weight: 500; transition: background-color .15s; }
.w-svc a:hover { background: rgba(255, 255, 255, .14); }
.w-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .45); }
.w-dot .gl { width: 15px; height: 15px; color: #fff; }
.has-front .widgets { opacity: .55; filter: saturate(.3); }
/* Photos widget: pictures crossfade in a random order, each drifting slowly */
.w-photos { height: 206px; padding: 0; overflow: hidden; isolation: isolate; }
.w-photos::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .28); }
.w-ph-i { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.5s var(--ease); cursor: zoom-in; }
.w-ph-i.is-on { opacity: 1; z-index: 1; pointer-events: auto; }
.w-photos.is-still .w-ph-i { transition: none; }
.w-ph-i img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform-origin: var(--kb-o, 50% 50%); }
.w-ph-i.is-on img, .w-ph-i.is-out img { animation: ph-kb 9s linear both; }
@keyframes ph-kb { from { transform: scale(1.04); } to { transform: scale(1.14) translate(var(--kb-x, 0), var(--kb-y, 0)); } }
.w-ph-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; padding: 34px 16px 12px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
}
.w-ph-t { font-size: 13px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }

/* ---------------------------------------------------------------- dock */
.dock {
  position: fixed; left: 50%; bottom: 8px; z-index: 50;
  translate: -50% 0;
}
.dock-list {
  position: relative;
  display: flex; align-items: flex-end;
  height: calc(var(--dock-ic) + var(--dock-pad) * 2);
  padding: var(--dock-pad) 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
  backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .5), inset 0 1px 1.5px rgba(255, 255, 255, .55), inset 0 -10px 20px -14px rgba(255, 255, 255, .5), 0 16px 40px rgba(0, 0, 0, .28), 0 0 0 .5px rgba(0, 0, 0, .12);
}
.dock-list::before, .widget::before, .menu::before, .nt::before, .cc::before, .sp-box::before, .sp-results::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--la, 315deg), rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 40deg, rgba(255, 255, 255, .06) 110deg, rgba(255, 255, 255, .04) 180deg, rgba(255, 255, 255, .06) 250deg, rgba(255, 255, 255, .35) 320deg, rgba(255, 255, 255, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.dock-cell {
  --s: 1;
  position: relative;
  width: calc(var(--dock-ic) * var(--s));
  height: var(--dock-ic);
  margin: 0 3px;
  flex: none;
}
.dock-item {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: calc(var(--dock-ic) * var(--s));
  display: block;
  transform-origin: 50% 100%;
}
.dock-item:active .ic { filter: brightness(.75); }
.dock-tip {
  position: absolute; left: 50%; bottom: calc(var(--dock-ic) * var(--s) + 14px);
  translate: -50% 0;
  padding: 4px 11px; border-radius: 9px;
  white-space: nowrap; font-size: 13px; font-weight: 500;
  color: var(--text);
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--shadow-pop), inset 0 0 0 .5px var(--rim-hi);
  opacity: 0; pointer-events: none;
  transition: opacity .12s;
}
.dock-cell:hover .dock-tip, .dock-item:focus-visible + .dock-tip { opacity: 1; }
.dock-dot {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 4px rgba(255, 255, 255, .6);
  opacity: 0; transition: opacity .3s;
}
.dock-cell.is-running .dock-dot { opacity: 1; }
.dock-sep { width: 1px; height: 44px; margin: 0 7px; align-self: center; background: rgba(255, 255, 255, .38); box-shadow: 1px 0 0 rgba(0, 0, 0, .06); flex: none; }
.dock-cell.is-bouncing .dock-item { animation: dock-bounce .62s var(--ease) 2; }
@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-24px); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  70% { transform: translateY(0); }
  85% { transform: translateY(-4px); }
}
.dock-cell.is-new { animation: dock-cell-in .45s var(--spring); }
@keyframes dock-cell-in { from { width: 0; margin: 0; opacity: 0; } }

/* ---------------------------------------------------------------- windows */
.windows { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.win {
  --w: 900px; --h: 620px;
  position: absolute; left: 50%; top: calc(50% - 20px);
  width: min(var(--w), calc(100vw - 40px));
  height: min(var(--h), calc(100vh - var(--mb-h) - var(--dock-h) - 34px));
  translate: -50% -50%;
  display: flex; flex-direction: column;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  -webkit-backdrop-filter: blur(34px) saturate(2) brightness(1.06);
  backdrop-filter: blur(34px) saturate(2) brightness(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .6),
    inset 0 -1px 1px rgba(255, 255, 255, .16),
    inset 0 0 34px rgba(255, 255, 255, .08),
    var(--shadow-win);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  user-select: text; -webkit-user-select: text;
}
.win.is-placed { left: 0; top: 0; translate: var(--x, 0px) var(--y, 0px); }
.win::before {
  content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  border-radius: inherit; padding: 1px;
  padding: 1.3px;
  background: conic-gradient(from var(--la, 315deg), rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 38deg, rgba(255, 255, 255, .1) 100deg, rgba(255, 255, 255, .05) 180deg, rgba(255, 255, 255, .1) 260deg, rgba(255, 255, 255, .42) 322deg, rgba(255, 255, 255, .98));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* the light the glass catches: a soft sheen that leans toward the pointer */
.win::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(70% 46% at var(--lx, 22%) 0%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(60% 40% at calc(100% - var(--lx, 22%)) 100%, rgba(255, 255, 255, .07), transparent 70%);
}
.win.is-inactive { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 0 30px rgba(255, 255, 255, .06), var(--shadow-win-off); }
.win.is-inactive::before { opacity: .7; }
/* over a bright part of the wallpaper the glass ink turns dark (os.js samples it) */
.win.ink-dark {
  --glass-ink: #1d1d1f; --glass-ink-2: rgba(29, 29, 31, .7); --glass-ink-3: rgba(29, 29, 31, .48);
  --glass-tshadow: 0 1px 1px rgba(255, 255, 255, .35); --glass-hover: rgba(0, 0, 0, .06); --glass-sel: rgba(0, 0, 0, .1);
  --glass-cap: rgba(255, 255, 255, .45);
}
.win.is-max { border-radius: 18px; }
.win.is-anim { will-change: transform, opacity; }
.win.is-genie { transition: none !important; box-shadow: none; }   /* the shadow cannot follow the bend; it returns as the window lands */
.win.is-dragging { user-select: none; -webkit-user-select: none; }

.win-bar {
  position: relative; z-index: 3;
  flex: none; height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 20px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;   /* a finger drags the window instead of scrolling the page */
  color: var(--glass-ink); text-shadow: var(--glass-tshadow);
  transition: color .4s;
}
.win-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.win-title h1, .win-title .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.win-sub { font-size: 11.5px; color: var(--glass-ink-2); white-space: nowrap; }
.win-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* traffic lights */
.tl { display: flex; gap: 8px; flex: none; }
.tl-btn {
  position: relative;
  width: 13px; height: 13px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2);
}
.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-max { background: #28c840; }
.tl-btn::before { font: 700 10px/1 var(--font); color: rgba(0, 0, 0, .55); opacity: 0; }
.tl-close::before { content: "×"; font-size: 12px; margin-top: -1px; }
.tl-min::before { content: "−"; }
.tl-max::before { content: "+"; }
.tl:hover .tl-btn::before, .tl:focus-within .tl-btn::before { opacity: 1; }
.win.is-inactive .tl:not(:hover) .tl-btn { background: var(--tl-off); }
.win[data-fixed] .tl-max { background: var(--tl-off); pointer-events: none; }

/* toolbar glass pills */
.pill {
  height: 34px; padding: 0 3px; border-radius: 17px;
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--glass-cap);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 0 0 .5px rgba(255, 255, 255, .45), 0 2px 8px rgba(0, 0, 0, .1);
  text-shadow: none;
}
.pill-btn {
  height: 28px; min-width: 32px; padding: 0 8px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--glass-ink);
  transition: background-color .15s;
}
.pill-btn:hover { background: var(--glass-hover); }
.pill-btn:active { background: var(--glass-sel); }
.pill-btn:disabled, .pill-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pill-btn .gl { width: 17px; height: 17px; }
.pill-search { position: relative; }
.pill-search .gl { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--glass-ink-3); pointer-events: none; }
.pill-search input {
  width: 180px; height: 28px; padding: 0 12px 0 31px;
  border: 0; border-radius: 14px; outline: none;
  background: transparent; font-size: 13px;
}
.pill-search input { color: var(--glass-ink); }
.pill-search input::placeholder { color: var(--glass-ink-3); }

.btn {
  height: 30px; padding: 0 14px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  background: var(--ctl); color: var(--text);
  box-shadow: inset 0 0 0 .5px var(--sep);
  transition: background-color .15s, transform .15s;
  cursor: default;
}
.btn:hover { background: var(--ctl-h); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn .gl { width: 16px; height: 16px; }
.win-bar .btn:not(.btn-primary), .about .btn:not(.btn-primary), .alert .btn:not(.btn-primary) {
  background: var(--glass-cap); color: var(--glass-ink);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 0 0 .5px rgba(255, 255, 255, .45), 0 2px 8px rgba(0, 0, 0, .1);
}
.win-bar .btn:not(.btn-primary):hover, .about .btn:not(.btn-primary):hover, .alert .btn:not(.btn-primary):hover { background: var(--glass-sel); }
.btn-primary { text-shadow: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 2px 10px color-mix(in srgb, var(--accent) 45%, transparent); }

.win-body { position: relative; flex: 1; min-height: 0; display: flex; }
.win-status {
  flex: none; height: 30px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: var(--text-2);
  border-top: .5px solid var(--sep);
}
.scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .4) transparent; }

/* sidebar inset panel (Tahoe floating sidebar) */
.side {
  flex: none; width: 216px;
  margin: 0 0 10px 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 0 0 .5px rgba(255, 255, 255, .38), 0 6px 18px rgba(0, 0, 0, .08);
  color: var(--glass-ink); text-shadow: var(--glass-tshadow);
}
.win.ink-dark .side { background: rgba(255, 255, 255, .3); }
.side-h { margin: 12px 10px 4px; font-size: 11px; font-weight: 700; color: var(--glass-ink-3); }
.side-h:first-child { margin-top: 4px; }
.side-i {
  display: flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 10px; border-radius: 9px;
  font-size: 13px; color: var(--glass-ink);
}
.side-i:hover { background: var(--glass-hover); }
.side-i.is-sel { background: var(--glass-sel); font-weight: 600; }
.side-i .gl { width: 17px; height: 17px; color: var(--glass-ink-2); }
.side-i.is-sel .gl { color: var(--glass-ink); }
.side-i .n { margin-left: auto; font-size: 11.5px; color: var(--glass-ink-3); font-variant-numeric: tabular-nums; }
.side-i .ic { width: 20px; height: 20px; flex: none; }

/* resize handles (added by os.js) */
.rz { position: absolute; z-index: 40; }
.rz-r { top: 14px; right: -3px; bottom: 14px; width: 8px; cursor: ew-resize; }
.rz-b { left: 14px; right: 14px; bottom: -3px; height: 8px; cursor: ns-resize; }
.rz-l { top: 14px; left: -3px; bottom: 14px; width: 8px; cursor: ew-resize; }
.rz-br { right: -3px; bottom: -3px; width: 18px; height: 18px; cursor: nwse-resize; }
.rz-bl { left: -3px; bottom: -3px; width: 18px; height: 18px; cursor: nesw-resize; }

/* ---------------------------------------------------------------- notifications */
.notify { position: fixed; top: calc(var(--mb-h) + 8px); right: 10px; z-index: 80; width: min(360px, calc(100vw - 20px)); display: grid; gap: 8px; pointer-events: none; }
.nt {
  pointer-events: auto;
  display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 20px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: var(--shadow-pop), inset 0 0 0 .5px var(--rim-hi);
  color: var(--text);
  animation: nt-in .6s var(--spring) both;
}
.nt.is-out { animation: nt-out .35s var(--ease-in) both; }
@keyframes nt-in { from { transform: translateX(calc(100% + 24px)); opacity: .4; } }
@keyframes nt-out { to { transform: translateX(calc(100% + 24px)); opacity: 0; } }
.nt-ic { grid-row: span 2; width: 44px; height: 44px; margin: -3px; }
.nt-t { font-weight: 700; font-size: 13px; }
.nt-time { font-size: 11px; color: var(--text-3); }
.nt-b { grid-column: 2 / 4; font-size: 13px; color: var(--text-2); line-height: 1.35; }

/* ---------------------------------------------------------------- spotlight */
.spotlight {
  position: fixed; left: 50%; top: 20vh; z-index: 85;
  width: min(680px, calc(100vw - 24px));
  translate: -50% 0;
  animation: sp-in .32s var(--spring-soft);
}
@keyframes sp-in { from { opacity: 0; transform: scale(.96); } }
.sp-box, .sp-results {
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(36px) saturate(2);
  backdrop-filter: blur(36px) saturate(2);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 26px 70px rgba(0, 0, 0, .34), inset 0 0 0 .5px var(--rim-hi);
}
.sp-box { position: relative; display: flex; align-items: center; height: 60px; border-radius: 30px; padding: 0 22px; gap: 12px; }
.sp-ic { width: 22px; height: 22px; color: var(--text-2); }
.sp-box input { flex: 1; height: 100%; border: 0; outline: none; background: transparent; font: 400 22px/1 var(--font-d); color: var(--text); }
.sp-box input::placeholder { color: var(--text-3); }
.sp-box input::-webkit-search-cancel-button { display: none; }
.sp-results { margin-top: 10px; border-radius: 24px; padding: 8px; max-height: 50vh; overflow: auto; }
.sp-results:empty { display: none; }
.sp-h { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.sp-i { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 12px; font-size: 14px; }
.sp-i .ic { width: 36px; height: 36px; margin: -3px; flex: none; }
.sp-i .gl { width: 22px; height: 22px; margin: 0 4px; color: var(--accent); }
.sp-i small { margin-left: auto; color: var(--text-3); font-size: 12px; }
.sp-i.is-hot { background: var(--accent); color: #fff; }
.sp-i.is-hot small, .sp-i.is-hot .gl { color: rgba(255, 255, 255, .85); }

/* ---------------------------------------------------------------- control centre */
.cc {
  position: fixed; top: calc(var(--mb-h) + 6px); right: 10px; z-index: 75;
  width: 330px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  border-radius: 26px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(36px) saturate(2);
  backdrop-filter: blur(36px) saturate(2);
  box-shadow: var(--shadow-pop), inset 0 0 0 .5px var(--rim-hi);
  transform-origin: top right;
  animation: menu-in .26s var(--spring-soft);
}
.cc-tile { border-radius: 18px; padding: 12px; background: var(--ctl); box-shadow: inset 0 0 0 .5px var(--sep); text-align: left; }
.cc-wide { grid-column: span 2; }
.cc-h { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.cc-swatches { display: flex; gap: 10px; }
.cc-sw {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .4), 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .2s var(--spring);
}
.cc-sw:hover { transform: scale(1.08); }
.cc-swatches { flex-wrap: wrap; gap: 9px; }
.cc-sw { width: 40px; height: 40px; }
.cc-sw-auto { animation: cc-spin 9s linear infinite; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-sw-auto:hover { animation-play-state: paused; }
.cc-cap { margin-top: 9px; font-size: 11.5px; color: var(--text-2); }
.cc-sw[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--menu-bg), 0 0 0 4.5px var(--accent); }
.cc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 12px; background: var(--ctl); }
.cc-seg button { height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; }
.cc-seg button .gl { width: 14px; height: 14px; }
.cc-seg button[aria-pressed="true"] { background: var(--win-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.cc-toggle { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12.5px; font-weight: 600; }
.cc-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ctl-h); transition: background-color .2s; }
.cc-ic .gl { width: 18px; height: 18px; }
.cc-toggle[aria-pressed="true"] .cc-ic { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- context menu */
.ctx { position: fixed; z-index: 78; min-width: 220px; padding: 6px; border-radius: 14px;
  background: var(--menu-bg); -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9);
  box-shadow: var(--shadow-pop), inset 0 0 0 .5px var(--rim-hi); color: var(--text);
  animation: menu-in .16s var(--ease); }

/* ---------------------------------------------------------------- boot */
.boot { display: none; }
.is-booting .boot {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px;
  /* the brand blue, deepening to the navy the wallpaper rises out of */
  background: radial-gradient(120% 85% at 50% 38%, #3a8fd8 0%, #1a5597 50%, #12427a 100%);
}
.boot-mark { width: 74px; height: auto; }
.boot-bar { width: 170px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; animation: boot-fill 1.5s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes boot-fill { 30% { width: 38%; } 60% { width: 62%; } to { width: 100%; } }
.boot.is-out { animation: boot-out .7s var(--ease) forwards; }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
.is-booting .menubar, .is-booting .dock, .is-booting .icons, .is-booting .widgets, .is-booting .hero-tag, .is-booting .hero-hues, .is-booting .hero-network { opacity: 0; }

/* intro choreography, played once after boot (os.js adds .intro) */
.intro .menubar { animation: in-down .7s var(--spring-soft) .15s both; }
.intro .dock { animation: in-up .9s var(--spring) .35s both; }
.intro .widget { animation: in-left .8s var(--spring-soft) both; }
.intro .widget:nth-child(2) { animation-delay: .08s; }
.intro .widget:nth-child(3) { animation-delay: .16s; }
.intro .widget:nth-child(4) { animation-delay: .24s; }
.intro .dicon { animation: in-pop .6s var(--spring) both; }
.intro .dicon:nth-child(1) { animation-delay: .45s; }
.intro .dicon:nth-child(2) { animation-delay: .52s; }
.intro .dicon:nth-child(3) { animation-delay: .59s; }
.intro .dicon:nth-child(4) { animation-delay: .66s; }
.intro .dicon:nth-child(5) { animation-delay: .73s; }
.intro .dicon:nth-child(6) { animation-delay: .8s; }
.intro .hero-hues { animation: in-rise 1s var(--spring-soft) .25s both; }
.intro .hero-network { animation: in-rise 1s var(--spring-soft) .38s both; }
.intro .hero-tag { animation: in-rise 1s var(--spring-soft) .5s both; }
@keyframes in-down { from { transform: translateY(-100%); opacity: 0; } }
@keyframes in-up { from { transform: translateY(140%); opacity: 0; } }
@keyframes in-left { from { transform: translateX(-30px) scale(.96); opacity: 0; } }
@keyframes in-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes in-rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------------------------------------------------------------- responsive */
/* laptops and tablets (portrait and landscape): one column — clock, Since, and the photos as a tall widget */
@media (max-width: 1240px) {
  .widgets { grid-template-columns: 148px; }
  .w-md { display: none; }
  .w-sm { height: 148px; }
  .w-photos { display: block; grid-column: auto; height: 204px; }
  .w-wx { padding: 11px 13px 12px; }
  .w-wx-t { font-size: 36px; }
  .w-ph-cap { padding: 28px 12px 10px; }
  .w-ph-t { font-size: 12px; }
}
/* short screens: the widget column must stay clear of the dock, so text widgets go first */
@media (min-width: 761px) and (max-height: 899px) { .w-svc { display: none; } }
@media (min-width: 761px) and (max-height: 700px) { .w-say { display: none; } }
@media (min-width: 761px) and (max-height: 560px) { .w-photos { display: none; } }
@media (min-width: 761px) and (max-width: 1240px) and (max-height: 669px) { .w-photos { display: none; } }

/* phones and small tablets: the desktop becomes a home screen */
@media (max-width: 760px) {
  /* the toolbar: the time, Search and Control Centre */
  :root { --mb-h: 44px; --dock-ic: clamp(60px, 17.3vw, 72px); }   /* dock icons: 68 on a 393pt iPhone */
  body { font-size: 14px; }
  .menubar {
    padding: env(safe-area-inset-top) 18px 0;
    height: calc(var(--mb-h) + env(safe-area-inset-top));
    background: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  }
  .mb-l .mb-btn, .mb-r a.mb-btn { display: none; }
  .mb-r { width: 100%; }
  .mb-clock { order: -1; margin-right: auto; padding: 0 6px; font-size: 16px; font-weight: 600; }
  .desktop {
    display: flex; flex-direction: column; align-items: stretch;
    padding: calc(var(--mb-h) + env(safe-area-inset-top) + 2vh) 22px calc(var(--dock-h) + env(safe-area-inset-bottom) + 18px);
    overflow: auto;
  }
  .hero { order: 1; position: relative; left: auto; top: auto; translate: none; margin: .6vh auto 2.4vh; }
  .hero-logo { width: clamp(92px, 26vw, 128px); }
  .hero-tag { font-size: 10.5px; }
  .widgets { order: 2; position: static; display: block; margin: 0 0 18px; }
  .icons { order: 3; }
  .widgets .widget:not(.w-say) { display: none; }
  .w-md { display: block; }
  .w-say { padding: 16px 18px; }
  .w-say-l { font-size: 23px; }
  .icons {
    position: static; display: grid; direction: ltr;
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-template-rows: none; gap: 12px 8px;
  }
  .dicon { width: auto; height: auto; padding: 0; gap: 4px; }
  .dicon-label { display: block; max-width: 82px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
  .lbl-l { display: none; }
  .dicon-temp { display: none; }
  .lbl-s { display: inline; }
  .dicon-art, .dicon-art .ic { width: 74px; height: 74px; }
  .dicon-label { font-size: 11.5px; max-width: 84px; }
  .dicon.is-sel .dicon-art { background: none; box-shadow: none; }
  .dicon.is-sel .dicon-label { background: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
  .dock-cell[data-app="about"], .dock-cell[data-app="clients"], .dock-cell[data-app="services"],
  .dock-cell[data-app="positioning"], .dock-cell[data-app="facebook"], .dock-cell[data-app="trash"],
  .dock-cell[data-app="contact"], .dock-sep, .dock-cell.is-extra { display: none; }
  .dock-cell { --s: 1 !important; margin: 0; }
  /* four on a phone: call first, like the iPhone dock */
  .dock-cell[data-app="phone"] { order: 1; }
  .dock-cell[data-app="instagram"] { order: 2; }
  .dock-cell[data-app="whatsapp"] { order: 3; }
  .dock-cell[data-app="chat"] { order: 4; }
  .dock-tip, .dock-dot { display: none; }
  .notify { top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px; width: auto; }
  .cc { left: 10px; right: 10px; width: auto; top: calc(var(--mb-h) + env(safe-area-inset-top)); }
  .spotlight { top: calc(env(safe-area-inset-top) + 60px); }

  .win, .win.is-placed {
    position: fixed; left: 0; top: 0; translate: none;
    width: 100%; height: 100%;
    border-radius: 0;
    padding-top: calc(var(--mb-h) + env(safe-area-inset-top));   /* apps start below the toolbar */
    /* opaque, like an iOS app: nothing to blur, so opening and closing stay smooth */
    background: var(--phone-app-bg, #f2f2f7);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    z-index: 90;
    --glass-ink: var(--text); --glass-ink-2: var(--text-2); --glass-ink-3: var(--text-3);
    --glass-tshadow: none; --glass-hover: var(--ctl); --glass-sel: var(--ctl-h); --glass-cap: var(--ctl);
  }
  .win::after { display: none; }
  .win.is-anim { border-radius: 52px; overflow: hidden; }
  /* an open app: the toolbar reads in ordinary ink, and the dock steps aside */
  .has-front .menubar { color: var(--text); text-shadow: none; }
  .has-front .menubar .gl { filter: none; }
  .dock { transition: transform .4s var(--ease), opacity .3s var(--ease); }
  .has-front .dock { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .win::before { display: none; }
  .win-bar { height: 54px; padding: 0 12px 0 16px; gap: 10px; touch-action: none; }
  .win-bar::before { content: ""; position: absolute; left: 50%; top: 6px; translate: -50% 0; width: 36px; height: 5px; border-radius: 3px; background: var(--text-3); opacity: .5; }
  .win-title { flex: 1 1 auto; }
  .win-tools { margin-left: 0; }
  .tl { order: 99; margin-left: auto; }
  .win.is-sheet-drag { transition: none; }
  .tl-min, .tl-max { display: none; }
  .tl-close { width: 32px; height: 32px; background: var(--ctl-h) !important; box-shadow: none; }
  .tl-close::before { opacity: 1; color: var(--text-2); font-size: 22px; font-weight: 400; }
  .side { display: none; }
  .rz { display: none; }
  /* portfolio: back only inside a folder, no search, no forward */
  .win--portfolio .pill-search, .win--portfolio [data-fwd] { display: none; }
  .win--portfolio[data-view="index"] .win-bar > .pill { display: none; }
  /* services: iPhone Settings — a list, then a pane with a back button */
  .win--services .set .side { display: block; flex: 1; width: auto; margin: 0 8px 8px; padding: 6px 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); }
  .win--services .set-me { padding: 12px 16px 14px; border-bottom-color: var(--sep); }
  .win--services .side-h { margin: 18px 16px 6px; }
  .win--services .side-i { height: 50px; padding: 0 16px; border-radius: 0; font-size: 16px; gap: 12px; position: relative; }
  .win--services .side-i::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid var(--text-3); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
  .win--services .side-i + .side-i::before { content: ""; position: absolute; left: 58px; right: 0; top: 0; height: .5px; background: var(--sep); }
  .win--services .side-i.is-sel { background: none; font-weight: 400; }
  .win--services .side-i .set-ic { width: 30px; height: 30px; border-radius: 8px; }
  .win--services .side-i .set-ic .gl { width: 18px; height: 18px; }
  .win--services:not([data-pview="pane"]) .set-main { display: none; }
  .win--services[data-pview="pane"] .set .side { display: none; }
  .win--services[data-pview="pane"] .ph-back { display: inline-flex; padding: 0 8px 0 2px; font-size: 16px; color: var(--accent); }
  .win--services[data-pview="pane"] .ph-back .gl { width: 20px; height: 20px; }
  .win--services[data-pview="pane"] .win-title { display: none; }
  /* contact: the card comes first, it is what people want on a phone */
  .mailwin { flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  /* the card's parts join the column: who + quick actions on top, the form, then the details */
  .mailwin .card { display: contents; }
  .mailwin .card-av { order: -4; width: 64px; height: 64px; margin: 4px auto 2px; flex: none; }
  .mailwin .card-n { order: -3; text-align: center; }
  .mailwin .card-s { order: -2; text-align: center; }
  .mailwin .card-acts { order: -1; margin: 12px 8px 10px; flex: none; }
  .mailwin .card-rows { order: 1; margin: 0 8px 12px; flex: none; }
  .mailwin .mail { order: 0; flex: none; margin: 0 8px 10px; }
  .mailwin .mail textarea { min-height: 190px; }
  .win-status { padding-bottom: env(safe-area-inset-bottom); height: auto; min-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
:root.motion-reduced *, :root.motion-reduced *::before, :root.motion-reduced *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* =========================================================================
   Windows — per app
   ========================================================================= */
.win-body { container-type: inline-size; }
.fnd-col, .cl, .set-main, .mail, .trash, .card { box-shadow: inset 0 0 0 .5px var(--sep), 0 1px 0 rgba(255, 255, 255, .35), 0 6px 20px rgba(0, 0, 0, .06) !important; }
.panel {
  flex: 1; min-width: 0;
  margin: 0 10px 10px;
  border-radius: 18px;
  background: var(--win-solid);
  box-shadow: inset 0 0 0 .5px var(--sep);
  overflow: hidden;
}
.side + .panel, .side + .fnd-col, .side + .set-main { margin-left: 10px; }

/* ---------------------------------------------------------------- portfolio */
.fnd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0 10px 10px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); overflow: hidden; }
.fnd-main { flex: 1; min-height: 0; padding: 20px 22px 26px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 22px 14px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 8px 14px; border-radius: 18px; text-align: center;
  transition: background-color .2s;
}
.tile:hover { background: var(--ctl); }
.tile:focus-visible { outline-offset: -2px; }
.stack { position: relative; width: 156px; height: 128px; margin-bottom: 10px; }
.stack img {
  position: absolute; left: 50%; top: 50%;
  width: 108px; height: 108px; object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, .22);
  transition: transform .55s var(--spring), opacity .45s var(--ease);
}
.stack .st-0 { transform: translate(-50%, -50%) translate(-12px, 3px) rotate(-11deg); }
.stack .st-1 { transform: translate(-50%, -50%) translate(12px, 0) rotate(8deg); }
.stack .st-2 { transform: translate(-50%, -50%) rotate(-1.5deg); }
.tile:hover .st-0 { transform: translate(-50%, -50%) translate(-34px, 8px) rotate(-19deg); }
.tile:hover .st-1 { transform: translate(-50%, -50%) translate(34px, 4px) rotate(16deg); }
.tile:hover .st-2 { transform: translate(-50%, -50%) translateY(-8px) scale(1.05); }
.tile-name { font-weight: 650; font-size: 13.5px; }
.tile-meta { font-size: 11.5px; color: var(--text-2); }
.fnd-empty { padding: 40px; text-align: center; color: var(--text-2); }
.fd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fd-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fd-t { font: 700 30px/1.08 var(--font-d); letter-spacing: -.022em; margin-top: 2px; }
.fd-n { margin-top: 4px; color: var(--text-2); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { position: relative; display: block; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--ctl); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .45s var(--ease); }
.js .ph img:not(.is-in), .js .stack img:not(.is-in), .js .cl-tile img:not(.is-in), .js .sl-media img:not(.is-in) { opacity: 0; }
.stack img, .cl-tile img, .sl-media img { transition: opacity .45s var(--ease); }
.ph:hover img { transform: scale(1.06); }
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); pointer-events: none; }
.ph.is-ql-src img { opacity: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumb { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
a.crumb:hover { color: var(--text); }
.crumb .gl { width: 14px; height: 14px; color: var(--text-2); }
.crumb-sep { color: var(--text-3); }
.is-entering > li, .is-entering .tiles > li, .is-entering .ph-grid > li { animation: item-in .55s var(--spring-soft) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes item-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------------------------------------------------------------- clients */
.cl { display: block; margin: 0 10px 10px; padding: 8px 26px 28px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); }
.cl-head { padding: 10px 2px 22px; }
.cl-k { font-size: 13px; font-weight: 600; color: var(--text-2); }
.cl-t { font: 700 36px/1.05 var(--font-d); letter-spacing: -.028em; }
.cl-d { margin-top: 8px; max-width: 560px; color: var(--text-2); font-size: 14px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 14px; }
.cl-tile {
  aspect-ratio: 1; border-radius: 24px; padding: 15%;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .07);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.cl-tile:hover { transform: translateY(-4px) scale(1.045); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 14px 30px rgba(0, 0, 0, .14); }
.cl-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .45s var(--ease); }
.is-entering .cl-tile { animation: item-in .55s var(--spring) both; animation-delay: calc(var(--d, 0) * 28ms); }

/* ---------------------------------------------------------------- services */
.set-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: .5px solid rgba(255, 255, 255, .25); }
.set-av { width: 40px; height: 40px; flex: none; }
.set-me b { display: block; font-size: 13px; }
.set-me small { display: block; font-size: 11.5px; color: var(--glass-ink-2); }
.set-ic {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--tile-bg); color: var(--tile-fg);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .12);
}
.set-ic .gl, .side-i .set-ic .gl { width: 15px; height: 15px; color: var(--tile-fg); }
.set-main { flex: 1; min-width: 0; margin: 0 10px 10px; padding: 8px 28px 30px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); }
.set-pane { display: none; max-width: 600px; margin: 0 auto; }
.set-pane.is-cur { display: block; }
.no-js .set-main:has(.set-pane:target) .set-pane.is-cur:not(:target) { display: none; }
.no-js .set-pane:target { display: block; }
.set-pane.is-in { animation: pane-in .45s var(--spring-soft); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }
.set-hero { padding: 22px 0 24px; text-align: center; }
.set-ic-xl { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 19px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 8px 20px rgba(0, 0, 0, .18); }
.set-ic-xl .gl { width: 38px; height: 38px; }
.set-hero h2 { font: 700 25px/1.15 var(--font-d); letter-spacing: -.015em; }
.set-hero p { max-width: 470px; margin: 8px auto 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.set-group { border-radius: 14px; background: var(--win-bg); box-shadow: inset 0 0 0 .5px var(--sep); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 500; position: relative; }
.set-row + .set-row::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: .5px; background: var(--sep); }
a.set-row:hover { background: var(--ctl); }
.set-chev { margin-left: auto; color: var(--text-3); }
.set-chev .gl { width: 15px; height: 15px; }
.set-row-tall { align-items: flex-start; }
.set-row-tall b { display: block; font-weight: 650; }
.set-row-tall small { display: block; margin-top: 2px; color: var(--text-2); font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.set-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.set-stats div { padding: 14px 8px; border-radius: 14px; text-align: center; background: var(--win-bg); box-shadow: inset 0 0 0 .5px var(--sep); }
.set-stats b { display: block; font: 700 27px/1.05 var(--font-d); letter-spacing: -.02em; }
.set-stats small { color: var(--text-2); font-size: 12px; }

/* ---------------------------------------------------------------- about */
.win--about .win-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.about { flex-direction: column; align-items: center; padding: 0 36px 24px; text-align: center; }
.about-icon { width: 128px; height: 128px; flex: none; margin: -6px 0 8px; }
.about-name { font: 700 27px/1.1 var(--font-d); letter-spacing: -.02em; }
.about { color: var(--glass-ink); text-shadow: var(--glass-tshadow); }
.about-ver { margin-top: 4px; color: var(--glass-ink-2); }
.about-specs { width: 100%; max-width: 440px; margin: 20px 0 22px; display: grid; gap: 7px; }
.about-specs div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; text-align: left; font-size: 12.5px; line-height: 1.4; }
.about-specs dt { text-align: right; font-weight: 650; }
.about-specs dd { color: var(--glass-ink-2); }
.about-actions { display: flex; gap: 10px; }
.about-legal { margin-top: 18px; font-size: 11px; color: var(--glass-ink-3); }

/* ---------------------------------------------------------------- presentation */
.deck-nav { width: 196px; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 10px 6px; }
.dn { width: 100%; display: flex; gap: 6px; align-items: flex-start; padding: 4px; border-radius: 12px; }
.dn-n { width: 16px; flex: none; padding-top: 3px; text-align: right; font-size: 11px; color: var(--glass-ink-3); }
.dn-thumb { position: relative; flex: 1; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b0a2a; box-shadow: 0 0 0 .5px var(--sep), 0 2px 6px rgba(0, 0, 0, .14); transition: box-shadow .2s; }
.dn.is-sel .dn-thumb { box-shadow: 0 0 0 2.5px var(--accent), 0 2px 6px rgba(0, 0, 0, .14); }
.dn-mini { position: absolute !important; left: 0; top: 0; width: 960px; height: 540px; display: flex !important; transform-origin: 0 0; transform: scale(var(--k, .15)); pointer-events: none; container-type: inline-size; }
.deck-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 4px 22px 16px; container-type: size; }
.deck-frame {
  position: relative;
  width: min(100%, calc((100cqh - 56px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .32), 0 0 0 .5px rgba(0, 0, 0, .25);
}
.slides { position: absolute; inset: 0; }
.deck-count { min-width: 64px; text-align: center; font-size: 12.5px; color: var(--glass-ink-2); font-variant-numeric: tabular-nums; }
.deck-count b { color: var(--glass-ink); }

.slide {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw;
  padding: 6cqw 7cqw; text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 15% 85%, rgba(76, 180, 187, .55), transparent 60%),
    radial-gradient(55% 70% at 88% 18%, rgba(255, 87, 114, .55), transparent 62%),
    radial-gradient(70% 90% at 70% 90%, rgba(139, 106, 230, .6), transparent 66%),
    linear-gradient(135deg, #1a0b8f, #2e0ec7 45%, #0f1a8a);
  overflow: hidden;
}
.slide.is-cur { display: flex; }
.no-js .slide { position: relative; display: flex; aspect-ratio: 16 / 9; }
.sl-k { font-size: 1.7cqw; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .78; }
.sl-h { font: 800 5.4cqw/1.04 var(--font-d); letter-spacing: -.03em; text-wrap: balance; }
.sl-xl { font-size: 9.5cqw; }
.sl-p { max-width: 60cqw; font-size: 2.3cqw; line-height: 1.4; opacity: .86; text-wrap: balance; }
.sl-grad { background: linear-gradient(100deg, #ffc600, #ff9a9e 35%, #ff5772 60%, #4cb4bb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide--case { flex-direction: row; justify-content: space-between; gap: 5cqw; text-align: left; }
.slide--case .sl-copy { flex: 1; display: flex; flex-direction: column; gap: 1.6cqw; align-items: flex-start; }
.slide--case .sl-p { max-width: none; }
.sl-media { width: 38cqw; aspect-ratio: 1; flex: none; display: grid; place-items: center; padding: 3.5cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .35); }
.sl-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 1cqw; }
.sl-logo { width: 13cqw; height: auto; filter: drop-shadow(0 1cqw 3cqw rgba(0, 0, 0, .3)); }
.sl-svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; margin-top: 1cqw; }
.sl-svc li { display: inline-flex; align-items: center; gap: 1cqw; padding: .9cqw 1.8cqw .9cqw 1cqw; border-radius: 4cqw; font-size: 1.7cqw; font-weight: 600; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 .1cqw rgba(255, 255, 255, .35); }
.sl-svc .set-ic { width: 3cqw; height: 3cqw; border-radius: .9cqw; background: rgba(255, 255, 255, .2); color: #fff; }
.sl-svc .set-ic .gl { width: 1.9cqw; height: 1.9cqw; }

.show { position: fixed; inset: 0; z-index: 96; background: #000; display: grid; place-items: center; container-type: size; cursor: none; }
.show.is-ptr { cursor: default; }
.show .deck-frame { width: min(100cqw, calc(100cqh * 16 / 9)); border-radius: 0; box-shadow: none; }
.show-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .85); width: 0; }
.show-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .3s; }
.show.is-ptr .show-x { opacity: 1; }

/* ---------------------------------------------------------------- mail */
.mail { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0 0 10px 10px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); overflow: hidden; }
.mf { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-bottom: .5px solid var(--sep); transition: box-shadow .2s; }
.mf-l { flex: none; width: 60px; font-size: 13px; color: var(--text-3); }
.mf-2 .mf-l + input { flex: 1; }
.mf-2 .mf-l:nth-of-type(2) { width: auto; margin-left: 10px; }
.mf input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.mf input::placeholder, .mail textarea::placeholder { color: var(--text-3); }
.mf.is-bad { box-shadow: inset 3px 0 0 #ff3b30; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 13px; font-size: 13px; font-weight: 650; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.chip small { font-weight: 400; opacity: .8; }
.mail textarea { flex: 1; min-height: 150px; padding: 16px 18px; border: 0; outline: 0; resize: none; background: transparent; font-size: 14.5px; line-height: 1.55; user-select: text; }
.mail-err { margin: 0 16px 10px; padding: 9px 12px; border-radius: 11px; font-size: 13px; color: #c4000f; background: rgba(255, 59, 48, .12); }
.mail-foot { padding: 10px 18px 14px; font-size: 12px; color: var(--text-3); border-top: .5px solid var(--sep); }
.mail-foot a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card { width: 286px; flex: none; margin: 0 10px 10px; padding: 18px 16px; text-align: center; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); }
.card-av { width: 88px; height: 88px; margin: 0 auto 6px; }
.card-n { font: 700 19px/1.2 var(--font-d); }
.card-s { margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.card-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.card-acts a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px; border-radius: 13px; font-size: 10.5px; font-weight: 600; color: var(--text); background: var(--win-solid); box-shadow: inset 0 0 0 .5px var(--sep); transition: transform .2s var(--spring); }
.card-acts a:hover { transform: translateY(-2px); }
.card-acts span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-bg); }
.card-acts .gl { width: 15px; height: 15px; color: var(--tile-fg); }
.card-rows { padding: 2px 14px; border-radius: 14px; text-align: left; background: var(--win-solid); box-shadow: inset 0 0 0 .5px var(--sep); }
.card-rows div { padding: 9px 0; }
.card-rows div + div { border-top: .5px solid var(--sep); }
.card-rows dt { font-size: 11.5px; color: var(--text-2); }
.card-rows dd { font-size: 13px; line-height: 1.4; user-select: text; }
.card-rows a { color: var(--accent); }
@container (max-width: 700px) { .card { display: none; } .mail { margin-right: 10px; } }

/* ---------------------------------------------------------------- document */
.doc { display: block; padding: 0 10px 10px; }
.doc-page { max-width: 660px; min-height: 100%; margin: 0 auto; padding: 38px 52px 60px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); font-size: 14.5px; line-height: 1.68; }
.doc-page h1 { margin-bottom: 14px; font: 700 29px/1.2 var(--font-d); letter-spacing: -.02em; }
.doc-page h2 { margin: 24px 0 6px; font: 700 17px/1.3 var(--font-d); }
.doc-page p { margin: 0 0 10px; }
.doc-page a { color: var(--accent); }

/* ---------------------------------------------------------------- trash, alert */
.trash { display: flex; flex-direction: column; margin: 0 10px 10px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 .5px var(--sep); overflow: auto; }
.trash > .empty-state, .tr-done { margin: auto; text-align: center; padding: 30px; }
.tr-done .btn { margin-top: 14px; }
.tr-head, .tr-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 90px 110px; align-items: center; gap: 10px; padding: 0 18px; }
.tr-head { height: 34px; font-size: 11.5px; font-weight: 600; color: var(--text-3); border-bottom: .5px solid var(--sep); }
.tr-row { min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
.tr-row:nth-child(even) { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.tr-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--tile-bg); color: var(--tile-fg); }
.tr-ic .gl { width: 16px; height: 16px; }
.tr-name b { display: block; font-size: 13.5px; font-weight: 650; text-decoration: line-through; text-decoration-color: color-mix(in srgb, #ff3b30 70%, transparent); text-decoration-thickness: 2px; }
.tr-name small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.tr-kind { font-size: 12px; font-weight: 700; color: #ff3b30; }
.tr-date { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* bad design: example files lying in the bin */
.tr-bad { padding: 4px 18px 20px; border-top: .5px solid var(--sep); }
.tr-bad[hidden] { display: none; }
.tr-group { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.tr-group span { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.tr-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; }
.tr-file { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tr-thumb { width: 100%; height: 136px; display: grid; place-items: center; border-radius: 10px; cursor: zoom-in; transition: background-color .15s; }
.tr-thumb:hover, .tr-thumb:focus-visible { background: color-mix(in srgb, var(--text) 6%, transparent); outline: none; }
.tr-thumb img {
  max-width: 88%; max-height: 120px; width: auto; height: auto;
  border: 2px solid #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 16px rgba(0, 0, 0, .14);
  transition: transform .35s var(--spring);
}
.tr-file:nth-child(odd) .tr-thumb img { transform: rotate(-2.5deg); }
.tr-file:nth-child(even) .tr-thumb img { transform: rotate(2deg); }
.tr-thumb:hover img { transform: rotate(0) scale(1.04); }
.tr-fname { margin-top: 8px; font-size: 12.5px; font-weight: 650; text-decoration: line-through; text-decoration-color: color-mix(in srgb, #ff3b30 70%, transparent); text-decoration-thickness: 2px; }
.tr-fnote { margin-top: 3px; max-width: 210px; font-size: 11.5px; line-height: 1.35; color: var(--text-2); }
@media (max-width: 760px) {
  .tr-head { display: none; }
  .tr-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .tr-date { display: none; }
}
.empty { text-align: center; color: var(--text-2); }
.empty .ic { width: 110px; height: 110px; margin: 0 auto 8px; }
.empty p { font: 650 17px/1.3 var(--font-d); color: var(--text); }
.win--alert { --w: 380px; height: auto; }
.alert { padding: 26px 26px 20px; text-align: center; color: var(--glass-ink); text-shadow: var(--glass-tshadow); }
.alert-ic { width: 64px; height: 64px; margin: 0 auto 12px; }
.alert h1 { font: 700 15px/1.3 var(--font-d); }
.alert p { margin-top: 6px; font-size: 12.5px; color: var(--glass-ink-2); }
.alert-btns { display: grid; gap: 8px; margin-top: 18px; }
.alert-btns .btn { width: 100%; }
.win.is-shake { animation: shake .5s var(--ease); }
@keyframes shake { 15%, 55% { margin-left: -9px; } 35%, 75% { margin-left: 9px; } 90% { margin-left: -3px; } }

/* ---------------------------------------------------------------- quick look */
.ql { position: fixed; inset: 0; z-index: 92; background: rgba(5, 5, 20, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .3s var(--ease); }
.ql.is-out { animation: fade-out .3s var(--ease) forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.ql-frame {
  position: fixed; left: 0; top: 0;
  border-radius: 20px; overflow: hidden;
  background: rgba(24, 24, 30, .7);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .22);
  transform-origin: 0 0;
}
.ql-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ql-bar { position: absolute; inset: 0 0 auto; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .5), transparent); transition: opacity .25s; }
.ql-bar .t { font-weight: 650; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.ql-bar .s { font-size: 12px; opacity: .75; }
.ql-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3); transition: background-color .15s; }
.ql-btn:hover { background: rgba(255, 255, 255, .28); }
.ql-btn .gl { width: 17px; height: 17px; }
.ql-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; }
.ql-prev { left: 12px; }
.ql-next { right: 12px; }
.ql-frame:not(:hover) .ql-bar, .ql-frame:not(:hover) .ql-nav { opacity: .0; }
@media (hover: none) { .ql-frame .ql-bar, .ql-frame .ql-nav { opacity: 1 !important; } }

/* ---------------------------------------------------------------- phone windows */
@media (max-width: 760px) {
  .fnd-col, .set-main, .cl, .doc, .trash, .mail { margin: 0 8px 8px; }
  .fnd-main { padding: 16px 14px 24px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .stack { width: 140px; height: 116px; }
  .stack img { width: 96px; height: 96px; }
  .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ph { border-radius: 6px; }
  .cl { padding: 6px 16px 24px; }
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cl-tile { border-radius: 18px; }
  .set-main { padding: 6px 16px 26px; }
  /* phones: the deck becomes a scrolling stack of slides; Play still runs it full-screen */
  .deck { flex-direction: column; }
  .deck-nav, .win--positioning .deck-ctrl { display: none; }
  .deck-stage { display: block; padding: 4px 10px 24px; container-type: normal; overflow-y: auto; overscroll-behavior: contain; }
  .win--positioning .deck-frame { width: 100%; aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; }
  .win--positioning .slides { position: static; display: grid; gap: 12px; }
  .win--positioning .slides > .slide { position: relative; display: flex; aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
  .card { display: none; }
  .doc-page { padding: 26px 22px 40px; }
  .mf-2 { flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
  .mf-2 .mf-l:nth-of-type(2) { margin-left: 0; width: 60px; }
  .mf-2 input { flex-basis: calc(100% - 70px); }
  .win--about .win-bar { height: 50px; }
}

/* ---------------------------------------------------------------- the Hues mark, inked */
.mark-ink {
  display: block; width: 100%; height: 100%;
  --mark-stem: currentColor;
  --mark-arch-l: color-mix(in srgb, currentColor 74%, transparent);
  --mark-arch-r: color-mix(in srgb, currentColor 50%, transparent);
}
.about-icon { width: 92px; height: 102px; margin: 4px 0 14px; color: var(--glass-ink); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18)); }
.card-av { width: 58px; height: 64px; margin: 4px auto 10px; color: var(--text); }
.set-av { width: 28px; height: 31px; margin: 0 6px; color: var(--glass-ink); }

/* ---------------------------------------------------------------- empty sections */
.empty-state { padding: 30px 20px 40px; text-align: center; color: var(--text-2); }
.empty-state .ic { width: 112px; height: 112px; margin: 0 auto 6px; }
.es-t { font: 650 17px/1.3 var(--font-d); color: var(--text); }
.es-d { margin-top: 4px; font-size: 13.5px; }
.empty-state .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- case studies: a terminal */
.term {
  flex: 1; min-width: 0; margin: 0 10px 10px; padding: 18px 24px 28px;
  border-radius: 18px;
  background: rgba(13, 17, 32, .92);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 6px 20px rgba(0, 0, 0, .12);
  color: #e6edf3;
  font: 13.5px/1.6 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  user-select: text;
}
.term-cmd { margin: 0 0 8px; color: #9da7b3; }
.term-u { color: #7ee787; }
.term-d { color: #79c0ff; }
.term > .term-cmd:last-of-type::after { content: ""; display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #e6edf3; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-out { margin: 0 0 14px; }
.term-list { display: grid; gap: 2px; margin: 4px 0 8px; }
.term-list a { display: grid; grid-template-columns: 74px minmax(0, 200px) minmax(0, 1fr); gap: 14px; padding: 6px 8px; border-radius: 8px; color: #e6edf3; }
.term-list a:hover { background: rgba(255, 255, 255, .07); }
.term-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-date { color: #9da7b3; }
.term-co { color: #d2a8ff; }
.term-case { max-width: 660px; margin-top: 6px; font-family: var(--font); }
.term-k { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: #9da7b3; }
.term-t { margin: 4px 0 6px; font: 700 26px/1.2 var(--font-d); letter-spacing: -.015em; color: #fff; }
.term-case h3 { margin: 18px 0 4px; font: 600 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: #8b949e; }
.term-case p { font-size: 14.5px; line-height: 1.65; }
.term-ok h3 { color: #7ee787; }
.term-tags { margin-top: 16px; }
.term-tags span { display: inline-block; margin: 0 6px 6px 0; padding: 2px 9px; border-radius: 6px; font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: #79c0ff; background: rgba(121, 192, 255, .13); }
.term-shot { margin: 16px 0 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.term-shot img { width: 100%; height: auto; }
.term-cta { margin-top: 22px; font-family: var(--font); }
.side-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- videos */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 14px; }
.vid { display: flex; flex-direction: column; gap: 6px; }
.vid-th { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ctl); box-shadow: inset 0 0 0 .5px var(--sep); }
.vid-th img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vid:hover .vid-th img { transform: scale(1.05); }
.vid-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 0 0 .5px rgba(255, 255, 255, .4), 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .35s var(--spring);
}
.vid:hover .vid-play { transform: scale(1.1); }
.vid-play .gl { width: 22px; height: 22px; margin-left: 3px; }
.vid-t { font-weight: 650; font-size: 14px; }
.vid-d { font-size: 12.5px; color: var(--text-2); }
.ql-frame--video { background: #000; }
.ql-frame--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- creatives & logos */
.ph-grid--logos .ph { background: #fff; }
.ph--logo img { object-fit: contain; padding: 16%; }
.ph-grid--logos .ph:hover img { transform: scale(1.04); }
.ph-cap { margin-top: 6px; font-size: 12px; color: var(--text-2); text-align: center; }

/* ---------------------------------------------------------------- team */
/* the founder, full width above the team */
.tf { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin: 0 0 18px; padding: 22px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), var(--win-bg); box-shadow: inset 0 0 0 .5px var(--sep); }
.tf-face { width: 220px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.tf-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tf-n { margin: 4px 0 0; font: 700 30px/1.1 var(--font-d); letter-spacing: -.02em; }
.tf-r { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.tf-b { margin-top: 12px; max-width: 520px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.tf-a { margin-top: 16px; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 14px; }
.tm { padding: 20px 14px 18px; border-radius: 18px; text-align: center; background: var(--win-bg); box-shadow: inset 0 0 0 .5px var(--sep); }
.tm-face { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ctl-h); font: 700 30px var(--font-d); color: var(--text-2); }
.tm-face img { width: 100%; height: 100%; object-fit: cover; }
.tm-n { font-weight: 700; font-size: 15px; }
.tm-r { margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.tm-b { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.tm-l { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.tm-l .gl { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- secret projects */
.secret { flex-direction: column; align-items: center; justify-content: center; padding: 0 40px 34px; text-align: center; color: var(--glass-ink); text-shadow: var(--glass-tshadow); }
.secret-lock { width: 150px; height: 150px; }
.secret-lock .ic { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .2)); }
.win--secret .secret-lock { animation: secret-shake .62s var(--ease) .55s both; }
@keyframes secret-shake { 0%, 100% { transform: none; } 18%, 58% { transform: translateX(-11px) rotate(-2deg); } 38%, 78% { transform: translateX(11px) rotate(2deg); } }
.secret-t { margin-top: 6px; font: 700 26px/1.1 var(--font-d); letter-spacing: -.015em; }
.secret-d { max-width: 360px; margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.secret-s { margin-top: 6px; font-size: 13px; color: var(--glass-ink-2); }
.secret .btn { margin-top: 22px; }

@media (max-width: 760px) {
  .term { margin: 0 8px 8px; padding: 14px 14px 24px; }
  .term-list a { grid-template-columns: 1fr; gap: 0; }
  .vid-grid { grid-template-columns: 1fr; }
  .tf { grid-template-columns: 1fr; gap: 14px; padding: 18px; text-align: center; justify-items: center; }
  .tf-face { width: 120px; border-radius: 50%; }
  .tf-n { font-size: 24px; }
  .tf-b { margin-top: 8px; font-size: 14px; }
  /* phones: one person per row, photo beside the words (two columns squeezed names onto two lines) */
  .tm-grid { grid-template-columns: 1fr; gap: 10px; }
  .tm { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: start; padding: 14px; text-align: left; }
  .tm-face { grid-row: 1 / span 4; width: 64px; height: 64px; margin: 0; font-size: 22px; }
  .tm-n, .tm-r, .tm-b, .tm-l { grid-column: 2; }
  .tm-b { margin-top: 4px; }
  .tm-l { justify-self: start; margin-top: 4px; }
  .ph-grid--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .secret { padding: 0 24px 30px; }
}

/* =========================================================================
   iPhone home screen. The toolbar on top; page 1 is the logo in the middle
   with the apps under it; page 2 is the weather, a Smart Stack you swipe up
   and down (Photos, Since, the tagline, What we do) and the folders. Two
   pages, dots above the dock. Widgets are clear glass over the wallpaper,
   like iOS's Clear look; icons 66pt on a 393pt iPhone, close together.
   ========================================================================= */
.ios { display: none; }
.w-ring, .stk-dots, .w-note, .w-svc-d { display: none; }
@media (max-width: 760px) {
  .desktop { display: block; padding: 0; overflow: hidden; }
  .desktop > .widgets, .desktop > .hero, .desktop > .icons { display: none; }
  .ios {
    --pad: 16px; --gap: 12px;
    --col: calc((100vw - 2 * var(--pad) - 3 * var(--gap)) / 4);
    --ic: clamp(58px, 16.8vw, 70px);
    --wsm: calc(var(--col) * 2 + var(--gap));
    --wr: calc(var(--wsm) * .13);
    --w-ink: #fff; --w-ink-2: rgba(255, 255, 255, .74);
    display: block; position: absolute; inset: 0;
    padding-top: calc(var(--mb-h) + env(safe-area-inset-top));
    transition: transform .4s var(--ease), opacity .3s var(--ease);
  }
  .has-front .ios { transform: scale(.94); opacity: 0; pointer-events: none; }
  .ios-pages {
    display: flex;
    height: calc(100% - var(--dock-ic) - 24px - 50px - env(safe-area-inset-bottom));
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .ios-pages::-webkit-scrollbar { display: none; }
  .ios-page {
    flex: 0 0 100%; height: 100%;
    scroll-snap-align: start; scroll-snap-stop: always;
    display: grid; grid-template-columns: repeat(4, var(--col)); grid-auto-rows: auto;
    justify-content: center; align-content: start;
    column-gap: var(--gap); row-gap: clamp(10px, 1.8vh, 20px);
    padding: clamp(4px, 1vh, 12px) var(--pad) 0;
    overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none;   /* only scrolls on a phone too short for it */
  }
  .ios-page::-webkit-scrollbar { display: none; }

  /* the logo in the middle of page 1; the wallpaper draws its glass "h" here */
  .ios-hero { grid-column: span 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(2px, 1.4vh, 14px) 0 clamp(4px, 1.8vh, 18px); }
  .ios-hero .hero-logo { width: auto; height: clamp(110px, 22vh, 176px); }
  .ios-hero .hero-tag { margin-top: 8px; font-size: 10.5px; }

  /* ---- app icons: the art follows the macOS grid (the shape fills 80% of the
     image), iOS icons fill their tile, so the art is drawn 125% and centred */
  .ios .dicon { display: flex; flex-direction: column; align-items: center; gap: 5px; width: var(--col); height: auto; padding: 0; justify-self: center; -webkit-tap-highlight-color: transparent; }
  .ios .dicon-art { position: relative; flex: none; width: var(--ic); height: var(--ic); border-radius: 23%; background: none; box-shadow: none; }
  .ios .dicon-art .ic { position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; max-width: none; filter: none; }
  .ios .dicon:active .dicon-art { filter: brightness(.72); }
  /* folders sit on a frosted tile, like an iOS folder */
  .ios .dicon--folder .dicon-art {
    overflow: hidden; background: rgba(255, 255, 255, .24);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3);
  }
  .ios .dicon--folder .dicon-art .ic { left: 11%; top: 11%; width: 78%; height: 78%; }
  .ios .dicon-label {
    display: block; width: calc(var(--col) + var(--gap)); max-width: none; padding: 0;
    font: 400 12px/1.2 var(--font); letter-spacing: 0; color: #fff; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: none; text-shadow: 0 .5px 2px rgba(0, 0, 0, .3);
  }

  /* ---- widgets: clear glass, white type */
  .ios .widget, .ios .w-stack {
    position: relative; grid-column: span 2; width: var(--wsm); height: var(--wsm); margin: 0; padding: 16px;
    border-radius: var(--wr); overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    color: #fff; background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 26px rgba(0, 0, 0, .14);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  }
  .ios .widget::before { display: none; }
  .ios .w-md { grid-column: span 4; width: auto; }
  .ios .w-k { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); opacity: 1; }

  /* Weather: the glass takes a hint of the sky for the time of day */
  .ios .w-wx { padding: 15px 16px 14px; }
  .ios .w-wx::before {
    display: block; content: ""; position: absolute; inset: 0; z-index: -1; padding: 0; border-radius: inherit;
    background: var(--sky); opacity: .4; -webkit-mask: none; mask: none;
  }
  .ios .w-wx .w-wx-sky { animation: none; opacity: .6; }
  .ios .w-wx[data-sky="rain"] .w-wx-sky, .ios .w-wx[data-sky="storm"] .w-wx-sky { background: linear-gradient(180deg, rgba(62, 74, 96, .4), rgba(44, 54, 74, .35)); }
  .ios .w-wx-hi { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
  .ios .w-wx-loc { font-size: 12px; font-weight: 500; opacity: .82; margin-top: 1px; }
  .ios .w-wx-t { margin-top: 2px; font: 300 calc(var(--wsm) * .27)/1.05 var(--font-d); letter-spacing: -.02em; }
  .ios .w-wx.is-time .w-wx-t { font-size: calc(var(--wsm) * .22); }
  .ios .w-wx-ic, .ios .w-wx-ic svg { height: 17px; width: 17px; }
  .ios .w-wx-c { font-size: 13px; font-weight: 600; margin-top: 3px; }
  .ios .w-wx-hl { font-size: 13px; font-weight: 500; opacity: 1; }

  /* ---- the Smart Stack: widgets on top of each other, swipe up and down; it turns on its own */
  .ios .w-stack { padding: 0; }
  .stk { width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
  .stk::-webkit-scrollbar { display: none; }
  .ios .stk > .widget {
    width: 100%; height: 100%; grid-column: auto; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  .ios .stk-dots { display: flex; flex-direction: column; gap: 4px; position: absolute; right: 6px; top: 50%; translate: 0 -50%; z-index: 4; pointer-events: none; }
  .stk-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .38); transition: background-color .25s; }
  .stk-dots i.on { background: #fff; }

  /* Photos, in the stack */
  .ios .w-photos { padding: 0; }
  .ios .w-photos::after { box-shadow: none; }
  .ios .w-photos .w-k { color: #fff; opacity: .9; }

  /* Since: years in business inside a ring of every hue (the name) */
  .ios .w-stat {
    display: grid; grid-template-columns: 1fr auto auto 1fr; grid-template-rows: 1fr auto auto;
    grid-template-areas: "r r r r" ". k b ." "s s s s"; align-items: center; justify-items: center;
    column-gap: 4px; padding: 14px 12px 13px;
  }
  .ios .w-ring {
    grid-area: r; position: relative; width: calc(var(--wsm) * .52); aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .ios .w-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 210deg, #ff375f, #ff9f0a, #ffd60a, #30d158, #64d2ff, #5e5ce6, #bf5af2, #ff375f);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
    mask: radial-gradient(closest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  }
  .ios .w-ring b { font: 700 calc(var(--wsm) * .19)/1 var(--font-d); letter-spacing: -.03em; }
  .ios .w-ring small { margin-top: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w-ink-2); }
  .ios .w-stat .w-k, .ios .w-stat .w-big { align-self: baseline; margin-top: 9px; font: 600 13px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: #fff; }
  .ios .w-stat .w-k { grid-area: k; }
  .ios .w-stat .w-big { grid-area: b; }
  .ios .w-stat .w-sub { grid-area: s; margin-top: 1px; font-size: 12px; color: var(--w-ink-2); opacity: 1; }
  .ios .w-sub b { color: #fff; }

  /* the tagline */
  .ios .w-say { justify-content: flex-start; }
  .ios .w-say-l { margin-top: auto; font: 800 calc(var(--wsm) * .148)/1.02 var(--font-d); letter-spacing: -.03em; }
  .ios .w-say-s { margin-top: 5px; font-size: 12.5px; font-weight: 500; line-height: 1.28; color: var(--w-ink-2); opacity: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* What we do: a note, like the iOS Notes widget, twice the height of a small widget
     (the right half of page 2, three rows down). The folder in Notes yellow, a bold
     title, then each service and a line about it, no symbols */
  .ios .w-svc, .ios .w-svc.w-md { grid-column: 3 / span 2; grid-row: 1 / span 3; width: var(--wsm); height: auto; align-self: stretch; padding: 16px 16px 14px; }
  .ios .w-note { display: block; margin-bottom: 2px; font: 600 12px/1.25 var(--font); color: #ffd60a; }
  .ios .w-svc .w-k { margin: 0 0 8px; font: 700 17px/1.2 var(--font-d); letter-spacing: -.01em; text-transform: none; color: #fff; }
  .ios .w-svc ul { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
  .ios .w-svc a {
    display: block; margin: 0; padding: 0; border-radius: 0; background: none;
    font: 600 14px/1.25 var(--font); color: #fff; white-space: normal;
  }
  .ios .w-svc a:hover { background: none; }
  .ios .w-svc .w-dot { display: none; }
  .ios .w-svc-d {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 1px; font: 400 12.5px/1.3 var(--font); color: rgba(255, 255, 255, .7);
  }

  /* ---- page dots above the dock */
  .ios-pill {
    position: absolute; left: 50%; translate: -50% 0;
    bottom: calc(var(--dock-ic) + 24px + 18px + env(safe-area-inset-bottom));
    display: flex; padding: 7px 10px; border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  }
  .ios-dots { display: flex; gap: 9px; }
  .ios-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .42); transition: background-color .25s; }
  .ios-dots button[aria-selected="true"] { background: #fff; }

  /* ---- the dock: four icons on frosted glass, 12pt from the edges */
  .dock { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .dock-list {
    justify-content: space-around; align-items: center;
    height: calc(var(--dock-ic) + 24px); padding: 12px 10px; border-radius: 34px;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22);
  }
  .dock-list::before { display: none; }
  .dock-cell { width: var(--dock-ic); height: var(--dock-ic); }
  .dock-item { height: var(--dock-ic); overflow: visible; }
  .dock-item .ic { position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; max-width: none; }
  .dock-cell[data-app="portfolio"] { display: none; }
}

/* Messages always carries a red badge, like an unread message, so people open it */
.dock-cell[data-app="chat"] .dock-item::after, .dicon[data-open="chat"] .dicon-art::after {
  content: "1"; position: absolute; top: -6px; right: -6px; z-index: 2;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  font: 600 13px/22px var(--font); color: #fff; text-align: center; text-shadow: none;
  background: #ff3b30; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  pointer-events: none;
}
@media (max-width: 760px) {
  .dock-cell[data-app="chat"] .dock-item::after { top: -5px; right: -5px; min-width: 24px; height: 24px; border-radius: 12px; font-size: 14px; line-height: 24px; }
}


/* ---------------------------------------------------------------- founder's note (a person notification) */
.nt--person { position: relative; grid-template-columns: 46px 1fr; align-items: start; gap: 0 12px; padding: 13px 16px 14px 14px; cursor: pointer; }
.nt-av { position: relative; width: 46px; height: 46px; grid-row: span 2; }
.nt-face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.nt-badge { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--menu-bg), 0 1px 3px rgba(0, 0, 0, .25); }
.nt-main { display: grid; min-width: 0; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nt-app { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.nt--person .nt-t { margin-top: 1px; font-size: 14px; font-weight: 700; }
.nt-s { font-size: 12px; color: var(--text-2); }
.nt--person .nt-b { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text); grid-column: auto; }
.nt-x {
  position: absolute; top: -7px; left: -7px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .18);
}
.nt-x .gl { width: 11px; height: 11px; }
.nt-x:hover { color: var(--text); }
.nt-act {
  grid-column: 2; justify-self: start; margin-top: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 12px 0 10px; border-radius: 13px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: #0a7cff;
  transition: transform .25s var(--spring), background-color .2s;
}
.nt-act .gl { width: 13px; height: 13px; }
.nt-act:hover { background: #0071eb; }
.nt-act:active { transform: scale(.94); }
.nt.is-up { animation: nt-up .35s var(--ease-in) both; }
@keyframes nt-up { to { transform: translateY(-140%); opacity: 0; } }

/* iPhone: an iOS notification banner. Who it is from (face with the app badge),
   the name and "now" on one line, the message under it, no buttons: tap it to
   reply, swipe it up to put it away */
@media (max-width: 760px) {
  .notify { left: 8px; right: 8px; top: calc(env(safe-area-inset-top) + 6px); }
  .nt { animation-name: nt-drop; }
  @keyframes nt-drop { from { transform: translateY(-130%); opacity: .4; } }
  .nt--person {
    grid-template-columns: 38px minmax(0, 1fr); gap: 0 11px; align-items: start;
    padding: 11px 15px 12px 12px; border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 0 0 .5px var(--rim-hi);
    touch-action: none;
  }
  .nt--person .nt-x, .nt--person .nt-act, .nt--person .nt-app, .nt--person .nt-s { display: none; }
  .nt-av { grid-row: auto; width: 38px; height: 38px; margin-top: 1px; }
  .nt-face { width: 38px; height: 38px; }
  .nt-badge { right: -3px; bottom: -2px; width: 16px; height: 16px; border-radius: 4.5px; }
  .nt--person .nt-main { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; }
  .nt--person .nt-head { display: contents; }
  .nt--person .nt-t { grid-column: 1; grid-row: 1; margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nt--person .nt-time { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--text-3); }
  .nt--person .nt-b {
    grid-column: 1 / -1; margin-top: 1px; font-size: 15px; line-height: 1.3; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
}


/* ---------------------------------------------------------------- Messages: the Hues assistant, iMessage-style */
:root { --bub-in: #e9e9eb; --bub-in-ink: #000; --bub-out: #0a7cff; --chat-bg: rgba(255, 255, 255, .9); --chat-field: rgba(255, 255, 255, .9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bub-in: #3b3b3d; --bub-in-ink: #fff; --chat-bg: rgba(28, 28, 30, .88); --chat-field: rgba(44, 44, 46, .9); }
}
:root[data-theme="dark"] { --bub-in: #3b3b3d; --bub-in-ink: #fff; --chat-bg: rgba(28, 28, 30, .88); --chat-field: rgba(44, 44, 46, .9); }

.win--chat .win-bar { border-bottom: .5px solid var(--sep); }
.chat-who { min-width: 0; display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.chat-av { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.chat-who > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.chat-who .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { font-size: 11px; color: var(--glass-ink-2); white-space: nowrap; }

.chat { flex-direction: column; background: var(--chat-bg); }
.win--chat { overflow: hidden; }
.chat-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 10px 16px 8px;
  scrollbar-width: thin;
}
.chat-time { align-self: center; margin: 4px 0 10px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.chat-receipt { align-self: flex-end; margin: 3px 4px 0 0; font-size: 10.5px; font-weight: 500; color: var(--text-3); }

.bub {
  position: relative; max-width: 76%;
  margin-top: 2px; padding: 7px 12px 8px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.36; overflow-wrap: anywhere; white-space: pre-wrap;
}
.bub.in { align-self: flex-start; color: var(--bub-in-ink); background: var(--bub-in); }
.bub.out { align-self: flex-end; color: #fff; background: var(--bub-out); }
.bub.in + .bub.out, .bub.out + .bub.in, .bub-acts + .bub.out, .chat-receipt + .bub, .bub-acts + .bub.in { margin-top: 10px; }
/* the tail: drawn with a mask, so it works over glass as well as solid */
.bub.tail::after {
  content: ""; position: absolute; bottom: 0; width: 16px; height: 18px; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M0 0H10C10 8 12 14 16 18C12 18 8 17 5 15.5C3.5 17 1.8 18 0 18Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M0 0H10C10 8 12 14 16 18C12 18 8 17 5 15.5C3.5 17 1.8 18 0 18Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bub.out.tail::after { right: -6px; }
.bub.in.tail::after { left: -6px; transform: scaleX(-1); }

/* typing… */
.bub.typing { display: flex; gap: 4px; align-items: center; height: 34px; padding: 0 13px; margin-top: 10px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; animation: chat-dot 1.2s infinite ease-in-out; }
.bub.typing i:nth-child(2) { animation-delay: .16s; }
.bub.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: .75; transform: translateY(-2px); } }

/* links the assistant offers under its answer */
.bub-acts { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px 2px; max-width: 86%; }
.bub-act {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; color: var(--bub-out);
  background: var(--chat-field); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bub-out) 35%, transparent);
  transition: transform .2s var(--spring), background-color .2s;
}
.bub-act:hover { background: color-mix(in srgb, var(--bub-out) 9%, var(--chat-field)); }
.bub-act:active { transform: scale(.95); }

/* quick replies */
.chat-chips { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 2px 14px 8px; }
.chat-chips[hidden] { display: none; }
.chip-r {
  flex: none; height: 30px; padding: 0 13px; border-radius: 15px;
  font-size: 13px; font-weight: 500; color: var(--bub-out); white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bub-out) 45%, transparent);
  transition: transform .2s var(--spring), background-color .2s;
  animation: chip-in .38s var(--spring) both;
}
.chip-r:nth-child(2) { animation-delay: .04s; } .chip-r:nth-child(3) { animation-delay: .08s; } .chip-r:nth-child(4) { animation-delay: .12s; } .chip-r:nth-child(5) { animation-delay: .16s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.chip-r:hover { background: color-mix(in srgb, var(--bub-out) 9%, transparent); }
.chip-r:active { transform: scale(.95); }

/* the field */
.chat-bar { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 4px 4px 4px 14px; border-radius: 19px; background: var(--chat-field); box-shadow: inset 0 0 0 1px var(--sep); }
.chat-in {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none;
  padding: 5px 0; max-height: 110px;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--text);
}
.chat-in::placeholder { color: var(--text-3); }
.chat-bar:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bub-out) 55%, transparent); }
.chat-send {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--bub-out);
  transition: transform .25s var(--spring), opacity .2s, background-color .2s;
}
.chat-send .gl { width: 16px; height: 16px; }
.chat-send:disabled { opacity: .35; transform: scale(.9); }
.chat-send:not(:disabled):active { transform: scale(.9); }
.chat-note { flex: none; margin: 6px 0 9px; text-align: center; font-size: 10.5px; color: var(--text-3); }

@media (max-width: 760px) {
  .win--chat .win-bar { justify-content: flex-start; }
  .chat-who { margin-left: 0; }
  .chat-av { width: 36px; height: 36px; }
  .chat-who .t { font-size: 16px; }
  .chat-who small { font-size: 12px; }
  .chat { border-radius: 0; }
  .chat-scroll { padding: 10px 14px 8px; }
  .bub { font-size: 16px; max-width: 80%; }
  .chip-r { height: 34px; font-size: 15px; padding: 0 15px; border-radius: 17px; }
  .chat-in { font-size: 16px; line-height: 22px; }   /* 16px: iOS does not zoom into the field */
  .chat-send { width: 32px; height: 32px; }
  .chat-bar { margin: 0 10px; }
  .chat-note { margin-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .chip-r { animation: none; } .bub.typing i { animation-duration: 2.4s; } }

/* an app opened on a phone is opaque, like an iOS app */
:root { --phone-app-bg: #f2f2f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --phone-app-bg: #000; } }
:root[data-theme="dark"] { --phone-app-bg: #000; }
