:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color-scheme: light;
  --window-border: #d9d9de;
  --secondary: #6b6b75;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #061a38;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center;
  background: url("assets/wallpaper.png") center / cover no-repeat;
  overflow: hidden;
  user-select: none;
}
.identity {
  position: absolute;
  left: 694px;
  top: 444px;
  width: 560px;
  color: white;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.identity h1 {
  margin: 0;
  font:
    400 48px/1.356 Manrope,
    Inter,
    sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.identity p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1.04px;
}
.desktop-icon {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: 160px;
  height: 116px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f7f7;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  font:
    400 16px/24px Inter,
    sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.desktop-icon:focus-visible,
.desktop-icon.selected {
  outline: 2px solid rgba(255, 255, 255, 0.96);
  outline-offset: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}
.icon-art {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 10px;
  flex: none;
}
.icon-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.desktop-icon[data-app="pageflow"] .icon-art > img {
  position: absolute;
  left: -36.6%;
  top: -27.75%;
  width: 172.61%;
  height: 155.61%;
  max-width: none;
  object-fit: fill;
}
.motion-icon {
  border-radius: 14px;
  background: linear-gradient(135deg, #0a0d14 14.6%, #335785 85.4%);
}
.motion-icon img {
  position: absolute;
  object-fit: contain;
}
.motion-icon img:nth-child(1) {
  width: 50px;
  height: 50px;
  left: 15px;
  top: 15px;
}
.motion-icon img:nth-child(2) {
  width: 36px;
  height: 36px;
  left: 22px;
  top: 22px;
}
.motion-icon img:nth-child(3) {
  width: 22px;
  height: 22px;
  left: 29px;
  top: 29px;
}
#window-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.app-window {
  position: absolute;
  left: 204px;
  top: 52px;
  width: 1344px;
  height: 780px;
  min-width: 480px;
  min-height: 320px;
  border: 1px solid rgba(210, 211, 216, 0.96);
  border-radius: 20px;
  background: white;
  box-shadow: 4px 10px 20px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
}
.app-window.active {
  box-shadow: 4px 14px 38px rgba(0, 0, 0, 0.34);
}
.app-window.maximized {
  border-radius: 14px;
}
.titlebar {
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--window-border);
  background: rgba(255, 255, 255, 0.98);
  cursor: move;
  touch-action: none;
}
.traffic {
  position: absolute;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.traffic.close {
  left: 16px;
  background: #ff5f57;
}
.traffic.minimize {
  left: 39px;
  background: #febc2e;
}
.traffic.maximize {
  left: 62px;
  background: #28c840;
}
.window-title {
  margin-left: 92px;
  color: #86868b;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-scroll {
  height: calc(100% - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  background: white;
  color: #0a0a0d;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 125, 133, 0.9) rgba(222, 224, 229, 0.7);
}
.window-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.window-scroll::-webkit-scrollbar-track {
  background: rgba(222, 224, 229, 0.7);
}
.window-scroll::-webkit-scrollbar-thumb {
  background: rgba(122, 125, 133, 0.9);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.resize-handle {
  position: absolute;
  z-index: 8;
  touch-action: none;
}
.resize-handle.n,
.resize-handle.s {
  left: 12px;
  right: 12px;
  height: 9px;
  cursor: ns-resize;
}
.resize-handle.n {
  top: 0;
}
.resize-handle.s {
  bottom: 0;
}
.resize-handle.e,
.resize-handle.w {
  top: 12px;
  bottom: 12px;
  width: 9px;
  cursor: ew-resize;
}
.resize-handle.e {
  right: 0;
}
.resize-handle.w {
  left: 0;
}
.resize-handle.ne,
.resize-handle.nw,
.resize-handle.se,
.resize-handle.sw {
  width: 18px;
  height: 18px;
}
.resize-handle.ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}
.resize-handle.nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.resize-handle.se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}
.resize-handle.sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}
.dock {
  position: absolute;
  left: 756px;
  top: 944px;
  height: 72px;
  min-width: 407px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 22px;
  background: rgba(41, 41, 41, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  z-index: 1000;
}
.dock button,
.dock a,
.minimized button {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.dock img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.dock-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.34);
}
.minimized {
  display: contents;
}
.minimized button {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font:
    700 12px Inter,
    sans-serif;
  box-shadow: inset 0 -3px #f0b429;
}
.case {
  width: 100%;
  min-height: 100%;
  padding: 68px 64px 96px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.case-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.logo-title {
  display: flex;
  gap: 16px;
  align-items: center;
}
.logo-title img,
.logo-title .motion-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex: none;
}
.case h1 {
  margin: 0;
  font-size: 48px;
  line-height: 58px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.case .lede {
  margin: 0;
  max-width: 1000px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 28px;
}
.metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}
.metadata div {
  min-width: 0;
}
.metadata dt,
.section-label {
  margin: 0 0 7px;
  color: var(--secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.metadata dd {
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}
.case-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1216px;
}
.case-block h2 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.case-block p:not(.section-label) {
  margin: 0;
  max-width: 980px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 25px;
}
.media-hero,
.media-grid figure,
.ui-gallery {
  margin: 0;
}
.media-hero img {
  width: 100%;
  max-height: 650px;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: #0e0f11;
}
figcaption {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 19px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.media-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.media-grid figure {
  min-width: 0;
}
.media-grid img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  background: #0e0f11;
}
.ui-gallery {
  padding: 24px;
  border-radius: 18px;
  background: #f5f5f7;
  border: 1px solid #e2e2e7;
}
.carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.carousel-heading .section-label,
.carousel-count {
  margin: 0;
}
.carousel-count {
  color: var(--secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #e9e9e7;
  outline: none;
}
.carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.55);
}
.carousel-track {
  display: flex;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 24px 72px 18px;
  display: grid;
  place-items: center;
}
.carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(22, 27, 25, 0.16);
}
.carousel-slide figcaption {
  width: 100%;
  text-align: center;
}
.carousel-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2422;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font: 300 34px/38px Inter, sans-serif;
  z-index: 2;
}
.carousel-control.previous {
  left: 16px;
}
.carousel-control.next {
  right: 16px;
}
.carousel-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.carousel-thumb {
  position: relative;
  width: 68px;
  height: 82px;
  flex: 0 0 68px;
  padding: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  opacity: 0.62;
}
.carousel-thumb.current {
  border-color: #506360;
  opacity: 1;
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
}
.carousel-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 9px;
  line-height: 12px;
}
.system-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: #f6f7f8;
}
.system-flow div {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #d9dbe3;
  background: white;
  min-height: 120px;
}
.system-flow small {
  color: var(--secondary);
  font-size: 11px;
}
.system-flow strong {
  display: block;
  margin: 8px 0;
  font-size: 16px;
}
.system-flow span {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}
.finding {
  padding: 36px;
  border-radius: 20px;
  background: #f4f4f6;
}
.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.motion-grid figure {
  margin: 0;
  border: 1px solid #e2e2e7;
  border-radius: 16px;
  overflow: hidden;
}
.motion-grid img,
.motion-grid video,
.motion-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  border: 0;
  background: #08090b;
}
.motion-grid img[src$="fourier-portrait.svg"] {
  aspect-ratio: 1 / 1;
}
.motion-grid figcaption {
  margin: 0;
  padding: 12px 14px;
}
.about-card {
  padding: 44px;
  min-height: 100%;
}
.about-card h1 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 38px;
}
.about-layout {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: start;
}
.about-avatar {
  width: 128px;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
}
.about-fields {
  display: grid;
  gap: 0;
}
.about-fields p {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #d9d9de;
  color: var(--secondary);
}
.about-fields strong {
  display: inline-block;
  min-width: 88px;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}
.about-bio {
  grid-column: 1/-1;
  padding: 18px;
  border-radius: 10px;
  background: #ececef;
  font-size: 16px;
  line-height: 1.5;
}
.notes-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100%;
}
.notes-sidebar {
  padding: 20px 14px;
  border-right: 1px solid #d9d9de;
  background: #fafafa;
}
.note-tab {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #111;
}
.note-tab.active {
  background: #ffe189;
}
.note-tab strong,
.note-tab span {
  display: block;
}
.note-tab span {
  margin-top: 6px;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-page {
  padding: 22px 28px 60px;
}
.note-page time {
  display: block;
  color: #86868b;
  text-align: center;
  margin-bottom: 12px;
}
.note-page h1 {
  margin: 0 0 12px;
  font-size: 30px;
}
.note-page h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}
.note-page p,
.note-page li {
  font-size: 16px;
  line-height: 1.45;
}
.note-page .role {
  padding: 16px 0;
  border-top: 1px solid #dedee2;
}
@media (max-width: 1199px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  .stage {
    inset: 0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    transform: none !important;
    background-position: center;
  }
  .identity {
    left: 50%;
    top: 42%;
    width: min(70vw, 560px);
    transform: translate(-50%, -50%);
  }
  .identity h1 {
    font-size: clamp(30px, 5.1vw, 48px);
    line-height: 1.28;
  }
  #desktop-icons {
    position: absolute;
    left: 50%;
    top: 15%;
    width: min(72vw, 690px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    column-gap: 12px;
    row-gap: 14px;
    z-index: 2;
  }
  .desktop-icon {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: 108px;
    font-size: 13px;
    line-height: 18px;
  }
  .icon-art {
    width: 68px;
    height: 68px;
  }
  .motion-icon img:nth-child(1) {
    width: 42px;
    height: 42px;
    left: 13px;
    top: 13px;
  }
  .motion-icon img:nth-child(2) {
    width: 31px;
    height: 31px;
    left: 18.5px;
    top: 18.5px;
  }
  .motion-icon img:nth-child(3) {
    width: 20px;
    height: 20px;
    left: 24px;
    top: 24px;
  }
  .dock {
    left: 50%;
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    height: 62px;
    min-width: 0;
    max-width: calc(100vw - 32px);
    padding: 9px 12px;
    gap: 10px;
    transform: translateX(-50%);
    border-radius: 19px;
  }
  .dock button,
  .dock a,
  .minimized button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .app-window {
    min-width: 320px;
    min-height: 260px;
    border-radius: 18px;
  }
  .case {
    padding: 52px 40px 80px;
    gap: 56px;
  }
  .case h1 {
    font-size: 42px;
    line-height: 1.08;
  }
  .metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-grid,
  .system-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carousel-slide {
    padding-inline: 56px;
  }
}

@media (max-width: 639px) {
  .stage {
    background-position: 54% center;
  }
  .identity {
    top: 56%;
    width: 86vw;
  }
  .identity h1 {
    font-size: clamp(23px, 7.2vw, 32px);
    line-height: 1.2;
  }
  .identity p {
    margin-top: 7px;
    font-size: 9px;
    line-height: 13px;
  }
  #desktop-icons {
    top: max(4.5%, env(safe-area-inset-top));
    width: min(88vw, 430px);
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    column-gap: 20px;
    row-gap: 3px;
  }
  .desktop-icon {
    height: 91px;
    gap: 4px;
    font-size: 11px;
    line-height: 15px;
  }
  .desktop-icon[data-app="animations"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }
  .icon-art {
    width: 58px;
    height: 58px;
    border-radius: 9px;
  }
  .motion-icon img:nth-child(1) {
    width: 36px;
    height: 36px;
    left: 11px;
    top: 11px;
  }
  .motion-icon img:nth-child(2) {
    width: 26px;
    height: 26px;
    left: 16px;
    top: 16px;
  }
  .motion-icon img:nth-child(3) {
    width: 17px;
    height: 17px;
    left: 20.5px;
    top: 20.5px;
  }
  .dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 54px;
    max-width: calc(100vw - 16px);
    padding: 7px 9px;
    gap: 6px;
    border-radius: 16px;
  }
  .dock button,
  .dock a,
  .minimized button {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .dock-divider {
    height: 32px;
  }
  .app-window {
    min-width: 280px;
    min-height: 240px;
    border-radius: 16px;
  }
  .titlebar {
    height: 38px;
  }
  .window-scroll {
    height: calc(100% - 38px);
  }
  .case {
    padding: 34px 18px 64px;
    gap: 42px;
  }
  .logo-title {
    gap: 12px;
  }
  .logo-title img,
  .logo-title .motion-icon {
    width: 44px;
    height: 44px;
  }
  .case h1 {
    font-size: 34px;
    line-height: 1.08;
  }
  .case .lede {
    font-size: 16px;
    line-height: 24px;
  }
  .metadata,
  .media-grid,
  .media-grid.two,
  .system-flow,
  .motion-grid {
    grid-template-columns: 1fr;
  }
  .ui-gallery {
    padding: 14px;
  }
  .carousel-heading {
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .carousel-slide {
    padding: 16px 42px 12px;
  }
  .carousel-slide img {
    max-height: min(580px, 68vh);
  }
  .carousel-control {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 28px;
    line-height: 31px;
  }
  .carousel-control.previous {
    left: 6px;
  }
  .carousel-control.next {
    right: 6px;
  }
  .notes-app {
    grid-template-columns: 1fr;
  }
  .notes-sidebar {
    display: flex;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #d9d9de;
  }
  .note-tab {
    min-width: 0;
  }
  .about-card {
    padding: 28px 22px 48px;
  }
  .about-layout {
    grid-template-columns: 88px 1fr;
    gap: 16px;
  }
  .about-avatar {
    width: 88px;
    height: 116px;
  }
}
