
/* DD language & development tools — reuses the original Concepts route, not its gallery. */
:root{color-scheme:dark;--bg:#0b0a13;--fg:#f6f3ff;--muted:#a99eb6;--purple:#b98bff}
*{box-sizing:border-box}
body.studio-page{margin:0;min-width:300px;background:radial-gradient(ellipse at 56% 7%,#49306830,transparent 46%),#0b0a13;color:var(--fg);font-family:"DM Sans",system-ui,sans-serif}
.studio-page button,.studio-page a{font:inherit}
.studio-page a{color:inherit}
.studio-page button{cursor:pointer}
.studio-page button:focus-visible,.studio-page a:focus-visible{outline:2px solid #eacfff;outline-offset:4px}
.studio-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:76px;padding:.85rem clamp(1rem,4vw,4rem);border-bottom:1px solid #b9a7d522;background:#0e0c16}
.studio-brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;font-weight:800}
.studio-brand img{width:34px;height:34px;object-fit:contain}
.studio-brand small{display:block;color:#b39bc9;font-size:.58rem;letter-spacing:.15em;margin-top:.1rem}
.studio-back{border:1px solid #ac91c344;border-radius:100px;background:#221b2e;padding:.67rem .98rem;font-size:.72rem!important;font-weight:800!important;text-decoration:none;white-space:nowrap}
.studio-main{max-width:1690px;margin:0 auto;padding:clamp(1.5rem,3.5vw,4rem) clamp(1rem,4vw,4rem) 3rem}
.studio-overline{display:flex;justify-content:space-between;gap:1rem;color:#b49acb;font-size:.63rem;letter-spacing:.15em;font-weight:800}
.studio-hero{max-width:920px;margin:clamp(2rem,5vw,5rem) 0 clamp(2rem,4vw,4rem)}
.studio-hero>p{margin:0 0 1rem;color:#bd9af2;font-size:.65rem;font-weight:800;letter-spacing:.18em}
.studio-hero h1{margin:0;font-size:clamp(3rem,6.2vw,7rem);line-height:.98;letter-spacing:-.083em}
.studio-hero h1 em{font-style:normal;color:#be9af7}
.studio-hero>span{display:block;max-width:77ch;color:#b4acc5;line-height:1.7;font-size:clamp(.84rem,1vw,1rem);margin-top:1.6rem}
.stack-gallery{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,.88fr);align-items:start;gap:clamp(1rem,2vw,2rem)}
.stack-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:dense;grid-auto-rows:clamp(128px,11.3vw,177px);gap:clamp(.55rem,1.1vw,1rem)}
.stack-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:.23rem;padding:clamp(.85rem,1.5vw,1.5rem);text-align:left;min-width:0;overflow:hidden;border:1px solid #9c85b447;border-radius:19px;color:#eee9fa;background:linear-gradient(146deg,#2a2039 5%,#17141f 86%);box-shadow:0 15px 26px #0003;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.stack-tile:nth-child(1),.stack-tile:nth-child(9){grid-column:span 2}
.stack-tile:nth-child(5),.stack-tile:nth-child(12){grid-row:span 2}
.stack-tile:nth-child(3n){transform:translateY(5px)}
.stack-tile:nth-child(4n){transform:translateY(-4px)}
.stack-tile:hover{border-color:#cdb6e6;transform:translateY(-5px)}
.stack-tile[aria-pressed=true]{border-color:#d8b2ff;background:linear-gradient(140deg,#574077,#291a43 76%);box-shadow:0 0 0 2px #a47cdb35,0 14px 35px #0007}
.stack-tile-corner{position:absolute;top:.8rem;right:1rem;font-size:.62rem;letter-spacing:.1em;color:#ab91c7;font-weight:850}
.stack-tile-icon{display:grid;place-items:center;position:absolute;top:1rem;left:1rem;width:clamp(39px,5vw,66px);height:clamp(39px,5vw,66px);border:1px solid #ffffff2c;border-radius:15px;background:linear-gradient(140deg,#2e2b4b,#171726);box-shadow:inset 0 1px #ffffff19;color:#c4a6f3;font-size:clamp(1.05rem,2vw,2rem);font-weight:900;letter-spacing:-.07em}
.stack-tile--javascript .stack-tile-icon{color:#f1df91;background:#50482a}
.stack-tile--typescript .stack-tile-icon{color:#b3dfff;background:#1c4360}
.stack-tile--react .stack-tile-icon{color:#97daff}
.stack-tile--nodejs .stack-tile-icon{color:#a2d49d}
.stack-tile--sqlite .stack-tile-icon,.stack-tile--postgres .stack-tile-icon,.stack-tile--neon .stack-tile-icon{color:#9ed9e7}
.stack-tile strong{font-size:clamp(.88rem,1.27vw,1.16rem);line-height:1.18;letter-spacing:-.035em}
.stack-tile small{font-size:.64rem;color:#a89ab7}
.stack-inspector{position:sticky;top:20px;display:flex;flex-direction:column;min-width:0;padding:clamp(1.2rem,2.2vw,2.3rem);border:1px solid #9d86b963;border-radius:23px;background:radial-gradient(ellipse at 80% 0%,#73599d2d,transparent 45%),linear-gradient(145deg,#211b2c,#100e17);box-shadow:0 20px 45px #0006}
.stack-inspector-top{display:flex;justify-content:space-between;gap:1rem;color:#bda4d9;letter-spacing:.13em;font-size:.62rem;font-weight:800}
.stack-inspector-symbol{display:grid;place-items:center;margin:1.5rem 0 1.1rem;width:96px;height:96px;border:1px solid #bda4e17e;border-radius:23px;background:linear-gradient(140deg,#493267,#241a38);color:#e7c9ff;font-size:2.55rem;font-weight:900}
.stack-inspector h2{font-size:clamp(1.75rem,2.75vw,3rem);margin:0 0 .5rem;letter-spacing:-.055em}
.stack-inspector>p{font-size:.86rem;line-height:1.7;margin:0;color:#c2b7ce}
.stack-inspector-purpose{display:grid;gap:.55rem;margin:1.65rem 0 1.15rem;padding-top:1.1rem;border-top:1px solid #a890bd38}
.stack-inspector-purpose span{font-size:.6rem;font-weight:800;letter-spacing:.12em;color:#b49ac9}
.stack-inspector-purpose strong{font-size:.85rem;line-height:1.5}
.stack-inspector-preview{margin:0;overflow:hidden;border:1px solid #9885aa49;border-radius:12px;background:#0d0c15}
.stack-inspector-preview img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain}
.stack-inspector-preview figcaption{padding:.7rem;color:#a396b4;font-size:.66rem;line-height:1.4}
.stack-inspector-caveat{font-size:.66rem;line-height:1.5;color:#9284a0;margin-top:1rem}
.studio-bottom-note{margin:2.5rem 0 0;max-width:70ch;color:#8c8298;line-height:1.65;font-size:.73rem}
.studio-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.3rem clamp(1rem,4vw,4rem);border-top:1px solid #ffffff1c;color:#9686a7;font-size:.73rem}
.studio-footer a{color:#cdb0f1}
@media(max-width:1100px){.stack-gallery{grid-template-columns:minmax(0,1fr)}.stack-inspector{position:static;max-width:none;display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:1.35rem}.stack-inspector-top,.stack-inspector-preview,.stack-inspector-caveat{grid-column:1/-1}.stack-inspector-symbol{grid-column:1;grid-row:2/5}.stack-inspector h2{grid-column:2}.stack-inspector>p{grid-column:2}.stack-inspector-purpose{grid-column:2;margin:.4rem 0 1rem;border:0;padding:0}.stack-inspector-preview{margin-top:1rem}}
@media(max-width:660px){.studio-header{min-height:64px}.studio-back{font-size:.62rem!important;padding:.55rem .6rem}.studio-overline{font-size:.52rem}.studio-overline span:last-child{display:none}.stack-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:134px;gap:.55rem}.stack-tile:nth-child(1),.stack-tile:nth-child(9){grid-column:span 1}.stack-tile:nth-child(5),.stack-tile:nth-child(12){grid-row:span 1}.stack-tile{transform:none!important;padding:.85rem}.stack-tile-icon{width:42px;height:42px;font-size:1.3rem}.stack-inspector{display:flex;padding:1.2rem}.stack-inspector-symbol{height:70px;width:70px;font-size:1.9rem;margin:.8rem 0}.studio-footer{flex-direction:column;align-items:start}}
@media(prefers-reduced-motion:reduce){.stack-tile{transition:none}}

.stack-tile-icon img{display:block;max-width:65%;max-height:65%;width:auto;height:auto;object-fit:contain}

/* Match the actual Modules / Testimonials navbar; no stand-in logo bar. */
.studio-page .dd-shared-header-shell{
 width:min(1400px,calc(100% - 2rem));margin:0 auto;
 padding-top:clamp(1rem,2vw,2rem);
}
.studio-page .experience-header{padding-bottom:1.45rem!important}
.studio-page .studio-main{padding-top:clamp(.6rem,1.4vw,1.3rem)}
.studio-page .studio-hero{margin:clamp(.55rem,1.3vw,1.15rem) 0 clamp(1.2rem,2.2vw,2.3rem)}
.studio-page .studio-hero>p{margin-bottom:.6rem}
.studio-page .studio-hero h1{font-size:clamp(2.5rem,4.6vw,5.5rem)}
.studio-page .stack-tile-corner{display:none!important}
.studio-page .stack-mosaic{grid-auto-rows:clamp(118px,10.2vw,165px)}
.studio-page .stack-tile-icon{width:clamp(36px,4.5vw,60px);height:clamp(36px,4.5vw,60px)}
.studio-page .stack-tile--php .stack-tile-icon,
.studio-page .stack-tile--rails .stack-tile-icon{color:#d7b0ff}
.studio-page .stack-tile--python .stack-tile-icon{color:#ffe4a0}
.studio-page .stack-tile--java .stack-tile-icon{color:#ffb3ad}
.studio-page .stack-tile--css .stack-tile-icon{color:#93c8ff}
.studio-page .stack-tile--nsis .stack-tile-icon{color:#b0d1ef}
@media(max-width:660px){
 .studio-page .studio-main{padding-top:.7rem}
 .studio-page .studio-hero{margin:.8rem 0 1.2rem}
 .studio-page .studio-hero h1{font-size:clamp(2.45rem,11vw,4rem)}
 .studio-page .stack-mosaic{grid-auto-rows:140px}
}

/* Branded artwork stays in full colour — the layout and interaction remain the same. */
.studio-page .stack-tile-icon img{display:block;width:79%;height:79%;max-width:none;max-height:none;object-fit:contain}
.studio-page .stack-inspector-symbol img{display:block;width:75%;height:75%;object-fit:contain}
.studio-page .stack-tile--nextjs .stack-tile-icon img,
.studio-page .stack-tile--nextjs[aria-pressed="true"] .stack-tile-icon img{filter:invert(1)}
.studio-page .stack-inspector-symbol:has(img[src*="nextjs-brand"]) img{filter:invert(1)}
.studio-page .stack-tile--neon .stack-tile-icon img,
.studio-page .stack-inspector-symbol:has(img[src*="service-icons/neon"]) img{filter:invert(69%) sepia(54%) saturate(540%) hue-rotate(93deg) brightness(102%)}
.studio-page .stack-tile[aria-pressed="true"] .stack-tile-icon{border-color:#bba6d75c;box-shadow:0 0 0 3px #a77cf71c}
@media(max-width:660px){.studio-page .stack-tile-icon img{width:78%;height:78%}.studio-page .stack-inspector-symbol img{width:76%;height:76%}}

/* 2026 studio: square, tightly packed tool tiles with floating full-colour marks. */
.studio-page .stack-mosaic{gap:6px!important}
.studio-page .stack-tile{
  isolation:isolate;transform:none!important;border-radius:5px!important;overflow:hidden;
  background:linear-gradient(145deg,#241e32,#13121c 85%);box-shadow:0 8px 19px #0004;
  transition:transform .24s cubic-bezier(.2,.8,.25,1),border-color .24s,box-shadow .24s;
}
.studio-page .stack-tile:nth-child(3n),.studio-page .stack-tile:nth-child(4n){transform:none!important}
.studio-page .stack-tile:hover,.studio-page .stack-tile:focus-visible{
  z-index:4;transform:translateY(-4px) scale(1.027)!important;
  border-color:#d8b8fe;box-shadow:0 16px 34px #0009,0 0 0 1px #c9a2ec44;
}
.studio-page .stack-tile[aria-pressed=true]{background:linear-gradient(140deg,#3b2a50,#211a31 80%)}
.studio-page .stack-tile-icon,
.studio-page .stack-tile--javascript .stack-tile-icon,
.studio-page .stack-tile--typescript .stack-tile-icon,
.studio-page .stack-tile[aria-pressed="true"] .stack-tile-icon{
  border:none!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  padding:0!important;overflow:visible;
}
.studio-page .stack-tile-icon{width:clamp(46px,5vw,76px);height:clamp(46px,5vw,76px);top:.9rem;left:1rem;z-index:1}
.studio-page .stack-tile-icon img{width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;
  filter:drop-shadow(0 3px 6px #0005);transition:transform .28s ease}
.studio-page .stack-tile:hover .stack-tile-icon img{transform:scale(1.12) translateY(-2px)}
.studio-page .stack-tile strong,.studio-page .stack-tile small{position:relative;z-index:1}
.studio-page .stack-inspector-symbol{border:0;border-radius:0;background:none;box-shadow:none}
.studio-page .stack-inspector-symbol img{width:88%;height:88%}
.studio-page .stack-tile--nextjs .stack-tile-icon img{filter:invert(1) drop-shadow(0 2px 4px #0005)}
.studio-page .stack-tile--electron,.studio-page .stack-tile--html,
.studio-page .stack-tile--cplusplus,.studio-page .stack-tile--css{background:#1c1727}
.studio-page .stack-tile--electron::before,.studio-page .stack-tile--html::before,
.studio-page .stack-tile--cplusplus::before,.studio-page .stack-tile--css::before{
  content:"";position:absolute;inset:-42%;z-index:0;pointer-events:none;opacity:.33;
  will-change:transform,background-position;
}
.studio-page .stack-tile--electron::before{
  background:repeating-radial-gradient(ellipse at 53% 45%,transparent 0 21px,#63ccf242 22px 24px,transparent 25px 45px),
             radial-gradient(circle at 46% 38%,#68e7ff75,transparent 43%);
  animation:dd-stack-orbit 17s linear infinite;
}
.studio-page .stack-tile--html::before{
  background:repeating-linear-gradient(132deg,transparent 0 28px,#fb7f3738 30px 33px,transparent 36px 72px),
             radial-gradient(ellipse at 28% 25%,#f6854585,transparent 58%);
  animation:dd-stack-drift 12s ease-in-out infinite alternate;
}
.studio-page .stack-tile--cplusplus::before{
  background:repeating-linear-gradient(90deg,transparent 0 40px,#378dff2b 41px 43px,transparent 44px 80px),
             repeating-linear-gradient(0deg,transparent 0 38px,#52adff2e 39px 40px,transparent 41px 83px),
             radial-gradient(circle at 55% 35%,#3685f989,transparent 54%);
  animation:dd-stack-circuit 15s linear infinite;
}
.studio-page .stack-tile--css::before{
  background:conic-gradient(from 0deg at 50% 50%,transparent,#3998f844,#aa8bff77,#4788e969,transparent);
  animation:dd-stack-color 19s linear infinite;
}
@keyframes dd-stack-orbit{to{transform:rotate(360deg)}}
@keyframes dd-stack-drift{to{transform:translate3d(14%,-13%,0) rotate(13deg)}}
@keyframes dd-stack-circuit{to{background-position:75px 100px,-80px 90px,0 0}}
@keyframes dd-stack-color{to{transform:rotate(-360deg)}}
@media(max-width:660px){
  .studio-page .stack-mosaic{gap:5px!important}
  .studio-page .stack-tile{border-radius:3px!important}
  .studio-page .stack-tile-icon{width:51px;height:51px;top:.7rem;left:.7rem}
}
@media(prefers-reduced-motion:reduce){
  .studio-page .stack-tile,.studio-page .stack-tile-icon img{transition:none}
  .studio-page .stack-tile--electron::before,.studio-page .stack-tile--html::before,
  .studio-page .stack-tile--cplusplus::before,.studio-page .stack-tile--css::before{animation:none}
}

/* Languages & Tools sign-off: one shared editorial grid from header to cards. */
@media(min-width:1101px){
  .studio-page .studio-main{
    display:grid;
    grid-template-columns:minmax(0,1.8fr) minmax(310px,.88fr);
    grid-template-areas:"intro detail" "tools detail";
    column-gap:clamp(1rem,2vw,2rem);
    row-gap:0;
    align-items:start;
  }
  .studio-page .studio-hero{
    grid-area:intro;
    min-width:0;
    margin:clamp(.55rem,1.3vw,1.15rem) 0 clamp(1.2rem,2.2vw,2.3rem);
  }
  .studio-page .stack-gallery{display:contents}
  .studio-page .stack-mosaic{grid-area:tools;min-width:0}
  .studio-page .stack-inspector{
    grid-area:detail;align-self:start;
    margin-top:clamp(.55rem,1.3vw,1.15rem);
    position:sticky;top:18px;
  }
}
.studio-page .stack-inspector{
  border-radius:7px!important;
  background:radial-gradient(ellipse at 80% 0%,#6f4b9c22,transparent 54%),linear-gradient(155deg,#211b2d,#0d0c13)!important;
  border:1px solid #9d80c269!important;
  box-shadow:0 26px 68px #000a,0 3px 12px #0007,inset 0 1px #f4dfff14!important;
}
.studio-page .stack-inspector-top{justify-content:flex-start}
.studio-page .stack-inspector-preview{border-radius:6px;box-shadow:0 12px 26px #0008}
@media(max-width:1100px){
  .studio-page .studio-main{display:block}
  .studio-page .stack-gallery{display:grid}
  .studio-page .stack-inspector{position:static;margin-top:0}
}

/* GLSL joins the existing Languages & Tools mosaic, with no layout changes. */
.studio-page .stack-tile--glsl .stack-tile-icon{
  background:linear-gradient(145deg,#281e47,#122d47);
  border-color:#a884f27a;
}
.studio-page .stack-tile--glsl::before{
  background:conic-gradient(from 90deg,transparent,#8b79ef35,#4eabd83a,transparent);
  animation:dd-stack-color 23s linear infinite;
}
.studio-page .stack-engineering-link{
  align-self:flex-start;
  color:#ebceff;
  font-size:clamp(.7rem,.85vw,.87rem);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:#ae84db;
  text-underline-offset:4px;
}
@media(prefers-reduced-motion:reduce){
  .studio-page .stack-tile--glsl::before{animation:none}
}
