/* Blissity — design system
   Tokens carried over from the approved hero draft (blissity.html). */

:root {
  --obsidian: #0a0a0a;
  --ash: #111111;
  --smoke: #1a1a1a;
  --mist: #2a2a2a;
  --silver: #6b6b6b;
  --pearl: #a8a8a8;
  --ivory: #f5f3ef;
  --cream: #faf9f7;
  --amber: #e8a04a;
  --amber-soft: #f0bc7a;
  --rule: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

/* Smooth scrolling is enabled from JS after load (site.js), so landing on a
   #fragment URL positions instantly instead of animating from the top. */

body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: rgba(232, 160, 74, 0.35); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 64rem; margin: 0 auto; padding: 0 2rem; }
@media (min-width: 768px) { .container { padding: 0 4rem; } }

/* ---------- texture ---------- */
.grain {
  position: relative;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- type ---------- */
.kicker {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.display em { font-style: normal; color: rgba(168, 168, 168, 0.55); }

h1.display { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2.display { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; }
h3.display { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.15; }

.lede { color: var(--pearl); font-size: 1.125rem; line-height: 1.7; max-width: 36rem; }

.rule { border: none; border-top: 1px solid var(--rule); margin-bottom: 4rem; }

/* ---------- nav ---------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 768px) { nav.site-nav { padding: 1.4rem 4rem; } }

.nav-brand { font-weight: 600; letter-spacing: -0.01em; font-size: 1.1rem; display: inline-flex; align-items: center; }
.nav-brand img { height: 26px; width: auto; display: block; }
.nav-brand img.lockup { height: 40px; }
.nav-brand img.logo-on-light { display: none; }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--pearl);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ivory); }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pearl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover { color: var(--ivory); border-color: rgba(255, 255, 255, 0.25); }

/* mobile menu (elements injected by site.js) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.7rem 0.5rem;
  margin-left: 0.75rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s ease;
}
.nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899px) { .nav-toggle { display: flex; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--obsidian);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 7rem 2rem 2rem;
}
.mobile-menu-links a {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ivory);
}
.mobile-menu-links a.nav-cta {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--pearl);
  margin-top: 1.2rem;
}
@media (min-width: 900px) { .mobile-menu, .nav-toggle { display: none; } }

/* ---------- buttons ---------- */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--amber);
  color: var(--obsidian);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1.05rem 1.8rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.btn-amber:hover { background: var(--amber-soft); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pearl);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.05rem 1.8rem;
  border-radius: 999px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ivory); }

/* ---------- sections ---------- */
section { padding: 7rem 0; }
.bg-obsidian { background: var(--obsidian); }
.bg-ash { background: var(--ash); }
.bg-smoke { background: var(--smoke); }

/* hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 9rem;
  padding-bottom: 6rem;
  overflow: hidden;
  position: relative;
}
.hero-orb {
  position: absolute;
  top: 33%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
  background: radial-gradient(ellipse, var(--amber) 0%, transparent 70%);
}
.hero .container { position: relative; }

/* three arms band */
.arms { display: grid; gap: 1px; background: var(--rule); border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .arms { grid-template-columns: repeat(3, 1fr); } }
.arm {
  background: var(--ash);
  padding: 2rem;
  transition: background 0.25s;
  display: block;
}
.arm:hover { background: var(--smoke); }
.arm .num { color: rgba(232, 160, 74, 0.4); font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
.arm h3 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.arm p { color: var(--pearl); font-size: 0.875rem; line-height: 1.65; }
.arm .go { color: var(--amber); font-size: 0.8rem; font-weight: 600; margin-top: 1rem; display: inline-block; }

/* split layouts */
.split { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split-wide { display: grid; gap: 4rem; }
@media (min-width: 768px) { .split-wide { grid-template-columns: 1fr 2fr; } }

.stack > * + * { margin-top: 2rem; }
.stack-item p.title { font-weight: 500; margin-bottom: 0.5rem; }
.stack-item p.body { color: var(--pearl); font-size: 0.875rem; line-height: 1.7; }
.stack-item + .stack-item { border-top: 1px solid var(--rule); padding-top: 2rem; }

/* card grids */
.grid-cards { display: grid; gap: 1px; background: rgba(255,255,255,0.05); border-radius: 1rem; overflow: hidden; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--obsidian);
  padding: 2rem;
  transition: background 0.25s;
}
.card:hover { background: var(--ash); }
.card .icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(232, 160, 74, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  transition: background 0.25s;
}
.card:hover .icon { background: rgba(232, 160, 74, 0.2); }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.7rem; }
.card p { color: var(--pearl); font-size: 0.875rem; line-height: 1.7; }

/* bordered cards (who it's for) */
.border-cards { display: grid; gap: 2rem; }
@media (min-width: 640px) { .border-cards { grid-template-columns: repeat(3, 1fr); } }
.border-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.border-card:hover { border-color: rgba(232, 160, 74, 0.3); }
.border-card .emoji { font-size: 1.5rem; margin-bottom: 1rem; }
.border-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.border-card p { color: var(--pearl); font-size: 0.875rem; line-height: 1.7; }

/* numbered steps */
.steps { display: grid; gap: 3rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step .num {
  color: rgba(232, 160, 74, 0.4);
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 1.5rem;
  user-select: none;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.8rem; }
.step p { color: var(--pearl); font-size: 0.875rem; line-height: 1.7; }
.step .duration {
  color: rgba(232, 160, 74, 0.6);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* product cards (studio) */
.product-card {
  background: var(--ash);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}
.product-card:hover { border-color: rgba(232, 160, 74, 0.25); transform: translateY(-3px); }
.products { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product-card .mark {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.product-card h3 { font-size: 1.05rem; font-weight: 600; }
.product-card .cat { color: var(--silver); font-size: 0.75rem; margin-bottom: 0.9rem; }
.product-card p.desc { color: var(--pearl); font-size: 0.85rem; line-height: 1.65; flex: 1; }
.product-card .meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.product-card .meta .badge { white-space: nowrap; }
.product-card .visit { white-space: nowrap; }
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--pearl);
}
.badge.live { border-color: rgba(232, 160, 74, 0.4); color: var(--amber); }
.product-card .visit { color: var(--amber); font-size: 0.8rem; font-weight: 600; }

/* stats — grid-auto-rows: 1fr keeps every box exactly the same height */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.stat {
  background: var(--smoke);
  border-radius: 1rem;
  padding: 2rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.stat .big { color: var(--amber); font-family: var(--font-serif); font-size: 2.6rem; font-weight: 300; line-height: 1.1; }
.stat p { color: var(--pearl); font-size: 0.85rem; line-height: 1.55; }
@media (max-width: 480px) { .stat { min-height: 0; gap: 1rem; } }

/* strip note (gtmfusion inside advisory) */
.strip {
  margin-top: 3rem;
  border: 1px solid rgba(232, 160, 74, 0.25);
  background: linear-gradient(135deg, rgba(232, 160, 74, 0.06), transparent 60%);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.strip p { color: var(--pearl); font-size: 0.9rem; max-width: 38rem; }
.strip p strong { color: var(--ivory); font-weight: 600; }
.strip a { color: var(--amber); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(232, 160, 74, 0.35);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 2rem;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1208 50%, #0f0f0f 100%);
  text-align: center;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 160, 74, 0.08) 0%, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; max-width: 48rem; }
.cta-band .fine { color: var(--silver); font-size: 0.78rem; margin-top: 1.4rem; }

/* footer */
footer.site-footer {
  background: var(--obsidian);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 3rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 {
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--pearl); font-size: 0.85rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--ivory); }
.footer-tag { color: var(--pearl); font-size: 0.85rem; line-height: 1.7; max-width: 18rem; margin-top: 0.8rem; }
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(107, 107, 107, 0.7);
  font-size: 0.75rem;
}

/* track-record strip (ventures) */
.record { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.record span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  color: var(--pearl);
  font-size: 0.82rem;
}
.record span b { color: var(--ivory); font-weight: 600; }

/* ---------- light theme (html.theme-light) ----------
   Same layout, palette flipped to warm paper. The amber accent and the
   original blue "b" favicon are shared across both themes. */
html.theme-light {
  --obsidian: #faf9f7;
  --ash: #f2f0ea;
  --smoke: #eae7e0;
  --mist: #dcd8ce;
  --silver: #8a8880;
  --pearl: #57554e;
  --ivory: #161511;
  --cream: #0f0e0c;
  --rule: rgba(10, 10, 10, 0.09);
}
html.theme-light .nav-brand img.logo-on-dark { display: none; }
html.theme-light .nav-brand img.logo-on-light { display: block; }
html.theme-light nav.site-nav { background: linear-gradient(to bottom, rgba(250, 249, 247, 0.95), transparent); }
html.theme-light .nav-cta { border-color: rgba(10, 10, 10, 0.15); }
html.theme-light .display em { color: rgba(22, 21, 17, 0.42); }
html.theme-light .grid-cards { background: rgba(10, 10, 10, 0.08); }
html.theme-light .border-card { border-color: rgba(10, 10, 10, 0.1); }
html.theme-light .border-card:hover { border-color: rgba(186, 117, 23, 0.45); }
html.theme-light .badge { border-color: rgba(10, 10, 10, 0.18); }
html.theme-light .badge.live { border-color: rgba(186, 117, 23, 0.5); color: #9a6410; }
html.theme-light .kicker, html.theme-light .arm .go, html.theme-light .product-card .visit,
html.theme-light .strip a { color: #9a6410; }
html.theme-light .step .duration { color: rgba(154, 100, 16, 0.75); }
html.theme-light .status-pill { color: #9a6410; border-color: rgba(186, 117, 23, 0.5); }
html.theme-light .status-pill::before { background: #ba7517; }
html.theme-light .product-card { background: #ffffff; border-color: rgba(10, 10, 10, 0.06); }
html.theme-light .stat { background: #ffffff; }
html.theme-light .record span { border-color: rgba(10, 10, 10, 0.14); }
html.theme-light footer.site-footer { border-top-color: rgba(10, 10, 10, 0.08); }
html.theme-light .cta-band { background: linear-gradient(135deg, #f5f2eb 0%, #f2e6cf 50%, #f5f2eb 100%); }
html.theme-light .hero-orb { opacity: 0.16; }

/* Reveal-on-scroll — content is VISIBLE by default. JS adds .pre only to
   elements below the fold, then removes it as they scroll into view, so a
   script failure, reader mode, print, or snapshot renderers always get the
   full page. */
.reveal { transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.pre { opacity: 0; transform: translateY(20px); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.25s; }
.reveal.d3 { transition-delay: 0.4s; }
.reveal.d4 { transition-delay: 0.55s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto !important; }
}
