/* ═══════════════════════════════════════════════════════════════════
   The EmPrompt App — landing-page stylesheet

   Colour schemes referenced from the EmPrompt App codebase:
     • Light Blue / Black — body[data-theme="lightblue"] palette
       (bg #eef4fb · ink #111827 → slate #2f4a66 → steel #3f6a94)
     • Cream / Black      — body[data-theme="cream"] palette
       (bg #f7f1e5 · ink #1b1b1b → charcoal #4a4038 → taupe #6b5d4f)

   Fonts: Syne (titles / body) + JetBrains Mono (labels) — the same
   pairing the EmPrompt app uses. Title styling mirrors the app's
   .hdr / .hero-title rules (weight 800, gradient letter-fade on em).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

img, svg, video, audio { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

/* The colour scheme is carried in the URL hash (#cream) and applied
   with :target — no JavaScript, and the choice survives page changes. */

/* ── Scheme 1 (DEFAULT) — Black / Sky Blue · "cyber dark-blue" ───── */
.page {
  --bg:    #020b18;
  --s1:    #071525;
  --s2:    #0d1f35;
  --s3:    #112844;
  --bd:    rgba(60, 160, 255, .25);
  --bd2:   rgba(60, 160, 255, .45);
  --a1:    #3cb0ff;   /* sky blue */
  --a2:    #00e8d8;   /* cyan */
  --a3:    #ffffff;   /* white */
  --a4:    #ffe066;   /* gold */
  --tx:    #f0f8ff;
  --mu:    #bcd8ec;
  --mu2:   #d6eaf6;
  --lbl:   #7dd0ff;
  --paper: rgba(2, 11, 24, .62);
  --tint:  60, 160, 255;
  --swatch: linear-gradient(135deg, rgb(60, 176, 255), rgb(0, 232, 216));
  --tile-art: linear-gradient(135deg, #071525 0%, #0d1f35 55%, #14304f 100%);
  --cta-pipe: rgba(60, 176, 255, .55);
  --cta-fill: linear-gradient(135deg, #0d2a44 0%, #123a5c 55%, #17507a 100%);
  --trans:  .18s ease;
}

/* ── Scheme 2 — Light Blue / Black ───────────────────────────────── */
html[data-theme="lightblue"] .page {
  --bg:    #eef4fb;
  --s1:    #e3edf8;
  --s2:    #d7e6f6;
  --s3:    #c8daf0;
  --bd:    rgba(30, 90, 150, .28);
  --bd2:   rgba(30, 90, 150, .50);
  --a1:    #111827;   /* ink */
  --a2:    #2f4a66;   /* slate */
  --a3:    #3f6a94;   /* steel blue */
  --a4:    #155a96;
  --tx:    #0a1018;
  --mu:    #3f5a75;
  --mu2:   #28425c;
  --lbl:   #1c2c3d;
  --paper: rgba(244, 249, 254, .85);
  --tint:  30, 90, 150;
  --swatch: linear-gradient(135deg, rgb(238, 244, 251), rgb(17, 24, 39));
  --tile-art: linear-gradient(135deg, #ffffff 0%, #f3f6fa 45%, #e3e8ef 100%);
  --cta-pipe: rgba(63, 106, 148, .55);
  --cta-fill: linear-gradient(135deg, #eaf2fc 0%, #d5e3f6 55%, #c4d9f1 100%);
}

/* ── Scheme 3 — Dark / Violet (from the EmPrompt App) ────────────── */
html[data-theme="violet"] .page {
  --bg:    #050508;
  --s1:    #0c0c14;
  --s2:    #121220;
  --s3:    #1a1a2e;
  --bd:    rgba(140, 110, 255, .22);
  --bd2:   rgba(140, 110, 255, .40);
  --a1:    #8b6fff;   /* violet */
  --a2:    #ff55d0;   /* magenta */
  --a3:    #00eeff;   /* cyan */
  --a4:    #ffd580;
  --tx:    #f0eeff;
  --mu:    #d4cef4;
  --mu2:   #e8e4f7;
  --lbl:   #c4b6ff;
  --paper: rgba(5, 5, 8, .62);
  --tint:  140, 110, 255;
  --swatch: linear-gradient(135deg, rgb(139, 111, 255), rgb(255, 85, 208));
  --tile-art: linear-gradient(135deg, #12121e 0%, #1a1a2e 55%, #242444 100%);
  --cta-pipe: rgba(139, 111, 255, .55);
  --cta-fill: linear-gradient(135deg, #1a1a2e 0%, #2a2050 55%, #3a2a70 100%);
}

/* ── Scheme 4 — Black / Orange (from the EmPrompt App) ───────────── */
html[data-theme="orange"] .page {
  --bg:    #080500;
  --s1:    #150e00;
  --s2:    #1f1500;
  --s3:    #2a1c00;
  --bd:    rgba(255, 160, 30, .25);
  --bd2:   rgba(255, 160, 30, .45);
  --a1:    #ff9500;   /* orange */
  --a2:    #ff5e00;   /* deep orange */
  --a3:    #ffe566;   /* amber */
  --a4:    #ff3d7f;
  --tx:    #fff8f0;
  --mu:    #e8cca0;
  --mu2:   #f2e0b8;
  --lbl:   #ffb84d;
  --paper: rgba(8, 5, 0, .62);
  --tint:  255, 160, 30;
  --swatch: linear-gradient(135deg, rgb(255, 149, 0), rgb(255, 94, 0));
  --tile-art: linear-gradient(135deg, #150e00 0%, #241800 55%, #33220a 100%);
  --cta-pipe: rgba(255, 149, 0, .55);
  --cta-fill: linear-gradient(135deg, #241800 0%, #33220a 55%, #4a3108 100%);
}

/* ── Scheme 5 — Cream / Black (also reachable without JavaScript via
   <body id="cream"> + :target, so existing #cream links keep working) ─ */
html[data-theme="cream"] .page,
body:target .page {
  --bg:    #f7f1e5;
  --s1:    #efe7d6;
  --s2:    #e7dcc2;
  --s3:    #ddd0b0;
  --bd:    rgba(122, 95, 45, .28);
  --bd2:   rgba(122, 95, 45, .50);
  --a1:    #1b1b1b;   /* ink */
  --a2:    #4a4038;   /* charcoal */
  --a3:    #6b5d4f;   /* taupe */
  --a4:    #a05a16;
  --tx:    #15110a;
  --mu:    #6d5b3e;
  --mu2:   #4a3b28;
  --lbl:   #2b241a;
  --paper: rgba(255, 252, 244, .82);
  --tint:  122, 95, 45;
  --swatch: linear-gradient(135deg, rgb(247, 241, 229), rgb(20, 20, 20));
  --tile-art: linear-gradient(135deg, #fffdf9 0%, #f6f2ec 45%, #e9e4db 100%);
  --cta-pipe: rgba(160, 110, 40, .55);
  --cta-fill: linear-gradient(135deg, #f6efdf 0%, #eadfc6 55%, #ddcfac 100%);
}

/* ── Page shell ──────────────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--trans), color var(--trans);
}

/* Atmosphere — the app's dual radial-glow recipe, tinted per scheme */
.page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 50% at 15% 5%,  rgba(var(--tint), .25) 0%, transparent 65%),
    radial-gradient(55% 40% at 85% 90%, rgba(var(--tint), .18) 0%, transparent 65%);
  animation: bgBreath 10s ease-in-out infinite alternate;
}
@keyframes bgBreath { from { opacity: .7; } to { opacity: 1; } }

/* Floating decorative orbs (as in the app) */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-a { width: 220px; height: 220px; top: -60px; right: -40px; background: rgba(var(--tint), .18); }
.orb-b { width: 160px; height: 160px; bottom: 120px; left: -40px; background: rgba(var(--tint), .15); animation-delay: -5s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-22px) scale(1.05); }
}

/* Layout wrapper — wider than the app's 560px because this is a
   landing page, but the same centred, padded, translucent treatment */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* ── Theme bar (mirrors the app's .theme-bar) ────────────────────── */
.theme-bar {
  display: flex;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 999px;
  overflow-x: auto;   /* five schemes swipe horizontally on phones */
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.theme-bar::-webkit-scrollbar { display: none; }
.theme-bar-label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mu);
  border-right: 1px solid var(--bd);
  white-space: nowrap;
}
.swatch-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--mu2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.swatch-btn:hover { background: var(--s2); color: var(--tx); }
.swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .15);
}
.swatch-violet    { background: linear-gradient(135deg, rgb(139, 111, 255), rgb(255, 85, 208)); }
.swatch-skyblue   { background: linear-gradient(135deg, rgb(60, 176, 255), rgb(0, 232, 216)); }
.swatch-orange    { background: linear-gradient(135deg, rgb(255, 149, 0), rgb(255, 94, 0)); }
.swatch-lightblue { background: linear-gradient(135deg, rgb(238, 244, 251), rgb(17, 24, 39)); }
.swatch-cream     { background: linear-gradient(135deg, rgb(247, 241, 229), rgb(20, 20, 20)); }

/* Active swatch — theme.js marks the button matching the active scheme
   with .active; body:target keeps the Cream button lit without
   JavaScript so brand-new #cream links still feel instant */
.swatch-btn::after { content: none; }
.swatch-btn.active,
body:target .swatch-btn[data-scheme="cream"] {
  background: rgba(var(--tint), .12);
  color: var(--tx);
}
.swatch-btn.active::after,
body:target .swatch-btn[data-scheme="cream"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--a1);
  box-shadow: 0 0 6px var(--a1);
}
.swatch-btn:focus-visible { outline: 3px solid var(--a4); outline-offset: -3px; }

/* ── Header / main title — the app's .hdr + .hero-title rules ────── */
.hdr {
  padding: 34px 0 26px;
  text-align: center;
  animation: fadeDown .5s ease both;
}
.logo-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--a1), var(--a3));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(var(--tint), .45);
}
.logo-name {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hdr h1 {
  font-size: clamp(22px, 4.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.6px;
  margin: 0 auto 8px;
  padding: 0 12px;
  color: var(--tx);
}
.hdr h1 em {
  font-style: normal;
  background: linear-gradient(130deg, var(--a3) 0%, var(--a1) 50%, var(--a2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hdr p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .4px;
  color: var(--mu);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Containers — piped, rounded borders ───────────────────────────
   Rounded pill cards with a double "piped" trim: a stronger outer
   border plus a hairline inner line inset a few pixels, echoing the
   app's .wrap / .card rounded-outline language. */
.container {
  position: relative;
  margin: 26px 0;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--bd2);
  border-radius: 26px;
  box-shadow:
    0 0 0 1px var(--bd),
    0 0 34px rgba(var(--tint), .10),
    inset 0 0 22px rgba(var(--tint), .05);
  animation: fadeUp .5s ease both;
}
.container::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--bd);
  border-radius: 21px;
  pointer-events: none;
}

.cont-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
/* Arrow toggle pinned to the right of each collapsible container head */
.cont-toggle {
  margin-left: auto;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--bd2);
  background: var(--s2);
  color: var(--tx);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cont-toggle:hover { background: var(--s3); border-color: var(--a1); transform: translateY(-1px); }
.cont-toggle:active { transform: translateY(0) scale(.96); }
.cont-toggle:focus-visible { outline: 3px solid var(--a4); outline-offset: 2px; }
.cont-toggle-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform .25s ease;
}
/* Shut = arrow points right; open = arrow points down */
.is-collapsible.is-shut .cont-toggle-arrow { transform: rotate(-90deg); }
/* The collapsible body animates open/shut; hidden until JS boots */
.cont-body { overflow: hidden; }
.is-collapsible.is-shut .cont-body { display: none; }
.is-collapsible:not(.is-shut) .cont-body { animation: fadeUp .3s ease both; }
.cont-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--mu);
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.cont-title {
  font-size: clamp(16px, 2.6vw, 20px);
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--tx);
}
.cont-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.65;
  color: var(--mu);
  margin-bottom: 18px;
}

/* ── Container 1 · media placeholder tiles ─────────────────────────
   Compact horizontal cards so all three fit on one desktop/laptop row. */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  background: var(--s2);
  border-color: var(--bd2);
  box-shadow: 0 10px 26px rgba(var(--tint), .16);
}
.tile:active { transform: translateY(-1px) scale(.99); }
.tile:focus-visible { outline: 3px solid var(--a4); outline-offset: 2px; }

/* The "picture" — soft white → light-grey gradient backdrop with a
   black-ink vector pictogram (replaces the dull dark swatch fill) */
.tile-art {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--tile-art);
  color: var(--tx);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .06),
    0 6px 16px rgba(var(--tint), .12);
}
.tile-art svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}
.tile-body { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.tile-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mu);
}
.tile-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mu2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-arrow {
  margin-left: auto;
  flex: none;
  font-size: 18px;
  color: var(--mu2);
  transition: transform .2s ease, color .2s ease;
}
.tile:hover .tile-arrow { transform: translateX(4px); color: var(--tx); }

/* ── CTA — transparent pill with light-blue piping; the soft light-blue
   filling takes over on mouseover/mouseoff ────────────────────────── */
.cta-area {
  text-align: center;
  margin: 30px 0;
  animation: fadeUp .5s .05s ease both;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  overflow: hidden;
  /* mouse-off state: transparent filling + light-blue piping */
  border: 1.5px solid var(--cta-pipe);
  background: transparent;
  color: var(--tx);
  font-family: 'Syne', sans-serif;
  font-size: clamp(14px, 3.4vw, 16.5px);
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .18s ease;
}
/* Sheen sweep — visible only while the light-blue fill is showing */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(63, 106, 148, .28), 0 0 0 0 rgba(63, 106, 148, .35); }
  50%      { box-shadow: 0 10px 26px rgba(63, 106, 148, .38), 0 0 0 9px rgba(63, 106, 148, 0); }
}
@keyframes ctaSheen {
  0%       { left: -70%; }
  55%, 100% { left: 130%; }
}
/* mouseover: the lightened light-blue filling takes over */
.cta-btn:hover {
  background: var(--cta-fill);
  border-color: transparent;
  transform: translateY(-2px) scale(1.02);
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.cta-btn:hover::after {
  opacity: 1;
  animation: ctaSheen 2.8s ease-in-out infinite;
}
/* Subtle press animation on selection/click */
.cta-btn:active { transform: translateY(0) scale(.97); }
.cta-btn:focus-visible { outline: 3px solid var(--a4); outline-offset: 3px; }
.cta-note {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mu);
}

/* ── Container 2 · AI model cards ────────────────────────────────── */
.models {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.model-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.model-card:hover {
  transform: translateY(-3px);
  border-color: var(--bd2);
  box-shadow: 0 10px 26px rgba(var(--tint), .16);
}
.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a1), var(--a3));
}
.model-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.model-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--swatch);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(var(--tint), .18);
}
.model-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--tx);
}
.model-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .6px;
  color: var(--mu);
}
.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.meta-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--s2);
  color: var(--mu2);
}
.model-strengths { display: grid; gap: 7px; }
.model-strengths li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mu2);
}
.model-strengths li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--a4);
}

/* ── Container 3 · domains ───────────────────────────────────────── */
.domain-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mu2);
}
.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--s1);
  color: var(--mu2);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover {
  background: rgba(var(--tint), .12);
  border-color: var(--bd2);
  color: var(--tx);
  transform: translateY(-1px);
}

/* Gallery category bar — same pill-bar pattern as the theme bar;
   the current category is a non-link chip marked .chip-on */
.gal-bar {
  display: flex;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 999px;
  overflow: hidden;
}
.gal-bar-label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mu);
  border-right: 1px solid var(--bd);
  white-space: nowrap;
}
.gal-bar .chip { border-radius: 0; border: none; background: transparent; }
.gal-bar a.chip:hover { background: var(--s2); transform: none; border-color: transparent; }
.gal-bar .chip-on {
  background: rgba(var(--tint), .12);
  color: var(--tx);
}

/* ── Galleries — separate pages ────────────────────────────────────
   Each gallery is its own HTML page, linked from the placeholder
   tiles on index.html. The chosen colour scheme travels in the URL
   hash: theme.js stamps the active scheme onto every internal link
   that does not already carry one. The .alt-default (plain href) and
   .alt-cream (href ending in #cream) twins remain for the
   no-JavaScript case — :target shows the matching variant. */
a.alt-cream { display: none; }
body:target a.tile.alt-cream { display: flex; }
body:target a.back-btn.alt-cream { display: inline-flex; }
body:target a.chip.alt-cream { display: inline-block; }
body:target .alt-default { display: none; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--s1);
  border: 1px solid var(--bd);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mu2);
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.back-btn:hover {
  background: var(--s2);
  border-color: var(--bd2);
  color: var(--tx);
  transform: translateX(-2px);
}
.back-btn:focus-visible { outline: 3px solid var(--a4); outline-offset: 2px; }

/* Media figures (players / pictures) */
.media-figure {
  padding: 14px;
  margin-bottom: 14px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 16px;
}
.media-figure:last-child { margin-bottom: 0; }
.media-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.media-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
}
.media-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mu);
}
.media-figure video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 8px 20px rgba(var(--tint), .18);
}
.media-figure audio { width: 100%; }
.media-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--bd);
  background: var(--s2);
}
.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  margin-top: 34px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--bd);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .6px;
  line-height: 1.8;

/* ── Footer legal links ───────────────────────────────────────────────
   Privacy Policy + Terms & Conditions opening the LegalDocs .txt files. */
.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--tx);
  border-bottom: 1px solid var(--bd2);
  padding-bottom: 1px;
  transition: color var(--trans), border-color var(--trans);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--a1);
  border-color: var(--a1);
}
.footer-sep { color: var(--mu); }

/* ── Multimedia category totals on the index gallery tiles ──────────────
   Small count pills ("3 assets") kept in sync by discover + gallery JS. */
.tile-count {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid var(--bd2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .5px;
  color: var(--mu);
  background: var(--paper);
  max-width: max-content;
}

/* ── Gallery category chips carry a live numeric total ───────────────── */
.gal-bar .chip { gap: 8px; }
.chip-count {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 1px 7px;
  border: 1px solid var(--bd2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mu);
  background: var(--paper);
}
  color: var(--mu);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — one page, every device
   Base styles above are mobile-first (phones). Below, tablets and
   desktops progressively widen the layout without changing content.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablets & small laptops ─────────────────────────────────────── */
@media (min-width: 640px) {
  .wrap { padding: 0 26px 64px; }

  .container { padding: 28px 26px; }

  /* Compact horizontal cards, three across on one line */
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { gap: 10px; padding: 10px 12px; }
  .tile-art { flex-basis: 52px; width: 52px; height: 52px; border-radius: 10px; }
  .tile-art svg { width: 28px; height: 28px; }
  .tile-label { font-size: 8px; letter-spacing: 1.2px; }
  .tile-title { font-size: 13px; }
  .tile-desc { font-size: 9px; }
  .tile-count { font-size: 9px; padding: 3px 8px; margin: 2px 0; }
  .tile-arrow { font-size: 16px; }

  .image-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktops / laptops ──────────────────────────────────────────── */
@media (min-width: 900px) {
  .wrap { max-width: 860px; }

  .hdr { padding: 44px 0 30px; }

  .container { padding: 32px 32px; }
  .container::before { inset: 7px; border-radius: 19px; }

  /* The two AI models sit side by side on desktop */
  .models { grid-template-columns: repeat(2, 1fr); }

  .cta-btn { padding: 18px 38px; font-size: 17px; }
}

/* ── Reduced motion — honour the visitor's preference ────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}


/* ── Sticky browser app-navigation bar ────────────────────────────── */
.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px clamp(14px, 3vw, 34px);
  background: color-mix(in srgb, var(--s1) 92%, transparent);
  border-bottom: 1px solid var(--bd2);
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.landing-topbar-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--tx);
}
.landing-topbar-actions { display: flex; align-items: center; gap: 8px; }
.landing-app-btn {
  border: 1px solid var(--a1);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--a1);
  color: var(--bg);
  font: 700 11px/1.1 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.landing-app-btn:hover { transform: translateY(-1px); opacity: .9; }
.landing-app-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.landing-app-btn--owned { background: var(--a2); border-color: var(--a2); }
.landing-app-btn--account {
  background: transparent;
  color: var(--tx);
}
.landing-inline-app {
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.landing-account-panel {
  position: fixed;
  top: 72px;
  right: clamp(14px, 3vw, 34px);
  z-index: 1101;
  width: min(360px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--bd2);
  border-radius: 14px;
  background: var(--s1);
  color: var(--tx);
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.landing-account-panel[hidden] { display: none; }
.landing-account-panel h2 { margin: 0 24px 8px 0; font: 700 18px/1.3 Syne, sans-serif; }
.landing-account-panel p { color: var(--mu2); font: 11px/1.6 'JetBrains Mono', monospace; }
.landing-account-panel label {
  display: block;
  margin: 12px 0 6px;
  color: var(--mu2);
  font: 10px 'JetBrains Mono', monospace;
}
.landing-account-panel input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--bd2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--tx);
  font: 13px 'JetBrains Mono', monospace;
}
.landing-account-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--a1);
  border-radius: 6px;
  background: transparent;
  color: var(--tx);
  font: 700 10px 'JetBrains Mono', monospace;
  cursor: pointer;
}
.landing-account-submit:disabled { opacity: .6; cursor: wait; }
.landing-account-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--mu2);
  font-size: 22px;
  cursor: pointer;
}
.landing-account-status { min-height: 1em; margin-bottom: 0; }
.landing-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid var(--bd2);
  border-radius: 12px;
  background: var(--s1);
  color: var(--tx);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font: 11px/1.5 'JetBrains Mono', monospace;
}
@media (max-width: 560px) {
  .landing-topbar { padding: 10px 12px; }
  .landing-topbar-brand { font-size: 10px; }
  .landing-app-btn { padding: 9px 11px; font-size: 9px; }
  .landing-app-btn--account { padding: 9px 9px; font-size: 8px; }
}

.tm-symbol {
  font-size: 0.5em;         /* Scales symbol relative to surrounding text */
  vertical-align: super;     /* Lifts the symbol above the baseline */
  line-height: 0;           /* Prevents extra spacing between lines of text */
}