/*
 * BivWeb theme styles.
 *
 * 1. Fonts and design tokens
 * 2. Base
 * 3. Buttons and text helpers
 * 4. Header and footer
 * 5. Sections: hero, cards, steps, split, projects, pricing, story, contact, CTA
 * 6. Blog and generic pages
 * 7. Small screens
 * 8. Panel design layer (floating rounded panels, pill buttons, calm cards)
 */

/* ---------- 1. Fonts and design tokens ---------- */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/sora-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
	--bw-indigo: #4B35F0;
	--bw-yellow: #FFC531;
	--bw-ink: #111327;
	--bw-paper: #F5F3EE;
	--bw-lilac: #9A8BFF;
	--bw-white: #FFFFFF;
	--bw-mist: #E4E1D8;
	--bw-muted: #4A4B63;
	--bw-night: #1D2040;

	--bw-font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
	--bw-font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

	--bw-radius-sm: 12px;
	--bw-radius-md: 16px;
	--bw-radius-lg: 24px;
	--bw-radius-xl: 32px;
	--bw-shadow: 0 24px 60px rgba(17, 19, 39, 0.18);
	--bw-panel: 32px; /* section panels, matches the logo tile proportion */
	--bw-shadow-soft: 0 18px 40px -20px rgba(17, 19, 39, 0.28);

	--bw-gutter: clamp(20px, 5vw, 64px);
	--bw-max: 1200px;
	--bw-section-y: clamp(4rem, 8vw, 7rem);
	--bw-check: var(--bw-indigo);
}

/* ---------- 2. Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bw-paper);
	color: var(--bw-ink);
	font-family: var(--bw-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--bw-indigo); text-underline-offset: 0.2em; }
a:hover { color: var(--bw-ink); }

h1, h2, h3, h4 {
	font-family: var(--bw-font-heading);
	line-height: 1.1;
	margin: 0;
	text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--bw-indigo); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	background: var(--bw-yellow); color: var(--bw-ink);
	padding: 0.75rem 1.25rem; z-index: 100000; top: 8px; left: 8px;
}

.bw-container {
	width: 100%;
	max-width: calc(var(--bw-max) + 2 * var(--bw-gutter));
	margin-inline: auto;
	padding-inline: var(--bw-gutter);
}

/* ---------- 3. Buttons and text helpers ---------- */

.bw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 1.9rem;
	border: 2px solid transparent;
	border-radius: var(--bw-radius-md);
	font-family: var(--bw-font-body);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.5s ease,
		color 0.5s ease,
		border-color 0.5s ease,
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(17, 19, 39, 0.35); }
.bw-btn:active { transform: translateY(-1px); box-shadow: 0 5px 12px -6px rgba(17, 19, 39, 0.35); transition-duration: 0.1s; }

/* Buttons keep their colours on hover; only the lift and shadow change. */
.bw-btn--primary, .bw-btn--primary:hover { background: var(--bw-indigo); color: var(--bw-white); }
.bw-btn--yellow, .bw-btn--yellow:hover { background: var(--bw-yellow); color: var(--bw-ink); }
.bw-btn--ink, .bw-btn--ink:hover { background: var(--bw-ink); color: var(--bw-white); }
.bw-btn--ghost, .bw-btn--ghost:hover { border-color: var(--bw-ink); color: var(--bw-ink); background: transparent; }
.bw-btn--small { padding: 0.8rem 1.4rem; font-size: 1rem; }
.bw-btn--block { width: 100%; }
.bw-btn--large { padding: 1.25rem 2.5rem; font-size: 1.1875rem; }

.bw-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.bw-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bw-indigo);
}

.bw-lead {
	font-size: 1.25rem;
	line-height: 1.55;
	color: var(--bw-muted);
	max-width: 42rem;
}

.bw-checks { list-style: none; margin: 0; padding: 0; }

.bw-checks li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.8rem;
}

.bw-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--bw-check);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 4. Header and footer ---------- */

/* Sticky header: a floating "island" that stays at the top while scrolling. */
.bw-header {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 14px var(--bw-gutter) 0;
	pointer-events: none;
}

.admin-bar .bw-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .bw-header { top: 46px; }
}

.bw-header .bw-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	width: 100%;
	max-width: var(--bw-max);
	margin-inline: auto;
	padding: 10px 12px 10px 24px;
	border: 1px solid var(--bw-mist);
	border-radius: 20px;
	background: var(--bw-white);
	box-shadow: 0 8px 24px -12px rgba(17, 19, 39, 0.18);
	pointer-events: auto;
}

.bw-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--bw-ink);
}

.bw-logo:hover { color: var(--bw-ink); }
.bw-logo img { display: block; width: 44px; height: 44px; }
.bw-logo--full img { width: auto; height: 40px; }

.bw-logo__text {
	font-family: var(--bw-font-heading);
	font-weight: 800;
	font-size: 1.75rem;
	letter-spacing: -0.04em;
	line-height: 1;
}

.bw-logo__text span { color: var(--bw-indigo); }

.bw-nav { display: flex; align-items: center; gap: 28px; }

.bw-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bw-menu a {
	display: inline-block;
	padding: 0.5rem 0.25rem;
	color: var(--bw-ink);
	font-weight: 500;
	text-decoration: none;
}

.bw-menu a:hover { color: var(--bw-indigo); }

/* Hover and current page: text stays ink, the yellow underline is drawn. */
.bw-header .bw-menu a:hover,
.bw-header .bw-menu a:focus-visible,
.bw-header .bw-menu .current-menu-item > a,
.bw-header .bw-menu .current_page_item > a,
.bw-header .bw-menu a[aria-current="page"] { color: var(--bw-ink); }

.bw-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--bw-radius-sm);
	background: var(--bw-ink);
	color: var(--bw-white);
	cursor: pointer;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-nav-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(17, 19, 39, 0.35); }

/* Three bars that morph into a close (X) when the menu is open. */
.bw-burger { position: relative; display: block; width: 22px; height: 16px; }

.bw-burger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-burger span:nth-child(1) { top: 0; }
.bw-burger span:nth-child(2) { top: 6.75px; }
.bw-burger span:nth-child(3) { top: 13.5px; }

.bw-nav-toggle[aria-expanded="true"] .bw-burger span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
.bw-nav-toggle[aria-expanded="true"] .bw-burger span:nth-child(2) { opacity: 0; }
.bw-nav-toggle[aria-expanded="true"] .bw-burger span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

.bw-footer {
	background: var(--bw-ink);
	color: #C9C6D6;
	padding: 5rem 0 2.5rem;
}

.bw-footer a { color: #C9C6D6; text-decoration: none; }
.bw-footer a:hover { color: var(--bw-white); }
.bw-footer :focus-visible { outline-color: var(--bw-yellow); }
.bw-footer .bw-logo { color: var(--bw-white); }
.bw-footer .bw-logo__text span { color: var(--bw-lilac); }

.bw-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr;
	gap: 3rem;
}

.bw-footer__about { max-width: 24rem; margin-top: 1.25rem; }

.bw-footer h2 {
	margin-bottom: 1rem;
	color: var(--bw-white);
	font-family: var(--bw-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bw-footer .bw-menu { flex-direction: column; gap: 0.25rem; }
.bw-footer .bw-menu a { padding: 0.25rem 0; box-shadow: none; font-weight: 400; }
.bw-footer address { font-style: normal; }
.bw-footer address p { margin-bottom: 0.5rem; }
.bw-social { display: flex; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.bw-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.bw-social a:hover { border-color: var(--bw-yellow); color: var(--bw-yellow); }
.bw-social svg { stroke: currentColor; }

.bw-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #2B2E4A;
	font-size: 0.875rem;
}

.bw-footer__bottom p { margin: 0; }

/* ---------- 5. Sections ---------- */

.bw-section { padding-block: var(--bw-section-y); }
.bw-section--white { background: var(--bw-white); }
.bw-section--ink { background: var(--bw-ink); color: var(--bw-white); --bw-check: var(--bw-yellow); }
.bw-section--indigo { background: var(--bw-indigo); color: var(--bw-white); --bw-check: var(--bw-yellow); }
.bw-section--yellow { background: var(--bw-yellow); color: var(--bw-ink); --bw-check: var(--bw-ink); }

.bw-section--ink .bw-eyebrow,
.bw-section--indigo .bw-eyebrow { color: var(--bw-yellow); }
.bw-section--yellow .bw-eyebrow { color: var(--bw-ink); }
.bw-section--ink .bw-lead,
.bw-section--indigo .bw-lead { color: #E4E1F5; }
.bw-section--ink :focus-visible,
.bw-section--indigo :focus-visible { outline-color: var(--bw-yellow); }

.bw-section__head { max-width: 46rem; margin-bottom: 3.5rem; }
.bw-section__head > .bw-lead { margin-top: 1rem; margin-bottom: 0; }
.bw-section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: none;
}

.bw-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.5s ease;
}

/* Underline draws in from the left on hover. */
.bw-more::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-more:hover::after,
.bw-more:focus-visible::after { transform: scaleX(1); }

/* Header menu: same underline as the text links. */
.bw-header .bw-menu a { position: relative; transition: color 0.5s ease; }

.bw-header .bw-menu a::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	right: 0.25rem;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--bw-yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-header .bw-menu a:hover::after,
.bw-header .bw-menu a:focus-visible::after,
.bw-header .bw-menu .current-menu-item > a::after,
.bw-header .bw-menu .current_page_item > a::after,
.bw-header .bw-menu a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero (home) */

.bw-hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--bw-section-y); }

.bw-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.bw-hero h1 { margin-top: 0.25rem; }
.bw-hero .bw-lead { margin-top: 1.5rem; }

.bw-hero-visual { position: relative; height: 540px; }

.bw-hero-visual__back {
	position: absolute; right: 0; bottom: 0;
	width: 80%; height: 82%;
	background: var(--bw-yellow);
	border-radius: var(--bw-radius-xl);
}

.bw-hero-visual__badge {
	position: absolute; right: 2%; top: 0;
	width: 92px; height: 92px;
	transform: rotate(7deg);
	filter: drop-shadow(0 14px 22px rgba(17, 19, 39, 0.25));
}

.bw-mock {
	position: absolute; left: 0; top: 24px;
	width: 86%; height: 84%;
	background: var(--bw-white);
	border-radius: var(--bw-radius-lg);
	box-shadow: var(--bw-shadow);
	overflow: hidden;
	display: flex; flex-direction: column;
}

.bw-mock__bar { flex: none; height: 48px; background: #ECEAF9; display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.bw-mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #B9B3E8; }
.bw-mock__bar b { margin-left: 12px; height: 24px; width: 240px; max-width: 50%; border-radius: 12px; background: var(--bw-white); }
.bw-mock__body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.bw-mock__hero { flex: 1.3; background: var(--bw-indigo); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.bw-mock__hero span { display: block; border-radius: 10px; }
.bw-mock__hero .l1 { height: 20px; width: 70%; background: var(--bw-yellow); }
.bw-mock__hero .l2 { height: 20px; width: 48%; background: var(--bw-white); }
.bw-mock__hero .l3 { height: 12px; width: 62%; background: var(--bw-lilac); border-radius: 6px; }
.bw-mock__hero .btn { margin-top: auto; height: 36px; width: 120px; background: var(--bw-yellow); border-radius: 12px; }
.bw-mock__row { flex: 1; display: flex; gap: 14px; }
.bw-mock__row > div { flex: 1; background: var(--bw-paper); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bw-mock__row .dot { width: 28px; height: 28px; border-radius: 50%; display: block; }
.bw-mock__row .dot--indigo { background: var(--bw-indigo); }
.bw-mock__row .dot--yellow { background: var(--bw-yellow); }
.bw-mock__row .dot--ink { background: var(--bw-ink); }
.bw-mock__row .ln { height: 10px; width: 80%; border-radius: 5px; background: #D9D6CC; display: block; }
.bw-mock__row .ln--short { width: 55%; }

/* Page hero (inner pages) */

.bw-page-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.bw-page-hero .bw-lead { margin-top: 1.5rem; margin-bottom: 0; }

/* Cards */

.bw-grid { display: grid; gap: 24px; }
.bw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bw-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 22rem;
	padding: 2.25rem;
	border-radius: var(--bw-radius-lg);
}

.bw-card > * { margin: 0; }
.bw-card--indigo { background: var(--bw-indigo); color: var(--bw-white); }
.bw-card--ink { background: var(--bw-ink); color: var(--bw-white); }
.bw-card--night { background: var(--bw-night); color: var(--bw-white); }
.bw-card--yellow { background: var(--bw-yellow); color: var(--bw-ink); }
.bw-card--white { background: var(--bw-white); border: 2px solid var(--bw-mist); }
.bw-card--indigo p, .bw-card--ink p, .bw-card--night p { color: #E4E1F5; }

.bw-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.16);
}

.bw-card--yellow .bw-card__icon { background: rgba(17, 19, 39, 0.12); }
.bw-card__icon svg { display: block; stroke: currentColor; }
.bw-card__link { margin-top: auto !important; font-weight: 700; }
.bw-card__link a { text-decoration: none; color: inherit; }
.bw-card--indigo .bw-card__link a, .bw-card--ink .bw-card__link a, .bw-card--night .bw-card__link a { color: var(--bw-yellow); }
.bw-card__link a:hover { color: var(--bw-white); }
.bw-card--yellow .bw-card__link a:hover, .bw-card--white .bw-card__link a:hover { color: var(--bw-ink); }

.bw-card__num {
	font-family: var(--bw-font-heading);
	font-weight: 800;
	font-size: 3rem;
	line-height: 1;
	color: var(--bw-yellow);
}

/* Process steps */

.bw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.bw-step { border-top: 2px solid #3A3D63; padding-top: 1.5rem; }
.bw-step__num { margin: 0 0 0.75rem; font-family: var(--bw-font-heading); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--bw-yellow); }
.bw-step h3 { margin-bottom: 0.75rem; }
.bw-step p { margin: 0; color: #C9C6D6; }

/* Service detail blocks */

.bw-split-list { display: grid; gap: clamp(3rem, 7vw, 6rem); }

.bw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: center; }
.bw-split:nth-child(even) .bw-split__visual { order: 2; }
.bw-split__num { margin: 0 0 0.75rem; font-family: var(--bw-font-heading); font-weight: 800; font-size: 1.25rem; color: var(--bw-indigo); }
.bw-split h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.bw-split .bw-checks { margin-top: 1.5rem; }
.bw-split .bw-more { display: inline-block; margin-top: 0.75rem; }

.bw-split__visual {
	display: flex; align-items: center; justify-content: center;
	min-height: 20rem;
	border-radius: var(--bw-radius-xl);
	overflow: hidden;
}

.bw-split__visual svg { width: 38%; height: auto; stroke: currentColor; }
.bw-split__visual img { width: 100%; height: 100%; object-fit: cover; }
.bw-split__visual--indigo { background: var(--bw-indigo); color: var(--bw-white); }
.bw-split__visual--ink { background: var(--bw-ink); color: var(--bw-yellow); }
.bw-split__visual--yellow { background: var(--bw-yellow); color: var(--bw-ink); }

/* Projects */

.bw-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.5rem; padding: 0; list-style: none; }

.bw-chip {
	display: inline-block;
	padding: 0.65rem 1.4rem;
	border: 2px solid var(--bw-ink);
	border-radius: 999px;
	color: var(--bw-ink);
	font-weight: 700;
	text-decoration: none;
}

.bw-chip { transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.bw-chip:hover { transform: translateY(-2px); }
.bw-chip:hover { background: var(--bw-white); color: var(--bw-ink); }
.bw-chip.is-active { background: var(--bw-ink); color: var(--bw-white); }

.bw-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.bw-project { display: flex; flex-direction: column; gap: 1rem; }

.bw-project__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--bw-radius-lg);
	background: var(--bw-mist);
}

.bw-project__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bw-project:hover .bw-project__media img { transform: scale(1.04); }

.bw-project__media--empty {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--bw-indigo), var(--bw-lilac));
}

.bw-project__media--empty img { width: 72px; height: 72px; opacity: 0.9; transform: none !important; }
.bw-project__type { margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bw-indigo); }
.bw-project h3 { margin: 0; }
.bw-project h3 a { color: var(--bw-ink); text-decoration: none; }
.bw-project h3 a:hover { color: var(--bw-indigo); }
.bw-project__meta { margin: 0; color: var(--bw-muted); }
.bw-empty { padding: 3rem; border: 2px dashed var(--bw-mist); border-radius: var(--bw-radius-lg); text-align: center; color: var(--bw-muted); }

.bw-pagination { margin-top: 3rem; }
.bw-pagination .page-numbers { display: inline-block; min-width: 2.75rem; padding: 0.6rem 0.9rem; margin-right: 6px; border-radius: var(--bw-radius-sm); background: var(--bw-white); color: var(--bw-ink); font-weight: 700; text-align: center; text-decoration: none; }
.bw-pagination .page-numbers.current { background: var(--bw-ink); color: var(--bw-white); }
.bw-pagination a.page-numbers:hover { background: var(--bw-yellow); }

/* Project page */

.bw-project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem 2rem; margin: 0; padding: 2rem; background: var(--bw-white); border-radius: var(--bw-radius-lg); }
.bw-project-facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bw-muted); }
.bw-project-facts dd { margin: 0.25rem 0 0; font-weight: 500; }
.bw-project-image { margin: 0 0 3rem; overflow: hidden; border-radius: var(--bw-radius-xl); }
.bw-project-image img { display: block; width: 100%; height: auto; }

/* Pricing */

.bw-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

.bw-price {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2.5rem;
	background: var(--bw-white);
	border: 2px solid var(--bw-mist);
	border-radius: var(--bw-radius-lg);
}

.bw-price > * { margin: 0; }
.bw-price--featured { background: var(--bw-indigo); border-color: var(--bw-indigo); color: var(--bw-white); --bw-check: var(--bw-yellow); }
.bw-price--dark { background: var(--bw-night); border-color: #2B2E4A; color: var(--bw-white); --bw-check: var(--bw-yellow); }
.bw-price--featured .bw-btn { background: var(--bw-yellow); color: var(--bw-ink); }
.bw-price--featured .bw-btn, .bw-price--featured .bw-btn:hover { background: var(--bw-yellow); color: var(--bw-ink); }
.bw-price__desc { opacity: 0.85; }

.bw-price__badge {
	position: absolute; top: 1.5rem; right: 1.5rem;
	background: var(--bw-yellow); color: var(--bw-ink);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.875rem; font-weight: 700;
}

.bw-price__amount {
	font-family: var(--bw-font-heading);
	font-weight: 800;
	font-size: 3.25rem;
	letter-spacing: -0.04em;
	line-height: 1;
}

.bw-price__amount small { margin-left: 0.5rem; font-family: var(--bw-font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.bw-price .bw-checks { flex: 1; }

.bw-included { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.25rem 2rem; }

/* About */

.bw-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem 5rem; align-items: center; }
.bw-story h2 { margin-bottom: 1.5rem; }

.bw-story__visual {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1;
	border-radius: var(--bw-radius-xl);
	background: var(--bw-yellow);
	overflow: hidden;
}

.bw-story__visual img { width: 100%; height: 100%; object-fit: cover; }
.bw-story__visual .bw-story__mark { width: 52%; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 14px 22px rgba(17, 19, 39, 0.25)); }

.bw-prose > * + * { margin-top: 1.25em; }
.bw-prose h2, .bw-prose h3 { margin-top: 1.75em; }
.bw-prose ul, .bw-prose ol { padding-left: 1.4em; }
.bw-prose img { border-radius: var(--bw-radius-md); }
.bw-prose, .bw-prose :is(p, li, blockquote, span, a, strong, em) { font-family: var(--bw-font-body); }
.bw-prose :is(h1, h2, h3, h4, h5, h6) { font-family: var(--bw-font-heading); }
.bw-prose strong { font-weight: 700; color: var(--bw-ink); }
.bw-prose li + li { margin-top: 0.4em; }
.bw-prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--bw-yellow); font-weight: 500; }

/* Story text on the About page: larger, muted body copy; the first paragraph leads in heading font. */
.bw-prose--lead { font-size: 1.1875rem; line-height: 1.65; color: var(--bw-muted); }
.bw-prose--lead > p:first-child {
	font-family: var(--bw-font-heading);
	/* Beats the body-font rule above. */
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--bw-ink);
}

/* Contact */

.bw-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.bw-contact .bw-card { min-height: 0; }
.bw-contact__side { display: grid; gap: 24px; }
.bw-contact h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.bw-contact address { font-style: normal; }
.bw-contact address p { margin-bottom: 0.6rem; }
.bw-contact address strong { display: block; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.bw-contact address a { color: inherit; font-weight: 700; }
.bw-next { counter-reset: next; list-style: none; margin: 0; padding: 0; }
.bw-next li { counter-increment: next; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.bw-next li::before { content: counter(next); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bw-ink); color: var(--bw-yellow); font-weight: 700; }

.bw-form p { margin: 0 0 1.25rem; }
.bw-form label { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.bw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }

.bw-form input[type="text"],
.bw-form input[type="email"],
.bw-form select,
.bw-form textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 2px solid var(--bw-mist);
	border-radius: var(--bw-radius-sm);
	background: var(--bw-paper);
	color: var(--bw-ink);
	font: inherit;
}

.bw-form input:focus, .bw-form select:focus, .bw-form textarea:focus { border-color: var(--bw-indigo); outline: none; background: var(--bw-white); }
.bw-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bw-form__notice { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--bw-radius-sm); font-weight: 500; }
.bw-form__notice--success { background: #DDF5E6; color: #0C4A24; }
.bw-form__notice--error { background: #FDE3E1; color: #7A1612; }

/* CTA band */

.bw-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.bw-cta h2 { max-width: 46rem; font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.04em; }

/* ---------- 6. Blog and generic pages ---------- */

.bw-main { min-height: 40vh; }
.bw-narrow { max-width: 46rem; }
.bw-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.bw-post { display: flex; flex-direction: column; gap: 0.75rem; }
.bw-post h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.bw-post h2 a { color: var(--bw-ink); text-decoration: none; }
.bw-post h2 a:hover { color: var(--bw-indigo); }
.bw-post__date { margin: 0; color: var(--bw-muted); font-size: 0.9375rem; }
.bw-post__media img { display: block; width: 100%; height: auto; border-radius: var(--bw-radius-lg); }
.bw-searchform { display: flex; gap: 10px; max-width: 32rem; margin-top: 1.5rem; }
.bw-searchform input[type="search"] { flex: 1; padding: 0.9rem 1rem; border: 2px solid var(--bw-mist); border-radius: var(--bw-radius-sm); font: inherit; }

/* ---------- 7. Small screens ---------- */

@media (max-width: 1000px) {
	.bw-grid--3, .bw-pricing, .bw-projects, .bw-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bw-grid--4, .bw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bw-hero__grid, .bw-story, .bw-contact, .bw-split { grid-template-columns: 1fr; }
	.bw-split:nth-child(even) .bw-split__visual { order: 0; }
	.bw-split__visual { min-height: 14rem; }
	.bw-footer__grid { grid-template-columns: 1fr 1fr; }
	.bw-footer__grid > :first-child { grid-column: 1 / -1; }
	.bw-hero-visual { height: 460px; }
}

@media (max-width: 781px) {
	.bw-nav-toggle { display: inline-flex; }

	.bw-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: calc(100% + 10px);
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 1.25rem 1.5rem 1.5rem;
		background: var(--bw-white);
		border: 1px solid var(--bw-mist);
		border-radius: 20px;
		box-shadow: 0 20px 40px -16px rgba(17, 19, 39, 0.3);
	}

	.bw-header .bw-header__inner { padding: 8px 8px 8px 16px; }
	.bw-nav.is-open { display: flex; }
	.bw-menu { flex-direction: column; }
	.bw-menu a { padding: 0.6rem 0; }
}

@media (max-width: 640px) {
	.bw-grid--2, .bw-grid--3, .bw-grid--4, .bw-pricing, .bw-projects, .bw-posts, .bw-steps, .bw-form__row, .bw-footer__grid { grid-template-columns: 1fr; }
	.bw-hero-visual { height: 380px; }
	.bw-card { min-height: 0; }
	.bw-section__head { margin-bottom: 2.25rem; }
}

/* ---------- Motion ---------- */

@keyframes bw-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bw-slide-in { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes bw-grow-in { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes bw-badge-pop { from { opacity: 0; transform: scale(0.3) rotate(-24deg); } to { opacity: 1; transform: scale(1) rotate(7deg); } }

/* Hero: elements rise in one after another on page load. */
.bw-hero__copy > *,
.bw-page-hero :is(.bw-eyebrow, h1, .bw-lead) {
	animation: bw-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-hero__copy > :nth-child(1), .bw-page-hero .bw-eyebrow { animation-delay: 0.05s; }
.bw-hero__copy > :nth-child(2), .bw-page-hero h1 { animation-delay: 0.15s; }
.bw-hero__copy > :nth-child(3), .bw-page-hero .bw-lead { animation-delay: 0.25s; }
.bw-hero__copy > :nth-child(4) { animation-delay: 0.35s; }

.bw-hero-visual__back { transform-origin: bottom right; animation: bw-grow-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.bw-mock { animation: bw-slide-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
.bw-hero-visual__badge { animation: bw-badge-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both; }

/* Header drops in on page load. */
@keyframes bw-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.bw-header .bw-header__inner { animation: bw-drop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Scroll reveal: nav.js adds these classes to every block outside the hero (on load and on scroll). */
.bw-reveal {
	opacity: 0;
	transform: translateY(32px);
}

.bw-reveal.bw-reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

.bw-reveal.is-visible { opacity: 1; transform: none; }

/* Cards lift on hover, like the buttons. */
.bw-card, .bw-price {
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-card:hover, .bw-price:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -18px rgba(17, 19, 39, 0.35); }
.bw-contact .bw-card:hover { transform: none; box-shadow: none; }

.bw-card__icon { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bw-card:hover .bw-card__icon { transform: rotate(-8deg) scale(1.1); }
.bw-contact .bw-card:hover .bw-card__icon { transform: none; }

.bw-project__media { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bw-project:hover .bw-project__media { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(17, 19, 39, 0.35); }
.bw-project__media img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* Portfolio filtering: results dim while loading, new projects rise in. */
.bw-portfolio .bw-projects { transition: opacity 0.3s ease; }
.bw-portfolio.is-loading .bw-projects { opacity: 0.35; pointer-events: none; }
.bw-portfolio.is-updated .bw-project { animation: bw-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bw-portfolio.is-updated .bw-project:nth-child(2) { animation-delay: 0.06s; }
.bw-portfolio.is-updated .bw-project:nth-child(3) { animation-delay: 0.12s; }
.bw-portfolio.is-updated .bw-project:nth-child(4) { animation-delay: 0.18s; }
.bw-portfolio.is-updated .bw-project:nth-child(n+5) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; }
	.bw-btn:hover, .bw-chip:hover, .bw-card:hover, .bw-price:hover,
	.bw-project:hover .bw-project__media, .bw-card:hover .bw-card__icon { transform: none; }
	.bw-reveal { opacity: 1; transform: none; }
}

.bw-section--flush { padding-top: 0; }
.bw-prose--spaced { margin-top: 3rem; }

.search-form { display: flex; gap: 10px; max-width: 32rem; margin-top: 1.5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 0.9rem 1rem; border: 2px solid var(--bw-mist); border-radius: var(--bw-radius-sm); font: inherit; }
.search-submit { padding: 0.9rem 1.5rem; border: 0; border-radius: var(--bw-radius-md); background: var(--bw-ink); color: var(--bw-white); font: inherit; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--bw-indigo); }

/* FAQ accordion */

.bw-faq__layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.bw-faq__aside { position: sticky; top: 7rem; }
.bw-faq__aside .bw-section__head { margin-bottom: 2rem; }

.bw-faq__help {
	padding: 1.5rem;
	border-radius: var(--bw-radius-md);
	background: var(--bw-paper);
}

.bw-faq__help p { margin: 0 0 1rem; color: var(--bw-muted); }
.bw-faq__help .bw-faq__help-title { margin-bottom: 0.25rem; font-family: var(--bw-font-heading); font-weight: 700; color: var(--bw-ink); }

.bw-faq__list { display: grid; gap: 12px; }

@media (max-width: 900px) {
	.bw-faq__layout { grid-template-columns: 1fr; }
	.bw-faq__aside { position: static; }
}

.bw-faq__item {
	border: 2px solid var(--bw-mist);
	border-radius: var(--bw-radius-md);
	background: var(--bw-paper);
	transition: border-color 0.3s ease;
}

.bw-faq__item[open] { border-color: var(--bw-indigo); }

.bw-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	font-family: var(--bw-font-heading);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.bw-faq__item summary::-webkit-details-marker { display: none; }

.bw-faq__item summary::after {
	content: "+";
	flex: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--bw-indigo);
}

.bw-faq__item[open] summary::after { content: "\2212"; }
.bw-faq__item p { margin: 0; padding: 0 1.5rem 1.5rem; color: var(--bw-muted); }


/* ---------- 8. Panel design layer ---------- */

/*
 * Shapes follow the logo: a rounded-square tile with round-capped strokes.
 * The page is a paper frame; sections are large rounded panels floating on it.
 */

body { padding: 8px; }

.bw-header { padding-inline: 0; margin-bottom: 8px; }
.bw-header .bw-header__inner { border-radius: var(--bw-radius-lg); padding: 8px 8px 8px 22px; box-shadow: var(--bw-shadow-soft); }

/* Panels */
.bw-hero,
.bw-page-hero,
.bw-section--white,
.bw-section--ink,
.bw-section--indigo,
.bw-section--yellow,
.bw-footer {
	border-radius: var(--bw-panel);
	overflow: hidden;
	overflow: clip; /* unlike hidden, keeps position: sticky working inside (FAQ aside) */
}

.bw-hero, .bw-page-hero { position: relative; background: var(--bw-white); border: 1px solid var(--bw-mist); }
.bw-hero { padding-block: clamp(3rem, 6vw, 5rem); }
.bw-section--white, .bw-section--ink, .bw-section--indigo, .bw-section--yellow, .bw-footer { margin-top: 8px; }
.bw-section--flush { padding-top: clamp(2rem, 4vw, 3rem); }

/* Spacing rhythm: panels carry their own padding; plain (paper) bands between them are a bit tighter. */
.bw-section:not(.bw-section--white):not(.bw-section--ink):not(.bw-section--indigo):not(.bw-section--yellow):not(.bw-section--flush) {
	padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

/* White panels sit on paper with a hairline. */
.bw-section--white { border: 1px solid var(--bw-mist); }

/* Soft logo-tile shape behind the hero. */
.bw-hero::before,
.bw-page-hero::before {
	content: "";
	position: absolute;
	top: -8rem; right: -6rem;
	width: 26rem; height: 26rem;
	border-radius: 28%;
	background: var(--bw-lilac);
	opacity: 0.16;
	transform: rotate(14deg);
	pointer-events: none;
}

.bw-hero > .bw-container, .bw-page-hero > .bw-container { position: relative; }
.bw-page-hero { padding-block: clamp(3rem, 6vw, 5rem); }

/* Eyebrow becomes a pill tag. */
.bw-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: rgba(75, 53, 240, 0.09);
}
.bw-section--ink .bw-eyebrow, .bw-section--indigo .bw-eyebrow, .bw-footer .bw-eyebrow { background: rgba(255, 255, 255, 0.1); }
.bw-section--yellow .bw-eyebrow { background: rgba(17, 19, 39, 0.1); }

/* Buttons: pills with a light shine that sweeps across on hover. */
.bw-btn { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; }
.bw-btn--ghost, .bw-btn--ghost:hover { border-width: 1.5px; }
.bw-section--ink .bw-btn--ghost, .bw-section--ink .bw-btn--ghost:hover,
.bw-section--indigo .bw-btn--ghost, .bw-section--indigo .bw-btn--ghost:hover { border-color: var(--bw-white); color: var(--bw-white); }
.bw-section--ink .bw-btn--primary, .bw-section--ink .bw-btn--primary:hover { background: var(--bw-indigo); }
.bw-section--indigo .bw-btn--primary, .bw-section--indigo .bw-btn--primary:hover { background: var(--bw-white); color: var(--bw-indigo); }

.bw-btn::after {
	content: "";
	position: absolute;
	top: -50%; bottom: -50%; left: -40%;
	width: 24%;
	background: rgba(255, 255, 255, 0.32);
	transform: skewX(-25deg);
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	z-index: -1;
}
.bw-btn:hover::after { transform: skewX(-25deg) translateX(650%); }

/* Cards: calm, one radius everywhere, hairline instead of heavy borders. */
.bw-card { min-height: 19rem; padding: 2rem; border-radius: var(--bw-radius-lg); }
.bw-card--white { border: 1px solid var(--bw-mist); background: var(--bw-white); }
.bw-section--white .bw-card--white { background: var(--bw-paper); }
.bw-card__icon { width: 56px; height: 56px; border-radius: 14px; }
.bw-card:hover, .bw-price:hover { box-shadow: var(--bw-shadow-soft); transform: translateY(-6px); }

/* Process steps become numbered tiles. */
.bw-step {
	padding: 1.75rem;
	border: 0;
	border-radius: var(--bw-radius-lg);
	background: rgba(255, 255, 255, 0.06);
}
.bw-step__num { font-size: 4rem; }

/* Pricing. */
.bw-price { padding: 2.25rem; border-width: 1px; border-radius: var(--bw-radius-lg); }
.bw-price--featured { box-shadow: 0 28px 50px -28px rgba(75, 53, 240, 0.6); }

/* Hero mock-up and large visuals. */
.bw-hero-visual__back { border-radius: var(--bw-radius-xl); }
.bw-mock { border: 1px solid var(--bw-mist); border-radius: var(--bw-radius-lg); box-shadow: var(--bw-shadow-soft); }
.bw-split__visual, .bw-story__visual, .bw-project-image { border-radius: var(--bw-radius-xl); }
.bw-split__visual svg { width: 32%; }

/* Projects. */
.bw-project__media { border-radius: var(--bw-radius-lg); }
.bw-project:hover .bw-project__media { box-shadow: var(--bw-shadow-soft); }
.bw-project__type {
	align-self: flex-start;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(75, 53, 240, 0.09);
	font-size: 0.75rem;
}

/* Chips. */
.bw-chip { padding: 0.6rem 1.3rem; border: 1px solid var(--bw-mist); background: var(--bw-white); }
.bw-chip:hover { border-color: var(--bw-ink); }
.bw-chip.is-active { border-color: var(--bw-ink); }

/* Forms. */
.bw-form input[type="text"], .bw-form input[type="email"], .bw-form select, .bw-form textarea,
.bw-searchform input[type="search"], .search-field { border-width: 1.5px; border-radius: var(--bw-radius-md); background: var(--bw-white); }
.bw-form input:focus, .bw-form select:focus, .bw-form textarea:focus { box-shadow: 0 0 0 4px rgba(75, 53, 240, 0.14); }
.search-submit { border-radius: 999px; }
.bw-next li::before { border-radius: 12px; }

/* Contact: solid white cards that lift off the paper, with paper-toned fields inside the form. */
.bw-contact .bw-card--white { box-shadow: var(--bw-shadow-soft); }
.bw-contact .bw-form input[type="text"], .bw-contact .bw-form input[type="email"],
.bw-contact .bw-form select, .bw-contact .bw-form textarea { background: var(--bw-paper); }
.bw-contact .bw-form input:focus, .bw-contact .bw-form select:focus, .bw-contact .bw-form textarea:focus { background: var(--bw-white); }

/* FAQ: white rows, round toggle, indigo outline when open. */
.bw-faq__item { border-width: 1px; border-radius: var(--bw-radius-lg); background: var(--bw-white); }
.bw-faq__item[open] { border-color: var(--bw-indigo); box-shadow: var(--bw-shadow-soft); }
.bw-faq__item summary::after {
	display: grid;
	place-items: center;
	width: 2.25rem; height: 2.25rem;
	border-radius: 50%;
	background: rgba(75, 53, 240, 0.09);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.bw-faq__item[open] summary::after { background: var(--bw-indigo); color: var(--bw-white); }
.bw-faq__help { border-radius: var(--bw-radius-lg); background: var(--bw-paper); }

/* Footer panel. */
.bw-footer { margin-bottom: 0; }
.bw-social a { border-radius: 50%; }

@media (max-width: 781px) {
	.bw-header .bw-header__inner { padding: 8px 8px 8px 16px; }
	.bw-nav { border-radius: 24px; }
	.bw-hero::before, .bw-page-hero::before { width: 16rem; height: 16rem; top: -5rem; right: -5rem; }
}

@media (max-width: 640px) {
	:root { --bw-panel: 22px; }
	.bw-step__num { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
	.bw-btn::after { display: none; }
}

/* ---------- Panel layer: motion and polish ---------- */

@keyframes bw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bw-float-badge { 0%, 100% { transform: translateY(0) rotate(7deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes bw-drift { from { transform: rotate(14deg); } to { transform: rotate(374deg); } }

/* Hero: the logo-tile shape turns slowly; mock-up and badge float once they have landed. */
.bw-hero::before, .bw-page-hero::before { animation: bw-drift 60s linear infinite; }
.bw-mock { animation: bw-slide-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both, bw-float 8s ease-in-out 1.6s infinite; }
.bw-hero-visual__badge { animation: bw-badge-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both, bw-float-badge 6s ease-in-out 1.8s infinite; }

/* Header gains depth once the page scrolls. */
.bw-header .bw-header__inner { transition: box-shadow 0.4s ease, border-color 0.4s ease; }
.bw-header.is-scrolled .bw-header__inner { border-color: transparent; box-shadow: 0 18px 40px -16px rgba(17, 19, 39, 0.35); }

/* Cursor follower (element created by nav.js, mouse users only): the logo tile, which becomes a labelled pill. */
.bw-cursor {
	position: fixed;
	top: 0; left: 0;
	z-index: 9999;
	width: 0; height: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	will-change: transform;
	--s: 1;
}

/* Sits just below and right of the pointer so the real cursor stays visible. */
.bw-cursor__tilt { position: absolute; top: 12px; left: 12px; transform-origin: 14px 14px; }

.bw-cursor__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 28px;
	padding: 0;
	border: 2px solid var(--bw-white);
	border-radius: 9px;
	background: var(--bw-indigo);
	color: var(--bw-white);
	box-shadow: 0 8px 16px -6px rgba(17, 19, 39, 0.5);
	transform: scale(var(--s));
	transform-origin: 0 50%;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-cursor__mark { flex: none; display: block; width: 16px; height: 16px; }

.bw-cursor__label {
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	font: 700 13px/1 var(--bw-font-body);
	transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), margin 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.bw-cursor.is-visible { opacity: 1; }
.bw-cursor.is-active:not(.has-label) { --s: 1.25; }
.bw-cursor.is-down, .bw-cursor.is-down.is-active:not(.has-label) { --s: 0.85; }
.bw-cursor.is-text { opacity: 0; }

.bw-cursor.has-label .bw-cursor__tile { height: 36px; padding: 0 14px 0 8px; border-radius: 999px; }
.bw-cursor.has-label .bw-cursor__label { max-width: 6rem; margin-left: 8px; opacity: 1; }

/* Icon tiles turn yellow on hover; steps brighten. */
.bw-card__icon { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, color 0.4s ease; }
.bw-card:not(.bw-card--yellow):hover .bw-card__icon { background: var(--bw-yellow); color: var(--bw-ink); }
.bw-step { transition: background-color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bw-step:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.bw-step__num { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: left bottom; }
.bw-step:hover .bw-step__num { transform: scale(1.08) rotate(-3deg); }

/* Scroll-driven extras, only where the browser supports them. */
@keyframes bw-panel-in { from { transform: translateY(48px) scale(0.96); } to { transform: none; } }
@keyframes bw-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		/* Each panel rises and settles into place as it enters the screen. */
		.bw-section--white, .bw-section--ink, .bw-section--indigo, .bw-section--yellow, .bw-footer {
			animation: bw-panel-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}

		/* Thin brand-coloured reading progress bar along the top edge. */
		body::before {
			content: "";
			position: fixed;
			top: 0; left: 0; right: 0;
			height: 4px;
			z-index: 50;
			background: linear-gradient(90deg, var(--bw-indigo), var(--bw-lilac) 60%, var(--bw-yellow));
			transform-origin: left;
			animation: bw-progress linear both;
			animation-timeline: scroll(root block);
			pointer-events: none;
		}
	}
}

/* Icon tile on white cards needs its own tint (paper on paper is invisible). */
.bw-card--white .bw-card__icon { background: rgba(75, 53, 240, 0.1); color: var(--bw-indigo); }

/* FAQ: the plus turns into a close mark; nav.js animates the height and marks a closing row with .is-closing. */
.bw-faq__item { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.bw-faq__item[open] summary::after { content: "+"; transform: rotate(135deg); }
.bw-faq__item summary::after { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease; }
.bw-faq__item.is-closing { border-color: var(--bw-mist); box-shadow: none; }
.bw-faq__item.is-closing summary::after { transform: none; background: rgba(75, 53, 240, 0.09); color: var(--bw-indigo); }

/* ---------- Panel layer: portfolio cards, project page, About story, mobile menu ---------- */

/* Project cards: a framed card, whole card clickable, type tag on the image, round arrow button that turns yellow. */
.bw-projects { gap: 24px; }

.bw-project {
	position: relative;
	gap: 0;
	padding: 10px;
	border: 1px solid var(--bw-mist);
	border-radius: var(--bw-radius-lg);
	background: var(--bw-white);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bw-project:hover { transform: translateY(-6px); box-shadow: var(--bw-shadow-soft); }
.bw-project__media { position: relative; border-radius: var(--bw-radius-md); }
.bw-project:hover .bw-project__media { transform: none; box-shadow: none; }
.bw-project:hover .bw-project__media img { transform: scale(1.06); }
.bw-project__media--empty:hover img { transform: none; }

.bw-project__type {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 1;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--bw-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	pointer-events: none;
}

.bw-project__go {
	position: absolute;
	right: 12px; bottom: 12px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--bw-white);
	color: var(--bw-ink);
	pointer-events: none;
	transition: background-color 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bw-project:hover .bw-project__go { background: var(--bw-yellow); transform: rotate(45deg); }

.bw-project__body { padding: 1.15rem 0.9rem 0.9rem; }
.bw-project__body h3 { font-size: 1.3rem; }
.bw-project__meta { margin: 0.35rem 0 0; }
.bw-project h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bw-project h3 a:focus-visible { outline: none; }
.bw-project h3 a:focus-visible::after { outline: 3px solid var(--bw-indigo); outline-offset: 2px; }

/* Single project: screenshot in a browser frame, then facts beside the story. */
.bw-shot {
	margin: 0 0 clamp(2.5rem, 5vw, 4rem);
	border: 1px solid var(--bw-mist);
	border-radius: var(--bw-radius-xl);
	background: var(--bw-white);
	box-shadow: var(--bw-shadow-soft);
	overflow: hidden;
}

.bw-shot__bar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; background: #ECEAF9; }
.bw-shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: #B9B3E8; }

.bw-shot__bar b {
	flex: 0 1 22rem;
	margin-left: 12px;
	padding: 0 14px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--bw-white);
	color: var(--bw-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 28px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bw-shot > img, .bw-shot > .wp-post-image { display: block; width: 100%; max-height: 720px; object-fit: cover; object-position: top; }
.bw-shot__empty { display: grid; place-items: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--bw-indigo), var(--bw-lilac)); }

.bw-case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.bw-case__facts {
	position: sticky;
	top: 7rem;
	padding: 1.75rem;
	border: 1px solid var(--bw-mist);
	border-radius: var(--bw-radius-lg);
	background: var(--bw-white);
}

.bw-case__facts dl { display: grid; gap: 1.25rem; margin: 0; }
.bw-case__facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bw-muted); }
.bw-case__facts dd { margin: 0.3rem 0 0; font-weight: 500; }
.bw-case__facts .bw-btn { width: 100%; margin-top: 1.5rem; }

.bw-case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bw-case__tags span { padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(75, 53, 240, 0.09); color: var(--bw-indigo); font-size: 0.875rem; font-weight: 700; }

.bw-case--solo { grid-template-columns: 1fr; }
.bw-case--solo .bw-case__facts { position: static; }
.bw-case--solo .bw-case__facts dl { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.bw-case--solo .bw-case__facts .bw-btn { width: auto; }

/* About: the story is editorial text beside a sticky heading; a photo (if one is set) runs full width underneath. */
.bw-story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 3rem clamp(2rem, 6vw, 6rem); }
.bw-story__head { position: sticky; top: 7rem; }
.bw-story__head h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }

.bw-story__head::after {
	content: "";
	display: block;
	width: 4rem; height: 4rem;
	margin-top: 2rem;
	border-radius: 28%;
	background: var(--bw-yellow);
	transform: rotate(-8deg);
}

.bw-story--photo .bw-story__visual { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

@media (max-width: 1000px) {
	.bw-case, .bw-story { grid-template-columns: 1fr; }
	.bw-case__facts, .bw-story__head { position: static; }
	.bw-story--photo .bw-story__visual { aspect-ratio: 4 / 3; }
}

/* Mobile menu: the panel fades and drops in, then the links and button rise one after another. */
@media (max-width: 781px) {
	.bw-nav {
		display: flex;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-14px) scale(0.97);
		transform-origin: top right;
		pointer-events: none;
		transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
	}

	.bw-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition-delay: 0s;
	}

	.bw-nav .bw-menu li, .bw-nav > .bw-btn {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.5s ease, box-shadow 0.5s ease;
	}

	.bw-nav.is-open .bw-menu li, .bw-nav.is-open > .bw-btn { opacity: 1; transform: none; }
	.bw-nav.is-open .bw-menu li:nth-child(1) { transition-delay: 0.08s; }
	.bw-nav.is-open .bw-menu li:nth-child(2) { transition-delay: 0.14s; }
	.bw-nav.is-open .bw-menu li:nth-child(3) { transition-delay: 0.2s; }
	.bw-nav.is-open .bw-menu li:nth-child(4) { transition-delay: 0.26s; }
	.bw-nav.is-open .bw-menu li:nth-child(n+5) { transition-delay: 0.32s; }
	.bw-nav.is-open > .bw-btn { transition-delay: 0.36s; }
}

@media (prefers-reduced-motion: reduce) {
	.bw-nav, .bw-nav .bw-menu li, .bw-nav > .bw-btn { transition: none !important; }
}

/* Subheadings inside lead prose stay ink (the lead text colour is muted). */
.bw-prose--lead :is(h2, h3, h4) { color: var(--bw-ink); }
@media (max-width: 1000px) { .bw-story__head::after { display: none; } }

/* Project card spacing: concentric corners, text aligned with the image, and the meta line pinned to the card bottom
   behind a hairline so rows with one- and two-line titles still line up. */
.bw-project { padding: 12px; }
.bw-project__media { border-radius: calc(var(--bw-radius-lg) - 12px); }

.bw-project__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 0.375rem 0.375rem;
}

.bw-project__body h3 { margin-bottom: 1.1rem; font-size: 1.3rem; line-height: 1.2; }

.bw-project__meta {
	margin: auto 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--bw-mist);
	font-size: 0.9375rem;
}

/* Sticky blocks (FAQ aside, About heading, project facts) stop a comfortable distance below the floating header,
   including the WordPress admin bar when it is showing. */
:root { --bw-sticky-top: 8rem; }
.admin-bar { --bw-sticky-top: calc(8rem + 32px); }

@media (max-width: 782px) {
	.admin-bar { --bw-sticky-top: calc(8rem + 46px); }
}

.bw-faq__aside, .bw-story__head, .bw-case__facts { top: var(--bw-sticky-top); }
