/**
 * Drift — "Modern. Minimal. Purposeful."
 * Brand system: Poppins (primary) + Inter (secondary); black, white and
 * #7A7F87 as the core palette; one accent per product suite, used sparingly
 * (--app, set per suite/app in the markup).
 *
 * Light and dark themes: components read the theme tokens (--bg, --fg,
 * --band…), never --black / --white directly, unless the colour must stay
 * fixed (photo overlays, the flow illustration, video frames).
 *
 * This file: tokens, base, type, buttons, header, shared components (cards,
 * flow illustration, app page, contact form) and footer. Section layouts live
 * in modules/{layout}/module.css and load only where used. See DESIGN.md.
 */
:root {
	/* Brand palette — fixed values. */
	--black: #000;
	--white: #fff;
	--grey: #7a7f87;
	--music: #ff4fa3;
	--agency: #1f7bff;
	--seo: #57e35b;
	--app: var(--music);
	/* Theme tokens (light). */
	--bg: var(--white);
	--fg: var(--black);
	--muted: var(--grey);
	--surface: var(--white);
	--line: #e3e5e8;
	--soft: #f5f6f7;
	--header-bg: rgba(255, 255, 255, 0.9);
	--btn-hover: #2a2b2e;
	--shadow: rgba(0, 0, 0, 0.08);
	--err: #b32d2e;
	--err-line: #d63638;
	/* "Bands": spotlight, CTA, footer, featured card / plan, hero and app tiles. */
	--band: var(--black);
	--band-fg: var(--white);
	--band-muted: #b6bac0;
	--band-grey: var(--grey);
	--band-line: #2a2b2e;
	--band-edge: var(--black);
	/* Show / hide pairs for theme-specific markup (header logo, toggle icon). */
	--show-light: flex;
	--show-dark: none;
	--font-primary: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-secondary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gut: clamp(1.125rem, 4vw, 2.5rem);
	--sec: clamp(4.5rem, 10vw, 8rem);
	--radius: 14px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: light;
}
/* Dark theme. Follows the OS until the visitor picks a theme with the header
   toggle (data-theme on <html>, set in inc/setup.php + assets/site.js).
   The two blocks must stay identical — plain CSS can't share one set of
   declarations between a media query and an attribute selector. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b0c0d;
		--fg: #f2f3f5;
		--muted: #9ea3aa;
		--surface: #111214;
		--line: #26282b;
		--soft: #141517;
		--header-bg: rgba(11, 12, 13, 0.85);
		--btn-hover: #d9dbde;
		--shadow: rgba(0, 0, 0, 0.5);
		--err: #ff8a8a;
		--err-line: #ff6b6b;
		--band: #17181a;
		--band-fg: #f2f3f5;
		--band-muted: #b6bac0;
		--band-grey: #9ea3aa;
		--band-line: #2e3034;
		--band-edge: #2e3034;
		--show-light: none;
		--show-dark: flex;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0b0c0d;
	--fg: #f2f3f5;
	--muted: #9ea3aa;
	--surface: #111214;
	--line: #26282b;
	--soft: #141517;
	--header-bg: rgba(11, 12, 13, 0.85);
	--btn-hover: #d9dbde;
	--shadow: rgba(0, 0, 0, 0.5);
	--err: #ff8a8a;
	--err-line: #ff6b6b;
	--band: #17181a;
	--band-fg: #f2f3f5;
	--band-muted: #b6bac0;
	--band-grey: #9ea3aa;
	--band-line: #2e3034;
	--band-edge: #2e3034;
	--show-light: none;
	--show-dark: flex;
	color-scheme: dark;
}
.light-only { display: var(--show-light); }
.dark-only { display: var(--show-dark); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--font-secondary); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 0.5rem; left: 0.5rem; padding: 0.75rem 1rem; background: var(--fg); color: var(--bg); }
main:focus { outline: 0; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gut), 46rem); }
.section { padding-block: var(--sec); }

/* Type — Poppins for display, Inter for reading. */
h1, h2, h3, .h2, .h3 { margin: 0 0 0.5em; font-family: var(--font-primary); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
.h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
/* Spaced caps, as on the logo's "CREATIVE SYSTEMS". */
.eyebrow { margin: 0 0 1.1rem; font-family: var(--font-primary); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--fg); display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow--accent::before { content: ""; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--app); }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.lead p { margin: 0 0 1em; }
.lead strong { color: var(--fg); font-weight: 600; }

/* Buttons — the text colour does the work (black in light, white in dark);
   the accent appears only on product moments. */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 2rem 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6em 1.3em; border: 1.5px solid transparent; border-radius: 999px; font-family: var(--font-primary); font-weight: 500; font-size: 0.95rem; text-decoration: none; line-height: 1.1; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--dark:hover { background: var(--btn-hover); }
.btn--line { border-color: var(--fg); color: var(--fg); }
.btn--line:hover { background: var(--fg); color: var(--bg); }
.btn--accent { background: var(--app); color: var(--black); }
.btn--accent:hover { background: var(--white); }
.btn--line-light { border-color: var(--band-fg); color: var(--band-fg); }
.btn--line-light:hover { background: var(--band-fg); color: var(--band); }
.btn--big { min-height: 3.25rem; padding-inline: 1.6em; font-size: 1.05rem; }
.pill { display: inline-block; padding: 0.3em 0.85em; border-radius: 999px; font-family: var(--font-primary); font-size: 0.75rem; font-weight: 500; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill--live, .pill--demo { background: var(--fg); color: var(--bg); }
.pill--live::before, .pill--demo::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em; border-radius: 50%; background: var(--app); vertical-align: 0.05em; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .top { top: var(--wp-admin--admin-bar--height, 32px); }
.top__inner { display: flex; align-items: center; min-height: 4.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; text-decoration: none; color: var(--fg); }
/* Light / dark logo pair (only when a header logo is uploaded). */
.brand__set { align-items: center; gap: 0.75rem; }
.brand__mark { width: 2.1rem; height: auto; }
.brand__logo { display: block; width: auto; max-width: min(14rem, 50vw); height: 2.5rem; object-fit: contain; object-position: left center; }
.brand__word { display: grid; font-family: var(--font-primary); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.16em; line-height: 1; }
.brand__line { margin-top: 0.3rem; font-family: var(--font-secondary); font-weight: 400; font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.menu a:not(.btn) { text-decoration: none; font-family: var(--font-primary); font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.menu a:not(.btn):hover { color: var(--fg); }
/* Theme toggle — hidden until site.js runs (it can't work without JS).
   Shows the moon in light mode (switch to dark) and the sun in dark mode. */
.theme-toggle { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--fg); cursor: pointer; transition: border-color 0.2s; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.menu-toggle { display: none; position: relative; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after { position: absolute; left: 50%; width: 1.35rem; height: 1.5px; margin-left: -0.675rem; background: currentColor; transition: transform 0.25s var(--ease); }
.menu-toggle span:first-child { top: 50%; }
.menu-toggle span:first-child::before, .menu-toggle span:first-child::after { content: ""; left: 0; margin: 0; }
.menu-toggle span:first-child::before { top: -6px; }
.menu-toggle span:first-child::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.menu-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
	.top__inner { gap: 0.5rem; }
	/* Burger stays before the menu in the source (keyboard order when open);
	   order just sits the theme toggle to its left. */
	.theme-toggle { order: 1; }
	.menu-toggle { display: block; order: 2; }
	.menu { position: fixed; inset: 4.5rem 0 auto; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem var(--gut) 2.5rem; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
	.menu.is-open { visibility: visible; opacity: 1; transform: none; }
	.menu ul { flex-direction: column; gap: 0.75rem; }
	.menu a:not(.btn) { font-size: 1.75rem; font-weight: 600; color: var(--fg); }
}

/* Page title (pages whose first module isn't a hero) */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.page-head .h2 { margin: 0; }

/* Suites + cards */
.suite + .suite { margin-top: var(--sec); padding-top: var(--sec); border-top: 1px solid var(--line); }
.suite__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 42rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.card:hover { border-color: var(--fg); box-shadow: 0 18px 40px var(--shadow); transform: translateY(-3px); }
.card__top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
/* Avatar tile: uploaded image fills it; otherwise the app's initial. */
.card__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; overflow: hidden; border-radius: 12px; background: var(--soft); font-family: var(--font-primary); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.card__icon--image, .app__icon--image { background: none; }
.card__icon--image img, .app__icon--image img { width: 100%; height: 100%; object-fit: cover; }
.card__suite { margin-right: auto; font-family: var(--font-primary); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__tagline { margin: 0 0 0.75rem; font-family: var(--font-primary); font-weight: 500; }
.card__text { margin: 0 0 1.5rem; color: var(--muted); }
.card__more { margin: auto 0 0; font-family: var(--font-primary); font-weight: 500; font-size: 0.95rem; }
.card__more::after { content: ""; display: block; width: 1.5rem; height: 3px; margin-top: 0.75rem; border-radius: 2px; background: var(--app); transition: width 0.3s var(--ease); }
.card:hover .card__more::after { width: 3.5rem; }
.card--featured { grid-column: span 2; grid-row: span 2; background: var(--band); color: var(--band-fg); border-color: var(--band-edge); }
.card--featured:hover { border-color: var(--band-edge); }
.card--featured .card__icon:not(.card__icon--image) { background: rgba(255, 255, 255, 0.1); }
.card--featured .card__suite, .card--featured .card__text { color: var(--band-muted); }
.card--featured .card__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); letter-spacing: -0.035em; }
.card--featured .card__text { font-size: 1.15rem; max-width: 40ch; }
.card--featured .pill--live, .card--featured .pill--demo { background: var(--band-fg); color: var(--band); }
.cards--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card--featured { grid-column: auto; grid-row: auto; } }

/* Flow illustration — a picture of an Airtable base and a live site, so it
   keeps its own fixed colours in both themes. */
.flow { display: grid; gap: 0.9rem; font-size: 0.9rem; }
.flow__panel { padding: 1rem 1.15rem 1.2rem; border-radius: 12px; }
.flow__label { margin: 0 0 0.75rem; font-family: var(--font-primary); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); }
.flow__table { --line: #e3e5e8; background: var(--white); color: var(--black); }
.flow__row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.5rem 0.3rem; border-top: 1px solid var(--line); }
.flow__row--head { border-top: 0; font-size: 0.72rem; font-weight: 600; color: var(--grey); }
.flow__row--new { border-radius: 6px; animation: glow 3.2s ease-in-out infinite; }
.tag { padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.tag--green { background: #e3f9e4; color: #1d6b21; }
.tag--amber { background: #fff1d6; color: #8a5300; }
.flow__publish { display: grid; place-items: center; }
.flow__btn { padding: 0.65em 1.4em; border-radius: 999px; background: var(--app); color: var(--black); font-family: var(--font-primary); font-weight: 600; animation: pulse 3.2s ease-in-out infinite; }
.flow__site { background: #121315; color: var(--white); border: 1px solid #2a2b2e; }
.flow__band { margin: 0 0 0.75rem; font-family: var(--font-primary); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.flow__gig { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid #2a2b2e; }
.flow__gig b { font-family: var(--font-primary); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.flow__gig span { font-family: var(--font-primary); font-weight: 500; line-height: 1.1; }
.flow__gig small { display: block; font-family: var(--font-secondary); font-weight: 400; font-size: 0.75rem; color: #9ea3aa; margin-top: 0.15rem; }
.flow__gig i { font-style: normal; padding: 0.3em 0.85em; border-radius: 999px; background: var(--app); color: var(--black); font-family: var(--font-primary); font-weight: 500; font-size: 0.72rem; }
.flow__gig--new { animation: arrive 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { background: transparent; } 25%, 60% { background: color-mix(in srgb, var(--app) 16%, white); } }
@keyframes pulse { 0%, 30%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--app) 60%, transparent); } 45% { box-shadow: 0 0 0 14px transparent; } }
@keyframes arrive { 0%, 45% { opacity: 0.2; } 60%, 100% { opacity: 1; } }

/* App page */
.app__hero { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.app__crumb { margin: 0 0 2.5rem; }
.app__crumb a { text-decoration: none; color: var(--muted); font-family: var(--font-primary); font-weight: 500; font-size: 0.9rem; }
.app__crumb a:hover { color: var(--fg); }
.app__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 1.5rem; overflow: hidden; border-radius: 20px; background: var(--band); color: var(--band-fg); font-family: var(--font-primary); font-weight: 600; font-size: 2rem; line-height: 1; box-shadow: inset 0 -4px 0 var(--app); }
.app__icon--image { box-shadow: none; }
.app__title { margin: 0; font-size: clamp(2.75rem, 1.5rem + 5.5vw, 6rem); letter-spacing: -0.04em; line-height: 0.98; }
.app__flow { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 40rem; padding: clamp(1rem, 3vw, 2rem); border-radius: 20px; background: var(--band); }
.prose { padding-block: clamp(2.5rem, 5vw, 4rem); font-size: 1.125rem; }
.prose h2 { margin-top: 2.25em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--muted); font-weight: 600; }
.prose strong { font-weight: 600; }
.prose--flush { padding-block: 0; }
.prose--flush > :last-child { margin-bottom: 0; }

/* Contact */
.contact { background: var(--soft); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-family: var(--font-primary); font-weight: 500; font-size: 0.85rem; }
.form input, .form select, .form textarea { width: 100%; padding: 0.85em 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-family: var(--font-secondary); font-weight: 400; font-size: 1rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--fg); outline-offset: 0; border-color: transparent; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: 10px; }
.notice--ok { background: var(--surface); border: 1px solid var(--fg); font-size: 1.1rem; }
.notice--err { margin: 0; background: var(--surface); border: 1px solid var(--err-line); color: var(--err); }
@media (max-width: 860px) { .contact__grid, .form__row { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; background: var(--band); color: var(--band-fg); }
.foot__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 1.25rem; margin-bottom: 3rem; }
.foot__mark { width: clamp(3.5rem, 8vw, 5.5rem); grid-row: span 2; }
/* Uploaded footer logo: full lockup on its own row, tagline underneath. */
.foot__logo { grid-column: 1 / -1; display: block; width: auto; max-width: min(22rem, 100%); height: clamp(3.5rem, 8vw, 5.5rem); object-fit: contain; object-position: left center; }
.foot__logo ~ .foot__tag { grid-column: 1 / -1; }
.foot__word { margin: 0; font-family: var(--font-primary); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); letter-spacing: 0.16em; line-height: 1; }
.foot__word span { display: block; margin-top: 0.5rem; font-family: var(--font-secondary); font-weight: 400; font-size: 0.32em; letter-spacing: 0.32em; text-transform: uppercase; color: var(--band-grey); }
.foot__tag { grid-column: 2; margin: 0; color: var(--band-grey); font-size: 0.95rem; }
/* Social icons under the tagline (Drift Settings → Footer → Social links). */
.foot .foot__social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.foot__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--band-line); border-radius: 50%; color: var(--band-fg); transition: border-color 0.2s, background-color 0.2s; }
.foot__social a:hover { border-color: var(--band-fg); background: var(--band-line); }
.foot__social svg { display: block; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.foot h2 { margin-bottom: 0.9rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--band-grey); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot :focus-visible { outline-color: var(--band-fg); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--band-line); color: var(--band-grey); font-size: 0.85rem; }
.foot__base p { margin: 0; }
.foot .foot__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot__legal a:hover { color: var(--band-fg); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.flow__gig--new { opacity: 1; }
}
