/* =========================================================================
   Pebble Rock design system (Divi 5 child)
   Divi modules carry pbl-* classes (set in module.decoration.attributes).
   Responsive layout lives in Divi's per-device settings; this file avoids
   @media queries and relies on flex-wrap, grid auto-fit and clamp().
   ========================================================================= */

/* Fonts (self-hosted, SIL OFL) ----------------------------------------- */
@font-face {
	font-family: "Afacad Flux";
	src: url("../fonts/afacad-flux-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Afacad Flux";
	src: url("../fonts/afacad-flux-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Tokens --------------------------------------------------------------- */
:root {
	--pbl-gold: #b48857;
	--pbl-gold-hover: #c99c69;
	--pbl-ink: #0d0e12;
	--pbl-night: #181a21;
	--pbl-line: rgba(180, 136, 87, 0.35);
	--pbl-fog: #e6e6e6;
	--pbl-text: #4a4a4a;
	--pbl-text-dark: #d9d9d9;
	--pbl-head: "Afacad Flux", "Arial Narrow", sans-serif;
	--pbl-body: "Montserrat", Arial, sans-serif;
	--pbl-max: 1200px;
	--pbl-gutter: clamp(20px, 4vw, 48px);
}

/* Base ------------------------------------------------------------------ */
body.pbl-site {
	font-family: var(--pbl-body);
	color: var(--pbl-text);
}
body.pbl-site h1,
body.pbl-site h2,
body.pbl-site h3,
body.pbl-site h4,
body.pbl-site h5,
body.pbl-site h6 {
	font-family: var(--pbl-head);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.1;
}
body.pbl-site a { color: var(--pbl-gold); }
body.pbl-site a:hover { color: var(--pbl-gold-hover); }

.pbl-wrap {
	max-width: var(--pbl-max);
	margin: 0 auto;
	padding: 0 var(--pbl-gutter);
}

/* Sections -------------------------------------------------------------- */
.pbl-dark { background: var(--pbl-ink); color: var(--pbl-text-dark); }
.pbl-night { background: var(--pbl-night); color: var(--pbl-text-dark); }
.pbl-dark h1, .pbl-dark h2, .pbl-dark h3, .pbl-dark h4,
.pbl-night h1, .pbl-night h2, .pbl-night h3, .pbl-night h4 { color: #fff; }

.pbl-hero {
	background: var(--pbl-ink);
	color: var(--pbl-text-dark);
	text-align: center;
}
.pbl-hero h1 {
	color: var(--pbl-gold);
	font-size: clamp(36px, 6vw, 64px);
}

/* Type ------------------------------------------------------------------ */
.pbl-eyebrow {
	font-family: var(--pbl-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pbl-gold);
	margin: 0 0 10px;
}
.pbl-title {
	font-family: var(--pbl-head);
	font-size: clamp(32px, 4.5vw, 52px);
	text-transform: uppercase;
	color: var(--pbl-gold);
	margin: 0 0 14px;
}
.pbl-lead {
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.6;
	max-width: 760px;
}
.pbl-center { text-align: center; }
.pbl-center .pbl-lead { margin-left: auto; margin-right: auto; }

/* Buttons --------------------------------------------------------------- */
.pbl-btn,
body.pbl-site .et_pb_button.pbl-btn {
	display: inline-block;
	background: var(--pbl-gold);
	color: #fff !important;
	font-family: var(--pbl-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 26px;
	border: 2px solid var(--pbl-gold);
	border-radius: 0;
	transition: background 0.2s, color 0.2s;
}
.pbl-btn:hover,
body.pbl-site .et_pb_button.pbl-btn:hover {
	background: var(--pbl-gold-hover);
	border-color: var(--pbl-gold-hover);
}
.pbl-btn--ghost,
body.pbl-site .et_pb_button.pbl-btn--ghost {
	background: transparent;
	color: var(--pbl-gold) !important;
}
.pbl-btn--ghost:hover,
body.pbl-site .et_pb_button.pbl-btn--ghost:hover {
	background: var(--pbl-gold);
	color: #fff !important;
}
body.pbl-site .et_pb_button.pbl-btn::after { display: none; }
.pbl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pbl-center .pbl-actions { justify-content: center; }

/* Facts row (trust bar) ------------------------------------------------- */
.pbl-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0;
	border-top: 1px solid var(--pbl-line);
	border-bottom: 1px solid var(--pbl-line);
}
.pbl-fact {
	padding: 24px 20px;
	text-align: center;
	border-right: 1px solid var(--pbl-line);
}
.pbl-fact:last-child { border-right: 0; }
.pbl-fact__value {
	font-family: var(--pbl-head);
	font-size: 24px;
	text-transform: uppercase;
	color: var(--pbl-gold);
	margin: 0 0 6px;
}
.pbl-fact__label { font-size: 13px; line-height: 1.5; margin: 0; }

/* Cards and grids ------------------------------------------------------- */
.pbl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.pbl-card {
	background: var(--pbl-night);
	color: var(--pbl-text-dark);
	border: 1px solid var(--pbl-line);
	padding: 28px;
	height: 100%;
}
.pbl-card h3 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.pbl-card--light { background: #fff; color: var(--pbl-text); border-color: #e2e2e2; }
.pbl-card--light h3 { color: var(--pbl-ink); }
.pbl-card a.pbl-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

/* "What you get" and check lists -------------------------------------- */
body.pbl-site ul.pbl-checks,
body.pbl-site .entry-content ul.pbl-checks,
body.pbl-site .pbl-checks ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 16px !important;
}
body.pbl-site .pbl-checks li {
	position: relative;
	padding: 0 0 10px 28px !important;
	list-style: none !important;
	line-height: 1.5;
}
body.pbl-site .pbl-checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--pbl-gold);
	border-bottom: 2px solid var(--pbl-gold);
	transform: rotate(-45deg);
}

/* Tags ("who it's for") ------------------------------------------------ */
body.pbl-site ul.pbl-tags,
body.pbl-site .pbl-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 12px !important;
}
body.pbl-site .pbl-tags li {
	list-style: none !important;
	padding: 4px 12px !important;
	border: 1px solid var(--pbl-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pbl-gold);
}

/* Process steps -------------------------------------------------------- */
body.pbl-site ol.pbl-steps,
body.pbl-site .pbl-steps ol {
	counter-reset: pbl-step;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
body.pbl-site .pbl-steps li {
	counter-increment: pbl-step;
	list-style: none !important;
	padding: 56px 0 0 !important;
	position: relative;
}
body.pbl-site .pbl-steps li::before {
	content: counter(pbl-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	font-family: var(--pbl-head);
	font-size: 40px;
	line-height: 1;
	color: var(--pbl-gold);
}

/* Mosaic (recent work) ------------------------------------------------- */
.pbl-mosaic {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 4px;
}
.pbl-mosaic img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* FAQ ------------------------------------------------------------------ */
.pbl-faq details {
	border-bottom: 1px solid var(--pbl-line);
	padding: 18px 0;
}
.pbl-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--pbl-head);
	font-size: 20px;
	text-transform: uppercase;
	color: inherit;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.pbl-faq summary::-webkit-details-marker { display: none; }
.pbl-faq summary::after { content: "+"; color: var(--pbl-gold); font-size: 24px; line-height: 1; }
.pbl-faq details[open] summary::after { content: "\2212"; }
.pbl-faq details p { margin: 12px 0 0; line-height: 1.65; }

/* Related links and market lists -------------------------------------- */
body.pbl-site ul.pbl-links,
body.pbl-site .pbl-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.pbl-site .pbl-links li { list-style: none !important; padding: 0 !important; }
body.pbl-site .pbl-links a {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--pbl-line);
}

/* Blog header ---------------------------------------------------------- */
.pbl-blog-head {
	background: var(--pbl-ink);
	color: var(--pbl-text-dark);
	padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
}

/* Forms (Gravity Forms) ------------------------------------------------ */
body.pbl-site .gform_wrapper .gfield_label,
body.pbl-site .gform_wrapper legend.gfield_label {
	font-family: var(--pbl-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
body.pbl-site .gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.pbl-site .gform_wrapper select,
body.pbl-site .gform_wrapper textarea {
	background: #f5f5f5;
	border: 1px solid #d6d6d6;
	border-radius: 0;
	padding: 12px 14px;
	font-family: var(--pbl-body);
	font-size: 15px;
}
body.pbl-site .gform_wrapper .gform_footer input[type="submit"],
body.pbl-site .gform_wrapper .gform_footer button,
body.pbl-site .gform_wrapper .gform_page_footer input[type="submit"] {
	background: var(--pbl-gold) !important;
	border: 2px solid var(--pbl-gold) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: var(--pbl-body) !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	padding: 14px 28px !important;
}

/* Footer --------------------------------------------------------------- */
.pbl-footer { background: var(--pbl-ink); color: var(--pbl-text-dark); }
.pbl-footer a { color: var(--pbl-gold); text-decoration: none; }
.pbl-footer__cta {
	padding: clamp(40px, 6vw, 72px) 0;
	border-bottom: 1px solid var(--pbl-line);
	text-align: center;
}
.pbl-footer__title {
	font-family: var(--pbl-head);
	font-size: clamp(28px, 4vw, 44px);
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.1;
}
.pbl-footer__lead { margin: 0 0 24px; }
.pbl-footer__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}
.pbl-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--pbl-line);
	color: var(--pbl-text-dark) !important;
	font-size: 14px;
}
.pbl-pill:hover { border-color: var(--pbl-gold); color: #fff !important; }
.pbl-pill .pbl-icon { color: var(--pbl-gold); }
.pbl-footer__main { padding: 32px 0; text-align: center; font-size: 14px; }
body.pbl-site ul.pbl-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 18px !important;
}
body.pbl-site .pbl-social li { list-style: none !important; padding: 0 !important; }
.pbl-social a { color: var(--pbl-text-dark); display: inline-flex; }
.pbl-social a:hover { color: var(--pbl-gold); }
.pbl-social .pbl-icon { width: 24px; height: 24px; }
.pbl-footer__areas { margin: 0 0 12px; }
.pbl-footer__disclaimer { margin: 0; font-size: 12px; opacity: 0.75; }
.pbl-footer__bottom {
	border-top: 1px solid var(--pbl-line);
	padding: 18px 0;
	font-size: 12px;
	text-align: center;
}
.pbl-footer__bottom p { margin: 0; }

/* Utilities ------------------------------------------------------------ */
.pbl-gold { color: var(--pbl-gold); }
.pbl-rule { width: 64px; height: 2px; background: var(--pbl-gold); border: 0; margin: 0 0 20px; }
.pbl-center .pbl-rule { margin-left: auto; margin-right: auto; }
.pbl-ph {
	background: repeating-linear-gradient(45deg, #1f222b, #1f222b 12px, #181a21 12px, #181a21 24px);
	aspect-ratio: 16 / 9;
	width: 100%;
}

/* Page template pieces (v1.0.1) ---------------------------------------- */
.pbl-hero--img { position: relative; }
.pbl-hero--img::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 14, 18, 0.7);
	z-index: 0;
}
.pbl-hero--img > .et_pb_row { position: relative; z-index: 1; }
.pbl-hero .pbl-lead { margin-left: auto; margin-right: auto; color: var(--pbl-text-dark); }
.pbl-hero .pbl-actions { justify-content: center; margin: 24px 0 36px; }
.pbl-hero .pbl-fact__label { color: var(--pbl-text-dark); }

.pbl-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.pbl-split h2, .pbl-head h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 16px; }
.pbl-head { margin-bottom: 28px; }
.pbl-card .pbl-btn { margin-top: 8px; }

.pbl-mosaic figure { margin: 0; position: relative; }
.pbl-mosaic a { display: block; text-decoration: none; }
.pbl-mosaic figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 14px 12px;
	background: linear-gradient(transparent, rgba(13, 14, 18, 0.85));
	color: #fff;
	font-family: var(--pbl-head);
	font-size: 18px;
	text-transform: uppercase;
}
.pbl-after { margin-top: 24px; }

.pbl-dark .pbl-faq summary, .pbl-night .pbl-faq summary { color: #fff; }
.pbl-dark .pbl-checks li, .pbl-night .pbl-checks li { color: var(--pbl-text-dark); }
.pbl-steps h3 { font-size: 22px; margin: 0 0 8px; }
.pbl-steps p { margin: 0; line-height: 1.6; }

/* Hero alignment (v1.0.2) ---------------------------------------------- */
.pbl-hero .et_pb_text_inner,
.pbl-hero .pbl-eyebrow,
.pbl-hero .pbl-title { text-align: center; }

/* Hide Divi's default footer bar when our footer renders (v1.0.3) ------ */
.pbl-custom-footer #main-footer { display: none; }

/* Alternate footer: classic columns (v1.0.3) --------------------------- */
.pbl-footer--alt { padding-top: clamp(40px, 6vw, 64px); }
.pbl-footer-alt__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding-bottom: 32px;
}
.pbl-footer-alt__brand img { display: block; max-width: 180px; height: auto; margin-bottom: 16px; }
.pbl-footer-alt__heading {
	font-family: var(--pbl-head);
	font-size: 20px;
	text-transform: uppercase;
	color: var(--pbl-gold);
	margin: 0 0 12px;
}
.pbl-footer-alt__cols p { font-size: 14px; line-height: 1.6; }
body.pbl-site .pbl-footer-alt__cols ul { list-style: none !important; padding: 0 !important; margin: 0 0 16px !important; }
body.pbl-site .pbl-footer-alt__cols li { list-style: none !important; padding: 0 0 6px !important; font-size: 14px; }
.pbl-footer-alt__cols a { color: var(--pbl-text-dark); }
.pbl-footer-alt__cols a:hover { color: var(--pbl-gold); }
.pbl-footer-alt__cols .pbl-btn { color: #fff !important; }


/* Facts as their own row of buckets, in a section under the hero -------- */
.et_pb_section.pbl-facts-sec { padding: 32px 0; }
.pbl-facts-sec .pbl-facts { border: 0; gap: 16px; }
.pbl-facts-sec .pbl-fact,
.pbl-facts-sec .pbl-fact:last-child {
	border: 1px solid var(--pbl-line);
	background: rgba(255, 255, 255, 0.03);
	padding: 28px 20px;
}
.pbl-facts-sec .pbl-fact__label { color: var(--pbl-text-dark); }

/* Case studies: work items at /work/<slug>/ (v1.0.5) ------------------- */
.et_pb_section.pbl-cs-head {
	background: var(--pbl-ink);
	color: var(--pbl-text-dark);
	padding: clamp(56px, 8vw, 104px) 0 clamp(96px, 14vw, 180px);
}
.pbl-crumbs {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 28px;
}
.pbl-crumbs a { color: var(--pbl-text-dark) !important; text-decoration: none; border-bottom: 1px solid var(--pbl-line); }
.pbl-crumbs span { color: var(--pbl-gold); }
.pbl-cs-head h1 {
	color: #fff;
	font-size: clamp(44px, 8vw, 96px);
	line-height: 0.95;
	margin: 0 0 18px;
}
.pbl-cs-head .pbl-lead { color: var(--pbl-text-dark); margin: 0 0 40px; }
dl.pbl-cs-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px 24px;
	border-top: 1px solid var(--pbl-line);
	padding: 20px 0 0;
	margin: 0;
}
.pbl-cs-meta dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pbl-gold);
	margin: 0 0 6px;
}
.pbl-cs-meta dd { margin: 0; color: #fff; font-size: 15px; line-height: 1.5; }

/* Featured video overlaps the header */
.et_pb_section.pbl-cs-feature { background: #fff; padding: 0; }
.pbl-cs-feature .pbl-clip { margin: calc(-1 * clamp(72px, 11vw, 150px)) 0 0; position: relative; z-index: 2; }
.pbl-cs-feature video, .pbl-cs-feature iframe { box-shadow: 0 30px 70px rgba(13, 14, 18, 0.35); }

/* Story rows */
.pbl-cs-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px clamp(24px, 5vw, 72px);
	padding: clamp(28px, 4vw, 44px) 0;
	border-top: 1px solid #e2e2e2;
}
.pbl-cs-row:first-child { border-top: 0; }
.pbl-cs-row h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; color: var(--pbl-ink); }
.pbl-cs-row p { margin: 0 0 12px; line-height: 1.7; }

/* Video gallery */
.pbl-cs-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 24px;
}
.pbl-cs-gallery--tall { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pbl-cs-gallery .pbl-clip--wide { grid-column: 1 / -1; }
.pbl-clip { margin: 0; }
.pbl-clip iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.pbl-clip figcaption { font-size: 13px; line-height: 1.5; margin-top: 10px; opacity: 0.85; }
.pbl-dark .pbl-clip figcaption, .pbl-night .pbl-clip figcaption { color: var(--pbl-text-dark); }

/* Placeholder marker for unconfirmed case-study facts (drafts only) */
.pbl-todo { outline: 1px dashed var(--pbl-gold); outline-offset: 3px; color: var(--pbl-gold) !important; }

/* Portfolio grid on Our Work (v1.0.5) ---------------------------------- */
.et_pb_section.pbl-cs-head--index { padding-bottom: clamp(40px, 6vw, 64px); }
.pbl-work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 28px;
}
.pbl-work-card {
	position: relative;
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--pbl-night);
	border: 1px solid var(--pbl-line);
	transition: border-color 0.2s, transform 0.2s;
}
.pbl-work-card:hover { border-color: var(--pbl-gold); transform: translateY(-3px); }
.pbl-work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.pbl-work-card > p, .pbl-work-card picture { display: block; margin: 0; padding: 0; }
.pbl-work-card .pbl-more::after { content: ""; position: absolute; inset: 0; }
.pbl-work-card__body { padding: 22px 24px 26px; }
.pbl-work-card h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 8px; }
.pbl-work-card p { margin: 0; color: var(--pbl-text-dark); font-size: 14px; line-height: 1.5; }
.pbl-work-card .pbl-more {
	display: inline-block;
	margin-top: 14px;
	color: var(--pbl-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.pbl-clip .pbl-ph { display: flex; align-items: center; justify-content: center; color: var(--pbl-gold); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
