/* Odd Mac: light and Mac-native, like the store. The page reads as a tidy desktop: a Mac screen,
   every app in one strip, six live demos, then a note from me. */
body.oddmac { --page: #f2f2f5; --fg: #141416; --soft: #6e6e76; --line: #dcdce2; --om: #4f78ea; overflow-x: clip;
  --pill-bg: rgba(255,255,255,.82); --pill-fg: #141416; --pill-line: rgba(0,0,0,.07); --pill-hover: #fff;
  --sys: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --win-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 4px 14px rgba(30,40,80,.06), 0 28px 70px -22px rgba(30,40,80,.32); }
html:has(body.oddmac) { background: #f2f2f5; }
.oddmac main { overflow-x: clip; }
.oddmac :focus-visible { outline-color: var(--om); }
.dot { font-weight: inherit; color: var(--om); }

/* ---------- Hero: the Mac's screen ---------- */
.om-hero { background: #f4f5fa; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.om-wall { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(42% 48% at 20% 104%, rgba(255, 176, 103, .55), transparent 70%),
              radial-gradient(40% 46% at 50% 108%, rgba(185, 162, 255, .62), transparent 70%),
              radial-gradient(42% 48% at 82% 104%, rgba(127, 200, 240, .58), transparent 70%),
              radial-gradient(28% 32% at 92% 6%, rgba(240, 123, 192, .14), transparent 70%),
              radial-gradient(28% 32% at 6% 4%, rgba(147, 230, 187, .18), transparent 70%),
              linear-gradient(#f8f9fc, #eff1f7); }
.om-wall::after { content: ''; position: absolute; left: 30%; bottom: -30%; width: 40%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .55;
  background: radial-gradient(closest-side, rgba(240, 123, 192, .6), transparent); animation: om-drift 16s ease-in-out infinite alternate; }
@keyframes om-drift { from { transform: translate(-30%, 0) scale(.9); } to { transform: translate(30%, -8%) scale(1.15); } }

.om-hero-in { position: relative; z-index: 2; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: max(176px, 23vh) clamp(24px, 5vw, 72px) clamp(118px, 10vw, 150px); }
.om-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--soft); }
.om-logo { width: 34px; height: 34px; padding: 6px; border-radius: 9px; background: #141414; color: #fff; display: grid; place-items: center; flex: none; }
.om-logo svg { width: 100%; height: 100%; }
.om-word { font-size: 21px; font-weight: 500; letter-spacing: -.055em; color: var(--fg); }
.om-word i { font-style: normal; color: #7396f0; }
.om-role { padding-left: 11px; border-left: 1px solid rgba(0,0,0,.14); }
.om-hero h1 { margin: clamp(20px, 2.4vw, 30px) 0 0; font-size: clamp(52px, min(7.4vw, 12.5vh), 128px); line-height: .9; font-weight: 500; letter-spacing: -.066em; color: var(--fg); }
.om-hero h1 > span { display: block; color: #a3a4ad; }
.om-lede { margin: clamp(24px, 2.6vw, 34px) auto 0; max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #5d5e66; text-wrap: balance; }
.om-btns { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.om-btn { height: 46px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  background: #fff; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .3s var(--ease), background .2s, box-shadow .2s; }
.om-btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.om-btn.is-dark { background: #141416; color: #fff; box-shadow: none; }
.om-btn.is-dark:hover { background: #2a2a2e; }

/* Arrival */
.js .om-hero-in > * { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .om-hero.on .om-hero-in > * { opacity: 1; transform: none; }
.js .om-hero.on .om-hero-in > :nth-child(2) { transition-delay: .08s; }
.js .om-hero.on .om-hero-in > :nth-child(3) { transition-delay: .16s; }
.js .om-hero.on .om-hero-in > :nth-child(4) { transition-delay: .24s; }
.js .om-hero .om-dock { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) .35s, transform 1.1s var(--spring) .35s; }
.js .om-hero.on .om-dock { opacity: 1; transform: none; }

/* ---------- DockOS: a dock that magnifies like the real one ---------- */
.om-dock { --sz: min(clamp(40px, 4.3vw, 62px), calc((100vw - 96px) / 12)); --pad: clamp(6px, .6vw, 9px); position: absolute; z-index: 3; left: 50%; bottom: clamp(14px, 1.6vw, 22px); translate: -50% 0;
  display: flex; align-items: flex-end; gap: clamp(4px, .5vw, 7px); padding: var(--pad); height: calc(var(--sz) + 2 * var(--pad)); border-radius: clamp(16px, 1.6vw, 22px);
  background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 0 0 .5px rgba(0,0,0,.08), 0 14px 34px -10px rgba(40,50,90,.22);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }
.dk { --m: 1; position: relative; display: block; flex: none; align-self: flex-end; width: calc(var(--sz) * var(--m)); transition: width .4s var(--ease); }
.is-tracking .dk { transition-duration: .09s; }
.dk img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.dk.run::after { content: ''; position: absolute; left: 50%; bottom: calc(var(--pad) * -.8); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(20,20,22,.6); }
.dk-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; font: 500 13px/1 var(--sys); color: #1d1d1f;
  background: rgba(246,246,248,.92); box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 6px 18px rgba(0,0,0,.14); opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s; }
.dk:hover .dk-tip, .dk:focus-visible .dk-tip { opacity: 1; translate: -50% 0; }

/* ---------- Section heads ---------- */
.om-h { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.om-h h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .95; font-weight: 500; letter-spacing: -.058em; }
.om-h p { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--soft); }

/* ---------- Have a play: a bento, like the store ---------- */
.om-play { padding-top: clamp(110px, 11vw, 170px); }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.pc { grid-column: span 6; display: flex; flex-direction: column; padding: 12px 12px 24px; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 50px -30px rgba(30,40,80,.25); }
.pc.w7 { grid-column: span 7; } .pc.w5 { grid-column: span 5; }
.pc-vis { position: relative; isolation: isolate; height: 360px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(70% 60% at 50% 105%, color-mix(in srgb, var(--t, #7396f0) 30%, transparent), transparent 72%), #f4f4f7; }
.pc-vis.is-fill { padding: 0; place-items: stretch; }
.pc-txt { padding: 20px 14px 0; display: grid; justify-items: start; gap: 8px; }
.pc-txt h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.pc-txt p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.pc-chip { margin-top: 8px; height: 34px; padding: 0 10px 0 6px; display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; font-size: 13.5px; font-weight: 500;
  background: #f2f2f5; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: background .2s; }
.pc-chip:hover { background: #e9e9ee; }
.pc-chip img { width: 24px; height: 24px; }
.pc-chip svg { width: 13px; height: 13px; color: #8a8b94; }

/* shared segmented control */
.d-seg { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.d-seg button { flex: 1; height: 32px; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: #5d6170; font: 500 13px/1 var(--sys); cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--spring); }
.d-seg button:hover { color: #15161a; }
.d-seg button:active { transform: scale(.96); }
.d-seg button[aria-pressed="true"] { background: #fff; color: #15161a; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.18); }
.d-seg.is-dark { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.d-seg.is-dark button { color: rgba(255,255,255,.55); }
.d-seg.is-dark button:hover { color: #fff; }
.d-seg.is-dark button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
/* One pill travels under the buttons, the way Ascend's Focus | Map switch does (see initSegThumb) */
.d-seg.has-thumb button { position: relative; z-index: 1; transition: color .22s ease, transform .3s var(--spring); }
.d-seg.has-thumb button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.18); }
.seg-thumb.placed { opacity: 1; }
.d-seg.is-dark .seg-thumb { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* ReviveOS */
.d-rv { --v: .5; position: relative; isolation: isolate; width: min(380px, 100%); padding: 16px 20px 20px; border-radius: 24px; overflow: hidden; color: #171923; font-family: var(--sys);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 30px 60px -24px rgba(255, 138, 61, calc(.25 + var(--v) * .45)); }
.d-rv-sky { position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 40% at 30% 18%, rgba(255,255,255,.9), transparent 70%), radial-gradient(50% 30% at 80% 36%, rgba(255,255,255,.7), transparent 70%), linear-gradient(#b8cdf3, #dfe7f6 45%, #f6dcc0);
  filter: brightness(calc(.66 + var(--v) * .46)) saturate(calc(.8 + var(--v) * .4)); transition: filter .2s; }
.d-rv::after { content: ''; position: absolute; z-index: -1; left: 50%; top: -30%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 250, 235, .95), transparent); opacity: calc(var(--v) * .75); }
.d-rv-bar { display: flex; justify-content: space-between; align-items: center; }
.d-rv-brand { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.d-rv-brand svg { width: 21px; height: 21px; }
.d-rv-bar > svg { width: 19px; height: 19px; opacity: .6; }
.d-rv-num { margin: 16px 0 0; text-align: center; font-size: 68px; line-height: .9; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.d-rv-num span { font-size: .32em; margin-left: 3px; letter-spacing: 0; }
.d-rv-sub { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: rgba(23,25,35,.6); }
.d-rv-track { position: relative; margin-top: 18px; height: 38px; border-radius: 13px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; }
.d-rv-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(18% + var(--v) * 82%); border-radius: inherit; background: linear-gradient(90deg, #ffe0a6, #ffb067 60%, #ff8a3d); }
.d-rv-fill::after { content: ''; position: absolute; right: 8px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: rgba(255,255,255,.85); }
.d-rv-ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: #fff; pointer-events: none; }
.d-rv-ic svg { width: 100%; height: 100%; display: block; }
.d-rv-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.d-rv-track:has(input:focus-visible) { outline: 2px solid var(--om); outline-offset: 3px; }
.d-rv-scale { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: rgba(23,25,35,.55); }
.d-rv .d-seg { margin-top: 14px; }

/* BoostOS */
.d-bo { width: min(420px, 100%); padding: 16px 16px 18px; border-radius: 22px; background: #050506; box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 30px 60px -26px rgba(40, 70, 200, .55); font-family: var(--sys); color: #fff; }
.d-bo-desc { margin: 12px 2px 0; font-size: 12.5px; color: rgba(255,255,255,.6); min-height: 1.4em; }
.d-bo-eq { position: relative; margin: 14px 10px 0; height: 130px; }
.d-bo-eq svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d-bo-dots { position: absolute; inset: 0; }
.d-bo-dot { position: absolute; left: calc(var(--x) * 100%); top: calc(50% - var(--y, 0) * 50% / 6); width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: ns-resize; touch-action: none; }
.d-bo-dot::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; transition: box-shadow .25s, transform .25s var(--spring); }
.d-bo-dot:hover::before, .d-bo-dot.is-drag::before { box-shadow: 0 0 0 7px rgba(255,255,255,.14); transform: scale(1.12); }
.d-bo-bands { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); text-align: center; }
.d-bo-bands b { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.85); }
.d-bo-bands span { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }

/* NightVisionOS */
.d-nv { --w: .72; --d: .16; width: min(360px, 100%); display: grid; gap: 10px; font-family: var(--sys); }
.d-nv-screen { position: relative; height: 104px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #9fb7ea, #e8eef9); box-shadow: 0 0 0 .5px rgba(0,0,0,.1); }
.d-nv-screen::before, .d-nv-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.d-nv-screen::before { z-index: 2; background: #ff8a2a; mix-blend-mode: multiply; opacity: calc(var(--w) * .62); }
.d-nv-screen::after { z-index: 3; background: #000; opacity: calc(var(--d) * .85); }
.d-nv-doc { position: absolute; left: 12%; right: 12%; top: 14px; bottom: -20px; padding: 12px 14px; border-radius: 9px 9px 0 0; background: #fff; color: #1a1b22; display: grid; align-content: start; gap: 6px; box-shadow: 0 10px 30px rgba(20, 30, 60, .25); }
.d-nv-dots { display: flex; gap: 4px; }
.d-nv-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e3e5ea; }
.d-nv-doc b { font-size: 12px; font-weight: 600; }
.d-nv-doc .l { height: 5px; border-radius: 3px; background: #e6e8ee; }
.d-nv-doc .l.s { width: 62%; }
.d-nv-img { height: 20px; border-radius: 5px; background: linear-gradient(90deg, #7fa3ef, #b9a2ff); }
.d-nv-panel { padding: 14px 16px 16px; border-radius: 18px; background: #0c0c0e; color: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 26px 50px -24px rgba(200, 100, 40, .55); }
.d-nv-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.d-nv-head b { font-weight: 600; letter-spacing: -.02em; }
.d-nv-on { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; background: rgba(255, 138, 42, .16); color: #ffb27a; }
.d-nv-on::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.d-nv-on.is-off { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.d-nv-row { display: block; margin-top: 12px; }
.d-nv-lbl { display: flex; justify-content: space-between; font-size: 12.5px; }
.d-nv-lbl output { color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.d-nv-track { --p: .5; position: relative; display: block; height: 22px; margin-top: 2px; }
.d-nv-track i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.85) calc(var(--p) * 100%), rgba(255,255,255,.16) 0); }
.d-nv-track i::after { content: ''; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.d-nv-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.d-nv-track:has(input:focus-visible) i::after { box-shadow: 0 0 0 3px var(--om); }
.d-nv .d-seg { margin-top: 14px; }

/* FocusOS: the real window, and the screen goes dark with a violet glow round its edges */
@property --fo-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.d-fo { position: relative; isolation: isolate; width: 100%; height: 100%; overflow: hidden; font-family: var(--sys); display: grid; place-items: center;
  background: linear-gradient(150deg, #d9d6ff, #9d98f2); transition: background .9s var(--ease); }
.d-fo::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 90% at 50% 50%, #0b0a12 55%, #17122e); opacity: 0; transition: opacity .9s var(--ease); }
.d-fo.is-on::before { opacity: 1; }
.d-fo-glow { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  box-shadow: inset 0 0 26px 2px rgba(150, 120, 255, .75), inset 0 0 90px 10px rgba(96, 72, 230, .45), inset 0 0 180px 30px rgba(84, 80, 224, .22);
  animation: fo-breathe 5s ease-in-out infinite alternate; animation-play-state: paused; }
.d-fo-glow i { position: absolute; inset: 0; padding: 2px; border-radius: inherit;
  background: conic-gradient(from var(--fo-ang), #6d5cff, #b49bff, #7f6bff, #5450e0, #c3a8ff, #6d5cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(3px); animation: fo-spin 9s linear infinite; animation-play-state: paused; }
.d-fo.is-on .d-fo-glow { opacity: 1; }
.d-fo.is-on .d-fo-glow, .d-fo.is-on .d-fo-glow i { animation-play-state: running; }
@keyframes fo-breathe { from { filter: brightness(.85); } to { filter: brightness(1.2); } }
@keyframes fo-spin { to { --fo-ang: 360deg; } }
.d-fo-desk { position: absolute; inset: 0; pointer-events: none; }
.d-fo-file { position: absolute; left: var(--x); top: var(--y); width: 64px; display: grid; justify-items: center; gap: 5px; font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: opacity .5s var(--ease), transform .6s var(--ease); }
.d-fo-file i { width: 34px; height: 42px; border-radius: 4px; background: linear-gradient(#fff, #eef0f6); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.d-fo-file i.img { width: 42px; height: 34px; margin: 4px 0; background: linear-gradient(150deg, #ffd76e, #f07bc0); border: 3px solid #fff; }
.d-fo.is-on .d-fo-file { opacity: 0; transform: scale(.85); }
.d-fo-dock { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .6s var(--ease), transform .7s var(--ease); }
.d-fo.is-on .d-fo-dock { opacity: 0; transform: translateY(16px); }
.d-fo-dock > * { width: 30px; height: 30px; flex: none; transition: width .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.d-fo-x { border-radius: 8px; display: grid; place-items: center; }
.d-fo-x::after { content: ''; display: block; }
.d-fo-x.chat { width: 26px; height: 26px; margin: 2px; background: linear-gradient(#5ef07a, #22c84a); }
.d-fo-x.chat::after { width: 13px; height: 10px; border-radius: 6px; background: #fff; }
.d-fo-x.play { width: 26px; height: 26px; margin: 2px; background: linear-gradient(#ff6a6a, #e8263b); }
.d-fo-x.play::after { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.d-fo.is-on .d-fo-x { width: 0; margin: 0; opacity: 0; }

.d-fo-panel { position: relative; z-index: 1; width: min(286px, 78%); padding: 0 16px 14px; border-radius: 16px; text-align: center; color: #f4f4f6; background: #1d1d22;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.7); transition: box-shadow .9s var(--ease); }
.d-fo.is-on .d-fo-panel { box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 30px 70px -20px rgba(0,0,0,.9), 0 0 60px -10px rgba(110, 90, 255, .35); }
.d-fo-bar { height: 22px; display: flex; align-items: center; }
.d-fo-tl { display: flex; gap: 5px; margin-left: -6px; }
.d-fo-tl i { width: 8px; height: 8px; border-radius: 50%; background: #3b3b42; }
.d-fo-top { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.85); }
.d-fo-top svg { width: 16px; height: 16px; }
.d-fo-top b { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.d-fo-top b svg { width: 19px; height: 19px; }
.d-fo-mode { display: inline-flex; align-items: center; gap: 5px; height: 24px; margin-top: 10px; padding: 0 11px; border-radius: 99px; font-size: 12px; color: rgba(255,255,255,.72); background: #2c2c33; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }
.d-fo-mode svg { width: 13px; height: 13px; }
.d-fo-time { margin: 6px 0 0; font-size: 50px; line-height: 1; font-weight: 400; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.d-fo-lock { margin: 6px 0 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.d-fo-rows { margin: 12px 0 0; display: grid; gap: 8px; text-align: left; font-size: 11.5px; }
.d-fo-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.d-fo-rows dt { color: rgba(255,255,255,.55); }
.d-fo-rows dd { margin: 0; display: grid; justify-items: end; gap: 1px; }
.d-fo-rows b { font-weight: 600; }
.d-fo-rows span { font-size: 10px; color: rgba(255,255,255,.4); }
.d-fo-btn { position: relative; width: 100%; height: 38px; margin-top: 14px; border: 2.5px solid transparent; border-radius: 99px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #6f8dff, #b49bff, #f2a6d2) border-box; color: #141416; font: 600 13px/1 var(--sys); cursor: pointer; transition: transform .2s var(--spring), box-shadow .6s; }
.d-fo.is-on .d-fo-btn { box-shadow: 0 0 18px rgba(150, 130, 255, .55); }
.d-fo-btn:active { transform: scale(.97); }

/* WheelOS */
.d-wh { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: manipulation; font-family: var(--sys);
  background: radial-gradient(60% 70% at 15% 100%, rgba(255, 95, 98, .38), transparent 70%), radial-gradient(50% 60% at 90% 0%, rgba(255, 183, 168, .5), transparent 70%), linear-gradient(160deg, #fff6f3, #ffe4dd); }
.d-wh-hint { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #8a5a54; font-size: 13px; pointer-events: none; transition: opacity .3s; }
.d-wh-hint kbd { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font: 22px/1 var(--sys); color: #2a2b31; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 3px 0 rgba(0,0,0,.08); animation: wh-key 2.6s ease-in-out infinite; }
@keyframes wh-key { 0%, 60%, 100% { transform: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 3px 0 rgba(0,0,0,.08); } 70%, 85% { transform: translateY(2px); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.08); } }
.d-wh.is-open .d-wh-hint { opacity: 0; }
.d-wh-ring { --r: 78px; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; pointer-events: none; }
.d-wh-ring::before { content: ''; position: absolute; left: -116px; top: -116px; width: 232px; height: 232px; border-radius: 50%;
  background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 .5px rgba(0,0,0,.08), 0 24px 60px rgba(120, 40, 30, .25); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: scale(.2); opacity: 0; transition: transform .35s var(--ease), opacity .2s; }
.d-wh.is-open .d-wh-ring { pointer-events: auto; }
.d-wh.is-open .d-wh-ring::before { transform: none; opacity: 1; transition: transform .5s var(--spring), opacity .15s; }
.d-wh-mid { position: absolute; left: 0; top: 0; translate: -50% -50%; z-index: 2; max-width: 84px; text-align: center; font: 500 12px/1.2 var(--sys); color: #2a2b31; opacity: 0; transition: opacity .2s; }
.d-wh.is-open .d-wh-mid { opacity: 1; transition-delay: .08s; }
.d-wh-app { --a: calc(var(--k) * 45deg - 90deg); position: absolute; z-index: 2; left: -21px; top: -21px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer;
  transform: rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))) scale(.3); opacity: 0; transition: transform .3s var(--ease), opacity .15s; }
.d-wh-app img { width: 100%; height: 100%; display: block; pointer-events: none; }
.d-wh.is-open .d-wh-app { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); opacity: 1; transition: transform .55s var(--spring) calc(var(--k) * 18ms), opacity .2s calc(var(--k) * 18ms); }
.d-wh.is-open .d-wh-app.is-hot { transform: rotate(var(--a)) translateX(calc(var(--r) + 4px)) rotate(calc(-1 * var(--a))) scale(1.24); transition-duration: .3s; transition-delay: 0s; }
.d-wh-app.is-go { animation: wh-go .6s var(--ease); }
@keyframes wh-go { 50% { filter: brightness(1.15); } }
.d-wh-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 8px; margin: 0; padding: 8px 14px 8px 10px; display: flex; align-items: center; gap: 8px; border-radius: 99px; white-space: nowrap;
  font: 500 13px/1 var(--sys); color: #1d1d1f; background: rgba(255,255,255,.8); box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 8px 20px rgba(0,0,0,.1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s, translate .35s var(--spring); }
.d-wh-toast img { width: 20px; height: 20px; }
.d-wh-toast.is-on { opacity: 1; translate: -50% 0; }
.d-wh:focus-visible { outline: 2px solid var(--om); outline-offset: -2px; }

/* PrivateOS */
.d-pv { --gaze: 0; --k: 0; --dir: to left; width: min(360px, 100%); padding: 16px; border-radius: 24px; background: #0d0d0f; color: #fff; font-family: var(--sys); box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 30px 60px -26px rgba(30, 140, 130, .6); }
.d-pv-top { display: flex; align-items: center; gap: 12px; padding: 0 2px 12px; }
.d-pv-face { width: 38px; height: 38px; flex: none; color: rgba(255,255,255,.85); }
.d-pv-feat { transform: translateX(calc(var(--gaze) * 7px)) scaleX(calc(1 - (var(--gaze) * var(--gaze)) * .22)); transform-origin: 24px 24px; }
.d-pv-status { display: grid; gap: 3px; }
.d-pv-status b { font-size: 13.5px; font-weight: 600; }
.d-pv-status span { font-size: 12px; color: rgba(255,255,255,.55); }
.d-pv-doc { position: relative; display: grid; gap: 7px; padding: 14px 16px 16px; border-radius: 14px; overflow: hidden; background: #f6f6f8; color: #1a1b22; }
.d-pv-doc > b { font-size: 14px; font-weight: 600; }
.d-pv-doc > span:first-of-type { margin-top: -4px; font-size: 11px; color: #8a8d97; }
.d-pv-doc .l { height: 6px; border-radius: 3px; background: #e2e4ea; }
.d-pv-doc .l.s { width: 58%; }
.d-pv-row { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: #eceef3; font-size: 12px; }
.d-pv-row span:last-child { font-weight: 600; }
/* gradual frost: stacked blurs, strongest at the edge you turned from, reaching further the further you look */
.d-pv-frost { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: min(1, calc(var(--k) * 2)); }
.d-pv-frost i { --r: calc(var(--k) * (var(--s) * 100% + 20%)); position: absolute; inset: 0; border-radius: inherit; -webkit-backdrop-filter: blur(var(--b)) saturate(1.1); backdrop-filter: blur(var(--b)) saturate(1.1);
  -webkit-mask-image: linear-gradient(var(--dir), #000 calc(var(--r) - 45%), transparent var(--r)); mask-image: linear-gradient(var(--dir), #000 calc(var(--r) - 45%), transparent var(--r)); }
.d-pv-frost i:nth-child(1) { --b: 1.5px; --s: 1; }
.d-pv-frost i:nth-child(2) { --b: 3px; --s: .8; }
.d-pv-frost i:nth-child(3) { --b: 6px; --s: .62; }
.d-pv-frost i:nth-child(4) { --b: 10px; --s: .46; }
.d-pv-frost i:nth-child(5) { --b: 16px; --s: .3; background: rgba(240, 242, 248, calc(var(--k) * .45)); }

/* ---------- Hero dock: every icon opens its app ---------- */
button.dk { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 22%; }
button.dk:active img { transform: scale(.94); }
.dk img { transition: transform .25s var(--spring); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- All twelve apps: a strip of cards, each opens full size ---------- */
.om-col { --gut: max(24px, calc((100% - 1180px) / 2)); padding-top: clamp(110px, 11vw, 170px); }
.om-h-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.om-h-row > div:first-child { display: grid; gap: 14px; }
.ap-nav { display: flex; gap: 8px; }
.ap-nav button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--fg); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: background .2s, opacity .2s, transform .25s var(--spring); }
.ap-nav button:hover:not(:disabled) { background: #f7f7f9; }
.ap-nav button:active:not(:disabled) { transform: scale(.94); }
.ap-nav button:disabled { opacity: .35; cursor: default; }
.ap-nav svg { width: 16px; height: 16px; }
.ap-strip { list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  padding: 6px var(--gut) 40px; scrollbar-width: none; cursor: grab; }
.ap-strip::-webkit-scrollbar { display: none; }
.ap-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ap-strip.is-dragging .ap-card { pointer-events: none; }
.ap { flex: none; width: clamp(260px, 26vw, 340px); scroll-snap-align: start; }
.ap-card { position: relative; isolation: isolate; width: 100%; height: clamp(380px, 38vw, 470px); padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; color: var(--fg); background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 50px -30px color-mix(in srgb, var(--b) 70%, #000); transition: transform .5s var(--spring), box-shadow .4s var(--ease); }
.ap-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 55% at 50% 0%, rgba(255,255,255,.45), transparent 70%); }
.ap-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 34px 60px -30px color-mix(in srgb, var(--b) 80%, #000); }
.ap-card:active { transform: scale(.985); }
.ap-card:focus-visible { outline-offset: 4px; border-radius: 28px; }
.ap-shot { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 26px 22px 6px; }
.ap-shot img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 18px 34px -16px rgba(0,0,0,.45); transition: transform .6s var(--spring); }
.ap-shot.is-float img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 18px 26px rgba(40,10,60,.35)); }
.ap-card:hover .ap-shot img { transform: scale(1.035); }
.ap-meta { display: flex; align-items: center; gap: 12px; margin: 0 10px 10px; padding: 12px 14px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ap-ic { width: 42px; height: 42px; flex: none; }
.ap-meta > span { min-width: 0; display: grid; gap: 2px; }
.ap-meta b { font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.ap-meta > span > span { font-size: 13.5px; line-height: 1.35; color: #50525c; }

/* the box: one app, as big as the screen allows */
.ab { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(10px, 2vw, 28px); border: 0; background: none; overflow: hidden; }
.ab::backdrop { background: rgba(16, 18, 26, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: ab-fade .35s ease both; }
.ab.is-closing::backdrop { animation: ab-fade .3s ease reverse both; }
@keyframes ab-fade { from { opacity: 0; } }
html.is-boxed { overflow: hidden; }
.ab-panel { position: relative; isolation: isolate; width: 100%; height: 100%; max-width: 1400px; margin: 0 auto; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column;
  transform-origin: 0 0; box-shadow: 0 40px 120px -30px rgba(0,0,0,.55); outline: none; }
.ab-bg { position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,.4), transparent 70%), linear-gradient(155deg, var(--a), var(--b)); transition: background .5s; }
.ab-head { display: flex; align-items: center; gap: 14px; padding: clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px) 0; }
.ab-ic { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.ab-title { min-width: 0; flex: 1; }
.ab-title h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.ab-title p { margin: 4px 0 0; font-size: 15px; line-height: 1.35; color: rgba(20,20,22,.68); }
.ab-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.ab-link { height: 42px; padding: 0 14px 0 16px; display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); transition: background .2s; }
.ab-link svg { width: 15px; height: 15px; }
.ab-btn { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--fg);
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); transition: background .2s, transform .25s var(--spring); }
.ab-link:hover, .ab-btn:hover { background: #fff; }
.ab-btn:active { transform: scale(.92); }
.ab-btn svg { width: 16px; height: 16px; }
.ab-stage { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: clamp(18px, 3vw, 44px) clamp(16px, 4vw, 64px) clamp(36px, 4vw, 56px); }
.ab-shot { width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; border-radius: 16px; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.1), 0 50px 100px -30px rgba(0,0,0,.55); }
.ab-shot.is-float { width: min(100%, 1100px); border-radius: 0; box-shadow: none; filter: drop-shadow(0 36px 50px rgba(40,10,60,.45)); }
.ab-count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font: 500 12px/1 var(--sys); color: rgba(20,20,22,.55); font-variant-numeric: tabular-nums; }

/* ---------- A note from me ---------- */
.om-note { padding-top: clamp(110px, 11vw, 170px); }
.nt { position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: clamp(48px, 7vw, 104px) clamp(24px, 7vw, 110px); border-radius: 34px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 30px 80px -40px rgba(30,40,80,.3); }
.nt-glow { position: absolute; z-index: -1; left: 50%; bottom: -55%; width: 90%; height: 80%; translate: -50% 0; border-radius: 50%; filter: blur(70px); opacity: .4;
  background: conic-gradient(from 90deg, #ffb067, #f07bc0, #b9a2ff, #7fc8f0, #93e6bb, #ddf294, #ffb067); }
.nt blockquote { margin: 0; }
.nt blockquote p { margin: 0; max-width: 32ch; font-size: clamp(26px, 3vw, 44px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.nt figcaption { margin-top: clamp(28px, 3.4vw, 44px); display: flex; align-items: center; gap: 12px; }
.nt-ic { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: #141414; color: #fff; flex: none; }
.nt-ic svg { width: 100%; height: 100%; display: block; }
.nt figcaption > span:last-child { display: grid; gap: 2px; font-size: 15px; }
.nt figcaption b { font-weight: 500; }
.nt figcaption span span { color: var(--soft); }

@media (max-width: 700px) {
  .om-h-row { grid-template-columns: minmax(0, 1fr); }
  .ap-nav { display: none; }
  .ap-strip { gap: 12px; padding-bottom: 28px; --gut: 16px; }
  .ap { width: 78vw; }
  .ap-card { height: min(112vw, 440px); border-radius: 24px; }
  .ab { padding: 0; }
  .ab-panel { border-radius: 0; }
  .ab-head { flex-wrap: wrap; padding-top: max(16px, env(safe-area-inset-top)); }
  .ab-title { flex-basis: calc(100% - 66px); }
  .ab-ctl { width: 100%; }
  .ab-link { margin-right: auto; }
  .ab-stage { padding: 20px 14px 44px; }
  .ab-shot { border-radius: 12px; }
  .nt { border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-card, .ap-shot img, .ab::backdrop { transition: none !important; animation: none !important; }
}

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.oddmac .site-foot { margin-top: clamp(110px, 11vw, 160px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pc.w7, .pc.w5 { grid-column: span 6; }
}
@media (max-width: 900px) {
  .pc, .pc.w7, .pc.w5 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .om-hero-in { padding-top: 104px; padding-bottom: 120px; }
  .om-eyebrow { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .om-role { flex-basis: 100%; padding-left: 0; border-left: 0; }
  .pc-vis { height: 340px; }
}
@media (max-width: 520px) {
  .oddmac .pill { height: 36px; padding: 0 12px 0 10px; font-size: 13px; }
  .oddmac .pill.next { padding: 0 10px 0 13px; }
  .d-seg button { padding: 0 6px; font-size: 12.5px; }
  .pc-vis { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .om-wall::after, .d-wh-hint kbd, .d-fo-glow, .d-fo-glow i { animation: none !important; }
  .dk { transition-duration: .01s !important; }
  .js .om-hero-in > *, .js .om-hero .om-dock, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
