/* Beat N Drumz — layout concept: paint-art color bands carry each page; TUBS rhythm-box strips (the real
   West African box notation) divide sections; mudcloth geometry frames the edges. */
:root {
  --clay: #b3201a;        /* paint red */
  --flame: #e0352b;       /* bright red */
  --marigold: #e8b33a;    /* gold */
  --sun: #f3d55c;         /* yellow highlight, used sparingly */
  --leaf: #23703f;        /* paint green */
  --sage: #a9d3b4;        /* soft mint */
  --copper: #e6a07a;      /* logo glow */
  --night: #0f0a08;       /* logo black — header is always this */
  --bg: #fdf6ec;          /* warm paper */
  --surface: #ffffff;
  --surface-2: #fbeedd;
  --ink: #24140d;         /* brown-black */
  --muted: #6d5446;
  --line: #ead7c1;
  --on-dark: #fff4e6;
  --band-green: #15472a;
  --band-red: #7d1510;
  --focus: #23703f;

  --display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);
  --radius: 14px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --clay: #ef4f42; --flame: #ff6b5c; --marigold: #f2c14e; --sun: #ffe08a; --leaf: #6fcf8f; --sage: #2c5a42;
    --bg: #110b08; --surface: #22150e; --surface-2: #2b1b12; --ink: #f8ebdc; --muted: #c4a894; --line: #3d2a1e;
    --on-dark: #fff4e6; --band-green: #0f3520; --band-red: #5a0f0b; --focus: #f2c14e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --clay: #ef4f42; --flame: #ff6b5c; --marigold: #f2c14e; --sun: #ffe08a; --leaf: #6fcf8f; --sage: #2c5a42;
  --bg: #110b08; --surface: #22150e; --surface-2: #2b1b12; --ink: #f8ebdc; --muted: #c4a894; --line: #3d2a1e;
  --on-dark: #fff4e6; --band-green: #0f3520; --band-red: #5a0f0b; --focus: #f2c14e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 850; font-stretch: 112%; }
h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 108%; }
h3 { font-size: var(--step-1); font-weight: 750; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; color: var(--muted); }
.prose { max-width: 66ch; display: grid; gap: 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: .6em 1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 94%, transparent); color: #f7ead9;
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #2b1c14;
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 40px; height: auto; flex: none; }
.brand b { color: var(--copper); font-weight: 850; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .7em; border-radius: 8px; }
.nav a:hover { background: #241710; }
.nav a[aria-current="page"] { color: var(--copper); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #3a281c; color: #f7ead9; border-radius: 10px; padding: .5em .8em; font: 600 .95rem var(--body); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid #2b1c14; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: .8em .4em; border-bottom: 1px solid #2b1c14; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none; cursor: pointer;
  font: 700 1rem/1 var(--body); padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff7ee; }
.btn-primary:hover { background: var(--flame); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.nav .btn { padding: .7em 1.1em; font-size: .95rem; margin-left: 6px; }
.nav .btn-primary:hover { background: var(--flame); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--on-dark); background: #2a120a; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(28,10,4,.88) 0%, rgba(28,10,4,.7) 45%, rgba(28,10,4,.15) 100%); }
.hero .wrap { padding-block: clamp(56px, 9vw, 120px); display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lede { color: #f4e2cf; }
.hero .eyebrow { color: var(--sun); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .btn-primary { background: var(--marigold); color: #24140d; }
.hero .btn-primary:hover { background: var(--sun); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; font-family: var(--mono); font-size: var(--step--1); color: #f0d9c2; letter-spacing: .04em; }
.hero-facts span::before { content: "●"; color: var(--marigold); margin-right: 8px; font-size: .7em; vertical-align: .15em; }
.hero.small .wrap { padding-block: clamp(44px, 7vw, 84px); }
.hero.small h1 { font-size: var(--step-3); max-width: 20ch; }
.crumbs { font-family: var(--mono); font-size: var(--step--1); color: #f0d9c2; }
.crumbs a { color: #fff4e6; text-decoration-color: rgba(255,244,230,.4); }

/* ---------- mudcloth edge ---------- */
.mudcloth { height: 18px; background-color: var(--night);
  background-image:
    linear-gradient(135deg, var(--bg) 25%, transparent 25%),
    linear-gradient(225deg, var(--bg) 25%, transparent 25%);
  background-size: 18px 18px; background-position: 0 0; opacity: .95; }

/* ---------- TUBS rhythm strip ---------- */
.tubs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tubs-name { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .06em; min-width: 0; }
.tubs-boxes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; width: min(100%, 300px); }
.tubs-boxes.s16 { grid-template-columns: repeat(16, 1fr); width: min(100%, 380px); }
.tubs-boxes i { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 3px; }
.tubs-boxes i.on { background: var(--clay); border-color: var(--clay); }
.section-break { padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.band-green { background: var(--band-green); color: var(--on-dark); }
.band-green .eyebrow { color: var(--sun); }
.band-green .lede, .band-green .muted { color: #cfe3d4; }
.band-red { background: var(--band-red); color: var(--on-dark); }
.band-red .eyebrow { color: var(--sun); }
.band-red .lede { color: #f6d6c8; }
.band-paper { background: var(--surface-2); }
.muted { color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid > * { min-width: 0; }

/* service tiles on home — art-cropped headers */
.svc { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(60,20,8,.45); }
.svc-art { height: 150px; background-size: cover; }
.svc-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.svc-body p { color: var(--muted); }
.svc-price { font-family: var(--mono); font-size: var(--step--1); color: var(--clay); font-weight: 600; letter-spacing: .03em; }
.svc-go { font-weight: 700; color: var(--leaf); margin-top: 4px; }

/* price cards */
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.price.feature { border: 2px solid var(--clay); }
.price .tag { justify-self: start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--clay); color: #fff7ee; padding: .35em .7em; border-radius: 999px; }
.price .amt { font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: var(--step-3); line-height: 1; color: var(--clay); font-variant-numeric: tabular-nums; }
.price .amt small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.price .for { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.price ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.band-green .price, .band-red .price { color: var(--ink); }

/* steps — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--marigold); }
.steps li::before { content: "Step " counter(s); font-family: var(--mono); font-size: var(--step--1); color: var(--clay); font-weight: 700; letter-spacing: .06em; }
.band-green .steps li::before { color: var(--sun); }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--marigold); box-shadow: inset 0 0 0 4px var(--surface); outline: 2px solid var(--marigold); }
.band-green .checks li::before, .band-red .checks li::before { box-shadow: inset 0 0 0 4px var(--band-green); }
.band-red .checks li::before { box-shadow: inset 0 0 0 4px var(--band-red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: .45em .9em; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.band-green .chips li { background: transparent; border-color: rgba(255,244,230,.3); color: var(--on-dark); }

/* split layout */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.split > * { min-width: 0; }
.art-frame { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 200px 200px var(--radius) var(--radius); background-size: cover; background-position: center; box-shadow: 0 30px 60px -30px rgba(60,20,8,.5); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--clay); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: #2a120a; }
.cta .hero-art { opacity: .9; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,10,4,.9), rgba(28,10,4,.55)); }
.cta .wrap { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 18px; justify-items: start; }
.cta h2 { max-width: 18ch; }
.cta .btn-primary { background: var(--marigold); color: #24140d; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: .95rem; }
.contact-line a { text-decoration: none; color: inherit; border-bottom: 1px solid rgba(255,244,230,.4); }

/* rhythm player */
.player { background: var(--surface); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; border: 1px solid var(--line); }
.player-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.player-tabs button { font: 600 .9rem var(--body); padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.player-tabs button[aria-pressed="true"] { background: var(--leaf); color: #fff7ee; border-color: var(--leaf); }
.pads { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(4px, 1vw, 10px); }
.pads.s16 { grid-template-columns: repeat(16, 1fr); }
.pads button { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: transparent; cursor: pointer; padding: 0; min-width: 0; transition: transform .08s ease; }
.pads button.on { background: var(--clay); border-color: var(--clay); }
.pads button.now { transform: scale(1.18); border-color: var(--marigold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 45%, transparent); }
.player-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.player-row label { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.player-row input[type=range] { accent-color: var(--clay); width: 160px; }
.player-note { font-size: .92rem; color: var(--muted); }

/* contact form */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: 1rem var(--body); padding: .8em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form-out { background: var(--surface-2); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.form-out pre { white-space: pre-wrap; margin: 0; font-family: var(--mono); font-size: .88rem; }
.form-out .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.info-card { display: grid; gap: 18px; align-content: start; }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.info-card dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.info-card dd a { text-decoration: none; }

/* footer */
.site-footer { background: var(--night); color: #f7ead9; }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-grid > * { min-width: 0; }
.site-footer h4 { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--marigold); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; opacity: .88; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .brand { color: #f7ead9; }
.site-footer .brand b { color: var(--copper); }
.foot-nap { display: grid; gap: 6px; font-size: .95rem; opacity: .9; overflow-wrap: anywhere; }
.foot-base { border-top: 1px solid #2b1c14; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; opacity: .75; }

.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d2 { animation-delay: .08s; } .reveal.d3 { animation-delay: .16s; } .reveal.d4 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* videos */
.vid { margin: 0; display: grid; gap: 10px; min-width: 0; }
.vid figcaption { font-size: .95rem; color: var(--muted); }
.vid figcaption a { color: var(--clay); font-weight: 600; }
.yt { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--night) center / cover no-repeat; box-shadow: 0 20px 40px -24px rgba(20,8,4,.6); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,5,3,.55)); }
.yt-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--clay); box-shadow: 0 0 0 6px rgba(255,244,230,.25); transition: transform .15s ease; }
.yt-play::before { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff7ee; }
.yt:hover .yt-play { transform: scale(1.08); background: var(--flame); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.playing::after { display: none; }

/* Art stays sharp: on wide screens it sits on the right at (or below) its real size,
   with the text on solid black to the left. On phones it fills the band, which shrinks it. */
.hero, .cta { background: var(--night); }
@media (min-width: 900px) {
  .hero-art { left: auto; width: min(58%, 1024px); }
  .hero::after, .cta::after {
    background: linear-gradient(90deg, var(--night) 0%, var(--night) 40%, rgba(15,10,8,.82) 48%, rgba(15,10,8,.25) 62%, rgba(15,10,8,0) 75%);
  }
  .hero .wrap > *, .cta .wrap > * { max-width: min(600px, 48vw); }
  .hero h1 { font-size: clamp(2.6rem, 1.4rem + 2.8vw, 4.4rem); }
  .hero.small h1 { font-size: clamp(2.2rem, 1.4rem + 1.8vw, 3.4rem); }
  .hero .wrap { min-height: 520px; align-content: center; }
  .hero.small .wrap { min-height: 440px; }
}
@media (min-width: 1700px) {
  .hero-art { width: 1024px; background-size: cover; }
}
.cta .hero-art { opacity: 1; }
