Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

20.7 KB
Raw Blame
/* The four product scenes after the hero: anatomy, settings, reversible, download.
   macOS idioms throughout: window chrome, switches, sliders, disclosure. */

:root {
  --mac-accent: #0a84ff;
  --mac-window: rgb(255 255 255 / 0.86);
  --mac-sidebar: rgb(240 238 232 / 0.75);
  --mac-card: rgb(255 255 255 / 0.9);
  --mac-hairline: rgb(0 0 0 / 0.09);
  --mac-track: rgb(0 0 0 / 0.14);
  --mac-segment: #ffffff;
  --glass: rgb(255 255 255 / 0.28);
  --glass-edge: rgb(255 255 255 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root {
    --mac-window: rgb(32 34 36 / 0.92);
    --mac-sidebar: rgb(44 46 48 / 0.7);
    --mac-card: rgb(255 255 255 / 0.05);
    --mac-hairline: rgb(255 255 255 / 0.08);
    --mac-track: rgb(255 255 255 / 0.2);
    --mac-segment: rgb(255 255 255 / 0.2);
    --glass: rgb(40 40 44 / 0.4);
    --glass-edge: rgb(255 255 255 / 0.18);
  }
}

/* ---------------------------------------------------------------- Intro */

.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-eyebrow {
  margin-bottom: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  color: transparent;
}

.intro-title {
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
}

.intro-lead {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-mute);
}

/* ---------------------------------------------------------------- Anatomy */

.anatomy-scroll {
  margin-top: 72px;
  overflow-x: auto;
  padding: 0 4px 12px;
  scrollbar-width: thin;
}

.anatomy {
  --tile: clamp(46px, 5.2vw, 64px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--columns), auto);
  grid-template-rows: auto auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
  width: max-content;
  min-width: 100%;
  /* Room for the outermost labels, which are wider than a one-icon group. */
  padding: 0 64px;
}

/* The glass spans every column of the middle row, behind the tiles. */
.anatomy-glass {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: stretch;
  margin: 0 -14px;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.16),
    inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.anatomy::before {
  /* A soft wallpaper glow under the glass, so it reads as glass on any theme. */
  content: "";
  position: absolute;
  inset: 25% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(249 124 3 / 0.28),
    rgb(10 132 255 / 0.12),
    transparent
  );
  filter: blur(30px);
}

.anatomy-tiles {
  grid-row: 2;
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 0 16px;
}

.anatomy-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
}

.anatomy-tile img {
  width: 100%;
  height: 100%;
}

.anatomy-dot {
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 5px;
  height: 5px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--color-fg);
  opacity: 0.7;
}

.anatomy-start {
  corner-shape: squircle;
  border-radius: 22%;
  background: linear-gradient(160deg, #3c9bff, #0062d1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.anatomy-start svg {
  width: 52%;
  fill: #fff;
}

.anatomy-window {
  display: flex;
  flex-direction: column;
  gap: 5px;
  place-items: stretch;
  padding: 7px;
  corner-shape: squircle;
  border-radius: 18%;
  background: #fffdf7;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.18);
}

.anatomy-window-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 2px;
}

.anatomy-window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
}

.anatomy-window-bar i:nth-child(2) {
  background: #febc2e;
}

.anatomy-window-bar i:nth-child(3) {
  background: #28c840;
}

.anatomy-window-line {
  height: 4px;
  border-radius: 2px;
  background: rgb(0 0 0 / 0.14);
}

.anatomy-window-line.short {
  width: 60%;
}

.anatomy-divider {
  grid-row: 2;
  align-self: stretch;
  width: 1px;
  margin: 14px 0 18px;
  background: color-mix(in srgb, var(--color-mute) 50%, transparent);
}

/* A label sits above or below its group. It does not count towards the column
   width (the tiles set it), so its text may spread wider than a one-icon group,
   and the bracket under it spans exactly the group's icons. */
.anatomy-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  contain: inline-size;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
}

.anatomy-label.is-top {
  grid-row: 1;
  align-self: end;
  padding-bottom: 12px;
}

.anatomy-label.is-bottom {
  grid-row: 3;
  flex-direction: column-reverse;
  align-self: start;
  padding-top: 20px;
}

.anatomy-text {
  display: grid;
  gap: 2px;
  width: 150px;
}

.anatomy-text b {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.anatomy-text span {
  color: var(--color-mute);
}

.anatomy-bracket {
  align-self: stretch;
  height: 9px;
  margin: 10px 2px 0;
  border: 1.5px solid color-mix(in srgb, var(--color-mute) 45%, transparent);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.anatomy-label.is-bottom .anatomy-bracket {
  margin: 0 2px 10px;
  border: 1.5px solid color-mix(in srgb, var(--color-mute) 45%, transparent);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

/* -------------------------------------------------------------- Customize */

.custom {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .custom {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
  }
}

.mac-window {
  overflow: hidden;
  border: 1px solid var(--mac-hairline);
  corner-shape: squircle;
  border-radius: 22px;
  background: var(--mac-window);
  box-shadow:
    0 40px 90px rgb(0 0 0 / 0.18),
    0 0 0 0.5px rgb(0 0 0 / 0.1);
  backdrop-filter: blur(30px);
}

.mac-lights {
  display: flex;
  gap: 8px;
}

.mac-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.15);
}

.mac-lights i:nth-child(2) {
  background: #febc2e;
}

.mac-lights i:nth-child(3) {
  background: #28c840;
}

.settings {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 470px;
  font-size: 13px;
  text-align: start;
}

.settings-side {
  padding: 16px 10px;
  border-inline-end: 1px solid var(--mac-hairline);
  background: var(--mac-sidebar);
}

.settings-nav {
  display: grid;
  gap: 2px;
  margin-top: 26px;
}

.settings-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  text-align: start;
  cursor: pointer;
}

.settings-nav button:hover {
  background: var(--mac-hairline);
}

.settings-nav button[aria-current="page"] {
  background: var(--mac-accent);
  color: #fff;
}

.settings-icon {
  flex: none;
  filter: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.18));
}

/* Options that depend on the menu bar: indented under it, as in the app. */
.settings-row-sub {
  padding-inline-start: 28px;
}

/* The AI usage island of the preview desk, a miniature of the real one. */
.preview-island {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 9px;
  translate: -50% 0;
  border-radius: 0 0 9px 9px;
  background: #0b0c0f;
  font-size: 10px;
  font-weight: 600;
}

.preview-island[hidden] {
  display: none;
}

.preview-island i {
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) 0 var(--p), rgb(255 255 255 / 0.2) 0);
}

.settings-main {
  min-width: 0;
  padding: 14px 20px 22px;
}

.settings-title {
  margin: 2px 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.settings-body {
  display: grid;
  gap: 14px;
}

.settings-card {
  border: 1px solid var(--mac-hairline);
  border-radius: 10px;
  background: var(--mac-card);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 9px 12px;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--mac-hairline);
}

.settings-row[hidden] {
  display: none;
}

.mac-select {
  max-width: 48%;
  padding: 4px 8px;
  border: 1px solid var(--mac-hairline);
  border-radius: 6px;
  background: var(--mac-segment);
  color: inherit;
  font: inherit;
}

.mac-select option {
  background: var(--mac-window);
}

.settings-details summary {
  padding: 12px;
  font-weight: 500;
  cursor: pointer;
}

.settings-details[open] summary {
  border-bottom: 1px solid var(--mac-hairline);
}

.settings-note {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--mac-hairline);
}

.settings-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-label {
  font-weight: 500;
}

.settings-hint {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--color-mute);
}

.mac-switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--mac-track);
  cursor: pointer;
  transition: background-color 0.2s;
}

.mac-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  transition: translate 0.22s cubic-bezier(0.3, 1.4, 0.6, 1);
}

.mac-switch[aria-checked="true"] {
  background: var(--mac-accent);
}

.mac-switch[aria-checked="true"] i {
  translate: 16px 0;
}

.mac-switch.is-large {
  width: 52px;
  height: 30px;
}

.mac-switch.is-large i {
  width: 26px;
  height: 26px;
}

.mac-switch.is-large[aria-checked="true"] i {
  translate: 22px 0;
}

.mac-switch:focus-visible,
.mac-button:focus-visible,
.mac-seg button:focus-visible,
.mac-range:focus-visible,
.mac-select:focus-visible,
.settings-details summary:focus-visible,
.settings-nav button:focus-visible {
  outline: 2px solid var(--mac-accent);
  outline-offset: 2px;
}

.mac-range-wrap {
  display: flex;
  flex: 0 1 260px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-mute);
}

.mac-range {
  --p: 0.5;
  flex: 1;
  min-width: 70px;
  height: 4px;
  border-radius: 2px;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--mac-accent) calc(var(--p) * 100%),
    var(--mac-track) calc(var(--p) * 100%)
  );
  cursor: pointer;
}

.mac-range:disabled {
  opacity: 0.4;
  cursor: default;
}

.mac-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  appearance: none;
  background: #fff;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.35),
    0 0 0 0.5px rgb(0 0 0 / 0.1);
}

.mac-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
}

.mac-seg {
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--mac-hairline);
}

.mac-seg button {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.mac-seg button[aria-checked="true"] {
  background: var(--mac-segment);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18);
}

.mac-button {
  flex: none;
  padding: 4px 14px;
  border-radius: 6px;
  background: var(--mac-segment);
  box-shadow:
    0 0 0 0.5px var(--mac-hairline),
    0 1px 2px rgb(0 0 0 / 0.14);
  cursor: pointer;
}

.mac-button:disabled {
  opacity: 0.5;
}

/* The preview desk the settings act on. */
.preview {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  corner-shape: squircle;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.22);
}

.preview-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  height: 24px;
  padding: 0 12px;
  align-items: center;
  font-size: 11px;
  color: #fff;
  background: rgb(0 0 0 / 0.26);
  backdrop-filter: blur(14px) saturate(160%);
  transition: translate 0.3s ease;
}

.preview-bar-status,
.flip-menubar-status {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 10px);
  white-space: nowrap;
}

.preview-bar.is-hidden {
  translate: 0 -100%;
}

/* This desk is a miniature: keep status readings clear when there is no room
   for the optional centre island, just as in the hero's mobile preview. */
@container (min-width: 441px) and (max-width: 640px) {
  .preview-bar.has-accessories [data-date] {
    display: none;
  }
  .preview-bar.has-accessories .preview-island {
    left: 42%;
  }
}
@container (max-width: 440px) {
  .preview-island {
    display: none;
  }
  .preview-bar [data-date] {
    display: none;
  }
}

.preview-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  /* Without it the box is capped at half the desk and the icons spill out. */
  width: max-content;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px;
  translate: -50% 0;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
  transition: translate var(--dock-slide-duration, 0.32s) ease;
}

.preview-dock.is-hidden {
  translate: -50% calc(100% + 14px);
}

.preview-dock [data-preview-icon] {
  display: block;
  flex: none;
  /* The JS sets each size; this only smooths it. */
  transition:
    width 0.12s ease-out,
    height 0.12s ease-out;
}

.preview-dock [data-preview-icon][hidden] {
  display: none;
}
.preview-dock .preview-start {
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: linear-gradient(160deg, #3c9bff, #0062d1);
}
.preview-start svg {
  width: 55%;
  fill: #fff;
}

/* ------------------------------------------------------------- Reversible */

.flip {
  max-width: 980px;
  margin: 56px auto 0;
}

.flip-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
}

.flip-desk {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 260px;
  overflow: hidden;
  corner-shape: squircle;
  border-radius: 26px;
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.25);
}

.flip-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-menubar,
.flip-dock,
.flip-taskbar {
  position: absolute;
  transition:
    translate 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.flip-menubar {
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  padding: 0 16px;
  font-size: 12px;
  color: #fff;
  background: rgb(0 0 0 / 0.28);
  backdrop-filter: blur(14px) saturate(160%);
}

.flip-menubar-status {
  gap: clamp(7px, 1vw, 12px);
}

.flip-dock {
  bottom: 14px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: clamp(4px, 1vw, 8px);
  padding: clamp(5px, 1vw, 8px) clamp(6px, 1.2vw, 10px);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.28);
}

.flip-dock img {
  width: clamp(22px, 5.4vw, 50px);
  height: auto;
}

.flip-taskbar {
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  background: rgb(32 32 36 / 0.82);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.flip-taskbar-apps {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flip-taskbar-apps img {
  width: 26px;
  height: 26px;
}

.flip-start {
  width: 22px;
  fill: #4cc2ff;
}

.flip-taskbar-clock {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: #fff;
}

/* Off: the Windows taskbar. On: menu bar and dock. */
.flip-desk[data-state="off"] .flip-menubar {
  translate: 0 -100%;
  opacity: 0;
}

.flip-desk[data-state="off"] .flip-dock {
  translate: -50% calc(100% + 30px);
  opacity: 0;
}

.flip-desk[data-state="on"] .flip-dock {
  translate: -50% 0;
}

.flip-desk[data-state="on"] .flip-taskbar {
  translate: 0 100%;
  opacity: 0;
}

.facts {
  display: grid;
  gap: 28px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.facts li {
  display: grid;
  gap: 6px;
}

.facts-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
}

.facts b {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.facts p {
  margin: 0;
  line-height: 1.5;
  color: var(--color-mute);
}

/* --------------------------------------------------------------- Download */

.get {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.get-icon {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 22px 34px rgb(118 76 214 / 0.35));
}

.get-name {
  margin-top: 26px;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
}

.get-tagline {
  margin-top: 12px;
  font-size: 1.25rem;
  color: var(--color-mute);
}

.get-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.get-meta li {
  padding: 6px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--color-mute);
}

.get-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.get-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-fg);
  text-underline-offset: 4px;
}

.get-link:hover {
  text-decoration: underline;
}

.get-steps {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .get-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.get-steps li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  counter-increment: step;
}

.get-steps li::before {
  content: counter(step);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-mute);
}

.get-steps b {
  font-size: 1rem;
}

.get-steps span {
  line-height: 1.45;
  color: var(--color-mute);
}

.get-signing {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-mute);
}

.get-signing a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.get-signing a:hover {
  color: var(--color-signal);
}

.get-source {
  max-width: 900px;
  margin: 40px auto 0;
  border-top: 1px solid var(--color-line);
  padding-top: 16px;
}

.get-source summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.get-source summary::-webkit-details-marker {
  display: none;
}

/* The macOS disclosure triangle. */
.get-source summary::before {
  content: "";
  border-left: 6px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: rotate 0.2s ease;
}

.get-source[open] summary::before {
  rotate: 90deg;
}

.get-source p {
  margin: 12px 0;
  color: var(--color-mute);
}

.get-source pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #16181a;
  color: #e9e7e1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .settings {
    grid-template-columns: 1fr;
  }

  .settings-side {
    display: flex;
    align-items: center;
    gap: 16px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--mac-hairline);
  }

  .settings-nav {
    display: flex;
    margin-top: 0;
  }

  /* Four sections fit on a phone only as icons; each keeps its accessible name. */
  .settings-nav-label {
    display: none;
  }

  .settings-row:has(.mac-range-wrap) {
    flex-wrap: wrap;
  }

  .mac-range-wrap {
    flex-basis: 100%;
  }

  .flip-desk {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-switch,
  .mac-switch i,
  .preview-bar,
  .preview-dock,
  .preview-dock [data-preview-icon],
  .flip-menubar,
  .flip-dock,
  .flip-taskbar {
    transition: none;
  }
}

/* The crab sits on the app icon of the download card. */
.get-perch {
  position: relative;
  display: inline-block;
}

.get-crab {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 11px);
  z-index: 1;
  translate: -50% 0;
}

/* Keep sliders and window controls physical when the Settings demo is in Arabic. */
.settings .mac-range-wrap, .settings .mac-lights { direction: ltr; }
.settings[dir="rtl"] .settings-hint { line-height: 1.6; }