:root {
  --bg: #f6f1e8;
  --bg-2: #efe7d8;
  --sky: #cfe8ff;
  --mint: #bfe6c8;
  --yellow: #ffd86b;
  --peach: #ffb38a;
  --blue: #5ea2ff;
  --ink: #1f2430;
  --muted: #5e6472;
  --white: #fffdf8;
  --line: #1f2430;
  --shadow: 6px 6px 0 #1f2430;
  --shadow-sm: 4px 4px 0 #1f2430;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", sans-serif;
  background:
    linear-gradient(180deg, var(--sky) 0 24rem, var(--bg) 24rem 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.85) 0 3.2rem, transparent 3.25rem),
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.85) 0 2.6rem, transparent 2.65rem),
    linear-gradient(rgba(31, 36, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 36, 48, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

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

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 5.5rem;
}

.theme-cursor,
.theme-cursor-dot {
  display: none;
}

.topbar,
.workspace-main,
.page-main,
.kde-panel {
  position: relative;
  z-index: 1;
}

.topbar,
.workspace-main,
.page-main {
  width: min(calc(100% - 1rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  padding-top: 0.8rem;
}

.topbar-inner,
.intro-card,
.page-header-card,
.explorer-window,
.project-card,
.poster-card,
.contact-card,
.desktop-note,
.link-tile,
.list-card,
.panel-inner {
  background: var(--white);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-orb {
  width: 2.8rem;
  height: 2.8rem;
  border: 3px solid var(--line);
  border-radius: 0.95rem;
  background: var(--yellow);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.brand-orb::before,
.brand-orb::after {
  content: "";
  position: absolute;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--blue);
}

.brand-orb::before {
  width: 1.25rem;
  height: 1.25rem;
  left: 0.25rem;
  top: 0.8rem;
}

.brand-orb::after {
  width: 1rem;
  height: 1rem;
  right: 0.25rem;
  top: 0.3rem;
  background: var(--peach);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.9rem;
}

.brand-copy span {
  font-size: 0.74rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.72rem 0.95rem;
  border: 3px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--mint);
}

.workspace-intro,
.page-main {
  padding-top: 1.4rem;
}

.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background: #fffdf8;
}

.intro-copy h1,
.page-header-card h1,
.folder-hero h2,
.project-card h3,
.poster-card h3,
.contact-card h3,
.list-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.55rem, 7vw, 4.8rem);
  line-height: 0.92;
  max-width: 11ch;
}

.intro-copy p,
.page-header-card p,
.folder-summary,
.project-card p,
.poster-card p,
.contact-card p,
.desktop-note p,
.list-card p,
.window-title span,
.window-tools {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.intro-actions,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.intro-actions {
  margin-top: 1.2rem;
}

.button,
.mini-link,
.panel-pill,
.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.button--primary {
  background: var(--blue);
  color: white;
}

.button--glass,
.mini-link,
.panel-pill,
.panel-icon {
  background: var(--white);
}

.button:hover,
.mini-link:hover,
.panel-pill:hover,
.panel-icon:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--line);
}

.note-stack {
  display: grid;
  gap: 0.85rem;
}

.desktop-note {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: #fff7cf;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.desktop-note:nth-child(2) {
  background: #d8f2de;
}

.desktop-note:nth-child(3) {
  background: #ffd9c7;
}

.note-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.note-icon::before,
.note-icon::after {
  content: "";
  position: absolute;
  border: 3px solid var(--line);
}

.note-icon--satellite::before {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--blue);
}

.note-icon--satellite::after {
  width: 1.8rem;
  height: 0;
  border-width: 3px 0 0;
}

.note-icon--tools::before {
  width: 1.4rem;
  height: 0.45rem;
  background: var(--yellow);
  transform: rotate(45deg);
}

.note-icon--tools::after {
  width: 0.45rem;
  height: 1.4rem;
  background: var(--peach);
  transform: rotate(45deg);
}

.note-icon--pen::before {
  width: 0.6rem;
  height: 1.4rem;
  background: var(--peach);
  transform: rotate(35deg);
}

.note-icon--pen::after {
  width: 0.85rem;
  height: 0.85rem;
  right: 0.35rem;
  bottom: 0.35rem;
  border-radius: 999px;
  background: var(--yellow);
}

.workspace {
  padding-top: 1rem;
}

.explorer-window {
  overflow: hidden;
  border-radius: 2rem;
  background: #fffdf8;
}

.mobile-explorer {
  display: none;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--mint);
  border-bottom: 3px solid var(--line);
}

.traffic {
  display: inline-flex;
  gap: 0.45rem;
}

.traffic span {
  width: 0.95rem;
  height: 0.95rem;
  border: 3px solid var(--line);
  border-radius: 999px;
}

.traffic span:nth-child(1) {
  background: #ff8d8d;
}

.traffic span:nth-child(2) {
  background: #ffd86b;
}

.traffic span:nth-child(3) {
  background: #7ee090;
}

.window-title {
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.window-title strong {
  font-size: 0.92rem;
}

.window-tools {
  min-width: 92px;
  text-align: right;
  font-size: 0.82rem;
}

.window-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 140px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: #f4efe5;
  border-bottom: 3px solid var(--line);
}

.toolbar-group {
  display: flex;
  gap: 0.5rem;
}

.toolbar-button {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.toolbar-button.is-active:not([hidden]) {
  background: var(--yellow);
}

.breadcrumb,
.toolbar-search {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0 0.9rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
}

.toolbar-search {
  justify-content: center;
  color: var(--muted);
}

.window-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 640px;
  min-height: 640px;
}

.window-sidebar {
  padding: 1rem;
  background: var(--bg-2);
  border-right: 3px solid var(--line);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #fff7cf;
}

.sidebar-heading {
  padding: 0 0.25rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-group {
  display: grid;
  gap: 0.55rem;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border: 3px solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sidebar-item--child {
  margin-left: 1rem;
}

.sidebar-item--grandchild {
  margin-left: 2rem;
}

.sidebar-item:hover,
.sidebar-item.is-active {
  background: white;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.folder-dot {
  width: 2rem;
  height: 1.65rem;
  border: 3px solid var(--line);
  border-radius: 0.55rem;
  background: var(--yellow);
  position: relative;
}

.folder-dot::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: -0.35rem;
  width: 0.95rem;
  height: 0.55rem;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  background: #ffe49f;
}

.folder-dot--home {
  border-radius: 0.65rem;
  background: var(--blue);
}

.folder-dot--home::before {
  width: 0.9rem;
  height: 0.9rem;
  left: 0.4rem;
  top: 0.3rem;
  border: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  border-radius: 0.25rem;
  background: white;
}

.folder-dot--mini {
  width: 1.7rem;
  height: 1.4rem;
}

.folder-dot--mini::before {
  width: 0.75rem;
  height: 0.45rem;
}

.sidebar-item strong {
  display: block;
  font-size: 0.9rem;
}

.window-content {
  padding: 1rem;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 216, 107, 0.45), transparent 12rem),
    var(--white);
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #fff7cf;
}

.window-sidebar::-webkit-scrollbar,
.window-content::-webkit-scrollbar,
.mobile-window-body::-webkit-scrollbar,
.mobile-folder-detail::-webkit-scrollbar {
  width: 12px;
}

.window-sidebar::-webkit-scrollbar-track,
.window-content::-webkit-scrollbar-track,
.mobile-window-body::-webkit-scrollbar-track,
.mobile-folder-detail::-webkit-scrollbar-track {
  background: #fff7cf;
  border-left: 3px solid var(--line);
}

.window-sidebar::-webkit-scrollbar-thumb,
.window-content::-webkit-scrollbar-thumb,
.mobile-window-body::-webkit-scrollbar-thumb,
.mobile-folder-detail::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 999px;
}

.folder-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-folder-card {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  padding: 1rem;
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.home-folder-card:hover {
  background: #eef7ff;
  transform: rotate(-1deg) translateY(-1px);
}

.home-folder-card strong {
  font-size: 1rem;
}

.home-folder-card span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.home-folder-card-icon {
  width: 4rem;
  height: 3.1rem;
  border: 3px solid var(--line);
  border-radius: 0.85rem;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.home-folder-card-icon::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: -0.32rem;
  width: 1.2rem;
  height: 0.65rem;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  background: #ffe49f;
}

.folder-tile {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.4rem;
  border: 3px solid transparent;
  border-radius: 1rem;
  background: transparent;
}

.folder-tile:hover,
.folder-tile.is-active {
  background: #eef7ff;
  border-color: var(--line);
}

.folder-tile-icon {
  width: 3.6rem;
  height: 2.85rem;
  border: 3px solid var(--line);
  border-radius: 0.8rem;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.folder-tile-icon::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: -0.32rem;
  width: 1.2rem;
  height: 0.65rem;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  background: #ffe49f;
}

.folder-tile-label {
  font-size: 0.78rem;
  text-align: center;
}

.folder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 220px;
  gap: 1rem;
  padding: 1rem;
  border: 3px solid var(--line);
  border-radius: var(--radius-xl);
  background: #dff0ff;
  box-shadow: var(--shadow-sm);
}

.folder-hero h2 {
  font-size: clamp(1.95rem, 4.8vw, 3rem);
  line-height: 0.93;
}

.folder-hero-card {
  padding: 0.75rem;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff7cf;
  box-shadow: var(--shadow-sm);
}

.folder-hero-art {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.folder-hero-art::before,
.folder-hero-art::after {
  content: "";
  position: absolute;
  border: 3px solid var(--line);
}

.folder-hero-art--system::before {
  width: 6.2rem;
  height: 3.9rem;
  border-radius: 1rem;
  background: #dff0ff;
}

.folder-hero-art--system::after {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  right: 1.1rem;
  bottom: 1rem;
  background: #ffd86b;
}

.folder-hero-art--projects::before {
  width: 6.8rem;
  height: 2.8rem;
  border-radius: 999px 999px 0 0;
  background: #bfe6c8;
  bottom: 1rem;
}

.folder-hero-art--projects::after {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  top: 1rem;
  right: 1.2rem;
  background: #fff5b8;
}

.folder-hero-art--web::before {
  width: 6.4rem;
  height: 4.2rem;
  border-radius: 1rem;
  background: white;
}

.folder-hero-art--web::after {
  width: 5.2rem;
  height: 0;
  top: 2.2rem;
  border-width: 3px 0 0;
}

.folder-hero-art--posters::before {
  width: 4.2rem;
  height: 5.6rem;
  border-radius: 0.8rem;
  background: #ffd9c7;
  transform: rotate(-6deg);
}

.folder-hero-art--posters::after {
  width: 4.2rem;
  height: 5.6rem;
  border-radius: 0.8rem;
  background: #dff0ff;
  transform: rotate(8deg);
}

.folder-hero-art--home::before {
  width: 6rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--blue);
}

.folder-hero-art--home::after {
  width: 2rem;
  height: 2rem;
  right: 1rem;
  top: 1rem;
  border-radius: 999px;
  background: #fff5b8;
}

.folder-hero-art--contact::before {
  width: 6rem;
  height: 3.8rem;
  border-radius: 0.9rem;
  background: white;
  transform: rotate(-4deg);
}

.folder-hero-art--contact::after {
  width: 4rem;
  height: 2rem;
  border-radius: 0 0 0.8rem 0.8rem;
  border-top: 0;
  background: #ffd86b;
}

.mobile-window {
  background: #fffdf8;
  border: 3px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-window-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  background: var(--mint);
  border-bottom: 3px solid var(--line);
}

.mobile-back {
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.mobile-window-title {
  display: grid;
  justify-items: start;
  line-height: 1.2;
}

.mobile-window-title strong {
  font-size: 0.92rem;
}

.mobile-window-title span {
  font-size: 0.8rem;
  color: var(--muted);
}

.mobile-window-body {
  padding: 0.65rem;
  background: #fffaf2;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #fff7cf;
}

.mobile-folder-list {
  display: grid;
  gap: 0.65rem;
}

.mobile-folder-list[hidden],
.mobile-folder-detail[hidden],
.mobile-back[hidden] {
  display: none !important;
}

.mobile-folder-row {
  width: 100%;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem;
  border: 3px solid var(--line);
  border-radius: 1.2rem;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.mobile-folder-copy {
  display: grid;
  gap: 0.2rem;
}

.mobile-folder-copy strong {
  font-size: 1rem;
}

.mobile-folder-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mobile-folder-arrow {
  min-height: 2rem;
  padding: 0.15rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: transparent;
  position: relative;
}

.mobile-folder-arrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-top: 3px solid var(--line);
  border-right: 3px solid var(--line);
  transform: rotate(45deg);
}

.mobile-folder-icon {
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: #fff7cf;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.mobile-folder-icon::before,
.mobile-folder-icon::after {
  content: "";
  position: absolute;
  border: 3px solid var(--line);
}

.mobile-folder-icon--system::before {
  width: 1.8rem;
  height: 1.1rem;
  left: 0.55rem;
  top: 0.95rem;
  border-radius: 0.65rem;
  background: #dff0ff;
}

.mobile-folder-icon--system::after {
  width: 0.8rem;
  height: 0.8rem;
  right: 0.35rem;
  bottom: 0.35rem;
  border-radius: 999px;
  background: #ffd86b;
}

.mobile-folder-icon--projects::before {
  width: 1.8rem;
  height: 1.8rem;
  left: 0.55rem;
  top: 0.75rem;
  border-radius: 999px;
  background: #fff5b8;
}

.mobile-folder-icon--projects::after {
  width: 1.4rem;
  height: 0.65rem;
  right: 0.35rem;
  bottom: 0.45rem;
  border-radius: 999px 999px 0 0;
  background: #bfe6c8;
}

.mobile-folder-icon--web::before {
  width: 2rem;
  height: 1.4rem;
  left: 0.45rem;
  top: 0.7rem;
  border-radius: 0.6rem;
  background: white;
}

.mobile-folder-icon--web::after {
  width: 1.5rem;
  height: 0;
  left: 0.7rem;
  top: 1.45rem;
  border-width: 3px 0 0;
}

.mobile-folder-icon--posters::before {
  width: 1.15rem;
  height: 1.7rem;
  left: 0.55rem;
  top: 0.65rem;
  border-radius: 0.45rem;
  background: #ffd9c7;
  transform: rotate(-8deg);
}

.mobile-folder-icon--posters::after {
  width: 1.15rem;
  height: 1.7rem;
  right: 0.45rem;
  top: 0.82rem;
  border-radius: 0.45rem;
  background: #dff0ff;
  transform: rotate(8deg);
}

.mobile-folder-detail .folder-hero {
  grid-template-columns: 1fr;
}

.mobile-folder-detail .folder-hero-card {
  display: none;
}

.mobile-folder-detail .folder-grid {
  margin-top: 0.85rem;
}

.folder-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.folder-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.folder-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-card,
.contact-card,
.link-tile {
  padding: 0.95rem;
  border-radius: var(--radius-lg);
}

.folder-link-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  background: #cfe8ff;
  box-shadow: var(--shadow-sm);
}

.folder-link-folder {
  width: 100%;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.folder-link-folder:hover {
  background: #fff7cf;
  transform: rotate(-1deg) translateY(-1px);
}

.folder-link-icon {
  width: 4rem;
  height: 3.1rem;
  border: 3px solid var(--line);
  border-radius: 0.85rem;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.folder-link-icon::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: -0.32rem;
  width: 1.2rem;
  height: 0.65rem;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  background: #ffe49f;
}

.folder-link-copy {
  display: grid;
  gap: 0.25rem;
}

.folder-link-copy h3 {
  font-size: 1.15rem;
}

.folder-link-copy p {
  font-size: 0.9rem;
}

.list-card:nth-child(3n + 1),
.project-card:nth-child(3n + 1) {
  background: #fffdf8;
}

.list-card:nth-child(3n + 2),
.project-card:nth-child(3n + 2) {
  background: #fff7cf;
}

.list-card:nth-child(3n + 3),
.project-card:nth-child(3n + 3) {
  background: #dff0ff;
}

.list-card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.list-card--cta {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.cta-illustration {
  height: 150px;
  border: 3px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #dff0ff 0 44%, #fff7cf 44% 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cta-illustration::before {
  content: "";
  position: absolute;
  width: 4.5rem;
  height: 3rem;
  left: 1rem;
  top: 1rem;
  border: 3px solid var(--line);
  border-radius: 0.85rem;
  background: #fffdf8;
}

.cta-illustration::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5.6rem;
  height: 2rem;
  border: 3px solid var(--line);
  border-radius: 999px 999px 0 0;
  background: #bfe6c8;
}

.page-header-card {
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  background: #dff0ff;
}

.page-header-card h1 {
  margin-top: 0.6rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 0.9;
  max-width: 10ch;
}

.gallery-wall,
.poster-wall,
.quick-links {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-wall,
.poster-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.poster-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.project-card-visual {
  height: 190px;
  border-bottom: 3px solid var(--line);
  background:
    linear-gradient(180deg, #bfe6c8 0 42%, #7fc7ff 42% 100%);
  position: relative;
  overflow: hidden;
}

.project-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-visual::before {
  content: "";
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  right: 1rem;
  top: 1rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff5b8;
}

.project-card-visual::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 6rem;
  height: 2.2rem;
  border: 3px solid var(--line);
  border-radius: 999px 999px 0 0;
  background: #7acb8d;
}

.project-card:nth-child(2n) .project-card-visual {
  background: linear-gradient(180deg, #ffe7b0 0 42%, #ffbb9d 42% 100%);
}

.project-card:nth-child(3n) .project-card-visual {
  background: linear-gradient(180deg, #e2dcff 0 42%, #9fd1ff 42% 100%);
}

.project-card-body,
.poster-card figcaption {
  padding: 1rem;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 3px solid var(--line);
}

.contact-card,
.link-tile {
  background: #fffdf8;
}

.link-tile,
.mini-link,
.project-card a,
.contact-card a {
  position: relative;
}

.link-tile::after,
.mini-link::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-top: 3px solid var(--line);
  border-right: 3px solid var(--line);
  transform: rotate(45deg);
}

.link-tile {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
}

.link-tile h3,
.link-tile p {
  grid-column: 1 / 2;
}

.link-tile::after {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.link-tile:hover,
.mini-link:hover {
  background: var(--mint);
  transform: rotate(-1deg) translateY(-1px);
}

.link-tile h3,
.contact-card h3,
.project-card h3,
.poster-card h3,
.list-card h3 {
  font-size: 1.1rem;
}

.project-card-body {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.project-card-body .mini-links,
.project-skills {
  margin-top: 0.65rem;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
}

.project-card p,
.poster-card p,
.contact-card p,
.link-tile p,
.list-card p,
.intro-copy p {
  font-size: 0.94rem;
}

.contact-card:nth-child(2n) {
  background: #dff0ff;
}

.kde-panel {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  width: min(calc(100% - 1rem), 880px);
}

.panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1.8rem;
  background: #fffdf8;
}

.panel-left,
.panel-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 980px) {
  .intro-card,
  .window-body,
  .folder-hero,
  .gallery-wall,
  .poster-wall,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .home-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .window-toolbar,
  .folder-strip {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .site-shell {
    padding-bottom: 9.75rem;
  }

  .topbar,
  .workspace-main,
  .page-main {
    width: min(calc(100% - 0.75rem), var(--max-width));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.8rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .intro-copy h1,
  .page-header-card h1,
  .folder-hero h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .explorer-window--desktop {
    display: none;
  }

  .mobile-explorer {
    display: block;
  }

  .folder-grid.columns-2,
  .folder-grid.columns-3 {
    grid-template-columns: 1fr;
  }

  .home-folder-grid {
    grid-template-columns: 1fr;
  }

  .kde-panel {
    position: fixed;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    width: min(calc(100% - 0.75rem), 100%);
    margin: 0;
  }

  .panel-inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }

  .panel-left,
  .panel-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .panel-pill {
    min-height: 2.55rem;
    padding: 0.65rem 0.9rem;
  }
}

@media (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }

  .theme-cursor,
  .theme-cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
  }

  .theme-cursor.is-visible,
  .theme-cursor-dot.is-visible {
    opacity: 1;
  }

  .theme-cursor {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(31, 36, 48, 0.85);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(94, 162, 255, 0.12), rgba(255, 216, 107, 0.12), rgba(191, 230, 200, 0.12));
    animation: cursor-shift 9s linear infinite;
    transition: opacity 120ms ease;
    transform: translate(var(--cursor-x, -100px), var(--cursor-y, -100px)) scale(1);
  }

  .theme-cursor.is-pressed {
    transform: translate(var(--cursor-x, -100px), var(--cursor-y, -100px)) scale(0.92);
  }

  .theme-cursor.is-hovering {
    transform: translate(var(--cursor-x, -100px), var(--cursor-y, -100px)) scale(1.14);
    border-color: rgba(94, 162, 255, 0.95);
  }

  .theme-cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(31, 36, 48, 0.85);
    transition: opacity 120ms ease;
    transform: translate(var(--cursor-dot-x, -100px), var(--cursor-dot-y, -100px));
  }
}

.cursor-burst {
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--burst-color);
  border: 2px solid rgba(31, 36, 48, 0.7);
  pointer-events: none;
  z-index: 9998;
  transform: translate(var(--burst-x), var(--burst-y));
  animation: burst-float 820ms ease-out forwards;
}

@keyframes cursor-shift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes burst-float {
  from {
    opacity: 0.95;
    transform: translate(var(--burst-x), var(--burst-y)) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(var(--burst-x) + var(--burst-dx)), calc(var(--burst-y) + var(--burst-dy))) scale(0.4);
  }
}
