/* ===========================================================
   BXS Brand OS — shared shell styles (v3 system)
   Used by every page in /clients/basex-studio/
   =========================================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Custom scrollbars — thin, subtle ink-light grey */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(13,11,9,0.16);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(13,11,9,0.32);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(13,11,9,0.20) transparent; }

:root {
  --cream:        #FDF8F5;
  --cream-card:   #FAF7F3;
  --cream-soft:   #F5F0EA;
  --cream-border: rgba(0,0,0,0.08);
  --cream-border-strong: rgba(0,0,0,0.12);

  --ink:        #0D0B09;
  --ink-mid:    #3D3A36;
  --ink-light:  #7A756E;
  --ink-faint:  #B8B3AC;

  --charcoal:   #1A1714;
  --warm-dark:  #15110E;
  --warm-dark-card:   #1F1A16;
  --warm-dark-border: rgba(255,255,255,0.08);
  --warm-dark-border-strong: rgba(255,255,255,0.14);

  --red:    #E13540;
  --coral:  #F27067;
  --grad:   linear-gradient(135deg, #E13540, #F27067);

  --clay:   #B07A5A;
  --peach:  #E89379;
  --gold:   #C19147;

  --peach-blush-grad: linear-gradient(160deg, #FBE5D8 0%, #FAF1EA 60%, #F6EDE3 100%);
  --hero-grad:        linear-gradient(160deg, #FBE5D8 0%, #FAF1EA 50%, #F6EDE3 100%);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 32px;

  --success: #22c55e;
  --warning: #E4A820;

  --shadow-sm: 0 1px 1px rgba(13,11,9,0.05);
  --shadow-md: 0 8px 28px rgba(13,11,9,0.08);
  --shadow-lg: 0 18px 50px rgba(13,11,9,0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  background: var(--cream); color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Strip */
.bxs-strip {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(32px, calc((100% - 1280px) / 2 + 32px));
  background: rgba(253,248,245,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-border);
}
.bxs-strip-left { display: flex; align-items: center; gap: 14px; }
.bxs-client-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; cursor: pointer; }
.bxs-client-link:hover .bxs-client-name { color: var(--red); }
.bxs-client-mark {
  width: 51px; height: 51px; flex-shrink: 0;
  background: url('assets/images/BXS%20Icon.png') center / contain no-repeat;
  color: transparent; font-size: 0;
}
.bxs-client-meta { display: flex; flex-direction: column; line-height: 1.15; }
.bxs-client-name {
  font-family: 'General Sans','Inter',sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase;
}
.bxs-client-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-light); margin-top: 2px;
}
.bxs-strip-right { display: flex; align-items: center; gap: 18px; }
.bxs-strip-nav { display: flex; gap: 4px; }
.bxs-strip-nav a {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  color: var(--ink-mid);
  padding: 6px 12px; border-radius: 100px;
  transition: color 0.15s;
  position: relative;
}
.bxs-strip-nav a:hover { color: var(--red); }
.bxs-strip-nav a.active { color: var(--red); font-weight: 600; }
.bxs-strip-nav a:not(.create-cta)::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.18s ease;
}
.bxs-strip-nav a:not(.create-cta):hover::after,
.bxs-strip-nav a.active:not(.create-cta)::after { transform: scaleX(1); }
.bxs-strip-nav a.create-cta {
  background: var(--grad); color: #fff; font-weight: 600;
  margin-left: 28px; position: relative;
  padding: 11px 22px;
  box-shadow: 0 2px 8px rgba(225,53,64,0.28);
}
.bxs-strip-nav a.create-cta::before {
  content: ''; position: absolute; left: -18px; top: 4px; bottom: 4px;
  width: 1px; background: var(--cream-border-strong);
}
.bxs-strip-nav a.create-cta:hover { color: #fff; background: var(--grad); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(225,53,64,0.38); }
.bxs-strip-nav a.create-cta.active { color: #fff; background: var(--grad); }
.bxs-attribution {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-light);
  padding-left: 18px; border-left: 1px solid var(--cream-border);
}
.bxs-attribution a {
  color: var(--ink-light);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.bxs-attribution a:hover { color: var(--red); border-color: var(--red); }
.bxs-attribution-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}

/* Hero */
.hero {
  padding: 80px 32px 80px;
  max-width: 1280px; margin: 0 auto;
  position: relative; isolation: isolate;
  color: var(--ink);
}
.hero::before {
  content:''; position:absolute; z-index:-1;
  top:0; bottom:0; left:50%; transform:translateX(-50%);
  width:100vw; background: var(--hero-grad);
}
.hero::after {
  content:''; position:absolute; z-index:-1;
  top:-40px; right:-60px; width:460px; height:460px;
  background: radial-gradient(circle at center, rgba(242,112,103,0.20) 0%, transparent 70%);
  pointer-events:none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(225,53,64,0.18);
}
.hero h1 {
  font-family: 'General Sans','Inter',sans-serif;
  font-size: clamp(38px, 5vw, 68px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.05;
  color: var(--ink); margin: 18px 0 22px; max-width: 940px;
}
.hero h1 em {
  font-family: 'General Sans','Inter',sans-serif; font-style: normal; font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.hero-sub {
  font-family: 'Noto Serif', serif; font-size: 19px; line-height: 1.55;
  color: var(--ink-mid); max-width: 720px; margin-bottom: 36px;
  font-style: italic;
}

.lineage {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(13,11,9,0.08);
}
.lineage-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(225,53,64,0.20); }
.lineage-divider { color: var(--ink-faint); }
.lineage a { color: var(--red); border-bottom: 1px solid rgba(225,53,64,0.30); padding-bottom: 1px; }
.lineage a:hover { color: var(--ink); border-color: var(--ink); }

/* Section nav */
.section-nav-wrap {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(253,248,245,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-border);
  padding: 12px 32px;
  display: flex; justify-content: center;
}
.section-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.section-nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-light);
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.section-nav a:hover { color: var(--red); background: rgba(225,53,64,0.06); }
.section-nav a.active {
  color: var(--red); background: rgba(225,53,64,0.08);
  border-color: rgba(225,53,64,0.18);
}

/* Section structure */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 32px;
  scroll-margin-top: 130px;
}
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 820px; }
.section-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.section-head h2 {
  font-family: 'General Sans','Inter',sans-serif;
  font-size: clamp(28px, 3.2vw, 42px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.12;
  color: var(--ink);
}
.section-head h2 em {
  font-family: 'General Sans','Inter',sans-serif; font-style: normal; font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.section-head p {
  font-family: 'Noto Serif', serif; font-size: 17px; line-height: 1.6;
  color: var(--ink-mid);
}
.section-source {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-light);
  padding: 6px 12px; border-radius: 100px;
  background: var(--cream-soft);
  border: 1px solid var(--cream-border);
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  margin-top: 6px;
  font-style: normal;
}
.section-source-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.section-source a { color: var(--red); border-bottom: 1px solid rgba(225,53,64,0.30); padding-bottom: 1px; }

/* Cards (cream-card and peach-blush) */
.card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--r-2xl);
  padding: 28px;
  position: relative;
}
.card-peach {
  background: var(--peach-blush-grad);
  border: 1px solid rgba(225,53,64,0.10);
  border-radius: var(--r-2xl);
  padding: 28px;
  transition: background 0.35s ease, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card-peach:hover {
  background: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(225,53,64,0.12);
  border-color: rgba(225,53,64,0.22);
}
.card-warmdark {
  background: linear-gradient(160deg, var(--warm-dark-card) 0%, var(--warm-dark) 100%);
  border-radius: var(--r-2xl);
  padding: 36px;
  color: white;
  position: relative; overflow: hidden;
}
.card-warmdark::before {
  content:''; position:absolute;
  top:-80px; right:-80px; width:280px; height:280px;
  background: radial-gradient(circle at center, rgba(242,112,103,0.18) 0%, transparent 60%);
  pointer-events:none;
}
.card-warmdark > * { position:relative; }

/* Status pill */
.status-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
}
.status-pill::before { content:''; width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.status-live { color: #16a34a; background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.32); }
.status-live::before { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.status-active { color: var(--red); background: rgba(225,53,64,0.10); border: 1px solid rgba(225,53,64,0.30); }
.status-active::before { background: var(--red); }
.status-soon { color: #A56F00; background: rgba(228,168,32,0.14); border: 1px solid rgba(228,168,32,0.32); }
.status-soon::before { background: var(--warning); }
.status-planned { color: var(--ink-light); background: rgba(13,11,9,0.05); border: 1px solid rgba(13,11,9,0.10); }
.status-planned::before { background: var(--ink-faint); }

/* Buttons */
.btn-primary {
  background: var(--grad); color: white; border: none;
  border-radius: 100px; padding: 13px 22px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 3px 12px rgba(225,53,64,0.32);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.18s; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(225,53,64,0.42); }
.btn-secondary {
  background: white; color: var(--ink);
  border: 1px solid var(--cream-border-strong);
  border-radius: 100px; padding: 13px 22px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.btn-link {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  display: inline-block;
  transition: color 0.15s, border-color 0.15s;
}
.btn-link:hover { color: var(--red); border-color: var(--red); }

/* Footer */
.bxs-footer {
  margin-top: 0;
  border-top: 1px solid var(--warm-dark-border);
  background: var(--warm-dark);
}
.bxs-footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 44px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
}
.bxs-footer-attr {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.bxs-footer-attr span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.bxs-footer-ref {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.bxs-footer-ref a {
  color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  transition: color 0.15s, border-color 0.15s;
}
.bxs-footer-ref a:hover { color: var(--coral); border-color: var(--coral); }
.bxs-footer-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

/* Studio panel (closing) — sits above the footer strip, warm-dark */
.studio-panel {
  background: linear-gradient(160deg, var(--warm-dark-card) 0%, var(--warm-dark) 100%);
  position: relative; overflow: hidden;
}
.studio-panel::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(242,112,103,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.studio-panel-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 96px 32px;
  color: white;
  position: relative;
}
.studio-panel-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
}
.studio-panel-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral);
}
.studio-panel-inner h3 {
  font-family: 'General Sans', 'Inter', sans-serif; font-weight: 600; font-size: 28px;
  letter-spacing: -0.018em; line-height: 1.15; color: white; margin: 14px 0 12px;
}
.studio-panel-inner p {
  font-family: 'Noto Serif', serif; font-style: italic; font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.studio-panel-stats {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.studio-panel-stats > div { display: flex; flex-direction: column; gap: 5px; }
.sp-stat-lbl {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.sp-stat-val {
  font-family: 'General Sans', 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: -0.008em; color: white;
}
.studio-contacts {
  display: flex; flex-direction: column; gap: 20px;
  border-left: 1px solid rgba(255,255,255,0.14);
  padding-left: 40px;
}
.studio-contact-row { display: flex; flex-direction: column; gap: 3px; }
.sc-name { font-family: 'General Sans', 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: white; }
.sc-role {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.sc-email { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--coral); margin-top: 4px; }

/* Floating section nav (button + drawer) */
.section-nav-btn {
  position: fixed; top: 50%; right: 20px;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,254,253,0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(13,11,9,0.05);
  cursor: pointer; z-index: 199;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 12px 28px rgba(13,11,9,0.10);
}
.section-nav-btn-bars {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
}
.section-nav-btn-bars::before, .section-nav-btn-bars::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, top 0.25s;
}
.section-nav-btn-bars::before { top: -6px; }
.section-nav-btn-bars::after { top: 6px; }
.section-nav-btn.is-open .section-nav-btn-bars { background: transparent; }
.section-nav-btn.is-open .section-nav-btn-bars::before { top: 0; transform: rotate(45deg); }
.section-nav-btn.is-open .section-nav-btn-bars::after { top: 0; transform: rotate(-45deg); }
.section-nav-scrim {
  position: fixed; inset: 0;
  background: rgba(13,11,9,0.15);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s; z-index: 197;
}
.section-nav-scrim.is-open { opacity: 1; pointer-events: auto; }
.section-nav-drawer {
  position: fixed; top: 50%; right: 80px;
  width: 280px; max-height: calc(100vh - 80px); overflow-y: auto;
  background: var(--cream-card); border: 1px solid var(--cream-border);
  border-radius: 24px;
  box-shadow: 0 18px 56px rgba(13,11,9,0.20);
  padding: 24px 24px 18px;
  display: flex; flex-direction: column;
  transform: translateY(-50%) translateX(20px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s;
  z-index: 198; transform-origin: right center;
}
.section-nav-drawer.is-open {
  transform: translateY(-50%) translateX(0) scale(1);
  opacity: 1; pointer-events: auto;
}
.section-nav-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-light);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.section-nav-eyebrow::before {
  content: ""; width: 14px; height: 1px; background: var(--ink-light);
}
.section-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.section-nav-list li { border-top: 1px dashed rgba(13,11,9,0.12); }
.section-nav-list li:last-child { border-bottom: 1px dashed rgba(13,11,9,0.12); }
.section-nav-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em; color: var(--ink);
  transition: padding-left 0.18s, color 0.15s;
}
.section-nav-list a:hover { padding-left: 6px; color: var(--red); }
.section-nav-list .num {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--red); min-width: 20px;
}

/* Eyebrow / metadata labels */
.lbl {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.metalbl {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-light);
}

/* Responsive */
@media (max-width: 980px) {
  .bxs-strip-nav { display: none; }
  .hero { padding: 56px 24px 64px; }
  .section { padding: 56px 24px; }
  .studio-panel-inner { padding: 36px 26px; }
  .studio-panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .studio-contacts { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
}
