/* Backdrop's project board and switch pop-up on the hero's desktop, in desktop points (styles.css .desk-ui): the
   app's 640 × 360 board with its columns, layout previews, window rows and toolbar, as the app draws it.
   sections/projects.js writes the tiles' and rows' places and the state classes; the Notchboard (notchboard.css)
   reuses the columns. The screen is macOS, so its type stays the system UI font. */
.sw-reset {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}
.sw-reset:focus {
  outline: none;
}
.sw-reset:focus-visible {
  outline: 2px solid rgba(245, 245, 247, 0.85);
  outline-offset: 2px;
  border-radius: 6px;
}

/* While the board is open the menu bar's Backdrop icon (its centre at 1215 points) is marked, as a Mac marks a menu
   bar item whose menu is open. */
.sw-menu-icon {
  position: absolute;
  left: 1200px;
  top: 5px;
  width: 30px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-in);
}
.sw-menu-icon.open {
  opacity: 1;
  transition: opacity var(--t-press) var(--ease-out);
}
/* The board drops from the icon: a frosted plate under the content, settling in 240 ms with no overshoot, as a
   menu bar panel does. The plate's tint keeps the board's text readable over a white window behind it. */
.sw-plate {
  position: absolute;
  z-index: 7;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0);
  transform-origin: 94% 0;
  transform: translateY(-6px) scale(0.96);
  background: rgba(24, 24, 27, 0);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  visibility: hidden;
  transition: transform var(--t-fast) var(--ease-in), background-color var(--t-fast) var(--ease-in), border-color var(--t-fast) var(--ease-in),
    box-shadow var(--t-fast) var(--ease-in), visibility 0s linear var(--t-fast);
}
.sw-plate.open {
  transform: none;
  background: rgba(24, 24, 27, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  visibility: visible;
  transition: transform 240ms var(--ease-out), background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out), visibility 0s;
}
.sw-board {
  position: absolute;
  z-index: 7;
  transform-origin: 94% 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  filter: blur(3px);
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease-in), transform var(--t-fast) var(--ease-in), filter var(--t-fast) var(--ease-in),
    visibility 0s linear var(--t-fast);
}
.sw-board.open {
  opacity: 1;
  transform: none;
  filter: blur(0);
  visibility: visible;
  transition: opacity var(--t-fast) var(--ease-out), transform 240ms var(--ease-out), filter var(--t-fast) var(--ease-out), visibility 0s;
}
.sw-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 360px;
  color: rgba(255, 255, 255, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Project columns. */
.sw-col {
  position: absolute;
  top: 12px;
  width: 200px;
  height: 291px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.sw-col.on {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.22);
}
.sw-col.target {
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.sw-colbox {
  position: absolute;
  top: 12px;
  width: 200px;
  height: 291px;
}
.sw-x1 {
  left: 12px;
}
.sw-x2 {
  left: 220px;
}
.sw-x3 {
  left: 428px;
}
.sw-head {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 184px;
  height: 24px;
  transition: transform var(--t-fast) var(--ease-ui);
}
.sw-hbg {
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0);
  transition: background-color var(--t-fast) var(--ease-ui);
}
/* is-hover and is-press let the guided run show the same states. A hover only shows for a pointer that hovers, so
   a tap doesn't leave a header lifted. */
.sw-head.is-hover {
  transform: scale(1.015);
}
.sw-head.is-hover .sw-hbg {
  background: rgba(255, 255, 255, 0.035);
}
@media (hover: hover) {
  .sw-head:hover {
    transform: scale(1.015);
  }
  .sw-head:hover .sw-hbg {
    background: rgba(255, 255, 255, 0.035);
  }
}
.sw-head:active,
.sw-head.is-press {
  transform: scale(0.97);
}
.sw-head:active .sw-hbg,
.sw-head.is-press .sw-hbg {
  background: rgba(255, 255, 255, 0.06);
}
/* On a touch screen a header's target reaches at least 44 pixels tall however small the board is drawn. */
@media (pointer: coarse) {
  .desk-ui .sw-head::after {
    content: "";
    position: absolute;
    inset: calc(12px - max(12px, 22px / var(--ptn, 1))) -4px;
  }
}
.sw-hrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
}
.sw-check {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0;
}
.sw-check.on {
  opacity: 1;
}
.sw-check img {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}
.sw-picon {
  flex-shrink: 0;
}
.sw-picon-school {
  width: 21px;
  height: 18px;
}
.sw-picon-development {
  width: 19px;
  height: 17px;
}
.sw-picon-personal {
  width: 19px;
  height: 16px;
}
.sw-hname {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sw-hspace {
  flex: 1;
}
.sw-hkey {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

/* Layout preview: each window's tile is its frame at 184 / 1512 scale. */
.sw-preview {
  position: absolute;
  left: 8px;
  top: 40px;
  width: 184px;
  height: 115px;
  overflow: hidden;
}
.sw-preview-bg {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.sw-tile {
  position: absolute;
  box-sizing: border-box;
  padding: 6px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 3px;
  background: #1e1e1e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: box-shadow var(--t-fast) var(--ease-ui), opacity var(--t-press) var(--ease-ui), left var(--t-reveal) var(--ease-out),
    top var(--t-reveal) var(--ease-out), width var(--t-reveal) var(--ease-out), height var(--t-reveal) var(--ease-out);
}
.sw-tile.absent,
.sw-row.absent {
  display: none;
}
.sw-tile:active {
  opacity: 0.85;
}
.sw-tile.front {
  z-index: 1;
}
.sw-tov {
  position: absolute;
  inset: 0;
}
.sw-tbody {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.sw-tlabel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sw-tname {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-tsub {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Small tiles drop the subtitle first, then the name. */
.sw-tile.noname .sw-tlabel,
.sw-tile.nosub .sw-tsub {
  display: none;
}

/* Window rows. */
.sw-rows {
  position: absolute;
  left: 8px;
  top: 163px;
  width: 184px;
  height: 132px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sw-rows::-webkit-scrollbar {
  display: none;
}
.sw-rowlist {
  position: relative;
}
.sw-row {
  position: absolute;
  left: 0;
  width: 184px;
  height: 32px;
  box-sizing: border-box;
  padding: 0 52px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.sw-rline,
.sw-rhov {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.sw-rline {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.sw-rhov {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity var(--t-fast) var(--ease-ui);
}
.sw-row.focused .sw-rline {
  opacity: 1;
}
@media (hover: hover) {
  .sw-row:hover:not(.focused) .sw-rhov {
    opacity: 1;
  }
}
.sw-rtitle {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-rdot {
  position: absolute;
  right: 39px;
  top: 13px;
  width: 6px;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.sw-rdot span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.sw-row.focused .sw-rdot {
  opacity: 1;
}
.sw-rmin {
  position: absolute;
  right: 39px;
  top: 10px;
  width: 12px;
  height: 12px;
  opacity: 0;
}
.sw-rmin img {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}
.sw-row.min .sw-rmin {
  opacity: 1;
}

/* App icons, 16 points in the board. */
.sw-app {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3.6px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 0.5px 1.5px rgba(0, 0, 0, 0.35);
}

/* Toolbar. */
.sw-rule {
  position: absolute;
  left: 12px;
  top: 311px;
  width: 616px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.sw-toolbar {
  position: absolute;
  left: 12px;
  top: 320px;
  width: 616px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  white-space: nowrap;
}
.sw-tb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  flex-shrink: 0;
}
.sw-tb::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0);
  transition: background-color var(--t-press) var(--ease-ui);
}
.sw-tb:active::before {
  background: rgba(255, 255, 255, 0.09);
}
.sw-glyphbox {
  position: relative;
  width: 16px;
  height: 16px;
}
.sw-stack {
  display: inline-grid;
}
.sw-stack > * {
  grid-area: 1 / 1;
}
.sw-lay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.sw-lay.on {
  opacity: 1;
}
.sw-lay-master {
  -webkit-mask-image: url("/assets/redesign/layout-master.svg");
  mask-image: url("/assets/redesign/layout-master.svg");
}
.sw-lay-focus {
  -webkit-mask-image: url("/assets/redesign/layout-focus.svg");
  mask-image: url("/assets/redesign/layout-focus.svg");
}
.sw-lay-free {
  -webkit-mask-image: url("/assets/redesign/layout-freeform.svg");
  mask-image: url("/assets/redesign/layout-freeform.svg");
}
.sw-glint {
  position: absolute;
  inset: -4px;
  opacity: 0;
  mix-blend-mode: plus-lighter;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 38%, #ffffff 45%, rgba(255, 255, 255, 0.45) 52%, rgba(255, 255, 255, 0) 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
}
@keyframes sw-glint {
  from {
    background-position: 100% 0;
    opacity: 0.85;
  }
  to {
    background-position: 0 0;
    opacity: 0.85;
  }
}
.sw-ltitle {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-in-out);
}
.sw-ltitle.on {
  opacity: 1;
}
.sw-ltitle img {
  width: 10px;
  height: 7px;
  opacity: 0.55;
}
.sw-arrange,
.sw-pause {
  gap: 8.5px;
}
.sw-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform var(--t-move) var(--ease-out), opacity var(--t-fast) var(--ease-ui);
}
.sw-arrow img {
  position: absolute;
  left: 2.94px;
  top: 1.13px;
  width: 10.4px;
  height: 12px;
}
.sw-spacer {
  flex: 1;
  min-width: 8px;
}
/* The pause glyph: two bars. */
.sw-bar1,
.sw-bar2 {
  position: absolute;
  inset: 0;
  background: #ffffff;
}
.sw-bar1 {
  clip-path: polygon(25% 15.625%, 37.5% 15.625%, 37.5% 84.375%, 25% 84.375%);
}
.sw-bar2 {
  clip-path: polygon(62.5% 15.625%, 75% 15.625%, 75% 84.375%, 62.5% 84.375%);
}
.sw-divider {
  width: 1px;
  height: 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}
.sw-glyph {
  width: 26px;
  justify-content: center;
}
.sw-tbi {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transition: opacity var(--t-reveal) var(--ease-ui), transform var(--t-reveal) var(--ease-ui), filter var(--t-reveal) var(--ease-ui);
}
.sw-power .sw-tbi {
  width: 15px;
}
/* The toolbar answers a hovering pointer as the app's does. */
@media (hover: hover) {
  .sw-layout:hover .sw-glint {
    animation: sw-glint 1.6s var(--ease-in-out) both;
  }
  .sw-arrange:hover .sw-arrow {
    opacity: 1;
    transform: rotate(180deg);
  }
  .sw-glyph:hover .sw-tbi {
    opacity: 1;
  }
  .sw-gear:hover .sw-tbi {
    transform: rotate(90deg);
  }
  .sw-sun:hover .sw-tbi {
    transform: scale(1.12);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  }
}

/* The switch pop-up, in the app's Liquid Glass (ProjectSwitchOverlayController: regular glass, a faint tint): the
   desktop behind it frosted, saturated and brightened under a thin dark tint, with a specular rim and an inner light,
   as the launch video draws it, with a deeper tint than the film's so its name reads over a white window behind it
   (Personal's Wikipedia page). It comes in with the switch in 120 ms, growing from 96%, holds while the windows
   change (projects.js) and leaves in 200 ms. It appears by bringing its glass in, not by fading as a whole: Safari
   stops blurring behind an element that is itself see-through. Its tint's two colours are registered properties, so
   the tint fades with the blur: a gradient itself doesn't animate, and leaving at once it left the bare frost, a white
   slab over a white window, for the length of the blur's fade. */
@property --hud-top {
  syntax: "<color>";
  inherits: false;
  initial-value: rgb(34 34 40 / 0);
}
@property --hud-bottom {
  syntax: "<color>";
  inherits: false;
  initial-value: rgb(20 20 24 / 0);
}
.sw-hud {
  position: absolute;
  z-index: 8;
  width: 300px;
  height: 108px;
  box-sizing: border-box;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  --hud-top: rgb(34 34 40 / 0);
  --hud-bottom: rgb(20 20 24 / 0);
  background: linear-gradient(180deg, var(--hud-top), var(--hud-bottom));
  -webkit-backdrop-filter: blur(0) saturate(1) brightness(1);
  backdrop-filter: blur(0) saturate(1) brightness(1);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0), 0 4px 12px rgba(0, 0, 0, 0);
  transform: scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: --hud-top var(--t-fast) var(--ease-in), --hud-bottom var(--t-fast) var(--ease-in), -webkit-backdrop-filter var(--t-fast) var(--ease-in),
    backdrop-filter var(--t-fast) var(--ease-in), box-shadow var(--t-fast) var(--ease-in), transform var(--t-fast) var(--ease-in),
    visibility 0s linear var(--t-fast);
}
.sw-hud.show {
  --hud-top: rgb(34 34 40 / .44);
  --hud-bottom: rgb(20 20 24 / .56);
  -webkit-backdrop-filter: blur(15px) saturate(2.1) brightness(1.08);
  backdrop-filter: blur(15px) saturate(2.1) brightness(1.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: none;
  visibility: visible;
  transition: --hud-top var(--t-press) var(--ease-out), --hud-bottom var(--t-press) var(--ease-out), -webkit-backdrop-filter var(--t-press) var(--ease-out),
    backdrop-filter var(--t-press) var(--ease-out), box-shadow var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out),
    visibility 0s;
}
/* The rim: a light edge, brightest at the top left and bottom right. The inner light: a soft glow along the top. */
.sw-hud::before, .sw-hud::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.sw-hud::before {
  padding: 1.3px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 14%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.22) 78%, rgba(255, 255, 255, 0.7) 96%);
  -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);
}
.sw-hud::after {
  box-shadow: inset 0 2px 1.5px -0.5px rgba(255, 255, 255, 0.42), inset 0 -2px 2px -1px rgba(255, 255, 255, 0.2), inset 0 0 24px rgba(255, 255, 255, 0.07);
  background: radial-gradient(110% 80% at 22% -10%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%), radial-gradient(80% 60% at 90% 120%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%);
}
.sw-hud::before, .sw-hud::after, .sw-hud > * {
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-in);
}
.sw-hud.show::before, .sw-hud.show::after, .sw-hud.show > * {
  opacity: 1;
  transition: opacity var(--t-press) var(--ease-out);
}
.sw-hud > * {
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.sw-hud-icon {
  width: 48px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.sw-hud-icon img {
  flex-shrink: 0;
}
.sw-hud-school img {
  width: 54px;
  height: 47px;
}
.sw-hud-development img {
  width: 50px;
  height: 47px;
}
.sw-hud-personal img {
  width: 50px;
  height: 43px;
}
.sw-hud-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sw-hud-name {
  font-size: 21px;
  font-weight: 600;
  line-height: 25px;
}
.sw-hud-key {
  color: rgba(235, 235, 245, 0.6);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}

/* A cut (app.js's data-cut, while the scene is dark) opens and closes the board and the pop-up at once, so none is
   still fading when the scene comes back. */
.hero[data-cut="true"] :is(.sw-menu-icon, .sw-plate, .sw-board, .sw-hud),
.hero[data-cut="true"] .sw-hud::before,
.hero[data-cut="true"] .sw-hud::after,
.hero[data-cut="true"] .sw-hud > * {
  transition: none;
}

/* Reduced motion: the board and the pop-up fade in place, without dropping or growing. */
@media (prefers-reduced-motion: reduce) {
  .sw-plate,
  .sw-plate.open,
  .sw-board,
  .sw-board.open,
  .sw-hud,
  .sw-hud.show {
    transform: none;
  }
  .sw-board,
  .sw-board.open {
    filter: none;
  }
  .sw-head,
  .sw-arrow,
  .sw-tbi {
    transition-duration: 0.01s;
  }
  .sw-layout:hover .sw-glint {
    animation: none;
  }
}
