/* ============================================================
   ARKHIVE — shared design system
   Used by /arkhive, /arkhive/discover, /arkhive/studios/[id],
   /arkhive/login, /arkhive/signup, /arkhive/profile,
   /arkhive/favorites, /arkhive/admin/* — every "app-mode" page
   that isn't the fullscreen map.

   Loaded via: <link rel="stylesheet" href="assets/arkhive.css?v=1">
   Sits on top of the shared assets/styles.css base (LU tokens).
   ============================================================ */

:root {
  /* ── Ink + paper, observatory undertone ───────────────────
     Two-colour system, deeper + cooler than the warm cream
     direction. The base reads as "late-night studio" not
     "vacation rental on a beach". A muted indigo accent is the
     only chromatic move — used as a utility flicker on the map
     marker hover and the live status dot, never as a glow. */
  --ark-ink:          #07080b;
  --ark-ink-2:        #0f1117;
  --ark-ink-3:        #181b22;
  --ark-paper:        #dde2ea;
  --ark-paper-soft:   rgba(221, 226, 234, 0.74);
  --ark-paper-mute:   rgba(221, 226, 234, 0.48);
  --ark-paper-faint:  rgba(221, 226, 234, 0.22);
  --ark-accent:       #6478a6;   /* dusty indigo — atmospheric, not warm */
  --ark-gold:         #8a96b4;   /* legacy gold slot reassigned to cool */
  --ark-line:         rgba(221, 226, 234, 0.07);
  --ark-line-2:       rgba(221, 226, 234, 0.14);
  --ark-line-3:       rgba(221, 226, 234, 0.26);

  /* Legacy aliases — kept so app pages (dashboard, admin, etc.) keep
     reading sensible values without per-file edits. */
  --ark-bg:           var(--ark-ink);
  --ark-bg-deep:      #060504;
  --ark-bg-elev:      var(--ark-ink-2);
  --ark-bg-panel:     rgba(20, 19, 17, 0.62);
  --ark-bg-panel-2:   rgba(28, 26, 22, 0.78);
  --ark-text:         var(--ark-paper);
  --ark-text-soft:    var(--ark-paper-soft);
  --ark-text-mute:    var(--ark-paper-mute);
  --ark-text-faint:   var(--ark-paper-faint);
  --ark-glow:         var(--ark-accent);
  --ark-glow-warm:    var(--ark-gold);
  --ark-glow-cool:    var(--ark-accent);
  --ark-glow-mag:     var(--ark-accent);
  --ark-glow-grn:     var(--ark-gold);

  /* ── Typography — Inter, one face, used confidently ───────
     One typeface (Inter), several weights, generous size contrast.
     This is the Cereal / RA / Nowness / WeTransfer move: confidence
     comes from scale and restraint, not from font novelty. Fraunces
     is gone. JetBrains Mono is gone. Material Symbols is gone. */
  --ark-display: 'Syne', 'Inter', system-ui, sans-serif;
  --ark-body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ark-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Square corners — pills/rounded cards belong to SaaS dashboards. */
  --ark-r-sm:   0;
  --ark-r:      0;
  --ark-r-md:   0;
  --ark-r-lg:   0;
  --ark-pill:   0;

  --ark-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ark-ease-slow:   cubic-bezier(0.16, 1, 0.30, 1);

  /* Category swatches — neutral grays. No more dot indicators that
     read as SaaS-template status pills. */
  --ark-cat-music:      var(--ark-paper);
  --ark-cat-recording:  var(--ark-paper);
  --ark-cat-photo:      var(--ark-paper);
  --ark-cat-video:      var(--ark-paper);
  --ark-cat-podcast:    var(--ark-paper);
  --ark-cat-rehearsal:  var(--ark-paper);
  --ark-cat-loft:       var(--ark-paper);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

/* Legacy label classes — neutralized into a quiet uppercase mark
   rather than the wide-tracked terminal-style "AI eyebrow". */
.ark-eyebrow,
.ark-mono-label {
  font-family: var(--ark-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ark-paper-mute);
}

/* ── Page shell ────────────────────────────────────────── */
/* Flat. Pure. No gradients, no grain, no atmosphere. Photos do the work. */
body.ark-app {
  background: var(--ark-ink);
  color: var(--ark-text);
  font-family: var(--ark-body);
  font-weight: 400;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
}
body.ark-app .bg-parallax { display: none !important; }

/* ── Topbar ──────────────────────────────────────────────
   Flat, sharp. No blur, no gradient, no decorative mark. The
   wordmark is set tight and confident — letterspacing 0 — like
   RA's "RA" or Nowness's "N". Borders are 1px hairlines that
   actually serve as rules between sections, not glow accents. */
.ark-topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--ark-line);
  background: var(--ark-ink);
}
@media (max-width: 760px) {
  .ark-topbar { height: 60px; padding: 0 22px; }
}
.ark-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ark-paper);
  text-decoration: none; white-space: nowrap;
  text-transform: uppercase;
}
.ark-brand em { font-style: normal; font-weight: 500; }
/* A small breathing live-status dot in the indigo accent — read as
   "the network is online", not as a CTA glow. */
.ark-brand-mark {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ark-accent);
  position: relative;
}
.ark-brand-mark .ark-pulse {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ark-accent);
  opacity: 0;
  animation: ark-pulse 3.2s ease-out infinite;
}
@keyframes ark-pulse {
  0%   { opacity: 0.5; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.4); }
}

.ark-brand-sub { display: none; }   /* drop the "subtitle" line entirely */

.ark-nav {
  display: inline-flex; align-items: center; gap: 36px;
  justify-self: center;
}
.ark-nav a {
  font-family: var(--ark-display);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ark-paper-soft);
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 160ms ease;
}
.ark-nav a:hover     { color: var(--ark-paper); }
.ark-nav a.is-active { color: var(--ark-paper); }
.ark-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--ark-accent);
}
@media (max-width: 760px) { .ark-nav { display: none; } }

.ark-top-right {
  display: inline-flex; align-items: center; gap: 8px; justify-self: end;
}

/* ── Buttons — square, confident, no gloss ──────────────── */
.ark-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px;
  border-radius: 0;
  font-family: var(--ark-display);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
  user-select: none;
}
.ark-btn .material-symbols-outlined { font-size: 18px; }
.ark-btn[disabled],
.ark-btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Primary: paper on ink. Inverts on hover to ink on paper. No transform,
   no shadow — that's the SaaS lift; we don't do that. */
.ark-btn-solid {
  background: var(--ark-paper);
  color: var(--ark-ink);
  border: 1px solid var(--ark-paper);
}
.ark-btn-solid:hover { background: transparent; color: var(--ark-paper); }

.ark-btn-ghost {
  background: transparent;
  color: var(--ark-paper);
  border: 1px solid var(--ark-paper);
}
.ark-btn-ghost:hover { background: var(--ark-paper); color: var(--ark-ink); }

.ark-btn-quiet {
  background: transparent;
  color: var(--ark-paper-soft);
  border: 1px solid transparent;
  padding: 0 0 4px;
  height: auto;
  border-bottom: 1px solid var(--ark-line-2);
}
.ark-btn-quiet:hover { color: var(--ark-paper); border-bottom-color: var(--ark-paper); }

.ark-btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.ark-btn-lg { height: 56px; padding: 0 32px; font-size: 15px; }

/* Back-to-LU chip — quiet text link */

/* ── Cards ─────────────────────────────────────────────── */
.ark-card {
  background: rgba(12, 14, 18, 0.62);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-r-md);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  position: relative;
  overflow: hidden;
}
.ark-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

/* ── Studio card — Airbnb-style: photo, then quiet caption ── */
.studio-card {
  display: flex; flex-direction: column; gap: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: opacity 200ms ease;
}
.studio-card:hover { opacity: 0.95; }
.studio-card-media {
  position: relative;
  aspect-ratio: 4 / 5;       /* portrait — feels editorial, not SaaS */
  background: var(--ark-ink-2) center/cover no-repeat;
  overflow: hidden;
}
/* No bottom-fade gradient — the photo doesn't need a darken overlay. */
.studio-card-media::after { content: none; }

/* Strip the absolutely-positioned glass badges/buttons. The
   audit's #11 ("AVAILABLE · MUSIC STUDIO" pill row at top-left of
   every card) was the single loudest "Vercel/Lovable template" tell. */
.studio-card-badges { display: none; }
.studio-card-badge,
.studio-card-badge .dot { display: none; }

/* Save button: a paper-outline heart in the top-right of the photo.
   Airbnb-spec: 28px target, no backdrop blur, no border, fills on
   hover/active. Drops the glassmorphism circle. */
.studio-card-fav {
  position: absolute; top: 14px; right: 14px;
  z-index: 3;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--ark-paper);
  cursor: pointer;
  transition: opacity 160ms ease;
  opacity: 0.85;
}
.studio-card-fav:hover { opacity: 1; }
.studio-card-fav .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 0, 'wght' 300; }
.studio-card-fav.is-on .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400; }
.studio-card-fav.is-on { color: var(--ark-paper); }

.studio-card-body {
  padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.studio-card-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.studio-card-code { display: none; }   /* drop the "ARK-001" wide-tracked tag */
.studio-card-rate {
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ark-paper);
}
.studio-card-rate small {
  color: var(--ark-paper-mute);
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 2px;
}
.studio-card-name {
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ark-paper);
  margin: 0;
}
.studio-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ark-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ark-paper-mute);
  text-transform: none;
  margin-top: 2px;
}
.studio-card-meta .dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--ark-paper-faint);
}
/* The tiny architectural data row — code + curatorial index.
   Reads as a small instrument label, not as a SaaS chip. */
.studio-card-data {
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ark-paper-faint);
  margin-top: 6px;
}
/* Atmosphere chip row — drop entirely. It was 4-6 tiny wide-tracked
   uppercase pills, the most-recognized "AI list" tell on the audit. */
.studio-card-atmos { display: none; }

/* The category dot was a glow-shadowed coloured circle next to a
   wide-tracked uppercase label. Drop both glow and color — keep the
   element so consumers don't break, but render nothing. */
.cat-dot { display: none; }
.cat-dot[data-cat="podcast"]   { color: var(--ark-cat-podcast);   background: var(--ark-cat-podcast); }
.cat-dot[data-cat="rehearsal"] { color: var(--ark-cat-rehearsal); background: var(--ark-cat-rehearsal); }
.cat-dot[data-cat="loft"]      { color: var(--ark-cat-loft);      background: var(--ark-cat-loft); }

/* ── Atmosphere chip ───────────────────────────────────── */
.atmos-chip {
  display: inline-flex; align-items: center;
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--ark-line-2);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  color: var(--ark-text-soft);
}

/* ── Filter chips ──────────────────────────────────────── */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-pill);
  background: rgba(255,255,255,0.02);
  color: var(--ark-text-soft);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.filter-chip:hover    { border-color: var(--ark-line-3); color: #fff; }
.filter-chip.is-on    { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }

/* ── Section + container helpers ───────────────────────── */
.ark-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .ark-container { padding: 0 22px; }
}
.ark-section {
  padding: 80px 0;
  position: relative;
}
.ark-section + .ark-section { border-top: 1px solid var(--ark-line); }
.ark-section-eyebrow {
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.ark-section-eyebrow .ark-num {
  color: var(--ark-text-faint);
}
.ark-section-eyebrow .sep {
  flex: 1; height: 1px; background: var(--ark-line);
}
.ark-section-title {
  font-family: var(--ark-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.0;
  margin: 0 0 18px;
  color: #fff;
}
.ark-section-lede {
  font-family: var(--ark-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ark-text-soft);
  max-width: 620px;
  margin: 0 0 36px;
}

/* ── Bottom nav (mobile only) ──────────────────────────── */
.ark-bottomnav {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  z-index: 60;
  display: none;
  background: rgba(12, 14, 18, 0.82);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-pill);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.ark-bottomnav-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.ark-bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--ark-text-mute);
  text-decoration: none;
  border-radius: var(--ark-pill);
  transition: color 180ms ease, background 180ms ease;
}
.ark-bottomnav a:hover, .ark-bottomnav a:focus { color: #fff; }
.ark-bottomnav a.is-active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.ark-bottomnav a .material-symbols-outlined { font-size: 18px; }
.ark-bottomnav a span:last-child {
  font-family: var(--ark-mono);
  font-size: 8px; letter-spacing: 0.22em;
  text-transform: uppercase;
}
body.ark-app.with-bottomnav main { padding-bottom: 96px; }

@media (max-width: 720px) {
  .ark-bottomnav { display: block; }
  /* The top-nav links collapse to icon-only when bottomnav is shown */
  .ark-topbar .ark-nav { display: none; }
  /* Tighten topbar so brand + auth buttons fit on a 360–375px viewport */
  .ark-topbar { padding: 0 14px; grid-template-columns: 1fr auto; }
  .ark-brand { font-size: 13px; letter-spacing: 0.18em; gap: 8px; min-width: 0; }
  .ark-brand-sub { display: none; }
  .ark-top-right { gap: 6px; min-width: 0; }
  .ark-top-right .ark-btn-sm,
  .ark-top-right .ark-btn { height: 32px; padding: 0 12px; font-size: 10px; letter-spacing: 0.18em; }
}
@media (max-width: 420px) {
  /* On the tightest phones, drop brand mark and shorten the join button. */
  .ark-topbar { padding: 0 12px; }
  .ark-brand .ark-brand-mark { display: none; }
}

/* ── Responsive modal (ArkhiveResponsiveModal) ─────────── */
.ark-modal-backdrop {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(4, 5, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center; justify-content: center;
  padding: 28px;
}
.ark-modal-backdrop.is-open { display: flex; animation: ark-fade 220ms ease both; }
@keyframes ark-fade { from { opacity: 0; } to { opacity: 1; } }

.ark-modal {
  width: min(540px, 96vw);
  max-height: min(720px, 92vh);
  background: rgba(8, 10, 14, 0.94);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-r-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: ark-rise 300ms var(--ark-ease) both;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
}
@keyframes ark-rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ark-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ark-line);
}
.ark-modal-head .eyebrow {
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--ark-text-mute);
  text-transform: uppercase;
}
.ark-modal-head .title {
  font-family: var(--ark-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-top: 4px;
}
.ark-modal-close {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ark-line-2);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ark-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  -webkit-overflow-scrolling: touch;
}
.ark-modal-foot {
  padding: 14px 22px 18px;
  display: flex; gap: 10px;
  border-top: 1px solid var(--ark-line);
  background: rgba(8,10,14,0.92);
  position: sticky; bottom: 0;
}

/* Mobile: bottom sheet behavior */
@media (max-width: 640px) {
  .ark-modal-backdrop { padding: 0; align-items: flex-end; }
  .ark-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--ark-r-lg) var(--ark-r-lg) 0 0;
    animation: ark-rise-sheet 320ms var(--ark-ease) both;
  }
  @keyframes ark-rise-sheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .ark-modal::before {
    content: '';
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    pointer-events: none;
  }
  .ark-modal-head { padding-top: 22px; }
  .ark-modal-body { padding-bottom: 24px; }
  .ark-modal-foot { padding-bottom: max(18px, env(safe-area-inset-bottom, 18px)); }
}

/* ── Forms (used in modals + auth + booking) ───────────── */
.ark-form-row { display: flex; flex-direction: column; gap: 8px; }
.ark-form-row label {
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ark-text-mute);
  display: flex; align-items: center; gap: 10px;
}
.ark-form-row label .hint {
  margin-left: auto;
  color: var(--ark-text-faint);
  font-size: 9px;
}
.ark-form-row input[type="text"],
.ark-form-row input[type="email"],
.ark-form-row input[type="password"],
.ark-form-row input[type="number"],
.ark-form-row input[type="date"],
.ark-form-row input[type="url"],
.ark-form-row select,
.ark-form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--ark-line-2);
  color: #fff;
  font-family: var(--ark-body);
  /* 16px+ avoids the iOS Safari auto-zoom on focus */
  font-size: 16px;
  border-radius: var(--ark-r);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}
.ark-form-row input:focus,
.ark-form-row select:focus,
.ark-form-row textarea:focus {
  border-color: var(--ark-line-3);
  background: rgba(255,255,255,0.05);
}
.ark-form-row textarea { resize: vertical; min-height: 80px; max-height: 220px; }
.ark-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) {
  .ark-form-grid { grid-template-columns: 1fr; }
}

/* ── Toast (page-level notifier) ───────────────────────── */
.ark-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 12px 22px;
  background: rgba(255,255,255,0.96);
  color: #06070a;
  font-family: var(--ark-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--ark-pill);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 320ms var(--ark-ease);
}
.ark-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Empty state ───────────────────────────────────────── */
.ark-empty {
  text-align: center;
  padding: 64px 22px;
  color: var(--ark-text-mute);
}
.ark-empty .ark-empty-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ark-line-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ark-empty .ark-empty-icon .material-symbols-outlined { font-size: 24px; }
.ark-empty .ark-empty-eyebrow {
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ark-empty .ark-empty-title {
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 17px;
  color: #fff;
  margin: 0 0 6px;
}
.ark-empty .ark-empty-sub {
  font-family: var(--ark-body);
  font-size: 13px; line-height: 1.6;
  color: var(--ark-text-mute);
  margin: 0 auto 18px;
  max-width: 380px;
}

/* ── Section transitions on scroll ─────────────────────── */
.ark-reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ark-ease), transform 700ms var(--ark-ease); }
.ark-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ── Skip link (a11y, hidden until focused) ────────────── */
.ark-skip {
  position: absolute; top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: #15171a; color: #fff;
  font-family: var(--ark-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: var(--ark-pill);
  transform: translateY(-200%);
  transition: transform 200ms ease;
}
.ark-skip:focus { transform: translateY(0); outline: 2px solid #fff; }

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ark-reveal { opacity: 1; transform: none; transition: none; }
  .ark-brand-mark .ark-pulse { animation: none; }
}

/* ============================================================
   DREAMSCAN™ UI — interactive spatial studio preview
   Components: badge · CTA · preview card · viewer
   All visuals follow the brand rule: cinematic, restrained, dark.
   No neon overload, no gamer effects.
   ============================================================ */

/* ── Badge ─────────────────────────────────────────────── */
.ds-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--ark-line-2);
  background: rgba(10,12,18,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ark-text-soft);
  white-space: nowrap;
}
.ds-badge .material-symbols-outlined { font-size: 14px; }
.ds-badge .ds-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.ds-badge.verified { color: #d4b97a; border-color: rgba(212,185,122,0.36); }
.ds-badge.ready    { color: #a8d4ff; border-color: rgba(168,212,255,0.32); }
.ds-badge.pending  { color: var(--ark-text-faint); border-color: var(--ark-line-2); opacity: 0.85; }
.ds-badge.is-lg {
  padding: 8px 14px 8px 12px;
  font-size: 10.5px;
}
.ds-badge.is-lg .material-symbols-outlined { font-size: 16px; }

/* ── Spatial CTA (Open Dreamscan button) ────────────────── */
.ds-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 18px;
  border: 1px solid rgba(212,185,122,0.42);
  background: rgba(10,12,18,0.6);
  color: #fff;
  border-radius: 999px;
  font-family: var(--ark-mono);
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms var(--ark-ease), border-color 220ms ease, background 220ms ease;
}
.ds-cta .material-symbols-outlined { font-size: 17px; color: #d4b97a; }
.ds-cta .ds-cta-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 0% 50%, rgba(212,185,122,0.20) 0%, transparent 60%);
  opacity: 0.85;
}
.ds-cta .ds-cta-meta {
  font-size: 9px; letter-spacing: 0.22em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--ark-line-2);
}
.ds-cta:hover { transform: translateY(-1px); border-color: rgba(212,185,122,0.7); }
.ds-cta.is-solid {
  background: linear-gradient(180deg, rgba(212,185,122,0.18) 0%, rgba(212,185,122,0.06) 100%);
  border-color: rgba(212,185,122,0.55);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ds-cta.is-solid:hover { background: linear-gradient(180deg, rgba(212,185,122,0.26) 0%, rgba(212,185,122,0.10) 100%); }
.ds-cta.is-lg { padding: 14px 22px 14px 20px; font-size: 11.5px; }
.ds-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  color: var(--ark-text-soft);
  font-family: var(--ark-mono);
  font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--ark-line-2);
  background: transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.ds-cta-secondary:hover { color: #fff; border-color: var(--ark-line-3); }
.ds-cta-secondary .material-symbols-outlined { font-size: 15px; }

/* ── Atmosphere profile chips ──────────────────────────── */
.ds-atmos-profile {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 22px;
}
.ds-atmos-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--ark-line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.24em;
  color: var(--ark-text-soft);
  text-transform: uppercase;
}
.ds-atmos-chip .ds-atmos-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, #c8c8cc);
  box-shadow: 0 0 8px var(--c, #c8c8cc);
}

/* ── Preview card (studio detail premium section) ───────── */
.ds-preview {
  position: relative;
  margin: 56px 0 40px;
  padding: 28px;
  border: 1px solid rgba(212,185,122,0.28);
  border-radius: var(--ark-r-lg);
  background:
    radial-gradient(ellipse 60% 60% at 12% 0%, rgba(212,185,122,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(127,200,255,0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,12,18,0.7) 0%, rgba(6,8,12,0.92) 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  overflow: hidden;
}
.ds-preview::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 80px; height: 80px;
  border-top: 1px solid rgba(212,185,122,0.55);
  border-left: 1px solid rgba(212,185,122,0.55);
  pointer-events: none;
}
.ds-preview::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-bottom: 1px solid rgba(212,185,122,0.55);
  border-right: 1px solid rgba(212,185,122,0.55);
  pointer-events: none;
}
.ds-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ark-line-2);
}
.ds-preview-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4b97a;
}
.ds-preview-eyebrow .material-symbols-outlined { font-size: 18px; }
.ds-preview-eyebrow sup { font-size: 7px; letter-spacing: 0; opacity: 0.65; margin-left: 2px; }
.ds-preview-body {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 32px; align-items: stretch;
}
.ds-preview-visual {
  position: relative;
  aspect-ratio: 1.08;
  border-radius: var(--ark-r-md);
  overflow: hidden;
  border: 1px solid var(--ark-line-2);
  isolation: isolate;
}
.ds-preview-cover {
  position: absolute; inset: 0;
  filter: saturate(0.55) brightness(0.5);
  transform: scale(1.05);
}
.ds-preview-veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(0,0,0,0.75) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
}
.ds-preview-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.ds-preview-particles span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(212,185,122,0.85);
  box-shadow: 0 0 4px rgba(212,185,122,0.5), 0 0 10px rgba(212,185,122,0.18);
  animation: dsParticle 4.8s ease-in-out infinite;
}
.ds-preview-particles span:nth-child(2n) { background: rgba(168,212,255,0.7); box-shadow: 0 0 4px rgba(168,212,255,0.5); }
.ds-preview-particles span:nth-child(5n) { background: rgba(255,255,255,0.9); width: 3px; height: 3px; }
@keyframes dsParticle {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-6px); }
}
.ds-preview-watermark {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.ds-preview-readout {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--ark-text-soft);
  text-transform: uppercase;
}
.ds-preview-readout b { color: #fff; font-weight: 500; margin-right: 10px; }
.ds-preview-pending {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(6,8,12,0.6);
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.28em;
  color: var(--ark-text-soft);
  text-transform: uppercase;
}
.ds-preview-pending .material-symbols-outlined { font-size: 24px; color: var(--ark-text-mute); }

.ds-preview-title {
  font-family: var(--ark-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: #fff;
  margin: 0 0 14px;
}
.ds-preview-lede {
  font-family: var(--ark-body);
  font-size: 14.5px; line-height: 1.65;
  color: var(--ark-text-soft);
  margin: 0;
}
.ds-preview-points {
  display: flex; flex-direction: column; gap: 12px;
  margin: 20px 0 24px;
}
.ds-preview-points > div {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--ark-body);
  font-size: 13.5px; line-height: 1.55;
  color: var(--ark-text-soft);
}
.ds-preview-points b { color: #fff; font-weight: 500; display: block; margin-bottom: 2px; }
.ds-preview-points .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ark-line-2);
  color: #d4b97a;
}
.ds-preview-ctas {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
}
.ds-preview-foot {
  font-family: var(--ark-mono);
  font-size: 9px; letter-spacing: 0.28em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 820px) {
  .ds-preview { padding: 22px 18px; margin: 40px 0 32px; }
  .ds-preview-body { grid-template-columns: 1fr; gap: 22px; }
  .ds-preview-cta-meta { display: none; }
  .ds-cta .ds-cta-meta { display: none; }
  .ds-cta { padding: 12px 16px; }
}

/* ── Fullscreen viewer ─────────────────────────────────── */
body.ds-viewer-open { overflow: hidden; }
.ds-viewer {
  position: fixed; inset: 0; z-index: 1000;
  background: #04060a;
  opacity: 0; transition: opacity 360ms var(--ark-ease);
  display: flex;
}
.ds-viewer.is-on { opacity: 1; }
.ds-viewer-stage {
  position: absolute; inset: 0;
  background: #04060a;
}
.ds-viewer-stage.ds-stage-fallback {
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) brightness(0.55);
  animation: dsFallbackDrift 18s ease-in-out infinite alternate;
}
@keyframes dsFallbackDrift {
  0%   { transform: scale(1.04) translate3d(0,0,0); }
  100% { transform: scale(1.10) translate3d(-1.5%,-1.2%,0); }
}
.ds-viewer-veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.85) 100%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(212,185,122,0.06) 0%, transparent 60%);
}
.ds-viewer-hdr {
  position: relative; z-index: 3;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  gap: 14px;
}
.ds-viewer-hdr-l { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ds-viewer-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4b97a;
}
.ds-viewer-eyebrow .material-symbols-outlined { font-size: 16px; }
.ds-viewer-eyebrow sup { font-size: 7px; }
.ds-viewer-handle {
  font-family: var(--ark-display);
  font-size: 13px;
  color: var(--ark-text-soft);
  letter-spacing: 0.01em;
  border-left: 1px solid var(--ark-line-2);
  padding-left: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
.ds-viewer-hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ds-viewer-tool, .ds-viewer-close {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ark-line-2);
  background: rgba(10,12,18,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}
.ds-viewer-tool .material-symbols-outlined,
.ds-viewer-close .material-symbols-outlined { font-size: 16px; }
.ds-viewer-tool:hover, .ds-viewer-close:hover { border-color: var(--ark-line-3); background: rgba(255,255,255,0.06); }
.ds-viewer-tool.is-on { color: #d4b97a; border-color: rgba(212,185,122,0.5); }

.ds-viewer-hud-bl, .ds-viewer-hud-br {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 14px;
  background: rgba(6,8,12,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-r-sm);
  font-family: var(--ark-mono);
}
.ds-viewer-hud-bl { left: 22px; bottom: 96px; max-width: 280px; }
.ds-viewer-hud-br { right: 22px; bottom: 96px; text-align: right; }
.ds-hud-lbl { font-size: 9px; letter-spacing: 0.32em; color: var(--ark-text-faint); text-transform: uppercase; }
.ds-hud-meta { font-size: 10px; letter-spacing: 0.22em; color: var(--ark-text-soft); text-transform: uppercase; }
.ds-hud-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ds-hud-chips span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.03);
  color: var(--ark-text-soft);
}
.ds-hud-chips i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c, #ccc);
  box-shadow: 0 0 6px var(--c, #ccc);
  display: inline-block;
  font-style: normal;
}

.ds-viewer-hint {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(6,8,12,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ark-line-2);
  border-radius: 999px;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--ark-text-soft);
  text-transform: uppercase;
  transition: opacity 600ms ease;
}
.ds-viewer-hint .material-symbols-outlined { font-size: 16px; color: #d4b97a; }
.ds-viewer-hint.is-fade { opacity: 0; pointer-events: none; }

.ds-viewer-footer {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
}
.ds-viewer-footer-l { min-width: 0; }
.ds-foot-name {
  display: block;
  font-family: var(--ark-display);
  font-weight: 500;
  font-size: 17px;
  color: #fff;
  letter-spacing: -0.005em;
}
.ds-foot-tag {
  display: block;
  font-family: var(--ark-body);
  font-size: 12.5px;
  color: var(--ark-text-soft);
  margin-top: 2px;
  max-width: 540px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .ds-viewer-hdr { padding: 14px 14px; }
  .ds-viewer-handle { display: none; }
  .ds-viewer-tool .ds-viewer-tool-label, .ds-viewer-tool span:not(.material-symbols-outlined) { display: none; }
  .ds-viewer-tool { width: 34px; padding: 0; justify-content: center; }
  .ds-viewer-close span:not(.material-symbols-outlined) { display: none; }
  .ds-viewer-close { width: 34px; padding: 0; justify-content: center; }
  .ds-viewer-hud-bl, .ds-viewer-hud-br { display: none; }
  .ds-viewer-footer { padding: 14px 14px; }
  .ds-foot-tag { display: none; }
  .ds-foot-name { font-size: 15px; }
  .ds-viewer-footer .ds-cta span:not(.material-symbols-outlined) { font-size: 10px; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-preview-particles span, .ds-viewer-stage.ds-stage-fallback { animation: none !important; }
}

/* Dreamscan badge — retired from the studio card. The pill was the
   single most-recognized AI-template tell on the listings (cyan/gold
   glow + blur + wide-tracked uppercase). The Dreamscan surface lives
   on the studio detail page where it can breathe properly. */
.studio-card-ds { display: none; }

/* ============================================================
   DREAMSCAN v3 — viewer overlay chrome
   ────────────────────────────────────────────────────────────
   Spec: top-left brand · bottom-left meta · top-right tabs ·
   bottom-right controls · bottom-CTA Enter Studio. Restrained,
   minimal, never competes with the cloud beneath.
   ============================================================ */

/* Top-left brand identifier */
.ds-v3-hdr-l {
  position: absolute; top: 22px; left: 22px; z-index: 6;
  display: flex; align-items: flex-start; gap: 12px;
  pointer-events: none;
}
.ds-v3-brand-mark {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0; margin-top: 4px;
}
.ds-v3-brand-mark::before, .ds-v3-brand-mark::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.7); border-radius: 2px;
}
.ds-v3-brand-mark::after { transform: rotate(45deg) scale(0.62); border-color: rgba(255,255,255,0.4); }
.ds-v3-brand {
  font-family: var(--ark-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #fff;
  line-height: 1.1;
}
.ds-v3-brand sup { font-size: 7px; letter-spacing: 0; opacity: 0.6; margin-left: 1px; }
.ds-v3-sub {
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Top-right tab strip + utility buttons */
.ds-v3-hdr-r {
  position: absolute; top: 22px; right: 22px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
}
.ds-v3-tabs {
  display: inline-flex;
  background: rgba(6,8,12,0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--ark-line-2);
  border-radius: 999px;
  padding: 3px;
}
.ds-v3-tab {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--ark-text-soft);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.ds-v3-tab:hover { color: #fff; }
.ds-v3-tab.is-on {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.ds-v3-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ark-line-2);
  background: rgba(6,8,12,0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.ds-v3-icon .material-symbols-outlined { font-size: 16px; }
.ds-v3-icon:hover { border-color: var(--ark-line-3); background: rgba(255,255,255,0.06); }
.ds-v3-icon.is-on { color: #d4b97a; border-color: rgba(212,185,122,0.5); }

/* Bottom-left studio meta block */
.ds-v3-meta {
  position: absolute; bottom: 100px; left: 22px; z-index: 6;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  background: rgba(6,8,12,0.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-r-md);
  min-width: 220px; max-width: 320px;
}
.ds-v3-meta-row {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--ark-mono);
}
.ds-v3-meta-row .k {
  font-size: 9px; letter-spacing: 0.32em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
  min-width: 60px;
}
.ds-v3-meta-row .v {
  font-size: 11px; letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}
.ds-v3-meta-row .v.ds-v3-status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ark-glow-grn);
}
.ds-v3-meta-row .v.ds-v3-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ark-glow-grn);
  box-shadow: 0 0 8px var(--ark-glow-grn);
  animation: ark-pulse 2.4s ease-in-out infinite;
  font-style: normal;
}
.ds-v3-meta-atmos {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--ark-line);
}
.ds-v3-meta-atmos span {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ark-mono);
  font-size: 9px; letter-spacing: 0.22em;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  color: var(--ark-text-soft);
  text-transform: uppercase;
}
.ds-v3-meta-atmos i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c, #ccc);
  box-shadow: 0 0 6px var(--c, #ccc);
  font-style: normal;
}

/* Bottom-right controls (intensity / motion sliders) */
.ds-v3-controls {
  position: absolute; bottom: 100px; right: 22px; z-index: 6;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  background: rgba(6,8,12,0.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--ark-line-2);
  border-radius: var(--ark-r-md);
  min-width: 240px;
}
.ds-v3-ctrl-row {
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.ds-v3-ctrl-row label {
  font-family: var(--ark-mono);
  font-size: 9px; letter-spacing: 0.32em;
  color: var(--ark-text-faint);
  text-transform: uppercase;
}
.ds-v3-ctrl-row input[type="range"] {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  height: 14px;
  cursor: pointer;
  width: 100%;
}
.ds-v3-ctrl-row input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ark-glow) 0%, rgba(255,255,255,0.12) 100%);
  border-radius: 1px;
}
.ds-v3-ctrl-row input[type="range"]::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ark-glow) 0%, rgba(255,255,255,0.12) 100%);
  border-radius: 1px;
}
.ds-v3-ctrl-row input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(207,230,255,0.6);
  cursor: pointer;
}
.ds-v3-ctrl-row input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(207,230,255,0.6);
  cursor: pointer;
}
.ds-v3-ctrl-row span {
  font-family: var(--ark-mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--ark-text-soft);
  text-align: right;
}

/* Bottom-CTA — Enter Studio */
.ds-v3-cta-wrap {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.ds-v3-cta {
  pointer-events: auto;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  text-decoration: none;
  font-family: var(--ark-mono);
  font-size: 11.5px; letter-spacing: 0.32em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.16,1,0.30,1), border-color 220ms ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.ds-v3-cta:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.55); }
.ds-v3-cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(207,230,255,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.ds-v3-cta .material-symbols-outlined { font-size: 18px; }
.ds-v3-cta-label { position: relative; z-index: 1; }
.ds-v3-cta-meta {
  font-family: var(--ark-mono);
  font-size: 9.5px; letter-spacing: 0.24em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  max-width: 480px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Mobile — bottom-sheet style overlays */
@media (max-width: 720px) {
  .ds-v3-hdr-l { top: 14px; left: 14px; gap: 8px; }
  .ds-v3-brand { font-size: 11.5px; letter-spacing: 0.2em; }
  .ds-v3-sub { font-size: 8.5px; letter-spacing: 0.26em; }
  .ds-v3-hdr-r { top: 14px; right: 14px; gap: 6px; }
  .ds-v3-tabs { display: none; } /* tabs collapse to icon row on phones (Preview is default) */
  .ds-v3-meta {
    left: 14px; right: 14px; bottom: 200px;
    max-width: none; min-width: 0;
    padding: 12px 14px;
    flex-direction: row; flex-wrap: wrap; gap: 6px 16px;
  }
  .ds-v3-meta-atmos { width: 100%; margin-top: 4px; padding-top: 8px; }
  .ds-v3-controls {
    left: 14px; right: 14px; bottom: 84px;
    min-width: 0;
    padding: 10px 14px;
  }
  .ds-v3-ctrl-row { grid-template-columns: 60px 1fr 36px; }
  .ds-v3-cta { padding: 12px 18px; font-size: 10.5px; letter-spacing: 0.26em; }
  .ds-v3-cta-meta { font-size: 8.5px; }
}

/* Hide the v2 HUD blocks now that v3 chrome supersedes them. The v2
   classes are still referenced by legacy callers — keep them styled
   but invisible inside the viewer so we don't break anything. */
.ds-viewer .ds-viewer-hdr,
.ds-viewer .ds-viewer-hud-bl,
.ds-viewer .ds-viewer-hud-br,
.ds-viewer .ds-viewer-footer { display: none !important; }
