/* ===============================
   Variables & Base
   =============================== */
:root{
  --bg:#05060a; --ink:#ffffff; --muted:#a8c4ff;
  --brand:#129eb5; --blue:#2f6eb3; --magenta:#e879f9;
  --header-h:64px;
  --glow:0 0 22px rgba(18,158,181,.18),0 0 34px rgba(96,165,250,.12);
  --px:8%; --py:-8%;
  --icon-hover:#e998cf; /* social hover color */
}
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink);
  font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  padding-top:var(--header-h);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(34,211,238,.10), transparent 20%),
    radial-gradient(1000px 800px at 110% 10%, rgba(232,121,249,.10), transparent 15%),
    linear-gradient(180deg, var(--bg), var(--bg));
  background-repeat:no-repeat,no-repeat,no-repeat;
  background-size:1600px 1000px,1400px 1000px,cover;
  background-attachment:fixed,fixed,fixed;
}
body::before{
  content:""; position:fixed; inset:-25% -25% -25% -25%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(1400px 900px at var(--px,8%) var(--py,-8%), rgba(34,211,238,.10), transparent 70%),
    radial-gradient(1200px 900px at calc(100% - var(--px,8%)) 12%, rgba(96,165,250,.10), transparent 60%);
  background-repeat:no-repeat,no-repeat;
  transition:background-position .2s ease-out;
}

/* Links & container */
a{color:var(--ink); text-decoration:none}
.wrap{max-width:1200px; margin:0 auto; padding:24px}
.wrap > * + *{margin-top:24px} /* nice rhythm inside pages */
#about{scroll-margin-top: calc(var(--header-h) + 16px);}

/* ===============================
   Header / Nav (single source of truth)
   =============================== */
.header{
  position:fixed; top:0; left:0; right:0; height:var(--header-h); z-index:1000;
  background:linear-gradient(180deg, rgba(10,13,19,.75), rgba(10,13,19,.45));
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.nav{width:100%; max-width:1200px; padding:0 24px; display:flex; align-items:center; justify-content:space-between}
.logo{display:flex; align-items:center; gap:12px}
.logo img{width:63px; height:auto; display:block; border-radius:6px}
.by{font-weight:800; font-size:17px; line-height:1; letter-spacing:.2px; position:relative; top:5px; color:#d8e0ee}
.nav-right{display:flex; align-items:center; gap:16px}
.nav-links a{opacity:.85; padding:8px 10px; border-radius:10px; border:1px solid transparent}
.nav-links a.active, .nav-links a:hover{border-color:rgba(255,255,255,.16); background:rgba(255,255,255,.04)}

.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);transition:transform .15s}
.icon-btn:hover{transform:translateY(-1px)}
.icon {
  width: 20px;
  height: 20px;
  fill: #2f6eb3;
  transition: fill .2s ease;
}
.icon-btn:hover .icon {
  fill: #eabff1;
}

/* Desktop (≥980px): show links, hide burger & drawer */
@media (min-width:980px){
  .nav-links{display:flex !important; gap:18px}
  .nav-toggle{display:none !important}
  .nav-drawer{display:none !important}
}

/* Mobile (<980px): hide links, show burger */
@media (max-width:979px){
  .nav-links{display:none !important}
  .nav-toggle{
    position:relative;
    display:inline-flex !important;
    align-items:center; justify-content:center;
    width:25px !important; height:25px !important;
    padding:0 !important; border:0 !important;
    background:transparent !important; box-shadow:none !important; border-radius:8px
  }
  /* three bars */
  .nav-toggle span{
    position:absolute; left:7px;
    width:18px; height:2px; background:#bcd2ff; border-radius:2px;
    margin:0 !important; transform:none !important; display:block !important;
  }
  .nav-toggle span:nth-child(1){top:9px}
  .nav-toggle span:nth-child(2){top:15px}
  .nav-toggle span:nth-child(3){top:21px}
  /* X state */
  .nav-toggle[aria-expanded="true"] span:nth-child(1){top:15px; transform:rotate(45deg) !important}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0 !important}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){top:15px; transform:rotate(-45deg) !important}

  /* Drawer (JS toggles .open) */
  .nav-drawer{
    display:none !important;
    position:fixed; top:var(--header-h); left:12px; right:12px; z-index:2100;
    border:1px solid rgba(255,255,255,.16); border-radius:14px; padding:10px;
    background:rgba(10,13,19,.96); box-shadow:var(--glow);
    display:flex; flex-direction:column; gap:6px;
  }
  .nav-drawer.open{display:flex !important}
  .nav-drawer a{padding:12px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03)}
}

/* ===============================
   Hero / Common UI
   =============================== */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;padding:24px 0 10px}
@media (max-width:900px){ .hero{grid-template-columns:1fr} }
.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.05;margin:0 0 8px;text-shadow:var(--glow)}
.magic{background:linear-gradient(90deg,#0da4a9 0%,#2153a4 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{margin:0 0 16px;color:var(--muted)}
.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{background:linear-gradient(90deg,var(--brand),var(--blue));padding:12px 16px;border-radius:12px;border:0;color:#fff;font-weight:800;box-shadow:var(--glow);cursor:pointer;position:relative;transition:transform .15s}
.btn:hover{transform:translateY(-2px)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.16);color:var(--ink)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.chip{font-size:12px;color:var(--muted);border:1px dashed rgba(255,255,255,.18);padding:6px 10px;border-radius:999px}

.frame{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));box-shadow:var(--glow);aspect-ratio:4/5}
.frame video{width:100%;height:100%;object-fit:cover;display:block}

.hero-media{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px; overflow:hidden;
  background:rgba(255,255,255,.03);
  aspect-ratio:16/9; max-height:540px;
  width: 100%;
}
.hero-media img{width:100%;height:100%;display:block;object-fit:cover}
.hero-media video{
  width:100%;
  height:100%;
  object-fit:cover;   /* swap to 'contain' if you prefer letterboxing */
  display:block;
}

/* ===============================
   Grids & Cards
   =============================== */
.section{margin:36px 0}
.section h1{font-size:28px;margin:0 0 8px}
.section h2{font-size:22px;letter-spacing:.6px;color:var(--muted);margin:0 0 12px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px;padding-top:6px}
.card{grid-column:span 4;aspect-ratio:4/5;position:relative;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));cursor:pointer}
@media (max-width:900px){ .card{grid-column:span 6} }
@media (max-width:560px){ .card{grid-column:span 12} }
.thumb{position:absolute;inset:0;background:#000}
.thumb img,.thumb video{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(110%)}
.title{position:absolute;left:12px;bottom:26px;right:12px;font-size:14px;font-weight:700;text-shadow:0 2px 20px rgba(0,0,0,.7)}
.meta{position:absolute;left:12px;bottom:8px;right:12px;font-size:12px;color:#ffffff;opacity:.85}
.card:hover .title{color:var(--brand)}
.see-more{display:inline-block;margin-top:12px;color:var(--muted);border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:2px}
.grid + .btns{margin-top:24px}

/* ===============================
   About (bio) panels
   =============================== */
.about{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:900px){ .about{grid-template-columns:1fr} }
.panel{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02))}
.muted{color:var(--muted)}
.quote{border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:18px 20px;margin:8px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02))}

/* ===============================
   Footer
   =============================== */
.footer{margin:36px 0 0px}
.divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);margin:10px 0}
.foot-center{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:10px}
.foot-icons{display:flex;gap:10px}
.foot-icons .icon-btn{width:36px;height:36px;border-radius:999px}
.foot-icons a:hover .icon{color:var(--icon-hover)}
.copyright{color:#357684;font-size:13px;text-align:center}

/* ===============================
   Lightboxes (images & videos)
   =============================== */
.lightbox{display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.85);position:fixed;inset:0;z-index:50}
.lightbox .stage{position:relative;display:flex;align-items:center;justify-content:center;max-width:90vw;max-height:86vh;margin:0 auto;border-radius:16px;box-shadow:var(--glow)}
.lightbox .stage img,.lightbox .stage video{width:auto;height:auto;max-width:min(72vw,1100px);max-height:82vh;border-radius:16px;display:block}

/* arrows beside media */
#imgbox .arrow,#lightbox .arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  min-width:42px;min-height:42px;padding:10px 12px;border-radius:12px;
  border:1px solid rgba(255,255,255,.35);background:rgba(3,12,19,.85);
  color:#e9f0ff;cursor:pointer;user-select:none;z-index:9999;
}
#imgbox #prevBtn,#lightbox #vPrevBtn{left:12px}
#imgbox #nextBtn,#lightbox #vNextBtn{right:12px}

/* small in-media X */
.close-in{position:absolute;top:8px;right:8px;padding:6px;background:transparent;border:0;cursor:pointer;z-index:10000}
.close-in .x{width:18px;height:18px;display:block}

/* legacy page-corner close hidden */
.lightbox .close{display:none !important}

/* ===============================
   Inline carousel (Home images)
   =============================== */
.inline-carousel[hidden]{display:none !important}
.inline-carousel{
  margin:16px 0 8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px; background:rgba(255,255,255,.03);
  padding:12px 16px 10px; box-shadow:0 0 22px rgba(18,158,181,.12); overflow:hidden;
}
.inline-carousel .stage{
  position:relative; display:block; width:fit-content; max-width:100%; margin:0 auto;
}
.inline-carousel .stage img{
  width:auto; height:auto; max-width:100%; max-height:72vh; border-radius:12px; display:block;
}
.inline-carousel .arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  min-width:38px; min-height:38px; padding:8px 10px; border-radius:10px;
  border:1px solid rgba(255,255,255,.35); background:rgba(3,12,19,.85); color:#e9f0ff; user-select:none; z-index:3;
}
.inline-carousel .arrow.prev{left:8px}
.inline-carousel .arrow.next{right:8px}
.inline-carousel .close-in{position:absolute; top:6px; right:6px; padding:6px; background:transparent; border:0; cursor:pointer; z-index:4}
.inline-carousel .close-in .x{width:18px; height:18px; display:block}
.inline-carousel .caption{margin-top:8px; opacity:.9; font-size:14px}
.home-grid-dim .card{opacity:.35; transition:opacity .18s ease}
@media (max-width:640px){
  .inline-carousel .arrow.prev{left:4px}
  .inline-carousel .arrow.next{right:4px}
}

/* ===============================
   Videos page parity with Home
   =============================== */
body.videos #videoGrid .card{aspect-ratio:4/5 !important; grid-column:span 4}
@media (max-width:900px){body.videos #videoGrid .card{grid-column:span 6}}
/* Home hub: never single-column — always 2-up on small screens */
@media (max-width:560px){
  #hubGrid .hub-card{ grid-column: span 6; }      /* 12-col grid => 2 cards per row */
  #hubGrid{ gap:12px; }                            /* tighten spacing a bit */
  #hubGrid .hub-tag{ font-size:11px; padding:5px 9px; }
  #hubGrid .hub-title{ font-size: clamp(14px, 3.8vw, 18px); }
}

/* optional micro-tweak for ultra-small devices (≤340px) */
@media (max-width:340px){
  #hubGrid{ gap:10px; }
  #hubGrid .hub-title{ font-size: clamp(12px, 4.2vw, 16px); }
}

body.videos #videoGrid .card .thumb{position:absolute; inset:0}
body.videos #videoGrid .card .thumb img,
body.videos #videoGrid .card .thumb video{width:100%; height:100%; object-fit:cover; display:block}

/* ===============================
   Case Studies — hub & subpages
   =============================== */
/* Hub hero */
.hero-block{display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:end; margin:20px 0}
.hero-block .hero-media{border:1px solid rgba(255,255,255,.08); border-radius:16px; overflow:hidden; min-height:280px; aspect-ratio:16/10; background:rgba(255,255,255,.03)}
@media (max-width:980px){ .hero-block{grid-template-columns:1fr} }

/* Hub grid */
.cs-card-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px}
@media (max-width:980px){ .cs-card-grid{grid-template-columns:1fr} }
.cs-card{display:grid; grid-template-columns:1fr 1.1fr; gap:16px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:rgba(255,255,255,.02); overflow:hidden}
@media (max-width:980px){ .cs-card{grid-template-columns:1fr} }
.cs-card .media{display:block; min-height:210px; background-size:cover; background-position:center; background-repeat:no-repeat}
.cs-card .body{padding:14px}
.cs-card .body h2{margin:0 0 6px}
.cs-card .body p{margin:0 0 10px}

/* Subpage hero with fixed ratio; set image either as background-image on .cs-hero-img, or <img> inside */
.cs-hero-wrap{display:grid; grid-template-columns:1.05fr 1fr; gap:22px; align-items:center}
@media (max-width:980px){ .cs-hero-wrap{grid-template-columns:1fr} }
.cs-hero-img{
  aspect-ratio:16/9; min-height:0; border-radius:18px; overflow:hidden;
  background:#0b1620; background-size:contain; background-repeat:no-repeat; background-position:center; /* NEVER crop */
}
.cs-hero-img img{width:100%; height:100%; object-fit:contain; display:block} /* if you use <img> instead */

/* Editorial modules (subpages) */
.cs-divider{height:1px; margin:24px 0 16px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent); border:0}
.cs-grid{display:grid; gap:16px}

/* inline figure with wrap */
.figure{display:grid; grid-template-columns:1fr; gap:10px}
.figure .img{float:left; width:46%; min-height:240px; margin:0 14px 8px 0; border-radius:14px; background-size:cover; background-position:center}
.figure.right .img{float:right; margin:0 0 8px 14px}
.figure p{margin:0 0 10px}

/* two-column text */
.columns-2{columns:2; column-gap:24px}
.columns-2 p{break-inside:avoid; margin:0 0 12px}
@media (max-width:1000px){ .columns-2{columns:1} .figure .img,.figure.right .img{float:none;width:100%;margin:0 0 10px} }

/* split text+image */
.split{display:grid; grid-template-columns:1.05fr 1fr; gap:18px; align-items:start; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:rgba(255,255,255,.02); padding:14px}
.split .img{border-radius:14px; min-height:325px; background-size:cover; background-position:center}
@media (max-width:1000px){ .split{grid-template-columns:1fr} }

/* mosaic 3 */
.gallery-3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px}
.gallery-3 .cell{min-height:200px; border-radius:12px; background-size:cover; background-position:center}

/* accents & helpers */
.cs-lede{max-width:70ch}
.pullquote{position:relative; margin:8px 0; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(255,255,255,.03); padding:18px 18px 18px 60px}
.pullquote:before{content:"“"; position:absolute; left:18px; top:6px; font-size:42px; line-height:1; color:var(--brand)}
.side-note{border-left:4px solid var(--brand); padding:10px 12px; background:rgba(255,255,255,.03); border-radius:10px}

/* Placeholder backgrounds (ph-a … ph-f) */
.ph-a{background:radial-gradient(1200px 900px at 20% 20%,#2f6ea2,transparent 60%),radial-gradient(900px 700px at 80% 30%,#7aa6ff,transparent 60%),linear-gradient(#0c1824,#0c1824)}
.ph-b{background:radial-gradient(1200px 900px at 75% 25%,#a366ff,transparent 60%),linear-gradient(#0c1622,#0c1622)}
.ph-c{background:radial-gradient(1000px 800px at 25% 70%,#69e1ff,transparent 60%),linear-gradient(#0c1824,#0c1824)}
.ph-d{background:radial-gradient(800px 800px at 40% 40%,#ff6ec7,transparent 60%),linear-gradient(#0c1824,#0c1824)}
.ph-e{background:radial-gradient(900px 900px at 70% 30%,#7dd3fc,transparent 60%),linear-gradient(#0c1824,#0c1824)}
.ph-f{background:radial-gradient(900px 900px at 20% 30%,#9ae6b4,transparent 60%),linear-gradient(#0c1824,#0c1824)}

/* Buttons: primary vs outline and "see all" white text */
.btn-primary{background:linear-gradient(90deg,var(--brand),var(--blue)); color:#fff; box-shadow:var(--glow); border:0}
.btn-primary:hover{filter:brightness(1.06)}
.btn-outline{background:transparent; color:var(--ink); border:1px solid rgba(168,196,255,.6)}
.btn-outline:hover{background:linear-gradient(90deg,var(--brand),var(--blue)); color:#04121a; border-color:transparent}
.btn.see-all,
.btn.see-all:link,
.btn.see-all:visited,
.btn.see-all:hover,
.btn.see-all:focus,
.btn.see-all:active{color:#fff !important}
.btn.see-all svg, .btn.see-all svg *{fill:currentColor !important; stroke:currentColor !important}
@media (prefers-reduced-motion:reduce){ .btn, .icon-btn{transition:none} }
/* Case Studies: add breathing room between text and button */
.cs-card .body{
  display: flex;
  flex-direction: column;
  gap: 5px;                 /* space between h2, p, and the button */
}

.cs-card .body .btn{
  align-self: flex-start;     /* keep button left-aligned */
  margin-top: 4px;            /* tiny extra buffer if you like */
}
/* Case page: side-by-side explanation + prompt */
.case-duo{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items:start;
  margin: 18px 0 8px;
}
@media (max-width: 980px){
  .case-duo{ grid-template-columns:1fr; gap:18px; }
}

/* Shared soft card chrome */
.card-soft{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding:18px;
}

/* Left: readable long-form */
.prose{
  max-width: 68ch;                 /* comfy line length */
  line-height: 1.6;
}
.prose p{ margin: 0 0 12px; }
.prose ul{ margin: 10px 0 14px 1.2em; }
.prose li + li{ margin-top: 6px; }

/* Right: prompt as a code card */
.prompt-card h3{ margin:0 0 8px; }
.prompt-card .hint{
  margin-top:10px; color:var(--muted); font-size:13px;
}

.prompt-card pre{
  margin: 10px 0 0;
  padding: 14px 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,18,.75);
  color: #e9f0ff;
  white-space: pre-wrap;           /* wrap long lines */
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  max-height: 56vh;                /* avoids a huge wall */
  overflow:auto;
}

/* Copy button */
.copy-btn{position:absolute;top:12px;right:12px;z-index:3;padding:8px 12px;font-weight:800;font-size:13px;border-radius:12px;border:1px solid rgba(168,196,255,.60);background:transparent;color:var(--ink);box-shadow:var(--glow);transition:transform .15s ease,border-color .15s ease,filter .15s ease;}
.copy-btn:hover{background:transparent;border-color:rgba(168,196,255,.80);transform:translateY(-1px);}
/* Nicer back pill for case subpages */
/* Nicer back pill for case subpages — outline -> fill on hover */
.back-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(168,196,255,.60);
  background: transparent;            /* was filled */
  color: var(--ink);
  text-decoration:none;
  box-shadow: var(--glow);
  backdrop-filter: saturate(120%) blur(6px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.back-pill:hover{
  background: linear-gradient(90deg, var(--brand), var(--blue)); /* fill on hover */
  color: #04121a;
  border-color: transparent;
  transform: translateY(-2px);
  filter: none;
}
.back-pill svg{
  width:18px; height:18px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
}


/* Optional: keep it visible under the header on scroll */
.case-back-sticky{
  position: sticky;
  top: 72px;         /* adjust if your header height differs */
  z-index: 30;
}

@media (max-width: 980px){
  .case-back-sticky{ top: 60px; }
}

/* Small spacing improvement if the pill sits right under the header */
.crumbs{ margin-bottom: 8px; }
/* ===============================
   Home Hub (4 portals)
   =============================== */
.hub-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:18px;
  padding-top:6px;
}
.hub-card{
  grid-column:span 3;
  aspect-ratio:16/9;
  position:relative;
  border-radius:18px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(255,255,255,.06),
    0 24px 60px -16px rgba(0,0,0,.6),
    0 0 24px 6px var(--tint, rgba(96,165,250,.12));
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
@media (max-width:980px){ .hub-card{ grid-column:span 6 } }
@media (max-width:560px){ .hub-card{ grid-column:span 12 } }

/* animated neon edge */
.hub-card::before{
  content:""; position:absolute; inset:-1px; border-radius:20px;
  /* TINTED glow: subtle radial + soft conic; both read CSS variables */
  background:
    radial-gradient(90% 70% at 50% 50%, var(--tint, rgba(96,165,250,.18)), transparent 65%),
    conic-gradient(
      from 180deg at 50% 50%,
      var(--c1, rgba(96,165,250,.22)),
      var(--c2, rgba(18,158,181,.18)),
      var(--c3, rgba(232,121,249,.20)),
      var(--c1, rgba(96,165,250,.22))
    );
  filter: blur(16px);
  opacity: var(--glowOpacity, .14);   /* softer default */
  z-index:0;
  transition: opacity .2s ease, filter .2s ease;
  animation: hubPulse 6s linear infinite;
}

@keyframes hubPulse{
  0%{ transform: rotate(0deg) scale(1) }
  100%{ transform: rotate(360deg) scale(1.02) }
}
.hub-card:hover{ border-color: color-mix(in srgb, var(--tint, rgba(168,196,255,.3)) 60%, rgba(168,196,255,.3)); }
.hub-card:hover::before{ opacity: calc(var(--glowOpacity, .14) + .06); filter: blur(18px); }

/* media and overlays */
.hub-card .thumb{ position:absolute; inset:0; background:#000 }
.hub-card .thumb img,
.hub-card .thumb video{ width:100%; height:100%; object-fit:cover; display:block }

.hub-card .hub-overlay{
  position:absolute; inset:0; z-index:2;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}

.hub-tag{
  align-self:flex-start;
  font-size:12px; letter-spacing:.6px; font-weight:800; color:#bfe8ff;
  border:1px solid var(--tagBorder, rgba(168,196,255,.35));
  padding:6px 10px; border-radius:999px;
  backdrop-filter: blur(4px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.hub-title{
  margin:0; font-size:clamp(16px, 2.2vw, 22px); line-height:1.15;
  color:#fff; text-shadow:0 4px 26px rgba(0,0,0,.9);
}

/* hover/touch feedback */
.hub-card:hover{
  transform: translateY(-2px);
  border-color: rgba(168,196,255,.32);
}
.hub-card:hover::before{
  opacity: calc(var(--glowOpacity, .14) + .06);
  filter: blur(18px);
}


/* optional subtle grayscale-to-color on idle */
.hub-card .thumb img{ filter:saturate(110%) contrast(102%) }
.hub-card:hover .thumb img{ filter:saturate(120%) contrast(104%) }
/* Per-tile neon tints (subtle). You can tweak the alphas to taste. */

/* ===============================
   Prompts page – namespaced tiles
   =============================== */
body.prompts .pbox-grid{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:18px;
}

/* 3 columns desktop, 2 tablet, 1 mobile */
@media (min-width:901px){ body.prompts .pbox-grid > *{ grid-column: span 4 } }
@media (min-width:561px) and (max-width:900px){ body.prompts .pbox-grid > *{ grid-column: span 6 } }
@media (max-width:560px){ body.prompts .pbox-grid > *{ grid-column: span 12 } }

/* Prompts page — tile */
body.prompts .pbox-card{
  position: relative;
  aspect-ratio: 1 / 1;      /* square */
  border-radius: 18px;       /* ⬅ rounded corners */
  overflow: hidden;
  padding: 14px;

  background:
    radial-gradient(120% 100% at 100% 0%, rgba(34,211,238,.06), transparent 60%),
    radial-gradient(120% 100% at 0% 100%, rgba(167,139,250,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 0 0 1px rgba(255,255,255,.06),
    0 24px 60px -16px rgba(0,0,0,.65),
    0 0 24px 6px rgba(96,165,250,.10);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.prompts .pbox-card:hover{
  transform: translateY(-2px);
  border-color: rgba(168,196,255,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(168,196,255,.14),
    0 28px 70px -18px rgba(0,0,0,.68),
    0 0 28px 8px rgba(96,165,250,.14);
}


body.prompts .pbox-head h3{
  margin:4px 0 2px;
  font-size: clamp(14px, 1.8vw, 18px);
}
body.prompts .pbox-head .muted{
  font-size:12px;
  opacity:.8;
  margin:0 0 10px 0;
}

body.prompts .pbox-code{
  position:relative;
  margin:0;
  height: calc(100% - 84px);
  padding:12px 12px 28px 12px;
  border-radius:12px;
  overflow:auto;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size:12.5px;
  line-height:1.45;
  white-space:pre-wrap;
  word-break:break-word;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,1) 85%, rgba(0,0,0,0));
          mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}

/* Copy button — always visible, same hover feel as .btn-outline */
body.prompts .pbox-copy{
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;

  padding: 8px 12px;
  font-weight: 800; font-size: 13px;
  border-radius: 12px;
  color: var(--ink);

  border: 1px solid rgba(168,196,255,.60);   /* outline look */
  background: transparent;
  box-shadow: var(--glow);

  transition: transform .15s ease, filter .15s ease,
              background .15s ease, border-color .15s ease, color .15s ease;
}

body.prompts .pbox-copy:hover{background:transparent;border-color:rgba(168,196,255,.7);color:var(--ink);transform:translateY(-2px);}

/* keep your “copied” feedback */
body.prompts .pbox-copy.is-copied{
  border-color: rgba(56,189,248,.6);
  color:#e6f7ff;
  box-shadow: 0 0 0 2px rgba(56,189,248,.25);
}

/* Global outline button (shared) */
.btn-outline{
  border:1px solid rgba(168,196,255,.60);
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--glow);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-outline:hover{
  background: linear-gradient(90deg, var(--brand), var(--blue));
  border-color: transparent;
  color:#04121a;
  transform: translateY(-2px);
}
.btn{ padding:8px 12px; font-weight:800; font-size:13px; } /* if you want consistent sizing */
/* Hand cursor on interactive pills/buttons (belt + suspenders) */
body.prompts .pbox-copy,
.copy-btn,
.back-pill,
button[data-copy],
.btn,
.btn-outline {
  cursor: pointer !important;
}

/* ensure the prompts copy button is on top & clickable */
body.prompts .pbox-copy{
  pointer-events: auto;
  z-index: 5;
}
/* Page header chip — reuse hub-tag look, just a bit larger */
.page-chip-row{ display:flex; align-items:center; gap:8px; margin:6px 0 12px; }
.hub-tag.page-chip{ font-size:14px; padding:8px 12px; border-radius:999px }

/* Subtle page tints (match your homepage vibes) */
body.videos .hub-tag.page-chip{ border-color: rgba(56,189,248,.55) }   /* cyan */
body.images .hub-tag.page-chip{ border-color: rgba(232,121,249,.55) }  /* magenta */
/* Videos & Images grids — kill subtitle, restyle title as a hub-tag pill */
#videoGrid .meta,
#imageGrid .meta{
  display: none !important;
}

#videoGrid .title,
#imageGrid .title{
  position: absolute;
  left: 12px;
  bottom: 12px;             /* was 26px when meta existed */
  z-index: 2;

  /* hub-tag look */
  display: inline-block;
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 800;
  color: #bfe8ff;
  border: 1px solid var(--tagBorder, rgba(168,196,255,.35));
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));

  /* make sure it doesn’t reflow/clip */
  width: auto;
  right: auto;

  /* don’t steal clicks from the card */
  pointer-events: none;

  /* remove old drop-shadow on text */
  text-shadow: none;
}

/* subtle hover polish (border brightens slightly instead of changing text color) */
#videoGrid .card:hover .title,
#imageGrid .card:hover .title{
  border-color: rgba(168,196,255,.55);
  color: #bfe8ff; /* keep constant */
}

/* page tints (optional: match your homepage vibes) */
body.videos #videoGrid .title{ --tagBorder: rgba(56,189,248,.50); }   /* cyan */
body.images #imageGrid .title{ --tagBorder: rgba(232,121,249,.50); }  /* magenta */
/* Images page: never single-column on small phones */
@media (max-width:560px){
  #imageGrid .card{ grid-column: span 6; }  /* 12-col system => 2 cards per row */
  #imageGrid{ gap:12px; }
}

/* optional micro-tweak for ultra-small devices */
@media (max-width:340px){
  #imageGrid{ gap:10px; }
  #imageGrid .title{ font-size:11px; padding:5px 9px; } /* matches your pill style */
}
/* Videos page — 16:9-aware mosaic (Row1 wide RIGHT, Row2 normal, Row3 wide LEFT) */
body.videos #videoGrid{ grid-auto-flow: row dense; }

body.videos #videoGrid .card{ aspect-ratio:16/9; position:relative; }

/* Row 1 */
body.videos #videoGrid .card:nth-child(1){ grid-column:1 / span 4;  grid-row: span 1; } /* small left */
body.videos #videoGrid .card:nth-child(2){ grid-column:5 / span 8;  grid-row: span 2; } /* WIDE right */

/* Row 2 (three small) */
body.videos #videoGrid .card:nth-child(3){ grid-column:1 / span 4;  grid-row: span 1; }
body.videos #videoGrid .card:nth-child(4){ grid-column:5 / span 4;  grid-row: span 1; }
body.videos #videoGrid .card:nth-child(5){ grid-column:9 / span 4;  grid-row: span 1; }

/* Row 3 */
body.videos #videoGrid .card:nth-child(6){ grid-column:1 / span 8;  grid-row: span 2; } /* WIDE left */
body.videos #videoGrid .card:nth-child(7){ grid-column:9 / span 4;  grid-row: span 1; } /* small right */

/* Anything after #7 just flows as normal small cards */
body.videos #videoGrid .card:nth-child(n+8){ grid-column: span 4; grid-row: auto; }

/* Responsive resets */
@media (max-width:900px){
  body.videos #videoGrid .card{ grid-column: span 6 !important; grid-row:auto !important; } /* 2-up */
}
@media (max-width:560px){
  body.videos #videoGrid .card{ grid-column: span 12 !important; grid-row:auto !important; } /* 1-up */
}

/* Make sure media fills the tile */
body.videos #videoGrid .thumb img,
body.videos #videoGrid .thumb video{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* Videos page – adjust row 3 and hide #9 */
body.videos #videoGrid .card:nth-child(6){
  grid-column: 1 / span 4;   /* small left (not wide) */
  grid-row: auto;            /* no double height */
}

body.videos #videoGrid .card:nth-child(7){
  grid-column: 5 / span 4;   /* small middle/right to fill the row */
  grid-row: auto;
}

/* ditch #9 entirely */
/* body.videos #videoGrid .card:nth-child(9){ display:none; } */
/* Videos page – Row 3: one wide (same height), one small, hide #9 */
body.videos #videoGrid .card:nth-child(6){
  grid-column: 1 / span 8;   /* double width */
  grid-row: auto;            /* stay one row tall */
  aspect-ratio: 32 / 9;      /* wider container -> same row height as small */
}
body.videos #videoGrid .card:nth-child(7){
  grid-column: 9 / span 4;   /* small on the right */
  grid-row: auto;
  aspect-ratio: 16 / 9;
}

/* keep #9 hidden as you asked */
/* body.videos #videoGrid .card:nth-child(9){ display:none; } */

/* make sure media always fills the tile (crop as needed) */
body.videos #videoGrid .thumb img,
body.videos #videoGrid .thumb video{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* ===== Videos page – Row 3 fixed: wide LEFT (1 row tall) + small RIGHT ===== */
body.videos #videoGrid .card{ 
  aspect-ratio: 16 / 9;              /* default for all tiles */
  min-height: 0;                     /* guard against inherited min-heights */
}

/* Row 3 (items 6 & 7) */
body.videos #videoGrid .card:nth-child(6){
  grid-column: 1 / span 8 !important;  /* wide left */
  grid-row: auto !important;           /* ensure single row */
  aspect-ratio: 32 / 9 !important;     /* same height as a small 16:9 tile */
}

body.videos #videoGrid .card:nth-child(7){
  grid-column: 9 / span 4 !important;  /* small right */
  grid-row: auto !important;
  aspect-ratio: 16 / 9 !important;
}

/* still hide #9 as requested */
/* body.videos #videoGrid .card:nth-child(9){ display:none !important; } */

/* media fill */
body.videos #videoGrid .thumb img,
body.videos #videoGrid .thumb video{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* === Videos page — Row 3 fixed: wide LEFT (same height as small) + small RIGHT === */
body.videos #videoGrid .card:nth-child(6){
  grid-column: 1 / span 8 !important;  /* double width */
  grid-row: auto !important;           /* one row tall */
  aspect-ratio: 8 / 5 !important;      /* matches small (4:5) row height */
}

body.videos #videoGrid .card:nth-child(7){
  grid-column: 9 / span 4 !important;  /* small on the right */
  grid-row: auto !important;
  aspect-ratio: 4 / 5 !important;      /* same as the other small cards */
}

/* keep #9 hidden, per your layout */
/* body.videos #videoGrid .card:nth-child(9){ display:none !important; } */
/* === Videos page — Row 3: align heights exactly === */
/* Small tiles are effectively 4:5 on this page; keep #7 that way,
   and set #6 (spans 8 cols) to a slightly wider ratio (~1.635) so
   its one-row height == small tile height even with extra column gaps. */

body.videos #videoGrid .card:nth-child(6){
  grid-column: 1 / span 8 !important;   /* wide left */
  grid-row: auto !important;            /* one row tall */
  aspect-ratio: 1635 / 1000 !important; /* ≈1.635 to compensate for extra gaps */
}

body.videos #videoGrid .card:nth-child(7){
  grid-column: 9 / span 4 !important;   /* small right */
  grid-row: auto !important;
  aspect-ratio: 4 / 5 !important;       /* same height row */
}

/* still hide #9 per your layout */
/* body.videos #videoGrid .card:nth-child(9){ display: none !important; } */

/* safety: media fills the tile */
body.videos #videoGrid .thumb img,
body.videos #videoGrid .thumb video{
  width:100%; height:100%; object-fit:cover; display:block;
}


/* --- Prompt field consistency --- */
.prompt-card pre, .prose pre{
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  padding: 14px 64px 14px 12px; /* room for copy btn */
  line-height: 1.55;
  font-size: 12.5px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,18,.75);
  color: #e9f0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* equal height prompt cards in a duo row */
.case-duo{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.case-duo > article.card-soft{display:flex;flex-direction:column;min-height:320px;}
.case-duo > article.card-soft h3{margin-bottom:8px;}
.case-duo > article.card-soft pre{flex:1;min-height:260px;}

/* Ensure copy buttons anchor properly */
.prompt-card, .prose.card-soft{position:relative;}

/* Override gradient hover for outline copy buttons */
.copy-btn.btn-outline:hover{background:transparent !important;color:var(--ink);border-color:rgba(168,196,255,.80);}
/* ==== Prompt Duo: cap height + scroll inside <pre> on both columns ==== */
.case-duo > article.card-soft{ 
  display:flex; 
  flex-direction:column; 
}
.case-duo > article.card-soft pre{
  flex:1 1 auto;
  max-height:56vh !important;
  overflow:auto !important;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}
@media (max-width: 960px){
  .case-duo > article.card-soft pre{ max-height:40vh !important; }
}
/* Split cards: make the Copy button stick inside the right column */
.split .copy{ position: relative; }
.split .copy .copy-btn{
  position: absolute; top: 12px; right: 12px; z-index: 3;
}

/* Give split-card prompts the same look + scroll cap as prompt cards */
.split .copy pre{
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 56vh;
  padding: 14px 64px 14px 12px;   /* room for Copy button */
  line-height: 1.5;
  font-size: 0.92rem;             /* slightly smaller text */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,18,.75);
  color: #e9f0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* Force smaller code text in all prompt blocks */
.prompt-card pre,
.prose pre,
.split .copy pre{
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}
/* Stack duo cards on mobile + loosen heights */
@media (max-width: 960px){
  .case-duo{
    grid-template-columns: 1fr !important; /* was 1fr 1fr */
    gap: 14px;
  }
  .case-duo > article.card-soft{
    display: block;          /* drop the flex equal-height trick */
    min-height: 0;
  }
  .case-duo > article.card-soft pre{
    min-height: 0;
    max-height: 42vh;        /* keep code blocks scrollable but not giant */
  }
}

/* Also stack split cards (image/text blocks) on mobile */
@media (max-width: 960px){
  .split{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .split .img{
    min-height: 220px;       /* ensures the top image isn’t a sliver */
    border-radius: 16px;
  }
}
/* Two-column hero with a featured case card */
.hero-two{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.hero-two .hero-copy{ align-self: center; }

/* Clickable hero case tile */
.hero-spot{
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: 20px;
  background: center / cover no-repeat;
  overflow: hidden;
}
.hero-spot .overlay{ position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,17,0) 40%, rgba(7,11,17,.72) 100%);
}
.hero-spot .meta{ position: absolute; left: 16px; right: 16px; bottom: 14px; }
.hero-spot h3{ margin: 0 0 6px; font-size: 1.05rem; }
.hero-spot p{ margin: 0 0 10px; opacity: .9; }

/* Mobile: stack hero text and the card */
@media (max-width: 960px){
  .hero-two{ grid-template-columns: 1fr; gap: 14px; }
  .hero-spot{ min-height: 220px; }
}
/* Pill-only hero tile */
.hero-spot .meta.pill-only{
  position:absolute;
  left:18px; right:auto; bottom:16px;
}
/* Make the hero pill (.title) behave like one line, not a narrow column */
.hero-spot .meta.pill-only { left:18px; right:auto; bottom:16px; }

.hero-spot .title{
  display: inline-flex;          /* allow proper padding + centering */
  align-items: center;
  padding: 10px 16px;            /* same pill padding */
  border-radius: 999px;

  /* force horizontal pill */
  white-space: nowrap;
  min-width: max-content;
  width: auto !important;
  max-width: calc(100% - 32px);  /* don't overflow the card; trims nicely */
  overflow: hidden;
  text-overflow: ellipsis;

  /* just in case something elsewhere rotates titles */
  writing-mode: horizontal-tb !important;
}
/* Position pill in the hero card */
.hero-spot .meta.pill-only { left:18px; right:auto; bottom:16px; }
/* position the meta block bottom-left (if not already) */
.hero-spot .meta.pill-only { left: 12px; right: auto; bottom: 12px; }

/* the pill */
.lumori{
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center;
  font-size: 12px; letter-spacing: .6px; font-weight: 800; color: #bfe8ff;

  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--tagBorder, rgba(168,196,255,.35));

  /* glass */
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));

  /* behave like a single pill line */
  white-space: nowrap; min-width: max-content;
  max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;

  pointer-events: none; /* keeps the whole card clickable */
}
.hero-spot{ aspect-ratio: 16 / 9; }
@media (max-width: 960px){
  .hero-spot{ aspect-ratio: auto; min-height: 220px; } /* stack-friendly */
}
.hero-spot{ transition: transform .18s ease, box-shadow .18s ease; }
.hero-spot:hover{ transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.42); }
/* Case pages — keep top hero images 16:9 and prevent stretching */
.cs-hero-img{
  aspect-ratio: 16 / 9;        /* lock proportions */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  align-self: start;            /* don't stretch to match text column */
  height: auto;
  min-height: 0;
}

/* Featured hero card on Case Studies page (the right-side tile) */
.hero-spot{ aspect-ratio: 16 / 9; }

/* Mobile: let them breathe vertically but keep a sensible minimum */
@media (max-width: 960px){
  .cs-hero-img{ aspect-ratio: auto; min-height: 220px; }
  .hero-spot{ aspect-ratio: auto; min-height: 220px; }
}
/* === Lumori: cards hover + mobile in-view animation === */
.card .thumb img{ transition: transform .35s ease, filter .35s ease; }
.card:hover .thumb img{ transform: scale(1.05); filter: saturate(112%); }
@media (max-width: 979px){
  .card.inview .thumb img{ transform: scale(1.03); filter: saturate(112%); }
}
/* Names row pills spacing on Lumori page */
#lumoriNames .chip{ cursor:pointer; }
/* Card image hover + in-view (mobile) */
.card .thumb img{ transition: transform .35s ease, filter .35s ease; }
.card:hover .thumb img{ transform: scale(1.05); filter: saturate(112%); }
@media (max-width: 979px){
  .card.inview .thumb img{ transform: scale(1.03); filter: saturate(112%); }
}
/* thumb video preview */
.card.has-video .thumb{ position: relative; overflow: hidden; }
.card.has-video .thumb img{ display:block; width:100%; height:auto; transition: opacity .25s ease; }
.card.has-video .thumb video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; border-radius:inherit;
  opacity:0; transition: opacity .25s ease;
}
.card.playing .thumb img{ opacity:0; }
.card.playing .thumb video{ opacity:1; }
/* Hover / in-view video preview */
.card.has-video .thumb{ position: relative; overflow: hidden; }
.card.has-video .thumb img{
  display: block; width: 100%; height: auto; transition: opacity .25s ease;
}
.card.has-video .thumb video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none; /* keep whole card clickable */
}
.card.playing .thumb img{ opacity: 0; }
.card.playing .thumb video{ opacity: 1; }
/* Case Studies — hero layout (no copy changes) */
.hero-two{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:22px;
  align-items:stretch;
}
.hero-two .hero-copy{ align-self:center; }

/* Featured hero tile (right side) */
.hero-spot{
  position:relative;
  display:block;
  border-radius:20px;
  background:center / cover no-repeat;
  overflow:hidden;
  aspect-ratio:16 / 9;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.hero-spot .overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,12,18,0) 55%, rgba(8,12,18,.55) 100%),
    radial-gradient(80% 70% at 0% 100%, rgba(8,12,18,.40), transparent 60%);
}
.btn-primary{ border: 1px solid #6fdcff;}
/* Use your existing glass pill style; only position/nowrap it */
.hero-spot .meta.pill-only{ position:absolute; left:18px; bottom:16px; right:auto; }
.hero-spot .title{
  display:inline-flex; align-items:center;
  padding:10px 16px; border-radius:999px;
  white-space:nowrap; min-width:max-content;
  max-width:calc(100% - 32px);
  overflow:hidden; text-overflow:ellipsis;
}

/* Mobile: stack hero */
@media (max-width: 960px){
  .hero-two{ grid-template-columns:1fr; gap:14px; }
  .hero-spot{ aspect-ratio:auto; min-height:220px; }
}
/* Hero hover video */
.hero-spot{ position:relative; overflow:hidden; border-radius:20px; }
.hero-spot video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; transition:opacity .25s ease;
  pointer-events:none;
}
.hero-spot.playing video{ opacity:1; }
.hero-spot{ position:relative; overflow:hidden; border-radius:20px; }
.hero-spot video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; transition:opacity .25s ease; pointer-events:none;
}
.hero-spot.playing video{ opacity:1; }
/* Lumori: pill-style names + hide "Character set" */
#lumoriGrid .title{
      position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-block;
    font-size: 12px;
    letter-spacing: .6px;
    font-weight: 800;
    color: #2f6eb3;
    border: 1px solid #2f6eb338;
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px) saturate(120%);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), #2f6eb329);
    width: auto;
    right: auto;
    pointer-events: none;
    text-shadow: none;
}

/* Don’t show the small “Character set” label */
#lumoriGrid .meta{ display:none !important; }
/* Glass pill label on cards (reuse the look from .title pills) */
#lumoriWorld .card .title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-block;
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 800;
  color: #bfe8ff;
  border: 1px solid var(--tagBorder, rgba(168,196,255,.35));
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  pointer-events: none;
  text-shadow: none;
}

/* hide the small meta ("Scene") under the image if you prefer */
#lumoriWorld .card .meta { display: none; }
/* Lumori World: hide the small subtitle line */
#lumoriWorld .meta{
  display: none !important;
}

/* Lumori World: turn the title into the glass pill and keep it auto-width */
#lumoriWorld .title{
  position: absolute;
  left: 12px;
  bottom: 12px;

  /* kill the full-width behavior */
  right: auto;
  width: auto;

  display: inline-block;
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 800;
  color: #bfe8ff;

  border: 1px solid var(--tagBorder, rgba(168,196,255,.35));
  padding: 6px 10px;
  border-radius: 999px;

  backdrop-filter: blur(4px) saturate(120%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));

  pointer-events: none;
  text-shadow: none;
}
/* Container for the form */
.lumori-signup-container {
  text-align: center;
  background: #0a0a12; /* Very dark blue/black */
  color: #fff;
  padding: 40px 20px;
  border-radius: 15px;
  border: 1px solid #333;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1); /* Subtle cyan glow */
  max-width: 600px;
  margin: 50px auto;
  font-family: 'Arial', sans-serif; /* Replace with your site font */
}

.lumori-signup-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  background: -webkit-linear-gradient(#00c6ff, #0072ff); /* Neon Blue Gradient text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.giveaway-text {
  color: #ffeb3b; /* Yellow/Gold for the "Win" text */
  margin-bottom: 25px;
}

/* The Input Box */
.lumori-form input[type="email"] {
  padding: 15px;
  width: 60%;
  border-radius: 30px;
  border: 2px solid #444;
  background: #111;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.lumori-form input[type="email"]:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 10px #00c6ff; /* Neon glow on focus */
}

/* The Button */
.lumori-form button {
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(45deg, #00c6ff, #9d00ff); /* Blue to Purple Gradient */
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  transition: transform 0.2s;
}

.lumori-form button:hover {
  transform: scale(1.05); /* Slight pop effect */
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .lumori-form input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
  }
  .lumori-form button {
    width: 100%;
    margin-left: 0;
  }
}
/* ---- Lumori Book Showcase ---- */
.lumori-book-showcase {
  padding: 50px 20px;
  text-align: center;
  color: #d8eaff;
}

.lbs-title {
  font-size: 2rem;
  margin-bottom: 4px;
  color: #cfe8ff;
}

.lbs-sub {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #92b8d6;
}

.lbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 35px;
}

.lbs-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}

.lbs-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(0, 255, 255, .35);
}

.lbs-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lbs-btn {
  background: linear-gradient(90deg, #0ab3ff, #00d8ff);
  padding: 10px 24px;
  border-radius: 12px;
  color: #002a3a;
  text-decoration: none;
  font-weight: bold;
  transition: opacity .3s;
}

.lbs-btn:hover {
  opacity: .85;
}

.lbs-btn-outline {
  border: 1px solid #49d9ff;
  color: #c9f2ff;
  padding: 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .3s;
}

.lbs-btn-outline:hover {
  background: rgba(60, 220, 255, .15);
}
