/* =========================================================
   VANT — Works page · Monochromatic System Modules + Brand Badge
   ========================================================= */
:root { --works-accent: #64d9c2; }

.works-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(92px, 12vw, 150px) 54px;
  overflow: hidden;
}
.works-hero .hero-bg {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(100,217,194,.15), transparent 38%),
    radial-gradient(ellipse at 12% 70%, rgba(89,123,190,.12), transparent 34%);
}
.works-hero .hero-copy { max-width: 850px; }
.works-hero .hero-eyebrow,
.works-hero .section-eyebrow { letter-spacing: .04em; }
.works-hero .hero-title {
  max-width: 850px;
  line-height: 1.18;
  letter-spacing: -.045em;
}
.works-hero .hero-title .line3 {
  display: block;
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
  opacity: .72;
}
.works-stats {
  width: min(100% - 40px, 1120px);
  margin: 60px auto 0;
  padding: 20px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
[data-theme="light"] .works-stats {
  background: rgba(255,255,255,.72);
  border-color: rgba(15,23,42,.09);
  box-shadow: 0 12px 40px rgba(15,23,42,.05);
}

#projects.band { padding-block: clamp(70px, 8vw, 112px); }
.works-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.works-head .section-head { margin: 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--card-line, rgba(255,255,255,.1));
  border-radius: 14px;
  background: rgba(127,127,127,.06);
}
.filters button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filters button:hover { background: rgba(127,127,127,.1); }
.filters button.active {
  color: #071311;
  background: #70d9c3;
  border-color: #70d9c3;
  box-shadow: 0 5px 18px rgba(100,217,194,.17);
}
[data-theme="light"] .filters button.active { color: #071311; }

/* =========================================================
   FOLDER CARDS GRID
   ========================================================= */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: 38px;
}

.project-card.folder-card {
  --a: var(--accent, #00e5b0);
  --card-bg: #0c101a;
  --card-hover: #101624;
  --card-stage: #070a11;
  --card-fg: #f8fafc;
  --card-muted: #8b9bb4;
  --card-line: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 17px;
  border-radius: 20px;
  background: linear-gradient(155deg, var(--card-bg), color-mix(in srgb, var(--card-bg) 84%, var(--a)));
  border: 1px solid var(--card-line);
  color: var(--card-fg);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.13);
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease, background .35s ease;
  -webkit-tap-highlight-color: transparent;
}

.folder-card[hidden] { display: none !important; }
.folder-card, .folder-card *, .folder-card *::before, .folder-card *::after { box-sizing: border-box; }

[data-theme="light"] .project-card.folder-card {
  --card-bg: #ffffff;
  --card-hover: #f8fafc;
  --card-stage: #f1f5f9;
  --card-fg: #0f172a;
  --card-muted: #475569;
  --card-line: rgba(15, 23, 42, 0.1);
  background: linear-gradient(155deg, #fff, #f7fafc);
  box-shadow: 0 12px 34px rgba(15,23,42,.065);
}

.folder-back {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}

.folder-index {
  color: var(--card-muted);
  font-weight: 700;
  letter-spacing: .06em;
  transition: color .3s ease;
}

.folder-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-fg) 3%, transparent);
  border: 1px solid var(--card-line);
  color: var(--card-muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: all .3s ease;
}

.folder-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: all .3s ease;
}

/* =========================================================
   PREVIEW STAGE + WIREFRAME + LOGO + HOVER SWATCH BAR
   ========================================================= */
.folder-papers {
  position: relative;
  z-index: 2;
  height: clamp(175px, 19vw, 220px);
  margin: 0 0 18px;
  padding: 0;
  border-radius: 14px;
  background: var(--card-stage);
  border: 1px solid color-mix(in srgb, var(--a) 17%, var(--card-line));
  overflow: hidden;
}

.stage-wireframe {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  opacity: .55;
  transition: opacity .35s ease, transform .35s var(--ease);
  pointer-events: none;
}

.wf-side, .wf-top, .wf-card {
  background: color-mix(in srgb, var(--card-fg) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-fg) 6%, transparent);
  border-radius: 7px;
}

.wf-side { padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.wf-bar { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--card-fg) 10%, transparent); }
.wf-body { display: grid; grid-template-rows: 24px 1fr; gap: 8px; }
.wf-top { display: flex; align-items: center; padding: 0 8px; }
.wf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* P3 = Uniform Logo Stage */
.folder-papers .paper.p3 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  z-index: 2;
  transition: transform .35s var(--ease);
}
.folder-papers .paper.p3 .paper-head { display: none; }

.folder-papers .paper.p3 .paper-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--a) 10%, transparent), rgba(8, 13, 23, 0.25));
}

.folder-papers .paper.p3 .paper-media img {
  display: block;
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

/* Soft rounded pill for logos that need a light backing */
.folder-papers .paper.p3 .paper-media.light {
  background: radial-gradient(circle at center, color-mix(in srgb, var(--a) 10%, transparent), rgba(8, 13, 23, 0.25));
}
.folder-papers .paper.p3 .paper-media.light img {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* P2 = Floating Bottom Swatches Bar on Hover (keeps logo visible) */
.folder-papers .paper.p2 {
  position: absolute;
  inset: auto 10px 10px 10px;
  height: auto;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 16, 27, 0.88);
  border: 1px solid color-mix(in srgb, var(--a) 40%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease);
}

.folder-papers .paper.p2 .paper-head {
  display: flex;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  color: var(--a);
}
.folder-papers .paper.p2 .paper-head span:first-child::before { content: "// "; opacity: .7; }

.paper-swatches { display: flex; align-items: center; gap: 6px; }
.paper-swatches i {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--a);
}
.paper-swatches i:nth-child(2) { background: color-mix(in srgb, var(--a) 60%, #000); }
.paper-swatches i:nth-child(3) { background: color-mix(in srgb, var(--a) 35%, #fff); }
.paper-swatches i:nth-child(4) { background: #101018; }

/* P1 = Tech Tags at Card Footer */
.folder-card > .paper.p1 {
  position: static;
  order: 3;
  margin: 15px 0 0;
  min-height: 28px;
  z-index: 2;
}
.paper.p1 .paper-head { display: none; }
.paper-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.paper-tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  color: var(--card-muted);
  background: color-mix(in srgb, var(--a) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--a) 20%, var(--card-line));
  padding: 4px 9px;
  border-radius: 7px;
  transition: border-color .3s ease, color .3s ease;
}

/* Title & Action Row */
.folder-front {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}
.folder-info { min-width: 0; }
.folder-info h3 { margin: 0; font-size: 1.24rem; font-weight: 800; letter-spacing: -.02em; color: var(--card-fg); }
.folder-meta { margin: 6px 0 0; font-size: .82rem; color: var(--card-muted); }
.folder-desc { display: none !important; }

.folder-go {
  position: static;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-inline-start: auto;
  border-radius: 11px;
  background: color-mix(in srgb, var(--card-fg) 4%, transparent);
  border: 1px solid var(--card-line);
  color: var(--card-muted);
  transition: all .3s var(--ease);
}
.folder-go svg { width: 18px; height: 18px; }

.folder-open {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
}
.folder-open:focus-visible { outline: 2px solid var(--a); outline-offset: 4px; }

/* =========================================================
   HOVER & REVEAL STATES
   ========================================================= */
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) {
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--a) 55%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .24), 0 0 0 1px color-mix(in srgb, var(--a) 22%, transparent);
}
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .folder-index { color: var(--a); }
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .folder-status-pill {
  border-color: color-mix(in srgb, var(--a) 45%, transparent);
  color: var(--a);
}
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .folder-status-dot {
  background: var(--a);
  box-shadow: 0 0 8px var(--a);
}
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .folder-status-text::after { content: " // READY"; }
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .stage-wireframe { opacity: .22; transform: scale(.97); }
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .paper.p2 { opacity: 1; transform: translateY(0); }
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .paper.p3 { transform: translateY(-16px) scale(0.92); }
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .paper-tags span {
  border-color: color-mix(in srgb, var(--a) 35%, transparent);
  color: var(--card-fg);
}
.folder-card:not(.is-calm):is(:hover, :has(.folder-open:focus-visible)) .folder-go {
  background: var(--a);
  border-color: var(--a);
  color: #05080f;
  box-shadow: 0 0 16px color-mix(in srgb, var(--a) 45%, transparent);
}

.folder-card.is-opening { transform: scale(0.98); border-color: var(--a); }
.folder-card.is-active { visibility: hidden; }

.js .folder-card.will-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js .folder-card.will-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .folder-card, .folder-card *, .pd *, .pd::backdrop { transition: none !important; }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   PROJECT DETAILS DIALOG (Clicked Modal)
   ========================================================= */
html.pd-lock { overflow: hidden; }

.pd {
  --a: #00e5b0;
  --pd-surface: #0b101b;
  --pd-fg: #f8fafc;
  --pd-muted: #94a3b8;
  --pd-line: rgba(255, 255, 255, .09);
  --paper-bg: #111726;
  --paper-fg: #f1f5f9;
  --paper-line: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 4vh, 48px) 16px;
  border: 0;
  background: transparent;
  color: var(--pd-fg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pd[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.pd, .pd *, .pd *::before, .pd *::after { box-sizing: border-box; }

[data-theme="light"] .pd {
  --pd-surface: #ffffff;
  --pd-fg: #0f172a;
  --pd-muted: #475569;
  --pd-line: rgba(15, 23, 42, .1);
  --paper-bg: #f8fafc;
  --paper-fg: #0f172a;
  --paper-line: rgba(15, 23, 42, .1);
}

.pd::backdrop {
  background: rgba(3, 5, 10, .78);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .35s ease;
}
.pd.is-shown::backdrop { opacity: 1; }

.pd-panel {
  position: relative;
  width: min(920px, 100%);
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--pd-surface);
  border: 1px solid var(--pd-line);
  border-top: 3px solid var(--a);
  transform-origin: 0 0;
  box-shadow: 0 30px 75px rgba(0, 0, 0, .65), 0 0 40px -12px color-mix(in srgb, var(--a) 40%, transparent);
}

.pd-folder {
  position: relative;
  padding: 54px clamp(18px, 4vw, 36px) 28px;
  background:
    radial-gradient(90% 100% at 50% 0%, color-mix(in srgb, var(--a) 18%, transparent), transparent 70%),
    rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--pd-line);
}

.pd-index {
  position: absolute;
  top: 18px;
  inset-inline-start: clamp(20px, 4vw, 36px);
  font: 700 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  color: var(--a);
}
.pd-index::before { content: "PROJECT_MODULE // "; opacity: .75; }

.pd-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--pd-fg) 5%, transparent);
  color: var(--pd-fg);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pd-close svg { width: 18px; height: 18px; }
.pd-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

.pd-papers {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}
.pd-papers .paper {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  min-height: 185px;
  border-radius: 14px;
  background: var(--paper-bg);
  color: var(--paper-fg);
  border: 1px solid var(--paper-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}
.pd-papers .paper.p3 { order: -1; padding: 12px; }
.pd-papers .paper.p3 .paper-head,
.pd-papers .paper.p1 .paper-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--a); }
.pd-papers .paper-tags span {
  background: color-mix(in srgb, var(--a) 15%, transparent);
  border-color: color-mix(in srgb, var(--a) 30%, transparent);
  color: var(--paper-fg);
}
.pd-papers .paper-swatches { flex-wrap: wrap; }
.pd-papers .paper-swatches i { flex: 1 1 40%; height: 36px; border-radius: 8px; }
.pd-papers .paper-media {
  width: 100%;
  height: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(11, 16, 26, 0.94);
  padding: 10px;
}
.pd-papers .paper-media.light { background: #ffffff; }
.pd-papers .paper-media img { width: 34%; max-width: 120px; height: auto; object-fit: contain; }
.pd-papers .paper-media.wide img { width: 46%; max-width: 165px; height: auto; }

.pd-body { padding: clamp(22px, 4vw, 36px); }
.pd-head { display: flex; align-items: center; gap: 16px; }
.pd-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--a) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--a) 35%, transparent);
}
.pd-logo img { max-width: 68%; max-height: 68%; object-fit: contain; }
.pd-logo.light { background: #fff; }
.pd-head h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; color: var(--pd-fg); }
.pd-meta { margin: 4px 0 0; color: var(--a); font-weight: 700; font-size: .92rem; }

/* Full width description */
.pd-desc {
  display: block;
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  line-height: 1.95;
  font-size: 0.98rem;
  color: var(--pd-muted);
}

.pd-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}
.pd-info > div {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--pd-line);
  background: color-mix(in srgb, var(--pd-fg) 3%, transparent);
}
.pd-info dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  color: var(--pd-muted);
  margin-bottom: 6px;
}
.pd-info dd { margin: 0; font-weight: 700; font-size: .95rem; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--a) 15%, transparent);
  color: var(--pd-fg);
}

.pd-extra:empty { display: none; }
.pd-extra { margin-top: 20px; color: var(--pd-muted); line-height: 1.8; }

.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.pd-demo-btn, .pd-visit, .pd-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.pd-demo-btn, .pd-visit { background: var(--a); color: #05080f; border: 0; }
.pd-demo-btn:hover, .pd-visit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--a) 40%, transparent); }
.pd-cta { color: var(--pd-fg); border: 1px solid var(--pd-line); background: transparent; }
.pd-cta:hover { background: color-mix(in srgb, var(--pd-fg) 6%, transparent); }
.pd-soon {
  padding: 11px 18px;
  border-radius: 11px;
  font-size: .88rem;
  color: var(--pd-muted);
  border: 1px dashed var(--pd-line);
}
.pd-demo-btn[hidden], .pd-visit[hidden], .pd-soon[hidden] { display: none; }

/* =========================================================
   IDE INTERACTIVE PLAYGROUND
   ========================================================= */
.playground-head {
  margin-top: 64px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.ph-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid var(--card-line, rgba(255, 255, 255, 0.1));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84rem;
  color: #94a3b8;
}
.ph-prompt b { color: #00e5b0; }
.ph-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00e5b0;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ide {
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
}

.ide-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #070a11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  color: #64748b;
}
.ide-dots { display: flex; gap: 6px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.ide-dots i:nth-child(1) { background: #ef4444; }
.ide-dots i:nth-child(2) { background: #f59e0b; }
.ide-dots i:nth-child(3) { background: #10b981; }
.ide-path b { color: #f8fafc; }

.ide-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
}

.ide-explorer {
  background: #080c14;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px;
}
.ide-explorer-head {
  padding: 4px 10px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #64748b;
}

.ide-tree { display: flex; flex-direction: column; gap: 4px; }
.ide-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  text-align: start;
  cursor: pointer;
  direction: ltr;
}
.ide-tree-item:hover { background: rgba(255, 255, 255, 0.05); color: #f8fafc; }
.ide-tree-item.active { background: rgba(0, 229, 176, 0.12); color: #00e5b0; font-weight: 700; }
.ide-file-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.ide-main { display: flex; flex-direction: column; min-width: 0; }
.ide-tabs {
  display: flex;
  overflow-x: auto;
  background: #070a11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ide-tab {
  padding: 10px 16px;
  border: 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  cursor: pointer;
  white-space: nowrap;
}
.ide-tab.active {
  background: #0b0f19;
  color: #00e5b0;
  box-shadow: inset 0 2px 0 #00e5b0;
}

.ide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: #0d1320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-switch { display: flex; gap: 6px; }
.ide-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.ide-switch button svg { width: 15px; height: 15px; }
.ide-switch button.active {
  background: #00e5b0;
  border-color: #00e5b0;
  color: #06100e;
}

.ide-brand-note { font-size: .78rem; color: #94a3b8; }

.ide-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #080f0e;
}

.ide-readme { padding: 26px; line-height: 1.9; }
.ide-readme h3 { font-size: 1.3rem; color: #00e5b0; margin-bottom: 10px; }
.ide-readme h4 { font-size: 1rem; margin: 18px 0 8px; color: #f8fafc; }
.ide-readme ul { padding-inline-start: 20px; color: #cbd5e1; }
.readme-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.readme-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 176, 0.12);
  color: #00e5b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
}

.ide-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  background: #00e5b0;
  color: #05120f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
}
.ide-status svg { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 4px; }
.ide-status-right { margin-inline-start: auto; display: flex; gap: 14px; }

.ide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid rgba(127, 127, 127, 0.14);
}
.ide-cta p { margin: 0; font-weight: 700; }

/* =========================================================
   OTHER SECTIONS & RESPONSIVE
   ========================================================= */
#process.section, #tech.band, #testimonials.section, #cta.section {
  padding-block: clamp(64px, 8vw, 100px);
}
#process .section-head, #tech .section-head, #testimonials .section-head { margin-bottom: 34px; }
.timeline { max-width: 1000px; margin-inline: auto; }
.tl-step { position: relative; z-index: 1; }
.tl-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(112,217,195,.35);
  border-radius: 50%;
  background: color-mix(in srgb, #70d9c3 12%, transparent);
  color: #70d9c3;
  font-weight: 800;
}
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech-list span {
  padding: 10px 16px;
  border: 1px solid rgba(127,127,127,.16);
  border-radius: 10px;
  background: rgba(127,127,127,.045);
  font-size: .9rem;
  transition: border-color .2s ease, transform .2s ease;
}
.tech-list span:hover { border-color: rgba(112,217,195,.5); transform: translateY(-2px); }
.testimonial {
  max-width: 700px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(127,127,127,.15);
  border-radius: 18px;
  background: rgba(127,127,127,.045);
  text-align: center;
}
.testimonial blockquote { margin: 12px 0; line-height: 1.9; }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(112,217,195,.22);
  border-radius: 22px;
  background: radial-gradient(ellipse at 85% 0%, rgba(112,217,195,.12), transparent 50%), rgba(127,127,127,.045);
}

@media (max-width: 760px) {
  .works-hero { padding-top: 100px; }
  .works-stats { width: calc(100% - 28px); margin-top: 38px; }
  .works-head { align-items: stretch; }
  .works-head .section-head { width: 100%; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; white-space: nowrap; }
  .folders-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .folder-card { padding: 15px; }
  .folder-papers { height: 190px; }
  .pd { padding: 10px; }
  .pd-panel { border-radius: 16px; }
  .pd-folder { padding: 54px 14px 18px; }
  .pd-papers { grid-template-columns: 1fr 1fr; }
  .pd-papers .paper { min-height: 125px; }
  .pd-papers .paper.p3 { grid-column: 1 / -1; }
  .pd-papers .paper-media { min-height: 90px; }
  .pd-body { padding: 20px 16px; }
  .pd-info { grid-template-columns: 1fr; }
  .pd-actions > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .ide-body { grid-template-columns: 1fr; }
  .ide-explorer { border-inline-end: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .ide-tree { flex-direction: row; overflow-x: auto; }
  .ide-tree-item { width: auto; white-space: nowrap; }
  .ide-frame-wrap iframe { height: 460px; }
}

@media (max-width: 420px) {
  .works-hero .hero-title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .works-stats { padding: 14px 6px; }
  .folder-papers { height: 168px; }
  .pd-papers { grid-template-columns: 1fr; }
  .pd-papers .paper.p3 { grid-column: auto; }
}