/* Stellaria public-site refinements: development notice, featured carousel, readable articles. */
.dev-note {
  flex: 0 0 auto;
  max-width: 170px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(124, 106, 167, .10);
  color: rgba(23,24,29,.56);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.core-tech-grid article { min-height: 286px; }
.article-grid a.article-card,
.article-grid a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
  box-shadow: 0 16px 45px rgba(20,24,33,.06);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.article-grid a:hover { transform: translateY(-5px); background: rgba(255,255,255,.88); box-shadow: 0 22px 60px rgba(20,24,33,.10); }
.featured-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.featured-card { scroll-snap-align: start; min-height: 260px; padding: 28px; border: 1px solid rgba(23,24,29,.10); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(237,231,247,.62)); box-shadow: 0 18px 52px rgba(20,24,33,.08); display: flex; flex-direction: column; justify-content: space-between; transition: transform .24s ease, box-shadow .24s ease; }
.featured-card:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(20,24,33,.12); }
.featured-card span { color: var(--violet); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.featured-card h3 { margin: 18px 0 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.02; letter-spacing: -.055em; }
.featured-card p { color: var(--muted); margin: 0; }
.team-card { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(23,24,29,.10); border-radius: 36px; background: rgba(255,255,255,.64); box-shadow: 0 22px 70px rgba(20,24,33,.08); }
.team-card h2 { margin: 0; font-size: clamp(38px, 7vw, 86px); line-height: .92; letter-spacing: -.075em; }
.team-card p { color: var(--muted); font-size: 18px; line-height: 1.85; }
.team-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.team-tags span { padding: 8px 12px; border-radius: 999px; background: #ede7ff; color: #6741b7; font-size: 13px; font-weight: 900; }
.demo-shot { background: rgba(255,255,255,.7); min-height: 260px; }
.demo-shot img { width: 100%; height: 260px; object-fit: cover; object-position: top center; border-radius: 24px 24px 0 0; background: #fff; cursor: zoom-in; }
.article-hero { padding: 150px min(7vw,80px) 42px; }
.article-hero h1 { max-width: 960px; font-size: clamp(46px, 8vw, 92px); line-height: .92; letter-spacing: -.075em; margin: 10px 0 20px; }
.article-hero p { max-width: 820px; color: var(--muted); font-size: 19px; }
.article-body { width: min(860px, calc(100% - 42px)); margin: 0 auto; padding: 42px 0 100px; }
.article-body h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.055em; margin: 46px 0 14px; }
.article-body p, .article-body li { color: rgba(67,70,82,.92); font-size: 18px; line-height: 1.92; }
.article-body .note { padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.68); color: var(--muted); }
.article-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.character-main-image, .gallery-grid img { cursor: zoom-in; }
.comic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.comic-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; padding: 18px; border: 1px solid rgba(23,24,29,.10); border-radius: 30px; background: rgba(255,255,255,.68); box-shadow: 0 18px 50px rgba(20,24,33,.08); transition: transform .22s ease, box-shadow .22s ease; }
.comic-card:hover { transform: translateY(-5px); box-shadow: 0 26px 70px rgba(20,24,33,.12); }
.comic-card img { width: 180px; height: 240px; object-fit: cover; object-position: top center; border-radius: 22px; background: #fff; }
.comic-card span { color: var(--violet); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.comic-card h3 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.055em; }
.comic-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.comic-reader { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 100px; display: grid; gap: 22px; }
.comic-panel { margin: 0; padding: 14px; border: 1px solid rgba(23,24,29,.10); border-radius: 30px; background: rgba(255,255,255,.72); box-shadow: 0 18px 50px rgba(20,24,33,.08); }
.comic-panel img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 22px; background: #fff; cursor: zoom-in; }
.comic-panel figcaption { padding: 12px 6px 4px; color: var(--muted); font-weight: 750; }
.stellaria-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(12,12,16,.82); backdrop-filter: blur(20px) saturate(130%); }
.stellaria-lightbox.open { display: flex; animation: lightboxFade .18s ease both; }
.stellaria-lightbox__frame { position: relative; width: min(1180px, 100%); max-height: 92vh; display: grid; gap: 14px; }
.stellaria-lightbox__image { width: 100%; max-height: calc(92vh - 76px); object-fit: contain; border-radius: 24px; box-shadow: 0 34px 100px rgba(0,0,0,.36); background: rgba(255,255,255,.06); }
.stellaria-lightbox__caption { margin: 0 auto; max-width: 900px; padding: 11px 16px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); text-align: center; font-weight: 750; line-height: 1.5; }
.stellaria-lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 1; }
body.lightbox-open { overflow: hidden; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
.character-heading { align-items: center; }
.work-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(360px, 100%);
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(124,106,167,.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(237,231,247,.70));
  box-shadow: 0 18px 50px rgba(20,24,33,.09), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(18px) saturate(140%);
}
.work-filter::after { content: "⌄"; position: absolute; right: 18px; top: 50%; transform: translateY(-54%); color: var(--violet); font-size: 18px; font-weight: 900; pointer-events: none; }
.work-filter span { flex: 0 0 auto; color: var(--violet); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; white-space: nowrap; }
.work-filter select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.72); padding: 11px 42px 11px 16px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 900; outline: none; box-shadow: inset 0 0 0 1px rgba(23,24,29,.08); cursor: pointer; }
.work-filter select:focus-visible { box-shadow: inset 0 0 0 2px rgba(124,106,167,.42), 0 0 0 4px rgba(124,106,167,.12); }
.collection-toolbar { margin: 4px 0 30px; }
.collection-search-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(280px, 1.22fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(237,231,247,.64));
  box-shadow: 0 28px 80px rgba(20,24,33,.10), inset 0 1px 0 rgba(255,255,255,.84);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(145%);
}
.collection-search-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -95px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,167,.18), transparent 64%);
  pointer-events: none;
}
.collection-search-copy { position: relative; z-index: 1; display: grid; gap: 5px; }
.collection-search-copy span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.collection-search-copy strong {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.collection-search-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  min-height: 66px;
  padding: 7px 10px 7px 9px;
  border: 1px solid rgba(124,106,167,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 50px rgba(20,24,33,.10), inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.collection-search-box:focus-within {
  transform: translateY(-2px);
  border-color: rgba(124,106,167,.42);
  box-shadow: 0 24px 68px rgba(20,24,33,.14), 0 0 0 6px rgba(124,106,167,.10), inset 0 1px 0 rgba(255,255,255,.94);
}
.collection-search-box span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,106,167,.18), rgba(124,106,167,.08));
  color: var(--violet);
  font-size: 22px;
  font-weight: 950;
}
.collection-search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 12px 12px 6px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  outline: none;
}
.collection-search-box input::placeholder { color: rgba(103,107,120,.64); font-weight: 760; }
.collection-grid { align-items: stretch; }
.collection-card { min-height: 280px; }
.collection-hero h1 { max-width: 1060px; }
.spx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.spx-grid .product-card { min-height: 300px; }
@media (max-width: 1120px) { .dev-note { max-width: 120px; font-size: 10px; padding: 4px 7px; } .spx-grid { grid-template-columns: 1fr; } }
@media (max-width: 920px) {
  .dev-note { position: absolute; left: 28px; top: calc(100% + 6px); z-index: 4; display: inline-flex; max-width: none; padding: 4px 8px; font-size: 9.5px; background: rgba(255,255,255,.76); border: 1px solid rgba(124,106,167,.18); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 8px 24px rgba(20,24,33,.08); }
  .core-tech-grid { grid-template-columns: 1fr; }
  .featured-carousel { grid-auto-columns: minmax(78vw, 1fr); }
  .team-card { grid-template-columns: 1fr; border-radius: 28px; }
  .article-hero { padding: 128px 24px 34px; }
  .article-body { width: min(100% - 30px, 860px); }
  .article-body p, .article-body li { font-size: 16px; line-height: 1.85; }
  .comic-grid { grid-template-columns: 1fr; }
  .work-filter { width: 100%; min-width: 0; justify-content: space-between; }
  .collection-search-card { grid-template-columns: 1fr; border-radius: 28px; }
}
@media (max-width: 520px) {
  .demo-shot img { height: 220px; }
  .comic-card { grid-template-columns: 120px 1fr; gap: 14px; border-radius: 24px; }
  .comic-card img { width: 120px; height: 168px; border-radius: 18px; }
  .stellaria-lightbox { padding: 14px; }
  .stellaria-lightbox__image { max-height: calc(92vh - 92px); border-radius: 18px; }
  .stellaria-lightbox__caption { border-radius: 18px; font-size: 13px; }
  .work-filter { display: grid; grid-template-columns: 1fr; border-radius: 24px; padding: 12px; }
  .work-filter::after { right: 24px; top: auto; bottom: 19px; transform: none; }
  .collection-search-card { padding: 16px; border-radius: 24px; }
  .collection-search-box { grid-template-columns: 40px 1fr; min-height: 58px; border-radius: 22px; }
  .collection-search-box span { width: 36px; height: 36px; font-size: 19px; }
  .collection-search-box input { font-size: 14px; }
}
