/* ===========================================================
   BERRY TECH — Liquid Glass Design System
   =========================================================== */

:root{
  --bg:        #050410;
  --bg-2:      #0a0816;
  --ink:       #f3eef7;
  --ink-2:     #b9b1c6;
  --ink-3:     #7e7591;
  --ink-4:     #4b4458;

  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --line-3:    rgba(255,255,255,0.22);

  --berry-1: #ff2d6f;
  --berry-2: #ff7a3d;
  --berry-3: #a93dff;
  --berry-4: #3d6dff;
  --berry-5: #3dffd5;

  --grad:     linear-gradient(120deg,#ff2d6f 0%,#ff7a3d 35%,#a93dff 70%,#3d6dff 100%);
  --grad-text:linear-gradient(120deg,#ff7a3d 0%,#ff2d6f 35%,#a93dff 75%,#3d6dff 100%);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{
  background:#000;
  color:var(--ink);
  font-family:'Inter', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  min-height:100vh;
  cursor:none;
}
img,svg{display:block;max-width:100%}
button,input,textarea{font:inherit;color:inherit;background:none;border:0;outline:0}
a{color:inherit;text-decoration:none}
ul{list-style:none}
::selection{background:var(--berry-1);color:#fff}

/* ===========================================================
   3D scene canvas
   =========================================================== */
#scene{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0;
  display:block;
}

/* Cinematic overlays */
.vignette{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 12%, transparent 85%, rgba(0,0,0,0.55) 100%);
}
.scanlines{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity:.5;
}
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  opacity:.07; mix-blend-mode: overlay;
  background-image:url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===========================================================
   Custom cursor
   =========================================================== */
.cursor-dot, .cursor-ring{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  mix-blend-mode:difference;
}
.cursor-dot{ width:6px; height:6px; border-radius:50%; background:#fff; transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease) }
.cursor-ring{ width:36px; height:36px; border-radius:50%; border:1.5px solid #fff; transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease) }
body[data-cursor="link"] .cursor-dot{ width:0; height:0 }
body[data-cursor="link"] .cursor-ring{ width:64px; height:64px; border-color:var(--berry-1) }
body[data-cursor="view"] .cursor-ring{ width:84px; height:84px; border-color:var(--berry-3) }
body[data-cursor="text"]  .cursor-ring{ width:2px; height:28px; border-radius:2px; border-color:var(--berry-5) }
@media (hover:none){ .cursor-dot, .cursor-ring{ display:none } body{ cursor:auto } }

/* ===========================================================
   LIQUID GLASS BASE
   =========================================================== */
.glass{
  position:fixed; z-index:10;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border:1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.04);
  overflow:hidden;
}
.glass::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(120% 60% at 100% 100%, rgba(255,45,111,0.12), transparent 60%);
  pointer-events:none;
  border-radius:inherit;
}
.glass::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  opacity:.4;
  transform: translateX(-100%);
  transition: transform 1.4s var(--ease);
}
.glass:hover::after{ transform: translateX(100%) }

.glass-inset{
  background: linear-gradient(160deg, rgba(0,0,0,0.25), rgba(255,255,255,0.02));
  border:1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.panel__label{
  font-family:'Space Grotesk', monospace;
  font-size:.7rem; letter-spacing:.25em; text-transform:uppercase;
  color: var(--ink-3);
  padding: 0 .2rem;
  margin-bottom: .8rem;
}
.panel__divider{
  height:1px; margin: 1.4rem 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* ===========================================================
   TOP BAR
   =========================================================== */
.topbar{
  top: 1.2rem; left: 50%; transform: translateX(-50%);
  width: min(900px, calc(100% - 2.4rem));
  padding: .7rem 1rem .7rem 1.1rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  border-radius: 999px;
}
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand__mark{
  position:relative;
  width:32px; height:32px; border-radius:10px;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(255,45,111,.4), inset 0 0 0 1px rgba(255,255,255,0.18);
  display:inline-flex; align-items:center; justify-content:center;
}
.brand__pulse{
  width:10px; height:10px; border-radius:50%; background:#fff;
  box-shadow:0 0 10px #fff, 0 0 24px rgba(255,255,255,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1);   box-shadow:0 0 10px #fff, 0 0 24px rgba(255,255,255,.6) }
  50%    { transform: scale(1.3); box-shadow:0 0 18px #fff, 0 0 36px rgba(255,255,255,.9) }
}
.brand__text{ display:flex; flex-direction:column; line-height:1 }
.brand__name{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:1rem; letter-spacing:-.01em }
.brand__sub{ font-size:.7rem; color: var(--ink-3); margin-top:2px; letter-spacing:.05em }

.topbar__center{ flex:1; display:flex; justify-content:center }
.status{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.35rem .8rem; border-radius:999px;
  background: rgba(0,0,0,0.3); border:1px solid var(--line-2);
  font-size:.78rem; color: var(--ink-2);
  font-family:'Space Grotesk', monospace; letter-spacing:.05em;
}
.status__dot{ width:7px; height:7px; border-radius:50%; background: var(--berry-5); box-shadow:0 0 8px var(--berry-5); animation: blink 1.4s infinite }
@keyframes blink{ 50%{ opacity:.35 } }

.topbar__right{ display:flex; align-items:center; gap:.6rem }
.iconbtn{
  padding:.45rem .8rem; border-radius:999px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--line-2);
  font-family:'Space Grotesk', monospace; font-size:.8rem; color:var(--ink-2);
  transition: background .25s, color .25s;
}
.iconbtn:hover{ background: rgba(255,255,255,0.1); color: var(--ink) }

/* Mobile Menu Button */
.mob-toggle{
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  color: var(--ink); cursor: pointer;
}
.mob-toggle span{
  display: block; width: 16px; height: 2px; background: currentColor;
  position: relative; transition: background .2s;
}
.mob-toggle span::before, .mob-toggle span::after{
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .25s, top .25s;
}
.mob-toggle span::before{ top: -5px; }
.mob-toggle span::after{ top: 5px; }
body.menu-open .mob-toggle span{ background: transparent; }
body.menu-open .mob-toggle span::before{ transform: rotate(45deg); top: 0; }
body.menu-open .mob-toggle span::after{ transform: rotate(-45deg); top: 0; }

/* Mobile Navigation Drawer */
.mob-nav{
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(5, 4, 16, 0.95);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  z-index: 95;
  display: flex; flex-direction: column;
  padding: 6rem 2rem 2.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  overflow-y: auto;
}
body.menu-open .mob-nav{ opacity: 1; pointer-events: auto; }
.mob-nav__title{
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.2rem;
}
.mob-nav__links{
  display: flex; flex-direction: column; gap: .4rem;
}
.mob-nav__link{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  padding: .75rem 1rem; border-radius: var(--r-md);
  color: var(--ink-2); transition: background .2s, color .2s;
  display: flex; justify-content: space-between; align-items: center;
}
.mob-nav__link span.tag{ font-size: .65rem; }
.mob-nav__link:hover, .mob-nav__link.is-active{
  color: #fff; background: rgba(255,255,255,0.06);
}

@media (max-width: 900px){
  .topbar{ width: calc(100% - 1.6rem); top: .8rem; }
  .topbar__center{ display:none }
  .mob-toggle{ display: inline-flex; }
}

@media (max-width: 600px){
  .topbar__right .btn{ display:none }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7rem 1.2rem; border-radius:999px;
  font-weight:600; font-size:.9rem; letter-spacing:.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  position:relative; overflow:hidden;
  white-space:nowrap;
}
.btn--sm{ padding:.5rem 1rem; font-size:.85rem }
.btn--primary{
  background: var(--grad); background-size: 200% 100%; color:#fff;
  box-shadow: 0 8px 24px rgba(255,45,111,.3), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.btn--primary:hover{ background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255,45,111,.45), inset 0 0 0 1px rgba(255,255,255,0.25) }
.btn--primary span{ transition: transform .35s var(--ease) }
.btn--primary:hover span{ transform: translateX(3px) }
.btn--ghost{
  background: rgba(255,255,255,0.04); color: var(--ink);
  border:1px solid var(--line-2); backdrop-filter: blur(10px);
}
.btn--ghost:hover{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3) }
.is-sent{ background:#2ecc71 !important }

/* ===========================================================
   SIDE PANELS — fixed shell, inner content scrolls
   =========================================================== */
.panel{
  top: 6.5rem;
  bottom: 1.2rem;
  width: 300px;
  display:flex; flex-direction:column;
  overflow:hidden;          /* shell never scrolls */
  padding: 0;
}
.panel--left { left: 1.2rem; }
.panel--right{ right: 1.2rem; }

/* Inner scrollable area */
.panel__inner{
  flex: 1 1 auto;
  min-height: 0;            /* allow flex child to shrink */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.4rem 1.2rem 2rem;
  display:flex; flex-direction:column; gap:1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
  scroll-behavior: smooth;
  mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.panel__inner::-webkit-scrollbar{ width:4px }
.panel__inner::-webkit-scrollbar-track{ background: transparent }
.panel__inner::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.18); border-radius:99px }
.panel__inner::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.32) }

@media (max-width: 1320px){
  .panel{ width: 270px; }
}
@media (max-width: 1200px){
  .panel--left { display:none }
}
@media (max-width: 980px){
  .panel--right{ display:none }
  .stage{ padding: 0 1.5rem; padding-top: 5rem }
}

/* sidenav */
.sidenav{ display:flex; flex-direction:column; gap: 2px; }
.sidenav__item{
  display:flex; align-items:center; gap:.8rem;
  padding:.65rem .8rem; border-radius: 10px;
  font-size:.92rem; color: var(--ink-2);
  transition: background .25s, color .25s, transform .25s;
  position:relative;
}
.sidenav__item span{
  font-family:'Space Grotesk', monospace; font-size:.7rem; color: var(--ink-4);
  letter-spacing:.1em;
}
.sidenav__item:hover{ background: rgba(255,255,255,0.05); color: var(--ink) }
.sidenav__item.is-active{
  background: linear-gradient(90deg, rgba(255,45,111,0.15), rgba(169,61,255,0.08));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,45,111,0.25);
}
.sidenav__item.is-active span{ color: var(--berry-1) }
.sidenav__item.is-active::before{
  content:""; position:absolute; left:-4px; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:99px; background: var(--grad);
}

/* telemetry */
.telemetry{ display:flex; flex-direction:column; gap:.4rem; font-family:'Space Grotesk', monospace; font-size:.82rem }
.tele-row{ display:flex; justify-content:space-between; padding:.35rem .2rem; color: var(--ink-3); border-bottom: 1px dashed var(--line) }
.tele-row:last-child{ border-bottom:0 }
.tele-row b{ color: var(--ink); font-weight: 500 }

/* ===========================================================
   PRODUCT LIST (right panel)
   =========================================================== */
.product-list{ display:flex; flex-direction:column; gap:.5rem }
.product{
  display:flex; align-items:center; gap:.8rem;
  padding:.7rem; border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  border:1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s;
  text-align:left;
  width:100%;
}
.product:hover{ background: rgba(255,255,255,0.07); border-color: var(--line-2); transform: translateX(-2px) }
.product.is-active{
  background: linear-gradient(135deg, rgba(255,45,111,0.15), rgba(169,61,255,0.1));
  border-color: rgba(255,45,111,0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.product__icon{
  width:36px; height:36px; border-radius:10px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk', sans-serif; font-weight:700; color:#fff;
  font-size:.85rem; letter-spacing:.05em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  position:relative;
}
.product__beta{
  font-size:.7rem; text-shadow: 0 0 6px rgba(0,0,0,.4);
}
.product__body{ flex:1; min-width:0 }
.product__name{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:.95rem }
.product__sub{ font-size:.75rem; color: var(--ink-3); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.product__arrow{ color: var(--ink-3); transition: transform .3s, color .3s }
.product.is-active .product__arrow, .product:hover .product__arrow{ color: var(--berry-1); transform: translateX(3px) }

/* Product detail */
.product-detail{ padding: 1rem; display:flex; flex-direction:column; gap:.8rem }
.pd__head{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap }
.pd__chip{
  font-size:.7rem; padding:.2rem .55rem; border-radius:99px;
  background: linear-gradient(90deg, rgba(255,45,111,.25), rgba(169,61,255,.25));
  border:1px solid rgba(255,45,111,.3);
  font-family:'Space Grotesk', monospace; letter-spacing:.05em; color:#ffd2e1;
}
.pd__title{
  font-family:'Space Grotesk', sans-serif;
  font-size: 1.6rem; letter-spacing:-.01em;
}
.pd__desc{ font-size:.85rem; color: var(--ink-2); line-height:1.55 }
.pd__features{ display:flex; flex-direction:column; gap:.3rem; font-size:.82rem; color: var(--ink-2) }
.pdf{ display:flex; align-items:center; gap:.5rem }
.pdf span{ color: var(--berry-1); text-shadow:0 0 8px var(--berry-1) }
#pdCta{ align-self:flex-start; margin-top:.3rem }

/* ===========================================================
   MAIN STAGE TEXT (centered over 3D)
   =========================================================== */
.stage{
  position:relative; z-index:5;
  width:100%;
  pointer-events:none; /* let canvas receive, re-enable per child */
  padding: 0 320px; /* leave room for side panels */
}
.stage > section{ pointer-events: auto; }

@media (max-width: 1440px){ .stage{ padding: 0 290px } }
@media (max-width: 1200px){ .stage{ padding: 0 1.5rem 0 calc(1.5rem + 270px) } }
@media (max-width: 980px){ .stage{ padding: 0 1.25rem; padding-top: 4.5rem } }

.stage__hero{
  min-height: 90vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center;
  max-width: 780px; margin: 0 auto;
  padding: 5.5rem 1rem 3rem;
}
.stage__section{
  min-height: 80vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center;
  max-width: 820px; margin: 0 auto;
  padding: 4rem 1rem;
}
.hero-eyebrow, .section-eyebrow{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.45rem 1rem; border-radius:999px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--line-2);
  font-size:.8rem; color: var(--ink-2);
  font-family:'Space Grotesk', monospace; letter-spacing:.1em;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--berry-1); box-shadow: 0 0 8px var(--berry-1);
  animation: blink 1.4s infinite;
}

.hero-title, .section-title{
  font-family:'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1; letter-spacing:-.03em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero-title .line, .section-title .line{
  display:block; overflow:hidden;
}
.hero-title .line > span, .section-title .line > span{
  display:inline-block; transform: translateY(110%);
}
.grad-text{
  background: var(--grad-text); -webkit-background-clip:text; background-clip:text;
  color: transparent; background-size: 200% 100%;
}
.hero-sub, .section-sub{
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
}
.hero-sub em{ color: var(--berry-1); font-style:normal; font-weight:600 }
.section-chips{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top: 2rem }
.chip{
  font-family:'Space Grotesk', monospace; font-size:.78rem;
  padding:.35rem .75rem; border-radius:99px;
  background: rgba(255,255,255,0.05);
  border:1px solid var(--line-2);
  color: var(--ink-2);
}

/* contact form */
.contact-form{
  margin-top: 2rem;
  display:grid; grid-template-columns: 1fr 1fr; gap:.7rem;
  max-width: 520px; width:100%;
  text-align:left;
}
.contact-form input, .contact-form textarea{
  padding:.8rem 1rem; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.35);
  border:1px solid var(--line-2);
  color: var(--ink); font-size:.9rem;
  transition: border-color .25s, background .25s;
  width:100%;
}
.contact-form textarea{ grid-column: 1/-1; resize: vertical }
.contact-form input:focus, .contact-form textarea:focus{ border-color: var(--berry-1); background: rgba(0,0,0,0.5) }
.cf-submit{ grid-column: 1/-1; justify-self: center; margin-top: .5rem }
@media (max-width: 600px){ .contact-form{ grid-template-columns: 1fr } }

/* ===========================================================
   PANEL — extra blocks (sidenav sub, press, features, changelog)
   =========================================================== */
.sidenav--sub .sidenav__item{ padding:.45rem .8rem; font-size:.85rem; color: var(--ink-3) }
.sidenav--sub .sidenav__item:hover{ color: var(--ink-2) }

.press{
  display:flex; flex-direction:column; gap:.6rem;
  font-size:.82rem; color: var(--ink-2);
}
.press p{ font-style: italic; line-height: 1.45 }
.press span{ font-size:.7rem; color: var(--ink-4); font-family:'Space Grotesk', monospace; letter-spacing:.05em }

.feature-card{
  padding: .8rem .9rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .25s;
}
.feature-card:hover{ background: rgba(255,255,255,0.06); border-color: var(--line-2); transform: translateX(2px) }
.fc__head{ display:flex; align-items:center; gap:.5rem; margin-bottom:.35rem }
.fc__num{
  font-family:'Space Grotesk', monospace; font-size:.7rem; color: var(--berry-1);
  padding: .15rem .45rem; border-radius: 6px;
  background: rgba(255,45,111,0.12);
  border: 1px solid rgba(255,45,111,0.25);
}
.fc__name{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:.92rem }
.feature-card p{ font-size:.78rem; color: var(--ink-3); line-height:1.5 }

.changelog{ display:flex; flex-direction:column; gap:.4rem; font-family:'Space Grotesk', monospace; font-size:.78rem }
.cl-row{ display:grid; grid-template-columns: 56px 1fr; gap:.5rem; padding:.3rem 0; border-bottom: 1px dashed var(--line) }
.cl-row:last-child{ border-bottom: 0 }
.cl-date{ color: var(--berry-1); font-weight: 500 }
.cl-text{ color: var(--ink-2) }

.btn--block{ width: 100%; justify-content: center }

/* Project tags & status badges */
.tag{
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: 'Space Grotesk', monospace; font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.tag--active{
  background: rgba(61,255,213,0.1); border-color: rgba(61,255,213,0.3); color: #3dffd5;
}
.tag--proto{
  background: rgba(255,122,61,0.1); border-color: rgba(255,122,61,0.3); color: #ffaa77;
}
.tag--exp{
  background: rgba(255,45,111,0.1); border-color: rgba(255,45,111,0.3); color: #ff5f8f;
}
.tag--concept{
  background: rgba(169,61,255,0.12); border-color: rgba(169,61,255,0.3); color: #d094ff;
}
.tag--research{
  background: rgba(61,109,255,0.12); border-color: rgba(61,109,255,0.3); color: #7da5ff;
}

/* Studio Terminal Block */
.studio-term{
  text-align: left;
  background: rgba(5, 4, 16, 0.75);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 540px;
  width: 100%;
  margin-top: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.studio-term__head{
  color: var(--ink-4);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--line);
  padding-bottom: .6rem;
  margin-bottom: .8rem;
  display: flex;
  justify-content: space-between;
}
.studio-term__row{
  display: flex;
  justify-content: space-between;
}
.studio-term__row span:first-child{
  color: var(--ink-3);
}
.studio-term__row b{
  color: var(--ink);
  font-weight: 500;
}

/* Project Cards in Main Stage */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  text-align: left;
  margin-top: 2rem;
}
.p-card{
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.p-card:hover{
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.06);
}
.p-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.p-card__title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.p-card__category{
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.p-card__desc{
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.p-card__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  border-top: 1px dashed var(--line);
  font-family: 'Space Grotesk', monospace;
  font-size: .74rem;
  color: var(--berry-1);
}

/* Stat strip */
.studio-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 580px;
  margin-top: 2rem;
}
.studio-stat{
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  text-align: center;
}
.studio-stat b{
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.studio-stat span{
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ===========================================================
   FOOTER (Shared across pages)
   =========================================================== */
.footer{
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 4.5rem 2rem 2.5rem;
  border-top: 1px solid var(--line-2);
  background: rgba(5, 4, 16, 0.7);
  backdrop-filter: blur(20px);
  margin-top: 4rem;
}
.footer__top{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer__cols{
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.footer__cols h4{
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer__cols a{
  display: block;
  font-size: .86rem;
  color: var(--ink-2);
  margin-bottom: .6rem;
  transition: color .2s var(--ease);
}
.footer__cols a:hover{
  color: #fff;
}
.footer__bot{
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--ink-4);
}
.footer__berry{
  color: var(--berry-1);
  letter-spacing: .25em;
}
@media (max-width: 768px){
  .footer{ padding: 3rem 1.2rem 2rem; }
  .footer__cols{ gap: 2rem; }
  .footer__bot{ flex-direction: column; gap: .8rem; text-align: center; }
}

/* ===========================================================
   LOADER
   =========================================================== */
.loader{
  position:fixed; inset:0; z-index:50;
  display:flex; flex-direction:column; gap:1rem;
  align-items:center; justify-content:center;
  background: #050410;
  transition: opacity .8s, visibility .8s;
}
.loader.is-gone{ opacity:0; visibility:hidden; pointer-events:none }
.loader__ring{
  width:38px; height:38px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.1);
  border-top-color: var(--berry-1);
  animation: spin 1s linear infinite;
}
.loader__text{ font-family:'Space Grotesk', monospace; font-size:.8rem; color: var(--ink-3); letter-spacing:.1em }
@keyframes spin{ to{ transform: rotate(360deg) } }

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important }
}
