/* ==================================================================
   BPThink home page. Loaded on the front page only.
   Motion is driven by assets/js/home.js (GSAP 3.15 + ScrollTrigger +
   SplitText). Everything renders fully without JavaScript.
================================================================== */

/* ---------- Pre-animation states (only when motion is allowed) ---------- */
.js-motion [data-hero-in],
.js-motion [data-hero-visual],
.js-motion [data-reveal],
.js-motion [data-batch-item] { opacity: 0; }
.js-motion [data-hero-title] { visibility: hidden; }

/* ---------- Image slots ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue-wash); }
.media-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--empty {
	display: grid; place-items: center; padding: 1rem;
	background:
		linear-gradient(rgba(29, 95, 209, .10) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(29, 95, 209, .10) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--blue-wash);
}
.media-hint { font-size: .82rem; line-height: 1.45; text-align: center; color: var(--blue-deep); background: rgba(255, 255, 255, .85); padding: .5rem .7rem; border-radius: 4px; }
.media-hint code { font-size: .8rem; }

/* ==================================================================
   HERO: dark navy with an animated low-poly polygon field
================================================================== */
.h-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: #0f2540; color: #c9d6e8;
	min-height: min(calc(100svh - var(--header-h)), 900px);
	display: flex; align-items: center;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.h-hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.h-hero-shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(15, 37, 64, .96) 0%, rgba(15, 37, 64, .86) 34%, rgba(15, 37, 64, .35) 62%, rgba(15, 37, 64, .1) 100%);
}
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.h-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-weight: 500; color: #9cc0ff; }
.h-kicker::before { content: ""; width: 22px; border-top: 1.5px solid var(--signal); }
.h-hero-title {
	font-family: var(--font-display); font-weight: 700; color: #fff;
	font-size: clamp(2.6rem, 5.2vw, 4.5rem); line-height: .98; letter-spacing: -.025em;
	max-width: 13ch; margin: 0 0 1.4rem;
}
.h-hero-text { font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 50ch; margin: 0 0 2rem; }
.h-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.h-hero-actions .btn-signal { box-shadow: 0 10px 30px rgba(242, 160, 7, .28); }
.h-hero-note { margin: .9rem 0 0; font-size: .92rem; color: #8ea6c4; }
.h-trust { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: .45rem 1.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .93rem; color: #dbe5f2; }
.h-trust li { display: flex; align-items: center; gap: .45rem; }
.h-trust .icon { color: var(--signal); width: 18px; height: 18px; }

.h-hero-visual { position: relative; perspective: 1400px; }
.h-hero-shot {
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
	box-shadow: 0 40px 90px rgba(3, 12, 26, .55), 0 0 0 8px rgba(255, 255, 255, .04);
	transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d;
}
.h-hero-shot.media--empty { background-color: rgba(255, 255, 255, .06); }
.h-toast {
	position: absolute; left: -1.75rem; bottom: -1.5rem;
	display: flex; align-items: center; gap: .8rem;
	min-width: 290px; padding: .85rem 1rem;
	background: #fff; color: var(--ink); border-radius: 10px;
	box-shadow: 0 18px 40px rgba(3, 12, 26, .35);
}
.h-toast-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(242, 160, 7, .22); }
.h-toast-body { display: flex; flex-direction: column; line-height: 1.3; }
.h-toast-label { font-size: .75rem; color: var(--ink-soft); }
.h-toast-name { font-size: .98rem; }
.h-toast-src { font-size: .82rem; color: var(--ink-soft); }
.h-toast-score { margin-left: auto; font: 700 1.25rem var(--font-display); color: var(--blue-deep); background: var(--blue-wash); padding: .25rem .55rem; border-radius: 6px; }

@media (max-width: 960px) {
	.h-hero { min-height: 0; }
	.h-hero-grid { grid-template-columns: 1fr; }
	.h-hero-shade { background: linear-gradient(180deg, rgba(15, 37, 64, .93) 0%, rgba(15, 37, 64, .8) 55%, rgba(15, 37, 64, .55) 100%); }
	.h-hero-visual { max-width: 620px; margin: 1rem 0 1.5rem; }
	.h-hero-shot { transform: none; }
	.h-toast { left: .75rem; bottom: -1.75rem; }
}
@media (max-width: 520px) {
	.h-trust { grid-template-columns: 1fr; }
	.h-toast { min-width: 0; right: .75rem; }
}

/* ==================================================================
   LEAD JOURNEY: scroll story beside the blueprint schematic
================================================================== */
.h-journey-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.h-journey-steps { list-style: none; margin-top: 2rem; border-left: 2px solid var(--line); }
.h-journey-step { position: relative; padding: .9rem 0 .9rem 1.4rem; opacity: .45; transition: opacity .3s ease; }
.h-journey-step::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; border-left: 2px solid transparent; transition: border-color .3s ease; }
.h-journey-step.is-active { opacity: 1; }
.h-journey-step.is-active::before { border-color: var(--blue); }
.h-journey-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: .25rem; }
.h-journey-step p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
/* GSAP takes over the schematic here, so switch off its CSS intro. */
.js-motion .h-journey .schematic .node,
.js-motion .h-journey .schematic .wire { animation: none; opacity: 1; }
@media (min-width: 1024px) {
	.js-motion .h-journey { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 2rem 0; }
	.js-motion .h-journey-inner { width: 100%; }
}
@media (max-width: 1023px) {
	.h-journey-inner { grid-template-columns: 1fr; }
	.h-journey-step { opacity: 1; }
}

/* ==================================================================
   PRODUCTS and RESULTS cards
================================================================== */
.h-products, .h-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.h-product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.h-product-media .media, .h-result-media .media { border-radius: 0; }
.h-product-media .media-img, .h-result-media .media-img { transition: transform .5s ease; }
.h-product:hover .media-img, .h-result:hover .media-img { transform: scale(1.04); }
.h-product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.h-product-text { color: var(--ink-soft); }
.h-product-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: auto; padding-top: .5rem; }

.h-result { display: flex; flex-direction: column; }
.h-result-media { display: block; margin-bottom: 1.1rem; }
.h-result-media .media { border-radius: var(--radius-lg); }
.h-result-metric { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .4rem; }
.h-result-metric strong { font: 700 clamp(2.2rem, 3.6vw, 2.9rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--blue-deep); }
.h-result-metric span { font-weight: 600; }
.h-result .case-title { font-size: 1.3rem; }
.h-result .text-link { margin-top: auto; }
@media (max-width: 960px) { .h-products, .h-results { grid-template-columns: 1fr; max-width: 560px; } }

/* ==================================================================
   PROCESS: dark band, horizontal scroll on desktop
================================================================== */
.h-process { background: var(--ink); color: #c9d6e8; padding: var(--section) 0; overflow: hidden; }
.h-process .section-title { color: #fff; margin: 0; }
.h-process-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.h-process-bar { width: min(280px, 100%); height: 3px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.h-process-bar span { display: block; width: 100%; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.h-process-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; scrollbar-width: thin; }
.h-process-track { list-style: none; display: flex; gap: 1.25rem; width: max-content; padding-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.h-process-card {
	scroll-snap-align: start; position: relative;
	width: min(360px, 80vw); min-height: 280px; padding: 2rem 1.75rem;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03);
	display: flex; flex-direction: column;
}
.h-process-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: #fff; }
.h-process-card p { margin: 0; }
.h-process-num { font: 700 4.5rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(156, 192, 255, .55); margin-bottom: 1.25rem; }
.h-process-card--cta { background: var(--blue); border-color: var(--blue); color: #e3ecff; justify-content: flex-end; }
.h-process-card--cta .btn { align-self: flex-start; margin-top: 1.25rem; }
/* When GSAP pins the section, the track moves instead of scrolling. */
.h-process.is-pinned { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
.h-process.is-pinned .h-process-viewport { overflow: visible; scroll-snap-type: none; }

/* ==================================================================
   INDUSTRIES with images
================================================================== */
.h-industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.h-industry-media { margin-bottom: 1rem; }
.h-industry-media .media-img { transform: scale(1.18); will-change: transform; }
.h-industry-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .35rem; }
.h-industry p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 960px) { .h-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .h-industries { grid-template-columns: 1fr; } }

/* ==================================================================
   FREE PLAN FORM
================================================================== */
.h-lead { background:
	linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
	linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
	var(--paper); }
.h-lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-lead-points { margin: 1.5rem 0 2rem; }
.h-lead-card { border-top: 4px solid var(--signal); box-shadow: 0 24px 60px rgba(15, 37, 64, .1); }
.h-lead-card .form .btn { margin-top: .25rem; }
@media (max-width: 900px) {
	.h-lead-grid { grid-template-columns: 1fr; }
	.h-lead-media { display: none; }
}

/* ==================================================================
   FAQ
================================================================== */
.h-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .h-faq { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	.js-motion [data-hero-in], .js-motion [data-hero-visual], .js-motion [data-reveal], .js-motion [data-batch-item] { opacity: 1; }
	.js-motion [data-hero-title] { visibility: visible; }
}
