/* ASK Studios - engineering division theme */
.theme-studios { --accent: #22c7e0; }

.studio-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.terminal {
  border-radius: 16px; border: 1px solid var(--line-2); background: #090b10; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(34,199,224,.06), 0 0 80px rgba(34,199,224,.08);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3a; }
.terminal-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.terminal pre { margin: 0; padding: 24px 22px 28px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--text); overflow-x: auto; }
.terminal .c { color: var(--dim); }
.terminal .s { color: #8b78ec; }
.terminal .q { color: #f2c14e; }
.terminal .ok { color: #3ddc97; }
.terminal .go { color: var(--teal); }
.terminal .d { color: var(--muted); }
.terminal .cursor { display: inline-block; width: 8px; height: 16px; background: var(--teal); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack-col { padding: 28px 0 0; border-top: 1px solid var(--line-2); }
.stack-col h3 { font-size: 17px; margin-bottom: 18px; letter-spacing: -0.01em; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }

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

.work-card { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 50%, rgba(34,199,224,.12), transparent 70%), var(--surface); }
.work-go { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.work-go svg { width: 32px; height: 32px; }
.work-card:hover .work-go { background: var(--text); color: var(--bg); transform: rotate(45deg); }

/* Projects */
.repo-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.repo-toolbar .filter-bar { flex: 1 1 320px; min-width: 0; padding: 0; }
.repo-search { position: relative; flex: 0 1 320px; min-width: 220px; }
.repo-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.repo-search .input { padding-left: 42px; height: 44px; border-radius: 999px; }
.repo-count { margin: 20px 0 24px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); min-height: 18px; }
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.repo-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); min-height: 230px; }
.repo-card:hover { border-color: rgba(34,199,224,.35); transform: translateY(-3px); }
.repo-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.repo-stars { color: #f2c14e; letter-spacing: 0; }
.repo-card h3 { font-size: 20px; text-transform: capitalize; letter-spacing: -0.015em; line-height: 1.25; word-break: break-word; }
.repo-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.repo-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.repo-lang { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.repo-lang i { width: 9px; height: 9px; border-radius: 50%; }
.repo-open { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--text); font-weight: 600; font-size: 14px; }
.repo-open:hover { color: var(--accent); }
.repo-empty { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.repo-card.is-skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), rgba(255,255,255,.06), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.repo-card.is-skeleton span:nth-child(1) { width: 30%; }
.repo-card.is-skeleton span:nth-child(2) { width: 70%; height: 22px; }
.repo-card.is-skeleton span:nth-child(3) { width: 90%; height: 48px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.readme { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); color: var(--text); overflow: hidden; }
.readme[open] { display: flex; flex-direction: column; }
.readme::backdrop { background: rgba(3,4,6,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.readme-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.readme-head h2 { font-size: 24px; text-transform: capitalize; margin-top: 6px; }
.readme-body { padding: 28px; overflow-y: auto; }
.readme-body .spinner { margin: 48px auto; }

.md { font-size: 16px; line-height: 1.7; color: var(--muted); word-wrap: break-word; }
.md > * + * { margin-top: 16px; }
.md h1, .md h2, .md h3, .md h4 { color: var(--text); margin-top: 32px; line-height: 1.25; }
.md h1 { font-size: 30px; } .md h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .md h3 { font-size: 19px; }
.md a { color: var(--accent); }
.md ul, .md ol { padding-left: 22px; list-style: revert; }
.md li + li { margin-top: 6px; }
.md code { font-family: var(--font-mono); font-size: 13.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.md pre { background: #07090d; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md img { max-width: 100%; height: auto; border-radius: 10px; display: inline-block; }
.md table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; }
.md blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.md hr { border: 0; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .studio-hero-grid { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .repo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .process--3 { grid-template-columns: 1fr; row-gap: 36px; }
  .work-card { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .work-go { width: 64px; height: 64px; }
}
@media (max-width: 600px) {
  .stack { grid-template-columns: 1fr; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-search { flex: 1 1 100%; }
  .terminal pre { font-size: 12px; padding: 18px 16px 22px; }
  .readme { max-height: calc(100vh - 24px); width: calc(100vw - 16px); }
  .readme-head, .readme-body { padding: 18px; }
}
