@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --desk-font: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ink: #171717;
  --quiet: #555;
  --line: #d6d6d8;
  --paper: #fff;
  --soft: #f3f3f4;
  --selected: #e0ecff;
  --accent: #221898;
  --aqua-blue: linear-gradient(#edf4ff 0%, #d6e7ff 18%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  --aqua-silver: linear-gradient(#fbfbfb 0%, #ededed 42%, #e4e4e4 100%);
  --metal: linear-gradient(90deg, #d6d5d7, #f0f0f0 50%, #d6d5d7);
  --desktop-dots: radial-gradient(circle, #b9b9bc 0.8px, transparent 1px) 0 0 / 32px 32px;
}

html { background: #f5f5f5; }
body { -webkit-font-smoothing: antialiased; }
:where(button, a, input, summary, [tabindex]):focus-visible { outline-color: #224493; }

.wallpaper { background: var(--desktop-dots), #f5f5f5; }
.wallpaper::before, .wallpaper::after { content: none; }

.login {
  color: #1b1b1b;
  background: radial-gradient(ellipse at 50% 55%, #f5f5f500 24%, #d6d6d64f 100%);
}
.login-clock {
  font-family: var(--desk-font);
  text-shadow: 0 2px #fff;
}
.login-clock p { font-weight: 500; }
.login-clock time { font-weight: 500; }
.login .lock-glyph, .login .languages {
  color: #232323;
  background: #f4f4f4;
  border-color: #c8c8c8;
}
.login .languages button[aria-pressed=true] {
  color: #1d3473;
  background: #dceaff;
}
.login-profile { color: #202020; text-shadow: 0 1px 1px #fff; }
.login .lv {
  color: #25406f;
  background: radial-gradient(at 35% 20%, #f4f9ff, #b6cbe9 54%, #7998c0);
  border: 1px solid #8e9ab3;
  box-shadow: 0 0 0 3px #f1f7ff86 inset, 0 7px 20px #1d32602c;
}

.aqua, .login .aqua {
  --pill-background: var(--aqua-blue);
  --pill-border: #221898;
  --pill-hover: #fff4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  gap: 8px;
  padding: 0 18px 1px;
  min-height: 40px;
  background: var(--pill-background);
  color: #0b0b0b;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  font-family: var(--desk-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.03em;
  text-decoration: none;
  text-shadow: 0 2px 2px #fffc;
  box-shadow: 0 10px 24px #0000001f, 0 1px 1px #fffc inset, 0 -2px 5px #ffffff60 inset;
}
.aqua-secondary {
  --pill-background: var(--aqua-silver);
  --pill-border: #626262;
}
.aqua::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  border-top: 1px solid #ffffffe0;
  border-bottom: 1px solid #ffffffa0;
  pointer-events: none;
}
.aqua:hover, .login-profile:hover .aqua {
  background: linear-gradient(var(--pill-hover), var(--pill-hover)), var(--pill-background);
  box-shadow: 0 8px 17px #00000023, 0 1px 1px #fff inset;
}
.aqua:active, .login-profile:active .aqua {
  background: var(--pill-background);
  transform: translateY(1px);
  box-shadow: 0 2px 6px #141c4760 inset;
}
.aqua svg { width: 17px; height: 17px; }

.menubar {
  min-height: 48px;
  min-width: 0;
  padding-inline: clamp(12px, 2.2vw, 28px);
  background: #f5f5f5ee;
  color: #151515;
  box-shadow: 0 1px #e4e4e5, 0 1px #fff inset;
}
.menubar button { font-weight: 500; }
.menu-shortcuts button, .menu-tools time { color: #565656; }
.menu-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #565656;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.menu-divider { background: #d6d6d6; }
.languages {
  background: linear-gradient(#ededee, #fafafa);
  border-color: #c5c5c8;
}
.languages button[aria-pressed=true] {
  color: #151515;
  box-shadow: 0 0 0 1px #b5bfd7 inset;
  background: #fff;
}

.welcome {
  top: 49%;
  z-index: 3;
  width: min(55%, 665px);
  color: #080808;
  text-shadow: none;
}
.welcome .welcome-message {
  --bubble-border: #5d72a3;
  --bubble-mid: #acc8fb;
  --bubble-base: #c9e7f5;
  position: relative;
  display: inline-block;
  min-width: 42px;
  min-height: 54px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--bubble-border);
  border-radius: 22px;
  background: linear-gradient(var(--bubble-top, #f7fbff) 0%, var(--bubble-mid) 40%, var(--bubble-base) 100%);
  box-shadow: 0 2px 1px #fff9 inset, 0 5px 10px #2e33472b;
  color: #000;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-align: left;
  text-shadow: 0 2px 2px #fffc;
}
html[data-desktop-theme="yellow"] .welcome-message {
  --bubble-border: #a07c28;
  --bubble-top: #fffaf0;
  --bubble-mid: #ffe698;
  --bubble-base: #fff0b2;
}
.welcome-message::before {
  content: "";
  position: absolute;
  inset: 3px 15px auto;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(#fffd, #ffffff10);
  pointer-events: none;
}
.welcome-message [data-welcome-text] { position: relative; }
.welcome-message::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 3px;
  width: 15px;
  height: 10px;
  border-bottom: 1px solid var(--bubble-border);
  border-right: 1px solid var(--bubble-border);
  border-radius: 0 0 4px 10px;
  background: var(--bubble-base);
  transform: skewX(27deg) rotate(10deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .welcome-message[data-typing] [data-welcome-text]::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .92em;
    margin-left: 3px;
    border-radius: 1px;
    vertical-align: -.16em;
    background: #0009;
    animation: welcome-caret 800ms step-end infinite;
  }
  @keyframes welcome-caret { 50% { opacity: 0; } }
}
@media (max-width: 1023px) {
  .welcome .welcome-message {
    min-height: 48px;
    padding: 10px 17px;
    font-size: 20px;
    letter-spacing: -.4px;
  }
}
.welcome p {
  margin-top: 12px;
  color: #333;
  font-size: clamp(15px, 1.55vw, 20px);
  letter-spacing: -.028em;
}
.welcome-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.welcome-actions .aqua { font-size: clamp(14px, 1.4vw, 18px); }
.launch-app {
  width: min(15%, 163px);
  color: #1e1e1e;
  text-shadow: none;
}
.launch-app strong { font-size: 13px; font-weight: 500; }
.launch-app small { color: #606060; }
.launch-app:hover, .launch-app:focus-visible {
  border-color: #b6bee2;
  background: #e1eaff9c;
  outline-color: #224493;
}
.launch-file {
  gap: 3px;
  padding: 4px 5px 8px;
}
.mini-window {
  display: grid;
  width: 100%;
  max-width: 146px;
  padding: 3px;
  gap: 2px;
  border: 1px solid #a7a7aa;
  border-radius: 7px;
  background: var(--metal);
  box-shadow: 0 8px 19px #00000024, 0 1px #fff9 inset;
  min-width: 0;
}
.mini-title {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 2px 0;
}
.mini-title i {
  width: 5px;
  height: 5px;
  border: 1px solid #0002;
  border-radius: 50%;
  background: radial-gradient(at 35% 20%, #ffc1b8, #c75145);
}
.mini-title i:nth-child(2) { background: radial-gradient(at 35% 20%, #ffeab1, #d2a038); }
.mini-title i:nth-child(3) { background: radial-gradient(at 35% 20%, #dbf9c4, #62a84c); }
.mini-window img, .mini-window video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  border-radius: 4px;
  background: #f0f0f0;
}
.mini-window video { aspect-ratio: 498 / 410; }
.launch-file:active .mini-window { transform: scale(.98); }
.desk-note { box-shadow: 0 8px 18px #00000026; }

.dock {
  border-color: #c9c9ca;
  background: linear-gradient(#fcfcfce5, #e6e6e6eb 49%, #cacacae0 52%, #f3f3f3ed);
  box-shadow: 0 1px #fff inset, 0 7px 26px #00000024;
}
.dock button[data-running=true]::after { background: #426cc9; }

.window-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.reader-toggle { display: none; }
.app-window[data-reader=true] .reader-toggle { display: grid; }
.reader-toggle, .reader-tools button {
  align-items: center;
  place-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: #38383c;
  white-space: nowrap;
}
.reader-toggle:hover, .reader-tools button:hover {
  border-color: #b8b8bd;
  background: var(--aqua-silver);
  box-shadow: 0 1px #fff inset;
}
.reader-toggle svg, .reader-tools svg { width: 15px; height: 15px; }

@media screen {
  .app-window {
    border: 1px solid #8c8c91;
    border-radius: 12px;
    background: var(--metal);
    box-shadow: 0 14px 36px #0003, 0 0 0 1px #fff7 inset;
  }
  .app-window[data-focused=true] {
    box-shadow: 0 23px 64px #24232649, 0 0 0 1px #fffb inset;
  }
  .window-bar, .app-window[data-reader=true] .window-bar {
    min-height: 35px;
    padding-inline: 10px;
    background: linear-gradient(180deg, #fcfcfcbb, #f4f4f430 45%, #9f9da10f);
    border-color: #bebec1;
    box-shadow: 0 1px #fff inset;
    color: #262626;
  }
  .app-window[data-reader=false] .window-bar { border-bottom: 0; }
  .window-name { font-weight: 550; letter-spacing: -.01em; }
  .window-kind { color: #76767a; }
  .window-body { background: #fbfbfc; }
  .app-window[data-reader=false] .window-body {
    margin: 0 4px 4px;
    border: 1px solid #b9b9bd;
    border-radius: 7px;
    box-shadow: 0 1px 0 #fff9;
  }
  .app-window[data-reader=true] .window-bar {
    min-height: 44px;
    grid-template-columns: auto minmax(48px, 1fr) auto;
    gap: 8px;
    background: linear-gradient(#fafafa, #f4f4f5);
  }
  .app-window[data-reader=true] .reader-tools { gap: 2px; }
  .app-window[data-window=cv] .window-body { background: #fff; }
  .app-window[data-window=office] .window-body { padding: 0; }
}
.office-player {
  display: block;
  width: 100%;
  max-height: 64svh;
  aspect-ratio: 498 / 410;
  background: #1c1c1e;
}

.window-body:not(.reader-body) .window-intro h2 {
  font-weight: 550;
  letter-spacing: -.045em;
}
.reader-body { background: #fff; scrollbar-color: #b3b3b7 #f6f6f6; }
.reader-sidebar { background: #f1f1f1; border-color: #dadadb; }
.reader-index a:hover, .reader-index a[aria-current] { color: #17181c; background: #e1e1e5; }
.reader-index a[aria-current] span { color: #364ea3; }
.editorial-index h2 {
  font-weight: 600;
  letter-spacing: -.052em;
}
.editorial-actions a.aqua {
  font-size: 13px;
  min-height: 36px;
  padding-inline: 12px;
  box-shadow: 0 3px 10px #00000015, 0 1px #fff inset;
}
.editorial-actions a.aqua-secondary { background: var(--aqua-silver); }
.editorial-actions a.aqua:not(.aqua-secondary) { background: var(--aqua-blue); }
.editorial-actions a.aqua:hover {
  background: linear-gradient(#fff5, #fff5), var(--pill-background);
}
.editorial-card { border-color: #afafb3; background: var(--metal); border-radius: 8px; }
.editorial-card-title { background: var(--metal); border-bottom: 1px solid #c1c1c4; }
.editorial-card-title strong { font-weight: 600; }
.editorial-card-title small { color: #4d4d4d; }
.editorial-card-image { margin: 4px; border-radius: 4px; background: #fff; }
.editorial-card:hover { border-color: #657bbb; }

.editorial-case .reader-next button { background: var(--aqua-silver); }
.editorial-case .reader-next button:hover { background: #edf4ff; }
.chat-form button.aqua { padding-inline: 9px; }
.chat-form input { border-color: #b8b8bc; }
.chat-mine { background: #deebff; }
.chat-reply { background: #ebebed; }
.chat-panel { width: min(100%, 565px); margin-inline: auto; }
.chat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.chat-header .app-icon { width: 39px; height: 39px; }
.chat-header h2 { font-size: clamp(21px, 3vw, 29px); line-height: 1.12; letter-spacing: -.042em; }
.suggestions .aqua { padding: 3px 12px; min-height: 34px; font-size: 12px; box-shadow: 0 2px 4px #15151a18, 0 1px #fff inset; }
.chat-form { background: #efeff1; border-color: #c1c1c6; }

@media (min-width: 721px) {
  .launch-app[data-project="valueships"] { --fx: 9%; --fy: 12%; }
  .launch-app[data-project="asia"] { --fx: 26%; --fy: 4%; }
  .launch-app[data-project="databis"] { --fx: 80.5%; --fy: 8%; }
  .launch-app[data-project="jooser"] { --fx: 91.5%; --fy: 58%; }
  .launch-app[data-open="projects"] { --fx: 90%; --fy: 31%; }
  .launch-app[data-open="office"] { --fx: 17%; --fy: 39%; }
  .launch-app[data-open="gallery"] { --fx: 10.5%; --fy: 65%; }
  .launch-app[data-open="cv"] { --fx: 79.5%; --fy: 51%; }
  .launch-app[data-open="chat"] { --fx: 73%; --fy: 22%; }
  .launch-app[data-open="contact"] { --fx: 25%; --fy: 74%; }
  .desk-note { right: 11%; bottom: 4%; }
}
@media screen and (min-width: 721px) {
  .desktop[data-has-window=true] .workspace::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #35353a18;
    backdrop-filter: blur(2px);
    pointer-events: none;
  }
  .workspace .windows { z-index: 2; }
  .app-window[data-window=office]:not([data-max=true]) { width: min(calc(100% - 56px), 508px); }
}
@media (hover: hover) and (pointer: fine) {
  .window-buttons button:not(:hover):not(:focus-visible) span { opacity: 0; }
}
@media (min-width: 721px) and (max-height: 590px) {
  .desktop-body { min-height: 455px; }
}
@media (max-width: 720px) {
  .menubar { min-height: 44px; }
  .desktop-body { gap: 23px; padding: 34px 13px 19px; }
  .welcome { width: auto; }
  .welcome p { margin-top: 8px; }
  .welcome-actions { margin-top: 16px; gap: 8px; }
  .launch-grid { gap: 10px 3px; }
  .launch-app { width: auto; min-height: 79px; padding-inline: 3px; }
  .launch-app:not(.launch-file) { align-content: start; }
  .launch-app strong { font-size: 12px; overflow-wrap: anywhere; }
  .launch-app small { font-size: 10px; }
  .mini-window { width: min(100%, 106px); }
  .app-window[data-reader=true] .window-bar { top: 44px; padding-inline: 6px; gap: 4px; }
  .window-controls { gap: 3px; }
  .reader-tools [data-reader-next] span { display: none; }
  .reader-sidebar { border-bottom-color: #dadadb; }
}
@media (max-width: 500px) {
  .menu-location {
    display: grid;
    justify-items: end;
    gap: 0;
    font-size: 10px;
  }
  .menu-location-divider { display: none; }
}
@media (max-width: 370px) {
  .menu-home span { display: none; }
}
@media (pointer: coarse) {
  .aqua, .login .aqua, .editorial-actions a.aqua, .suggestions .aqua { min-height: 44px; }
  .reader-toggle, .reader-tools button { min-height: 38px; }
}

.desktop-body { isolation: isolate; }
.windows { z-index: 1; }
