/* =============================================================
   macOS-desktop portfolio — Malibongwe Nkosi
   Vanilla CSS. No build step.
   ============================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* the [hidden] attribute must always win over the layout rules below */
[hidden] {
  display: none !important;
}

#tmpl-holder {
  position: absolute;
  left: -99999px;
  top: 0;
  width: 620px;
}

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --menubar-h: 26px;
  --radius-win: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* light appearance */
  --wall: radial-gradient(120% 120% at 15% 10%, #7db2ff 0%, #6f8bff 32%, #9b7bff 62%, #ff9fc2 100%);
  --text: #1d1d1f;
  --text-dim: #5b5b60;
  --win-bg: #ffffffe6;
  --win-solid: #ffffff;
  --win-border: #00000018;
  --win-header: #f6f6f7d9;
  --win-shadow: 0 24px 60px -12px #00000055, 0 0 0 1px #0000000f;
  --chip-bg: #00000010;
  --chip-text: #333;
  --card-bg: #ffffff;
  --card-border: #0000000f;
  --hair: #00000012;
  --accent: #0a7cff;
  --menubar-bg: #ffffff40;
  --menubar-text: #1d1d1f;
  --dock-bg: #ffffff40;
  --dock-border: #ffffff59;
  --scroll-thumb: #00000030;
}

:root[data-appearance="dark"] {
  --wall: radial-gradient(120% 120% at 20% 12%, #1b2b52 0%, #14203f 34%, #241a44 66%, #3a1f3d 100%);
  --text: #f2f2f5;
  --text-dim: #a6a6ad;
  --win-bg: #262629e6;
  --win-solid: #2a2a2e;
  --win-border: #ffffff1f;
  --win-header: #2f2f34d9;
  --win-shadow: 0 24px 60px -12px #00000088, 0 0 0 1px #ffffff12;
  --chip-bg: #ffffff16;
  --chip-text: #e6e6ea;
  --card-bg: #303035;
  --card-border: #ffffff12;
  --hair: #ffffff14;
  --accent: #3a94ff;
  --menubar-bg: #1c1c1eb0;
  --menubar-text: #f2f2f5;
  --dock-bg: #2a2a2eaa;
  --dock-border: #ffffff1f;
  --scroll-thumb: #ffffff33;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: #0b1220;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.seo-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* custom scrollbars inside windows */
.win-body::-webkit-scrollbar,
.sb-app-body::-webkit-scrollbar,
.term-screen::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.win-body::-webkit-scrollbar-thumb,
.sb-app-body::-webkit-scrollbar-thumb,
.term-screen::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 6px;
}

/* =============================================================
   Boot
   ============================================================= */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: #000;
  color: #fff;
  transition: opacity .5s ease;
}

.boot.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  display: block;
  font-size: 62px;
  line-height: 1;
  width: 1em;
  height: 1em;
  transform: translateY(-2px);
}

.boot-bar {
  width: 210px;
  height: 5px;
  border-radius: 3px;
  background: #ffffff2b;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transition: width .2s linear;
}

/* =============================================================
   Login
   ============================================================= */
.login {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  background: #0a1633 url('../img/bg/mac-waves.svg') center / cover no-repeat;
  transition: opacity .45s ease;
}

.login::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(26px) brightness(.8) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) brightness(.8) saturate(1.2);
}

.login.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.login-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 1px 8px #0006;
}

.login-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff66;
  box-shadow: 0 12px 40px #0007;
}

.login-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.login-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ffffff66;
  background: #ffffff26;
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background .15s ease, transform .15s ease;
}

.login-btn:hover {
  background: #ffffff40;
  transform: scale(1.06);
}

.login-hint {
  font-size: .8rem;
  opacity: .8;
}

/* =============================================================
   Desktop shell
   ============================================================= */
.desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background-image: url('../img/bg/desktopbb.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 400ms ease;
}

.windows {
  position: absolute;
  inset: var(--menubar-h) 0 0 0;
}

/* ---------- Menu bar ---------- */
.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menubar-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 13px;
  color: var(--menubar-text);
  background: var(--menubar-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #ffffff14;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mb-item {
  background: none;
  border: 0;
  padding: 2px 8px;
  border-radius: 5px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.mb-item:hover,
.mb-apple[aria-expanded="true"] {
  background: #80808035;
}

.mb-app {
  font-weight: 700;
}

.mb-apple {
  font-size: 15px;
}

.mb-clock {
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.mb-icon {
  font-size: 14px;
}

.apple-menu {
  position: absolute;
  top: calc(var(--menubar-h) - 2px);
  left: 6px;
  min-width: 220px;
  padding: 6px;
  border-radius: 8px;
  background: var(--win-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
  z-index: 600;
}

.apple-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text);
}

.apple-menu button:hover {
  background: var(--accent);
  color: #fff;
}

.apple-menu-sep {
  height: 1px;
  margin: 5px 4px;
  background: var(--hair);
}

/* ---------- Desktop icons ---------- */
.desktop-icons {
  position: absolute;
  top: calc(var(--menubar-h) + 14px);
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}

.desk-icon {
  width: 92px;
  background: none;
  border: 0;
  padding: 8px 4px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-shadow: 0 1px 4px #0009;
  font-size: 12px;
}

.desk-icon:hover {
  background: #4a90ff40;
}

.desk-icon .di-glyph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: #ffffff28;
  border: 1px solid #ffffff45;
}

.desk-icon span {
  line-height: 1.2;
  word-break: break-word;
}

/* =============================================================
   Windows
   ============================================================= */
.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 200px;
  background: var(--win-bg);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--win-border);
  border-radius: var(--radius-win);
  box-shadow: var(--win-shadow);
  overflow: hidden;
  animation: win-in .22s var(--ease);
}

@keyframes win-in {
  from {
    opacity: 0;
    transform: scale(.94) translateY(8px);
  }
}

.window.is-min {
  animation: win-min .28s var(--ease) forwards;
  pointer-events: none;
}

@keyframes win-min {
  to {
    opacity: 0;
    transform: scale(.2) translateY(60vh);
  }
}

.window.is-closing {
  animation: win-out .16s ease forwards;
  pointer-events: none;
}

@keyframes win-out {
  to {
    opacity: 0;
    transform: scale(.95);
  }
}

.window.is-max {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
}

.win-header {
  flex: 0 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--win-header);
  border-bottom: 1px solid var(--hair);
  cursor: grab;
  user-select: none;
}

.win-header:active {
  cursor: grabbing;
}

.traffic {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.traffic button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #00000088;
}

.traffic .t-close {
  background: #ff5f57;
}

.traffic .t-min {
  background: #febc2e;
}

.traffic .t-max {
  background: #28c840;
}

.traffic button i {
  opacity: 0;
}

.win-header:hover .traffic button i {
  opacity: 1;
}

.win-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* keep the title visually centred despite the traffic lights on the left */
  margin-right: 52px;
}

.win-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 5;
}

.window:not(.is-focused) {
  box-shadow: 0 16px 40px -14px #00000044, 0 0 0 1px var(--win-border);
}

.window:not(.is-focused) .win-title {
  opacity: .5;
}

/* =============================================================
   Dock
   ============================================================= */
.dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 44px -12px #00000066;
  max-width: calc(100vw - 24px);
}

.dock-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px 3px;
  background: #80808055;
}

.dock-item {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  background: none;
  padding: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform .18s var(--ease), margin .18s var(--ease);
  transform-origin: bottom center;
}

.dock-item .di-tile {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff40, 0 4px 10px #00000033;
}

.dock-item:hover {
  transform: scale(1.42) translateY(-8px);
}

.dock-item:hover+.dock-item,
.dock-item:has(+ .dock-item:hover) {
  transform: scale(1.18) translateY(-3px);
}

.dock-item .di-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  border-radius: 6px;
  box-shadow: var(--win-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.dock-item:hover .di-label {
  opacity: 1;
}

.dock-item .di-dot {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
}

.dock-item.is-running .di-dot {
  opacity: .7;
}

.dock-item.is-bouncing {
  animation: dock-bounce .55s var(--ease) 2;
}

@keyframes dock-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

/* =============================================================
   Spotlight
   ============================================================= */
.spotlight {
  position: absolute;
  inset: var(--menubar-h) 0 0 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16vh;
  background: #00000022;
}

.spotlight-box {
  width: min(90vw, 560px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 20px;
  border-radius: 12px;
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.spotlight-box input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  color: var(--text);
}

.spotlight-results {
  width: min(90vw, 560px);
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  box-shadow: var(--win-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.spotlight-results:empty {
  display: none;
}

.spotlight-results li {
  padding: 9px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.spotlight-results li.is-active {
  background: var(--accent);
  color: #fff;
}

/* =============================================================
   Shared app-content styles
   ============================================================= */
.app {
  padding: 22px 26px 30px;
  color: var(--text);
  line-height: 1.6;
}

.app h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.app h3 {
  font-size: 1rem;
  margin: 22px 0 10px;
}

.app p {
  margin: 0 0 12px;
  color: var(--text-dim);
}

.app-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.app-hero img.avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.app-hero .title-line {
  font-weight: 600;
  color: var(--text);
}

.typed-line {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.card h4 {
  margin: 0 0 6px;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h4 i {
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: .9rem;
}

.spec-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--hair);
  font-size: .9rem;
}

.spec-list li span:first-child {
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}

.btn.ghost {
  background: var(--chip-bg);
  color: var(--text);
}

/* ---------- Resume timeline ---------- */
.timeline {
  position: relative;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 2px solid var(--hair);
}

.tl-item {
  position: relative;
  padding-bottom: 20px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--win-solid);
}

.tl-item .tl-when {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.tl-item .tl-role {
  font-weight: 600;
  margin: 2px 0;
}

.tl-item .tl-org {
  color: var(--accent);
  font-size: .9rem;
}

.tl-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: .88rem;
  color: var(--text-dim);
}

.resume-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 720px) {
  .resume-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects ---------- */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pf-filters button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 12px;
  color: var(--text);
}

.pf-filters button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.pf-card {
  text-align: left;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.pf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px #00000055;
}

.pf-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: var(--chip-bg);
}

.pf-card .pf-meta {
  padding: 10px 12px 12px;
}

.pf-card .pf-cat {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pf-card .pf-name {
  font-weight: 600;
  font-size: .92rem;
  margin-top: 2px;
}

.pf-detail .pf-back {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
}

.pf-gallery {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
}

.pf-gallery img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.pf-gallery .pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #00000066;
  color: #fff;
  display: grid;
  place-items: center;
}

.pf-gallery .pf-nav.prev {
  left: 8px;
}

.pf-gallery .pf-nav.next {
  right: 8px;
}

.pf-gallery .pf-nav[hidden] {
  display: none;
}

.pf-features {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}

.pf-features li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: .9rem;
  color: var(--text-dim);
}

.pf-features li i {
  color: #28c840;
  margin-top: 3px;
}

/* ---------- Skills ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -12px var(--accent);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-header i {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  font-size: 18px;
}

.skill-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 6px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 12px;
}

/* Some logos are near-black, so they sit on a light tile in dark mode. */
:root[data-appearance="dark"] .tech-icon {
  background: #f2f2f5;
}

.tech-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.skill-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.skill-stat .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.cert-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cert-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
  font-size: .88rem;
}

.cert-list li i {
  color: var(--accent);
  margin-top: 3px;
}

/* ---------- Contact form ---------- */
.php-email-form {
  padding: 22px 26px 28px;
  max-width: 620px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-field {
  display: block;
  margin-bottom: 12px;
}

.cf-field>span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: var(--win-solid);
  color: var(--text);
  font: inherit;
  outline: none;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.cf-field .is-invalid,
.cf-field .is-invalid:focus {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .18);
}

.cf-error {
  display: block;
  min-height: 0;
  margin-top: 4px;
  font-size: 12px;
  color: #e5484d;
}

.cf-error:empty {
  display: none;
}

.cf-submit:disabled {
  opacity: .6;
  cursor: progress;
}

.cf-submit {
  margin-top: 6px;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .9rem;
}

.php-email-form .loading.d-block,
.php-email-form .error-message.d-block,
.php-email-form .sent-message.d-block {
  display: block;
}

.php-email-form .loading {
  background: var(--chip-bg);
  color: var(--text-dim);
}

.php-email-form .error-message {
  background: #ff5f5722;
  color: #d11;
}

.php-email-form .sent-message {
  background: #28c84022;
  color: #1a7f37;
}

/* slider captcha */
.slider-captcha {
  margin: 6px 0 4px;
  user-select: none;
}

#captchaPuzzle {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe0ff, #9fb8e8);
}

#captchaHole {
  position: absolute;
  top: 25px;
  width: 55px;
  height: 100px;
  border-radius: 8px;
  background: #00000030;
  box-shadow: inset 0 0 0 2px #ffffff55;
}

#captchaPiece {
  position: absolute;
  top: 25px;
  left: 4px;
  width: 55px;
  height: 100px;
  border-radius: 8px;
  cursor: grab;
  background-color: #5f80cf;
  background-image:
    linear-gradient(0deg, #ffffff66 1px, transparent 1px),
    linear-gradient(90deg, #ffffff66 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
  box-shadow: 0 3px 10px #00000044;
}

.slider-captcha .track {
  position: relative;
  margin-top: 12px;
  height: 44px;
  border-radius: 22px;
  background: var(--chip-bg);
  overflow: hidden;
}

#captchaFill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 22px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

#captchaLabel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: var(--text-dim);
  pointer-events: none;
}

#captchaLabel.verified {
  color: #1a7f37;
}

#captchaHandle {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--win-solid);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: grab;
  box-shadow: 0 2px 8px #00000040;
}

#captchaHandle.verified {
  color: #1a7f37;
}

/* =============================================================
   Terminal app
   ============================================================= */
.term {
  --tm-bg: #0c0c0c;
  --tm-text: #c8c8c8;
  --tm-accent: #00d4aa;
  --tm-dim: #7a7a7a;
  --tm-yellow: #e5c07b;
  --tm-blue: #61afef;
  background: var(--tm-bg);
  color: var(--tm-text);
  font-family: var(--font-mono);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.term-screen {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line .p {
  color: var(--tm-accent);
}

.term-line .path {
  color: var(--tm-blue);
}

.term-accent {
  color: var(--tm-accent);
}

.term-yellow {
  color: var(--tm-yellow);
}

.term-dim {
  color: var(--tm-dim);
}

.term-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 16px 14px;
  border-top: 1px solid #ffffff10;
  font-size: 13px;
}

.term-input-row .p {
  color: var(--tm-accent);
  flex: 0 0 auto;
}

.term-input-row input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--tm-text);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Terminal window keeps a dark header regardless of appearance */
.window.app-terminal .win-header {
  background: #1b1b1b;
  border-bottom-color: #000;
}

.window.app-terminal .win-title {
  color: #999;
}

/* =============================================================
   Mobile springboard
   ============================================================= */
.springboard {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--wall);
  background-size: cover;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.sb-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 3px #0007;
}

.sb-status-icons i {
  margin-left: 6px;
}

.sb-grid {
  flex: 1;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 8px;
  padding: 26px 20px;
  overflow-y: auto;
}

.sb-dock {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 8px 12px calc(12px + env(safe-area-inset-bottom));
  padding: 12px;
  border-radius: 26px;
  background: #ffffff28;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sb-icon {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 3px #0008;
}

.sb-icon .di-tile {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff40, 0 6px 14px #00000040;
}

.sb-app {
  position: absolute;
  inset: 0;
  background: var(--win-solid);
  color: var(--text);
  display: flex;
  flex-direction: column;
  animation: sb-in .28s var(--ease);
}

@keyframes sb-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

.sb-app-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--hair);
  background: var(--win-header);
}

.sb-back {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sb-app-title {
  font-weight: 700;
}

.sb-app-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-app-body .term {
  min-height: 100%;
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .dock-item:hover {
    transform: scale(1.15) translateY(-4px);
  }
}

/* =============================================================
   First-visit "About Me" countdown
   ============================================================= */
.intro-toast {
  position: fixed;
  top: calc(var(--menubar-h) + 12px);
  left: 50%;
  z-index: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 8px 12px 16px;
  overflow: hidden;
  border-radius: var(--radius-win);
  background: var(--win-bg);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--win-shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  animation: intro-toast-in .35s var(--ease);
}

.intro-toast-text {
  font-variant-numeric: tabular-nums;
}

.intro-toast-open,
.intro-toast-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.intro-toast-open {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.intro-toast-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: none;
  color: var(--text-dim);
  font-size: 18px;
}

.intro-toast-close:hover {
  background: var(--hair);
}

.intro-toast-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--hair);
}

.intro-toast-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

@keyframes intro-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

/* =============================================================
   Services app — packages & "why work with me"
   ============================================================= */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
}

.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 16px 16px;
  --pkg: var(--accent);
  border-top: 3px solid var(--pkg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pkg), transparent 90%), transparent 55%), var(--card-bg);
}

.pkg-card.is-featured {
  border-color: #b8860b;
  background: linear-gradient(145deg, #fff3c4 0%, #f6d365 35%, #e0ab2b 75%, #c8961a 100%);
  color: #2b1d00;
  box-shadow: 0 0 0 1px #b8860b, 0 16px 34px -16px rgba(184, 134, 11, .75);
}

.pkg-card.is-featured .pkg-badge {
  background: #2b1d00;
  color: #ffd56b;
}

.pkg-card.is-featured .pkg-icon {
  background: rgba(43, 29, 0, .12);
  color: #5a3d00;
}

.pkg-card.is-featured .pkg-tagline,
.pkg-card.is-featured .pkg-price small,
.pkg-card.is-featured .pkg-price span {
  color: rgba(43, 29, 0, .7);
}

.pkg-card.is-featured .pkg-list i {
  color: #6b4a00;
}

.pkg-card.is-featured .pkg-price {
  border-top-color: rgba(43, 29, 0, .2);
}

.pkg-card.is-featured .pkg-cta {
  background: #2b1d00;
  border-color: #2b1d00;
  color: #ffd56b;
}

.pkg-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pkg);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.pkg-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--pkg), transparent 88%);
  color: var(--pkg);
  font-size: 18px;
  margin-bottom: 10px;
}

.pkg-card h4,
.why-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.pkg-tagline {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: .85rem;
}

.pkg-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .85rem;
}

.pkg-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pkg-list i {
  color: var(--accent);
  margin-top: 2px;
}

.pkg-price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.pkg-price small {
  width: 100%;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pkg-price strong {
  font-size: 1.35rem;
}

.pkg-price span {
  color: var(--text-dim);
  font-size: .85rem;
}

.pkg-cta {
  margin-top: 12px;
  justify-content: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.why-card {
  margin: 0;
}

.why-card p {
  color: var(--text-dim);
  font-size: .85rem;
}

/* =============================================================
   View chooser + view switching
   ============================================================= */
html[data-view="choose"] #boot,
html[data-view="classic"] #boot {
  display: none !important;
}

.view-chooser {
  display: none;
}

html[data-view="choose"] .view-chooser {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: #0a1633 url('../img/bg/mac-waves.svg') center / cover no-repeat;
  color: var(--text);
}

.vc-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  animation: vcIn .6s var(--ease) both;
}

@keyframes vcIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.vc-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px -10px #0006;
  border: 3px solid #ffffffb0;
}

.vc-inner h1 {
  margin: 14px 0 4px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.vc-inner > p {
  margin: 0 0 26px;
  color: var(--text-dim);
}

html:not([data-appearance="dark"]) .vc-inner h1,
html:not([data-appearance="dark"]) .vc-inner > p {
  color: #fff;
  text-shadow: 0 1px 12px #0003;
}

.vc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .vc-options { grid-template-columns: 1fr; }
}

.vc-card {
  text-align: left;
  border: 1px solid var(--win-border);
  background: var(--win-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 18px;
  padding: 14px 14px 18px;
  box-shadow: var(--win-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.vc-card:hover,
.vc-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent), var(--win-shadow);
}

.vc-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 4px;
  font-size: 1.05rem;
}

.vc-card span.vc-desc {
  display: block;
  margin: 0 4px;
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.45;
}

/* mini previews */
.vc-preview {
  position: relative;
  height: 150px;
  border-radius: 11px;
  overflow: hidden;
}

.vc-preview-os {
  background: radial-gradient(120% 120% at 15% 10%, #7db2ff 0%, #6f8bff 32%, #9b7bff 62%, #ff9fc2 100%);
}

.vc-preview-os .m-bar {
  height: 10px;
  background: #ffffff66;
}

.vc-preview-os .m-win {
  position: absolute;
  left: 18%;
  top: 22px;
  width: 64%;
  height: 82px;
  border-radius: 7px;
  background: #fffffff0;
  box-shadow: 0 8px 20px -8px #0006;
}

.vc-preview-os .m-win::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 26px;
  height: 6px;
  background:
    radial-gradient(circle 3px, #ff5f57 98%, transparent) 0 0 / 9px 6px no-repeat,
    radial-gradient(circle 3px, #febc2e 98%, transparent) 9px 0 / 9px 6px no-repeat,
    radial-gradient(circle 3px, #28c840 98%, transparent) 18px 0 / 9px 6px no-repeat;
}

.vc-preview-os .m-win::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 22px;
  height: 46px;
  background: repeating-linear-gradient(#e6e8ee 0 6px, transparent 6px 12px);
  border-radius: 3px;
}

.vc-preview-os .m-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 9px;
  background: #ffffff59;
}

.vc-preview-os .m-dock i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(135deg, #5ea2ff, #2f6bff);
}

.vc-preview-os .m-dock i:nth-child(2) { background: linear-gradient(135deg, #ffd25e, #ff9d2f); }
.vc-preview-os .m-dock i:nth-child(3) { background: linear-gradient(135deg, #66d3fa, #2f8bff); }
.vc-preview-os .m-dock i:nth-child(4) { background: linear-gradient(135deg, #a78bfa, #7c5cff); }
.vc-preview-os .m-dock i:nth-child(5) { background: linear-gradient(135deg, #7ce7a6, #28c840); }

.vc-preview-classic {
  background: #fafafa;
  border: 1px solid #0000000d;
  padding: 10px 12px;
}

.vc-preview-classic .c-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vc-preview-classic .c-nav b {
  width: 34px;
  height: 7px;
  border-radius: 4px;
  background: #18181b;
}

.vc-preview-classic .c-nav span {
  width: 70px;
  height: 5px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #a1a1aa 0 12px, transparent 12px 18px);
}

.vc-preview-classic .c-hero {
  margin: 18px 0 14px;
}

.vc-preview-classic .c-hero i {
  display: block;
  height: 9px;
  width: 62%;
  border-radius: 4px;
  background: #18181b;
  margin-bottom: 6px;
}

.vc-preview-classic .c-hero i + i {
  height: 5px;
  width: 80%;
  background: #d4d4d8;
}

.vc-preview-classic .c-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.vc-preview-classic .c-cards i {
  height: 46px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e4e4e7;
}

.vc-preview-classic .c-cards i:first-child {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.vc-note {
  margin-top: 18px;
  font-size: .8rem;
  color: #ffffffcc;
}

html[data-appearance="dark"] .vc-note { color: var(--text-dim); }

/* Login + Apple-menu links to the other view */
.login-switch {
  margin-top: 26px;
  background: none;
  border: 0;
  color: #ffffffcc;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Classic view: normal scrolling page */
html[data-view="classic"],
html[data-view="classic"] body {
  height: auto;
  overflow: auto;
}

html[data-view="classic"] body {
  background: #fafafa;
}

html[data-view="classic"][data-appearance="dark"] body {
  background: #09090b;
}

#classic {
  display: none;
}

html[data-view="classic"] #classic {
  display: block;
}

#classic.is-loading {
  visibility: hidden;
}

/* contact form inside the classic view keeps its macOS-styled inputs */
#classic .php-email-form {
  max-width: none;
}

/* Tailwind's reset loads after this file in the classic view; keep the form button styled */
#classic .cf-submit {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 9px;
}

/* =============================================================
   Classic view — section background patterns
   Each patterned section paints its pattern on ::before, faded at
   the top and bottom so sections blend into each other.
   ============================================================= */
#classic {
  --pat-weave: rgba(157, 242, 104, .2);
  --pat-blue: rgba(59, 130, 246, .10);
}

html[data-appearance="dark"] #classic {
  --pat-weave: rgba(157, 242, 104, .07);
  --pat-blue: rgba(96, 165, 250, .08);
}

#classic .pat {
  position: relative;
  isolation: isolate;
}

#classic .pat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  /* keep every pattern faint so the text stays the focus; raise to make patterns stronger */
  opacity: .55;
}

/* woven diagonal pattern (the supplied design), colour driven by a variable */
#classic .pat-weave::before,
#classic .pat-weave-blue::before {
  --c: var(--pat-weave);
  background:
    repeating-linear-gradient(45deg, #0000 calc(-650%/13) calc(50%/13), var(--c) 0 calc(100%/13),
      #0000 0 calc(150%/13), var(--c) 0 calc(200%/13),
      #0000 0 calc(250%/13), var(--c) 0 calc(300%/13)),
    repeating-linear-gradient(45deg, #0000 calc(-650%/13) calc(50%/13), var(--c) 0 calc(100%/13),
      #0000 0 calc(150%/13), var(--c) 0 calc(200%/13),
      #0000 0 calc(250%/13), var(--c) 0 calc(300%/13)) 34px 34px,
    repeating-linear-gradient(-45deg, #0000 calc(-650%/13) calc(50%/13), var(--c) 0 calc(100%/13),
      #0000 0 calc(150%/13), var(--c) 0 calc(200%/13),
      #0000 0 calc(250%/13), var(--c) 0 calc(300%/13)),
    repeating-linear-gradient(-45deg, #0000 calc(-650%/13) calc(50%/13), var(--c) 0 calc(100%/13),
      #0000 0 calc(150%/13), var(--c) 0 calc(200%/13),
      #0000 0 calc(250%/13), var(--c) 0 calc(300%/13)) 34px 34px;
  background-size: 68px 68px;
}

#classic .pat-weave-blue::before {
  --c: var(--pat-blue);
}

/* honeycomb (hexagon outlines) */
#classic .pat-honeycomb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60'%3E%3Cpath fill='none' stroke='rgba%2859%2C130%2C246%2C.22%29' stroke-width='1' d='M17.32 0 L34.64 10 L34.64 30 L17.32 40 L0 30 L0 10 Z M17.32 40 V60'/%3E%3C/svg%3E");
  background-size: 34.64px 60px;
}

html[data-appearance="dark"] #classic .pat-honeycomb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60'%3E%3Cpath fill='none' stroke='rgba%28147%2C197%2C253%2C.10%29' stroke-width='1' d='M17.32 0 L34.64 10 L34.64 30 L17.32 40 L0 30 L0 10 Z M17.32 40 V60'/%3E%3C/svg%3E");
}

/* nested squares (thin outlines, same weight as the honeycomb) */
#classic .pat-squares::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='rgba%2859%2C130%2C246%2C.13%29' stroke-width='1'%3E%3Cpath d='M0 .5H44M.5 0V44'/%3E%3Crect x='11.5' y='11.5' width='21' height='21'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px 44px;
}

html[data-appearance="dark"] #classic .pat-squares::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='rgba%28147%2C197%2C253%2C.07%29' stroke-width='1'%3E%3Cpath d='M0 .5H44M.5 0V44'/%3E%3Crect x='11.5' y='11.5' width='21' height='21'/%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================================
   Preloader — shown briefly on first visit, then the view chooser
   ============================================================= */
.preloader {
  display: none;
}

html[data-view="choose"]:not(.vc-ready) .preloader {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
}

/* hold the chooser cards back until the preloader is done */
html[data-view="choose"]:not(.vc-ready) .vc-inner {
  display: none;
}

.spinner {
  position: relative;
  width: 11.2px;
  height: 11.2px;
  animation: spinner-spin 1s infinite linear;
}

.spinner div {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #01ed35;
  border-radius: 50%;
  animation: spinner-orbit 1.25s infinite ease;
}

.spinner div:nth-child(1) { --rotation: 90; }
.spinner div:nth-child(2) { --rotation: 180; }
.spinner div:nth-child(3) { --rotation: 270; }
.spinner div:nth-child(4) { --rotation: 360; }

@keyframes spinner-orbit {
  0%, 100% { transform: rotate(calc(var(--rotation) * 1deg)) translateY(0); }
  50% { transform: rotate(calc(var(--rotation) * 1deg)) translateY(300%); }
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}
