/* =========================
     Themes
  ========================= */
  .theme-0 { --c-heading:#ffffff; --c-card:#000000; --c-link:#ffffff; --c-bg:#000000; }
  .theme-3z { --c-heading:#fcf0d9; --c-card:#a52935; --c-link:#ee6f0b; --c-bg:#123575; }
  .theme-2a { --c-heading:#fbe9cd; --c-card:#e63a5f; --c-link:#f1919f; --c-bg:#d01740; }
  .theme-3z { --c-heading:#f9f9b9; --c-card:#a464d1; --c-link:#cfb8b1; --c-bg:#9129b9; }
  .theme-7 { --c-heading:#c29898; --c-card:#458192; --c-link:#bbbbb9; --c-bg:#b62331; }
  .theme-5 { --c-heading:#cba99e; --c-card:#a40054; --c-link:#621365; --c-bg:#f50054; }
  .theme-6 { --c-heading:#cec9bb; --c-card:#de4252; --c-link:#eb9369; --c-bg:#d8174c; }
  .theme-4 { --c-heading:#d1ccdc; --c-card:#d64d67; --c-link:#98347d; --c-bg:#f1705c; }
  .theme-8 { --c-heading:#c1aba2; --c-card:#1d31b4; --c-link:#ffffff; --c-bg:#1d2496; }
  .theme-9  { --c-heading:#f4ecd8; --c-card:#264653; --c-link:#e9c46a; --c-bg:#2a9d8f; }
.theme-1 { --c-heading:#ffe7b6; --c-card:#000000; --c-link:#fcbf49; --c-bg:#2f3e46; }
.theme-11 { --c-heading:#e0f7fa; --c-card:#006064; --c-link:#ffca28; --c-bg:#004d40; }
.theme-3 { --c-heading:#f8f0e3; --c-card:#a47148; --c-link:#f28482; --c-bg:#6d6875; }
.theme-13 { --c-heading:#fdfcdc; --c-card:#0081a7; --c-link:#fed9b7; --c-bg:#00afb9; }
.theme-14 { --c-heading:#fef6e4; --c-card:#001858; --c-link:#f582ae; --c-bg:#8bd3dd; }
.theme-2 { --c-heading:#ede0d4; --c-card:#9c6644; --c-link:#e76f51; --c-bg:#264653; }
.theme-3z { --c-heading:#faf3dd; --c-card:#c1666b; --c-link:#6a994e; --c-bg:#386641; }

/* =========================
   Root / Base
========================= */
:root{
  --nav-h: 128px;
  --shadow: 0 -12px 40px rgba(0,0,0,.18);
  --active-bg:#000;
  --active-heading:#fff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--active-bg);

  /* DJ table theme vars */
  --dj-text: var(--active-bg);
  --dj-muted: var(--active-bg);
  --dj-line: var(--active-bg);
  --dj-line-strong:#0000;
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body { font-family:'Space Grotesk', system-ui, sans-serif; font-weight:400; font-size:18px; line-height:1.5; }

/* =========================
   Utility / Global Sections
========================= */
main { padding:0; }

.page {
  position: fixed;
  inset: 0;
  overflow-y: hidden;   /* disable scroll here */
  -webkit-overflow-scrolling: touch;
  display: block;
  padding-bottom: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  background: var(--c-bg);
  scrollbar-color: var(--c-heading) var(--c-bg);
}
.page.is-active {
  opacity: 1;
  pointer-events: auto;
}

.page::-webkit-scrollbar{ width:12px; }
.page::-webkit-scrollbar-thumb{ border-radius:6px; background: var(--c-bg); }

/* =========================
   Split Layout / Panes / Hero
========================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  width: 100%;
}
.pane {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  padding: clamp(1.25rem, 4vw, 3rem);
  min-height: calc(100vh - var(--nav-h));
  position:relative;
  box-sizing:border-box;
}

.content { max-width: 800px;}
.left { background: var(--c-bg); color: var(--c-link); }
.right { background: var(--c-heading); color: var(--c-card); overflow-y:auto; }

/* Mobile: stack */
@media (max-width:900px){
  .split { grid-template-columns:1fr; }
  .pane { min-height:auto; justify-content:flex-start; }
}

.pane.left::before{
  content:""; position:absolute; inset:0;
  background-image:url("imgs/cartographer-inverted.png");
  background-repeat:repeat; background-position:0 0;
  opacity:.80; pointer-events:none; mix-blend-mode:none;
}

.left h1{
  font-size: clamp(2.2rem, 6.2vw, 10.25rem);
  line-height:1.05; font-weight:700; letter-spacing:-.02em;
}
.left h1 .h-sub{
  padding:5px; padding-left: 12px; display:block; font-weight:100; letter-spacing:0; opacity:.82;
  margin-top:.15rem; font-size:.3em; color: var(--active-bg); background-color: var(--c-link);
}
.right h2{
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height:1.15; font-weight:700; margin-bottom:.5rem;
}

/* Hero */
#p0 .pane { z-index:1; }
#p0 .hero-wrap { text-align:left; transform:none; }
#p0 .hero-text { font-family:'Space Grotesk', system-ui; }

.home-hero{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  z-index:1000; pointer-events:none; padding-bottom:var(--nav-h);
}
.hero-wrap{ text-align:left; }
.hero-text{
  display:inline-block; font-weight:1000;
  font-size:clamp(2.8rem, 24vw, 16rem);
  line-height:.38; letter-spacing:-1em; padding-block:.08em; overflow:visible;
  background: linear-gradient(to right, var(--c-link) 0 50%, var(--c-card) 50% 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
#p0 .hero-text{
  background-image: linear-gradient(to right, var(--c-link) 0 50%, var(--c-card) 50% 100%);
  background-attachment:fixed; text-align:center;
  background-size:100vw 100%; line-height:.76; letter-spacing:.1vw;
  background-position:0 0;
}

/* =========================
   Navbar & Menu
========================= */
.navbar{
  position:fixed; left:0; right:0; bottom:0; height:var(--nav-h);
  display:grid; grid-template-columns:1fr 1fr; align-items:center;
  background: var(--active-bg); color: var(--active-heading);
  box-shadow: var(--shadow); z-index:60;
  transition: background .3s ease, color .3s ease;
  padding:0 .75rem;
}
.nav-slot{ display:flex; align-items:center; min-width:0; }
.nav-slot:first-child{ justify-content:flex-start; }
.nav-slot:last-child{ justify-content:center; }

.brand{
  font-weight:700; text-transform:uppercase; letter-spacing:.5px;
  font-size:300%; color:inherit; white-space:nowrap;
  margin-right:auto; padding-left:20px;
}

.links{ display:flex; gap:clamp(.25rem, 1.2vw, .6rem); align-items:center; flex-wrap:wrap; }
.links .break{ flex-basis:100%; height:0; display:none; } /* revealed at <=1100px below */

.nav a{
  font-weight:700; text-transform:uppercase; letter-spacing:.5px;
  word-spacing: clamp(0px, .2vw, 8px);
  font-size:calc(10px + .9vw);
  text-decoration:none; color:inherit;
  padding: clamp(.3rem, .8vw, .5rem) clamp(.6rem, 1.6vw, 1.2rem);
  position:relative; border-radius:0;
  transition: color .2s ease, background .2s ease;
  white-space:nowrap;
}
.nav a::after,
.menu a::after{
  content:""; position:absolute; left:0; bottom:.2em; height:5px; width:100%;
  background:currentColor; transform:scaleX(0); transform-origin:left center;
  transition: transform .9s ease;
}
.nav a:hover::after,
.menu a:hover::after,
.nav a[aria-current="page"]::after,
.menu a[aria-current="page"]::after{ transform:scaleX(1); }

.nav a[aria-current="page"],
.menu a[aria-current="page"]{
  background: var(--active-heading); color: var(--active-bg); border-radius:0;
}

.hamburger{
  display:none; background:transparent; border:0; color:inherit;
  width:44px; height:44px; border-radius:6px; cursor:pointer; margin-left:0;
}
.hamburger .bar,
.hamburger .bar::before,
.hamburger .bar::after{
  content:""; display:block; width:24px; height:2px; background:currentColor;
  margin:0 auto; position:relative; transition: transform .25s ease, opacity .25s ease;
}
.hamburger .bar::before{ position:absolute; top:-7px; left:0; }
.hamburger .bar::after{ position:absolute; top:7px; left:0; }
.hamburger[aria-expanded="true"] .bar{ transform:rotate(45deg); }
.hamburger[aria-expanded="true"] .bar::before{ transform:rotate(-90deg); top:0; }
.hamburger[aria-expanded="true"] .bar::after{ opacity:0; }

.menu-wrap{ position:fixed; left:0; right:0; bottom:var(--nav-h); z-index:59; pointer-events:none; }
.menu{
  margin:0 auto; width:min(1200px, 100%);
  background: var(--active-bg); color: var(--active-heading);
  transform:translateY(12px); opacity:0; padding:.5rem;
  display:flex; justify-content:center; gap:.25rem; flex-wrap:wrap;
  transition: transform .25s ease, opacity .25s ease, background .3s ease, color .3s ease;
  box-shadow:0 -20px 20px rgba(0,0,0,.12);
  border-top-left-radius:15px; border-top-right-radius:15px;
}
.menu a{
  position:relative; display:inline-block; padding:.65rem 1rem; color:inherit; text-decoration:none;
  font-weight:700; text-transform:uppercase; letter-spacing:.5px; font-size:clamp(.95rem, 4vw, 1.1rem);
  border-radius:0; white-space:nowrap;
}
.menu-open .menu-wrap{ pointer-events:auto; }
.menu-open .menu{ transform:translateY(0); opacity:1; }

/* =========================
   Corner Line Button
========================= */
.corner-line-btn{
  position:fixed;
  top: calc(env(safe-area-inset-top, 0px) + 40px);
  left: calc(env(safe-area-inset-left, 0px) + 40px);
  width:50px; height:5px; background:var(--active-heading);
  border:0; border-radius:1px; padding:0; box-shadow:none;
  z-index:1000; display:block; cursor:pointer;
  transition: background-color 1s ease;
}
.corner-line-btn:hover{
  background:var(--active-bg);
  animation: cornerLineBlink 1s ease-in-out infinite;
  box-shadow: var(--active-heading) 0 0 30px 3px;
}
@keyframes cornerLineBlink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* =========================
   Curiosity Overlay (hover reveal)
========================= */
.curiosity-overlay{
  position:fixed; inset:0; display:grid; place-items:center; padding:2rem; text-align:center;
  background:var(--active-bg); -webkit-backdrop-filter: blur(12px);
  color:var(--active-heading); opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
  z-index:9999;
}
.curiosity-overlay .message{
  max-width:60ch; font-weight:200;
  font-size:clamp(1.1rem, 2.8vw, 2rem); line-height:1.25; letter-spacing:.01em;
  text-shadow: var(--active-bg) 1px 0 10px;
}
.corner-line-btn:hover + .curiosity-overlay,
body:has(.corner-line-btn:hover) .curiosity-overlay{
  opacity:1; visibility:visible; transition: opacity 600ms ease, visibility 0s;
}

/* =========================
   DJ Table (minimal)
========================= */
.dj-wrap{ margin:24px auto 48px; padding:0px 0px; }
.dj-status{ color:var(--dj-muted); margin:0 0 10px; font-size:.95rem; }

.dj-table{ width:100%; border-collapse:collapse; table-layout:fixed; }
.dj-table col.name { width:52%; }
.dj-table col.genres { width:48%; }
.dj-table thead th{ display:none; }

.dj-table tbody tr{ cursor:pointer; transition: background-color .18s ease, color .18s ease; }
.dj-table tbody tr:hover{ background:var(--active-bg); --dj-text:var(--active-heading); }

.dj-table tbody td{
  border-bottom:1px solid var(--dj-line);
  padding:14px 8px; vertical-align:middle;
}
.dj-table tbody td:nth-child(2){ text-align:right; } /* genres right-aligned */

.dj-name{
  margin:0; font-size:clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight:700; text-transform:uppercase; letter-spacing:.4px; line-height:1.15; color:var(--dj-text);
}
.dj-genres{
  color:var(--dj-text); opacity:.95;
  font-size:clamp(.95rem, 1.6vw, 1.05rem); line-height:1.35; word-break:break-word;
}

/* Search */
.dj-search{
  margin:0 0 14px; padding:10px; width:100%;
  height:5vh; min-height:60px; font-size:2rem; border-radius:5px;
  border:2px solid var(--active-heading); background:var(--active-bg); color:var(--active-heading);
}
.dj-search::placeholder{ color:var(--active-bg); opacity:.96; font-family: 'Courier New', Courier, monospace;}
.dj-search:-moz-placeholder{ color:var(--active-heading); opacity:.96; }
.dj-search::-moz-placeholder{ color:var(--active-heading); opacity:.96; }
.dj-search:-ms-input-placeholder{ color:var(--active-heading); opacity:.9; }
.dj-search::-webkit-search-cancel-button{
  -webkit-appearance:none; height:20px; width:20px; background:var(--active-heading);
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'><path d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 1 0 5.7 7.11L10.59 12l-4.89 4.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4z'/></svg>") no-repeat center;
  cursor:pointer;
}

/* =========================
   Modal (DJ Card)
========================= */
.dj-modal{
  position:fixed; inset:0; display:grid; place-items:center;
  background: var(--active-bg); /* solid themed backdrop */
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .2s ease, visibility 0s linear .2s;
  z-index:9999;
}
.dj-modal.is-open{ opacity:1; visibility:visible; pointer-events:auto; transition: opacity .2s ease, visibility 0s; }

/* Media panel */
.dj-card-media{
  background:var(--active-heading); min-height:240px;
  border-radius:16px 0 0 16px; overflow:hidden;
}
.dj-card-media img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }

/* Body panel */
.dj-card-body{
  background:var(--active-heading); color:var(--active-bg);
  padding:clamp(16px, 3vw, 28px); position:relative;
  border-radius:0 16px 16px 0;
}

/* Mobile radii merge */
@media (max-width:800px){
  .dj-card-media{ border-radius:16px 16px 0 0; }
  .dj-card-body{ border-radius:0 0 16px 16px; }
}

/* Close button (top-right) */
.dj-close{
  position: fixed; top:10px; right:10px; left:auto;
  width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:transparent; color:currentColor;
  font-size:24px; line-height:1; cursor:pointer;
  z-index: 20000;
}

/* Typo in modal fixed + text */
.dj-card h3{ margin:0 0 8px; font-size:clamp(1.25rem, 3vw, 2rem); font-weight:800; letter-spacing:.2px; }
.dj-meta{  text-align: center; margin-bottom:10px; }
.dj-bio{ margin-top:10px; line-height:1.45; }



/* Blur background when modal open */
.modal-open main,
.modal-open .navbar{ filter:blur(6px); }
.modal-open{ height: 150vh; overflow:hidden; }

/* =========================
   Floating Next Button
========================= */
.next-btn{
  position:fixed; right:clamp(12px, 4vw, 24px); bottom:calc(var(--nav-h) + 20px);
  width:64px; height:64px; border-radius:50%; background:var(--active-bg);
  border:2px solid var(--c-heading); display:grid; place-items:center;
  cursor:pointer; z-index:58; pointer-events:auto;
  box-shadow:0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .15s ease, background .3s ease, border-color .3s ease, box-shadow .2s ease;
  mix-blend-mode:normal;
}
.next-btn:hover{ transform:translateY(-2px) scale(1.03); box-shadow:0 10px 24px rgba(0,0,0,.28); }
.next-btn:active{ transform:translateY(0) scale(.98); }
.next-btn::before,
.next-btn::after{ content:""; position:absolute; background:var(--active-heading); }
.next-btn::before{ width:26px; height:3px; left:18px; } /* shaft */
.next-btn::after{
  width:14px; height:14px; border-top:3px solid var(--active-heading); border-right:3px solid var(--active-heading);
  background:transparent; transform:rotate(45deg); right:20px;
}

/* =========================
   Responsive
========================= */
/* ≥ 901px */
@media (min-width:901px){
  .navbar{ display:grid; grid-template-columns:1fr 1fr; align-items:center; }
  .links{ display:flex; }
  .nav-slot{ display:flex; }
  .page{ overflow:hidden; padding-bottom:0; }
  .right{ overflow-y:auto; -webkit-overflow-scrolling:touch; scrollbar-color: var(--c-bg) var(--c-heading); }
  .right::-webkit-scrollbar{ width:12px; }
  .right::-webkit-scrollbar-thumb{ border-radius:6px; background: var(--c-bg); }
}

/* ≤ 1100px */
@media (max-width:1100px){
  .links .break{ display:block; }
}

/* ≤ 900px */
@media (max-width:900px){
  .links{ display:none; }
  .hamburger{ display:block; }
  .pane{ position:static; width:100%; clip-path:none; }
  .split{ display:grid; grid-template-columns:1fr; }
  .left, .right{ min-height: calc((100vh - var(--nav-h)) / 2); }
  .pane.left::before{
    content:""; position:absolute; inset:0;
    background-image:url("imgs/noisy.png"); background-repeat:repeat; background-position:0 0;
    opacity:.0001; pointer-events:none; mix-blend-mode:normal;
  }
  .home-hero{ position:absolute; inset:0; padding-bottom:0; z-index:1000; display:flex; align-items:center; justify-content:center; }
  .hero-text{
    background:none !important; -webkit-background-clip:initial !important; background-clip:initial !important;
    -webkit-text-fill-color:var(--c-card) !important; color:var(--c-card) !important;
  }
  #p0 .left{ background:var(--c-heading) !important; color:var(--c-card) !important; }
  .page{ overflow-y:auto; padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); }
  .right{ overflow:visible; padding-bottom:1rem; }
  .left h1 .h-sub{ display:none; }

  .corner-line-btn{ visibility: hidden; }
}

/* ≤ 700px */
@media (max-width:700px){
  :root{ --nav-h:56px; }
  .navbar{ display:flex; align-items:center; justify-content:space-between; padding:0 .75rem; }
  .nav-slot{ display:contents; }
  .brand{ font-size:2em; }
  .page:not(#p0) .left{ min-height:var(--nav-h); padding-block:.5rem; }
  .page:not(#p0) .right{ min-height: calc(100vh - var(--nav-h)); }
  .page:not(#p0) .left h1{
    font-size:clamp(1.2rem, 6.2vw, 1.7rem); line-height:1.05; letter-spacing:-.01em;
  }
  .left h1{ margin-top:10px;}
  .pane.left {height: 60px;}
  #p0 .pane.right{
    content:""; position:absolute; inset:0;
    background-image:url("imgs/cartographer.png"); background-repeat:repeat; background-position:0 0;
  }
}

/* Motion prefs */
@media (prefers-reduced-motion: reduce){
  .corner-line-btn{ transition: background-color .01s linear; }
  .corner-line-btn:hover{ animation:none; }
  .curiosity-overlay{ transition: opacity 150ms linear, visibility 0s; }
}

/* Ensure the grid itself is a fixed viewport height in desktop */
@media (min-width:901px){
  .split{
    /* lock the split to the viewport (minus navbar) */
    height: calc(100vh - var(--nav-h));
  }
  .pane{
    /* let the panes fit inside the split height */
    min-height: 0; /* <-- critical for scrolling children inside CSS Grid */
    overflow: hidden; /* clip each pane, we'll scroll inside .right only */
  }
  .right{
    min-height: 0;     /* <-- critical */
    overflow-y: auto;  /* the right pane now scrolls */
    -webkit-overflow-scrolling: touch;
 
    
  }
}

.contain-right {
  height: 100%;
  position: relative;
  width: 100%;
}

/* ===== Mobile: hide navbar & brand, keep top-drop menu, pin burger top-right ===== */
@media (max-width: 900px){
  /* No reserved nav height on mobile */
  :root{ --nav-h: 0px; }

  /* Visually remove the navbar (but don't visibility:hidden so menu can still render) */
  .navbar{
    background: transparent !important;
    box-shadow: none !important;
    height: 0 !important;
    padding: 0 !important;
    pointer-events: none;         /* navbar itself ignores clicks */
  }
  .brand,
  .links{ display: none !important; }

  /* Keep the slide-down menu attached to the TOP */
  .menu-wrap{
    top: 0 !important;
    bottom: auto !important;
    pointer-events: auto;         /* allow interactions with the menu */
    z-index: 2500;
  }
  .menu{
    transform: translateY(-12px);
    opacity: 0;
    border-radius: 0 0 15px 15px; /* rounded on the bottom only */
    box-shadow: 0 20px 20px rgba(0,0,0,.12);
  }
  .menu-open .menu{ transform: translateY(0); opacity: 1; }

  /* Pin the hamburger to the top-right above everything */
  .hamburger{
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 10px) !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 3000 !important;
    display: block !important;
    pointer-events: auto;         /* clickable even though navbar is non-interactive */
  }

  /* Content should not reserve space for a bottom bar anymore */
  .page{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .home-hero{ padding-top: 0 !important; }
}

/* Submit button states */
.btn.primary{
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease;
}

/* Uploading */
.btn.primary.is-loading{
  background:#777;           /* neutral while uploading */
  color:#fff;
  cursor: progress;
}

/* Success */
.btn.primary.is-success{
  background:#10b981;        /* green */
  color:#fff;                /* white text */
  box-shadow: 0 0 18px rgba(255,255,255,.65); /* subtle white glow */
}

/* Error */
.btn.primary.is-error{
  background:#ef4444;        /* red */
  color:#fff;                /* white text */
  animation: shake .3s linear 1;
}
@keyframes shake{
  25%{ transform: translateX(2px); }
  50%{ transform: translateX(-2px); }
  75%{ transform: translateX(1px); }
}

/* Artist flex and search */
/* ===== Right-pane 2-col (66% / 33%) + mobile stack ===== */
.right-pane-flex{
  display: grid;
  grid-template-columns: 2fr 1fr;  /* ~66% / 33% */
  gap: 20px;
  width: 100%;
  min-width: 0;                    /* allow content to shrink */
}
.right-pane-flex > *{
  min-width: 0;                    /* avoid overflow in grid/flex contexts */
}
/* Search bar column */
.content-33 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push child to bottom */
  padding-bottom: 12px;
  align-items: center;
}

.content-33 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push child to bottom */
  padding-bottom: 12px;
  align-items: center;
}

/* Mobile: stack to single column */
@media (max-width: 1450px){
  .right-pane-flex{
    grid-template-columns: 1fr;
  }
}

#dj-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--active-bg);
  border-radius: 1px;
  background: transparent;
  color: var(--active-bg);
  font-size: 1rem;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
   padding-left: 10px;
   align-items: center;
}
#dj-search:focus {
  border-color:  var(--active-bg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}


.about-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.about-list li {
  margin: .25rem 0;
  line-height: 1.35;
}

.apply-cta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-apply {
  display: inline-block;
  padding: 12px 26px;
  background: var(--active-bg);
  color: var(--active-heading);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .5px;
  transition: transform .18s ease, background .25s ease;
  will-change: transform;
}
.btn-apply:hover { transform: translateY(-2px); background: var(--c-link); }
.btn-apply:active { transform: translateY(0); }
.apply-note {
  opacity: .8;
  color: var(--active-heading);
  font-size: .9rem;
}

/* ===== Modal base (keeps your existing behavior) ===== */
.dj-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease-out, visibility .2s ease-out;
  padding: clamp(16px, 3vw, 32px);

}
.dj-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-open { overflow: hidden; }

.close-dj {
  position: fixed; top: 10px; right: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; opacity: .85; transition: transform .12s ease, opacity .12s ease;
}
.close-dj:hover { transform: scale(1.05); opacity: 1; }

/* ===== Luminous border frame (the “reference” look) ===== */
.dj-card-frame {
  position: relative; border-radius: 18px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 60%, rgba(255,255,255,0) 100%),
              linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  /* the hairline border */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 12px 40px rgba(0,0,0,0.55),
    0 0 28px rgba(135, 95, 255, .18); /* faint color glow */
  overflow: hidden;
}
/* corner accent lines */
.dj-card-frame::before,
.dj-card-frame::after {
  content: "";
  position: absolute; pointer-events: none;
  width: 140px; height: 140px;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, rgba(144,101,255,.7), rgba(0,227,255,.7)) 1;
  opacity: .65; mix-blend-mode: screen;
}
.dj-card-frame::before {
  top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0;
}
.dj-card-frame::after {
  right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0;
}

/* ===== Card inner layout ===== */
.dj-card-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
}
/* (keep single-column override if present elsewhere)
   .dj-card-inner { grid-template-columns: 1fr; } */

/* left: media */
.dj-card-left {
  display: grid; align-content: start;
}
.dj-media {
  aspect-ratio: 5 / 4;          /* portrait frame */
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);

}
.dj-media img {
  width: 100%; height: 100%;
  object-fit: cover;            /* fills frame, crops elegantly */
  display: block;
 
}
/* right: content */
.dj-card-right { display: grid; align-content: start; gap: 12px; }

.dj-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0.2px;
  margin: 0;
  color: var(--active-heading);
  text-shadow: 0 0 12px rgba(135, 95, 255, .2);
text-align: center;
text-transform: uppercase;}




/* divider */
.divider {
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255, .12) 10%, rgba(255,255,255, .12) 90%, rgba(255,255,255,0) 100%);
  margin: 8px 0 12px;
}

/* bio */
.dj-bio {
  line-height: 1.5;

  white-space: pre-line;
}

/* supports reduced motion */
@media (prefers-reduced-motion: reduce){
  .dj-modal, .dj-links a { transition: none !important; }
}

/* ==== DJ Modal: allow the whole page to scroll ==== */
.dj-modal {
  position: absolute;   /* instead of fixed */
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--active-bg);  /* or keep your rgba backdrop */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
  z-index: 9999;
  padding: clamp(20px, 4vw, 40px);
 
}
.dj-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease;
}

/* ===== allow the WHOLE PAGE to scroll when modal is open ===== */
/* Your SPA "page" is fixed + overflow hidden by default.
   Turn scrolling ON only while the modal is open. */
.modal-open .page{
  overflow-y: auto;          /* enable page scroll */
  -webkit-overflow-scrolling: touch;
}
/* Remove the scroll lock that was on <body> via .modal-open */
.modal-open{ overflow: visible; }  /* was: overflow:hidden */

/* Make the modal participate in the page flow */
.dj-modal{
  position: absolute;        /* instead of fixed */
  top: 0; left: 0; right: 0;
  /* no bottom/inset:0 so height grows with content */
  display: block;            /* no grid centering; we’ll center children ourselves */
  background: var(--active-bg);  /* keep the solid themed backdrop you like */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
  z-index: 9999;
  padding: clamp(20px, 4vw, 40px); /* breathing room */
}
.dj-modal.is-open{
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .2s ease;
}


/* Container (no white plate) */
.dj-card{

  background: transparent !important;
  color: var(--active-heading);
  border-radius: 16px;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  /* box-shadow: var(--active-heading) 0px 0px 1px 8px; */
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 20px;
 
     min-width: 580px;
     padding-bottom: 50px;
   padding-top: 20px;
}
   
   
.dj-card-frame {
   
              min-width: 580px;
  
}

@media (max-width: 570px){
  .dj-card{
    grid-template-columns: 2fr;


  border-radius: 0px;
   box-shadow: none;
   margin: 0;
   margin-top: 0; 
   min-width: 40vw;
  }
.dj-modal {
  height: 100vh;
  width: 100vw;
  padding-top: 0px
}
.dj-card-frame {
   
              min-width: 0px;
  
}
               
}
/* ==== DJ CARD: stack image above info (all sizes) ==== */
.dj-card-inner{
  grid-template-columns: 1fr !important;   /* 1 column layout */
  grid-auto-rows: auto;
  gap: clamp(12px, 2.4vw, 18px);
  background-image:url("imgs/cartographer-inverted.png");
  background-repeat:repeat; background-position:0 0;
opacity: 0.9;
   border: 0px;
   
}

/* Ensure the media sits on top and content below */
.dj-card-left{ order: 0; }   /* (order is harmless here; HTML order already correct) */
.dj-card-right{ order: 1; }

/* Top module (image) has rounded top corners; bottom (content) has rounded bottom corners */
.dj-media,
.dj-card-media{
  border-radius: 16px 16px 0 0 !important;
}
.dj-card-right,
.dj-card-body{
  border-radius: 0 0 16px 16px !important;
}

/* Themed links */


/* links row – ICONS only (FA6) */
.dj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  justify-content: center; 
}

.dj-links a {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  background: var(--active-bg);
  color: var(--active-heading);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 30px;  /* icon size */
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.dj-links a:hover,
.dj-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  outline: none;
}

.dj-links a:active { opacity: .85; }

/* hide text labels but keep them for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


 /* Minimal, scoped styling so it won’t clash with your theme */
  #p3 .email-btn{
    display:inline-block;
    margin-top:1rem;
    padding:.8rem 1.4rem;
    border-radius:12px;
    font-weight:700;
    text-decoration:none;
    background:var(--active-bg,#2b50a0);
    color:#fff;
    box-shadow:0 6px 16px rgba(0,0,0,.25);
    transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  }
  #p3 .email-btn:hover{ transform:translateY(1px); box-shadow:0 4px 12px rgba(0,0,0,.25); }
  #p3 .email-btn:active{ transform:translateY(2px); opacity:.95; }

  .modal-open .next-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

}

  .modal-open .navbar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

}

.dj-card-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--active-bg);
  z-index: 1000;
  display: none;
}

  .modal-open .dj-card-bg {
  display: block;
}