/* Music Buddha — family hub styles
   "Kiln" palette: deep terracotta ground, warm cream type, and
   gold accents lifted from the logo's halo. A fifth theme beside
   Strata / Terra / Obsidian / Sand — each app card still carries
   its own site's palette.
*/

:root {
  /* Kiln scale — deep terracotta */
  --ch-900:#5E2C12; --ch-800:#7a3b1e; --ch-700:#8a4526;
  --ch-600:#a05a33; --ch-500:#DEB08A; --ch-400:#F0D2B8; --ch-300:#FBF3E8;
  /* Gold accent (the halo) */
  --ru-500:#E9AC5F; --ru-400:#F2C583; --ru-600:#C9853B;
  /* Cream */
  --cr-100:#FAF1E4; --cr-200:#EFDCC5;

  /* Typography */
  --f-b: 'DM Sans', -apple-system, system-ui, sans-serif;
  --f-m: 'DM Mono', 'SF Mono', monospace;
  --f-d: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;
  --f-h: 'Caveat', cursive;

  /* Shadows — warm kiln smoke */
  --shadow-md: 0 4px 16px rgba(46,18,6,0.28);
  --shadow-lg: 0 8px 32px rgba(46,18,6,0.38);
  --shadow-xl: 0 16px 48px rgba(46,18,6,0.52);

  /* Glass — fired-clay panels */
  --glass-1: rgba(74,32,13,0.5);
  --glass-2: rgba(74,32,13,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--ch-800);
  background-image: linear-gradient(165deg, #8a4526 0%, #74381c 45%, #81401f 100%);
  color: var(--cr-100);
  font-family: var(--f-b);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Type helpers ─────────────────────────────────────── */
.eye  { font-family: var(--f-m); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ru-500); }
.disp-xl { font-family: var(--f-d); font-weight: 700; font-size: clamp(46px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.02em; color: var(--cr-100); }
.disp-lg { font-family: var(--f-d); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.015em; color: var(--cr-100); }
.disp-md { font-family: var(--f-d); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.01em; color: var(--cr-100); }
.body-lg { font-size: 19px; color: var(--ch-400); line-height: 1.6; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .wrap { padding: 0 20px; } }

/* ── Glass card recipe ─────────────────────────────────── */
.glass {
  background: var(--glass-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-primary {
  background: var(--cr-100); color: #7a3b1e;
  box-shadow: 0 6px 20px rgba(46,18,6,0.35);
}
.btn-primary:hover { background: #fff9ee; transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(46,18,6,0.45); }
.btn-ghost {
  background: var(--glass-2); color: var(--cr-100);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: var(--glass-1); transform: translateY(-1px); }

/* ── Reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(94,44,18,0.90) 0%, rgba(94,44,18,0.55) 60%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 30px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(46,18,6,0.3)); }
.nav-brand-text { font-family: var(--f-d); font-weight: 700; font-size: 22px; color: var(--cr-100); letter-spacing: -0.015em; white-space: nowrap; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 16px; color: var(--ch-400); transition: color .2s; padding: 4px 0; }
.nav-links a:hover { color: var(--cr-100); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 14px; }
  .nav-brand { gap: 9px; }
  .nav-logo { width: 24px; }
  .nav-brand-text { font-size: 18px; }
  .nav-inner .btn { padding: 9px 14px; font-size: 13px; }
}

/* ═════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 110px 0 130px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 480px at 50% -5%, rgba(242,197,131,0.16), transparent 62%),
    radial-gradient(ellipse 700px 700px at 85% 80%, rgba(46,18,6,0.18), transparent 70%);
}
.hero-logo {
  display: block; margin: 0 auto 30px;
  width: clamp(88px, 9vw, 116px); height: auto;
  filter: drop-shadow(0 10px 28px rgba(46,18,6,0.35));
}
.hero-halo {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(760px, 130vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .34;
  animation: breathe 9s ease-in-out infinite;
}
.hero-halo svg { width: 100%; height: 100%; display: block; }
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);     opacity: .34; }
  50%      { transform: translate(-50%, -50%) scale(1.035); opacity: .5; }
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(233,172,95,0.12);
  border: 1px solid rgba(233,172,95,0.36);
  font-family: var(--f-m); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ru-400);
  margin-bottom: 30px;
}
.hero-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ru-500);
  box-shadow: 0 0 8px var(--ru-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { margin: 0 auto 22px; max-width: 15ch; text-wrap: balance; }
.hero h1 .hl { color: var(--ru-400); }
.hero-sub { font-size: 20px; color: var(--ch-400); line-height: 1.6; max-width: 52ch; margin: 0 auto 16px; text-wrap: pretty; }
.hero-caveat { font-family: var(--f-h); font-style: italic; font-size: 28px; color: var(--ru-400); margin-bottom: 40px; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ch-500);
  border: 1px solid rgba(255,255,255,0.10);
  transition: color .2s, border-color .2s, transform .2s;
  animation: drift 3s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--ru-400); border-color: rgba(233,172,95,0.45); }
@keyframes drift { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ═════════════════════════════════════════════════════════
   MANIFESTO STRIP
═══════════════════════════════════════════════════════════ */
.manifesto {
  padding: 110px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.manifesto .eye { margin-bottom: 24px; }
.manifesto-quote {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.15;
  max-width: 19ch; margin: 0 auto 34px;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--cr-100);
}
.manifesto-quote .accent { color: var(--ru-400); }
.manifesto-caveat {
  font-family: var(--f-h); font-style: italic;
  font-size: 30px; color: var(--ru-400);
}
.manifesto-divider {
  width: 60px; height: 1px; margin: 0 auto 34px;
  background: var(--ru-500);
  position: relative;
}
.manifesto-divider::before, .manifesto-divider::after {
  content: ''; position: absolute; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: var(--ru-500); transform: translateY(-50%);
}
.manifesto-divider::before { left: -10px; }
.manifesto-divider::after  { right: -10px; }

/* ═════════════════════════════════════════════════════════
   THE APPS
═══════════════════════════════════════════════════════════ */
.apps { padding: 120px 0; }
.apps-head { max-width: 720px; margin-bottom: 64px; }
.apps-head .eye { margin-bottom: 18px; }
.apps-head h2 { margin-bottom: 16px; }

.app-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
@media (max-width: 920px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px;
  border-radius: 26px;
  padding: 38px 38px 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
@media (max-width: 560px) { .app-card { padding: 28px 26px 22px; min-height: 420px; } }

.app-card-copy { position: relative; z-index: 1; max-width: 46ch; }

.app-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--f-m); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid;
}
.app-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 2s ease-in-out infinite; }

.app-card h3 {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(30px, 3vw, 40px); line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.app-tagline {
  font-family: var(--f-h); font-style: italic;
  font-size: 24px; line-height: 1.2;
  margin-bottom: 16px;
}
.app-desc { font-size: 16px; line-height: 1.6; margin-bottom: 22px; text-wrap: pretty; }

.app-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-m); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid;
  transition: gap .2s ease;
}
.app-card:hover .app-link { gap: 11px; }

/* Uniform art region: same height on every card, buddha bottom-aligned,
   so all four ground shadows sit the same distance from the card edge. */
.app-card-art {
  position: relative; z-index: 0;
  margin: 22px auto 0;
  height: clamp(210px, 21vw, 280px);
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform .35s ease;
}
.app-card:hover .app-card-art { transform: translateY(-6px) scale(1.015); }
.app-card-art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; }

/* ── Guitar Buddha — obsidian / rust ─────────────────────── */
.card-guitar {
  background:
    radial-gradient(ellipse 420px 320px at 78% 18%, rgba(193,95,60,0.14), transparent 65%),
    linear-gradient(165deg, #232221 0%, #191817 55%, #1c1b1a 100%);
}
.card-guitar h3 { color: #EDEBE6; }
.card-guitar .app-tagline { color: #d8825b; }
.card-guitar .app-desc { color: #A8A59E; }
.card-guitar .app-status.is-live { color: #d8825b; background: rgba(193,95,60,0.12); border-color: rgba(193,95,60,0.38); }
.card-guitar .app-link { color: #d8825b; border-color: rgba(193,95,60,0.45); }

/* ── Ukulele Buddha — sunny parchment / amber ────────────── */
.card-ukulele {
  background:
    radial-gradient(ellipse 420px 320px at 80% 12%, rgba(224,162,79,0.22), transparent 65%),
    linear-gradient(165deg, #f9f5ee 0%, #f2ecdf 60%, #eee5d3 100%);
  border-color: rgba(58,49,40,0.10);
}
.card-ukulele h3 { color: #160e04; }
.card-ukulele .app-tagline { color: #9a5a1e; }
.card-ukulele .app-desc { color: #5e554b; }
.card-ukulele .app-status { color: #9a5a1e; background: rgba(200,128,46,0.12); border-color: rgba(200,128,46,0.38); }
.card-ukulele .app-link { color: #9a5a1e; border-color: rgba(154,90,30,0.4); }

/* ── Drum Buddha — warm parchment / rust ─────────────────── */
.card-drum {
  background:
    radial-gradient(ellipse 420px 320px at 20% 12%, rgba(184,100,62,0.18), transparent 65%),
    linear-gradient(165deg, #f8f1e6 0%, #f3e9db 60%, #eedfcc 100%);
  border-color: rgba(58,49,40,0.10);
}
.card-drum h3 { color: #2a1c10; }
.card-drum .app-tagline { color: #9c4e2c; }
.card-drum .app-desc { color: #5e554b; }
.card-drum .app-status { color: #9c4e2c; background: rgba(184,100,62,0.12); border-color: rgba(184,100,62,0.38); }
.card-drum .app-link { color: #9c4e2c; border-color: rgba(156,78,44,0.4); }

/* ── Bass Buddha — deep slate / rust ─────────────────────── */
.card-bass {
  background:
    radial-gradient(ellipse 420px 320px at 22% 16%, rgba(184,100,62,0.15), transparent 65%),
    linear-gradient(165deg, #2c3036 0%, #22252a 55%, #1e2124 100%);
}
.card-bass h3 { color: #e8dfd0; }
.card-bass .app-tagline { color: #d07d56; }
.card-bass .app-desc { color: #8a9199; }
.card-bass .app-status { color: #d07d56; background: rgba(184,100,62,0.12); border-color: rgba(184,100,62,0.38); }
.card-bass .app-link { color: #d07d56; border-color: rgba(208,125,86,0.45); }

/* ═════════════════════════════════════════════════════════
   PHILOSOPHY
═══════════════════════════════════════════════════════════ */
.philosophy {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(ellipse 1000px 500px at 50% 0%, rgba(242,197,131,0.09), transparent 65%);
}
.philosophy-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.philosophy-head .eye { margin-bottom: 18px; }
.philosophy-head h2 { margin-bottom: 16px; }

.principle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 880px) { .principle-grid { grid-template-columns: 1fr; } }

.principle-card { padding: 34px 32px; }
.principle-card:nth-child(2) { transition-delay: .08s; }
.principle-card:nth-child(3) { transition-delay: .16s; }
.principle-num {
  font-family: var(--f-m); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; color: var(--ru-500);
  margin-bottom: 18px;
}
.principle-card h3 {
  font-family: var(--f-d); font-weight: 700;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--cr-100); margin-bottom: 12px;
}
.principle-card p { color: var(--ch-400); font-size: 15px; line-height: 1.65; }

.philosophy-foot {
  margin-top: 56px; text-align: center;
  font-family: var(--f-h); font-style: italic;
  font-size: 26px; color: var(--ru-400);
}

/* ═════════════════════════════════════════════════════════
   MAKER'S NOTE
═══════════════════════════════════════════════════════════ */
.maker { padding: 120px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.maker-inner { max-width: 660px; margin: 0 auto; }
.maker .eye { margin-bottom: 24px; }
.maker-text {
  font-family: var(--f-d); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4;
  color: var(--cr-100); margin-bottom: 28px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.maker-text em { color: var(--ru-400); font-style: italic; }
.maker-sig { font-family: var(--f-h); font-style: italic; font-size: 32px; color: var(--ru-400); }

/* ═════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: 110px 0 52px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(ellipse 700px 500px at 50% 0%, rgba(242,197,131,0.10), transparent 70%);
  text-align: center;
}
.footer-mark {
  width: 84px; height: auto; margin: 0 auto 26px; display: block;
  filter: drop-shadow(0 8px 24px rgba(46,18,6,0.35));
}
.footer h2 { margin-bottom: 16px; }
.footer-sub { font-size: 18px; color: var(--ch-400); line-height: 1.7; margin-bottom: 44px; }
.footer-mail { color: var(--ru-400); border-bottom: 1px solid rgba(242,197,131,0.45); transition: color .2s, border-color .2s; }
.footer-mail:hover { color: var(--cr-100); border-color: var(--cr-100); }

.footer-sites { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }
.footer-sites a {
  padding: 11px 22px; border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 15px; font-weight: 600; color: var(--cr-200);
  transition: transform .15s, border-color .2s, color .2s;
}
.footer-sites a:hover { transform: translateY(-2px); border-color: rgba(242,197,131,0.55); color: var(--cr-100); }

.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--f-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ch-500); flex-wrap: wrap; gap: 16px;
}
.footer-bar-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-bar a { color: var(--ch-500); transition: color .2s; }
.footer-bar a:hover { color: var(--ru-400); }
.footer-domain { color: var(--ru-400) !important; }
