:root {
  --red: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: auto;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

html,
body,
.finder-main,
.finder-sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.finder-main::-webkit-scrollbar,
.finder-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.section-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.finder-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.finder-sidebar strong {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

button {
  color: inherit;
  font: inherit;
}

.finder-sidebar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.finder-sidebar button:hover,
.finder-sidebar button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  outline: 0;
}

.finder-sidebar .is-selected {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.9), rgba(48, 28, 92, 0.9));
  box-shadow: 0 12px 26px rgba(167, 139, 250, 0.18);
}

.finder-main {
  min-width: 0;
  overflow: auto;
  padding: clamp(24px, 3vw, 40px);
}

.finder-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.9rem, 5.8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.folder-note {
  max-width: 560px;
  margin: -14px 0 25px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.92rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.project-dock {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: clamp(24px, 3vw, 42px) clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.dock-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 9px 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dock-card.is-hidden {
  display: none;
}

.dock-card:hover,
.dock-card:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  outline: 0;
  transform: translateY(-2px);
}

.folder-preview {
  position: relative;
  width: min(100%, 146px);
  aspect-ratio: 1.42;
  overflow: hidden;
  display: block;
  clip-path: polygon(0 23%, 31% 23%, 36% 5%, 64% 5%, 70% 23%, 100% 23%, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%),
    rgba(93, 191, 255, 0.72);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -16px 28px rgba(0, 0, 0, 0.2),
    0 16px 28px rgba(0, 0, 0, 0.26);
}

.folder-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(118, 215, 255, 0.48), rgba(18, 111, 176, 0.28)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.folder-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.08) brightness(0.78);
}

.project-type {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dock-card strong {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.48);
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .section-page {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .finder-sidebar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    min-height: 54px;
    max-height: 54px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .finder-sidebar strong {
    display: none;
  }

  .finder-sidebar button {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    align-self: center;
    white-space: nowrap;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 12vw, 3.55rem);
    letter-spacing: -0.045em;
  }

  .project-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .dock-card {
    padding-inline: 4px;
  }

  .folder-preview {
    max-width: 132px;
  }

}

@media (max-width: 420px) {
  .finder-main {
    padding: 20px 16px 24px;
  }

  .project-dock {
    gap: 22px 10px;
  }

  .folder-preview {
    max-width: 116px;
  }
}
