/* ==========================================================================
   Industries Landing — page-industries.php (generic section-builder template)
   Figma: "Industries Landing Desktop" 86:3859 (1440) / "Industries Landing Mobile" 105:10138 (393)

   Node measurements used below (§7.2 audit):
     Hero 86:4124        1440×696. Content: left/right 16 + 24 = 40 gutter,
                         bottom 24 + 16 = 40. Heading 777 wide, body/buttons 672.
                         Flat rgba(0,0,0,.2) overlay — no gradient in the file.
     Section 105:11064   1440×784. Outer 48 block / 40 left / 24 right
                         (40 + 688 + 688 + 24 = 1440). Columns 688 each.
                         Text pad 64/64/64/16 (image right) · 64/0/64/64 (image left).
                         Body copy 560 wide. Image 688×688 r10.
                         Boxes: 570 row, 3 × 182, 12 gaps, image 151 tall.
     Partners 89:5737    1440×276. Frame pad-block 48, gap 32.
                         Strip pad 32/60/32/34. Row 1346×42, space-between.
     Blog 523:15222      1440×887. Pad-top 64, header→track gap 72, header pad-x 40.
                         Card 997×583 r2. Content pad 0/0/48/48. Text pad-x 12, gap 4.
                         Scrim: transparent → #000 from 81.73%. Dots 6px, bar 30×6, gap 3.
   ========================================================================== */

/* The theme has no global box-sizing reset (the container relies on
   content-box so max-width stays 1360 of CONTENT — see _tokens-layout.css).
   Every fixed-width block below states its width INCLUDING padding, so scope
   border-box to this page's own components. The reused category components
   inside .ind-page are deliberately untouched. */
.ind-hero, .ind-hero *,
.ind-section, .ind-section *,
.ind-projects, .ind-projects * {
	box-sizing: border-box;
}

/* The hero sits behind the transparent fixed nav (Figma draws the nav at y=27
   over the 696px banner), so this page opts out of the header-height offset
   that hero.css applies to ordinary interior pages — same as the category
   archive does in category.css. */
body.page-template-page-industries .site-body {
	margin-top: 0;
}

/* ── Hero / top banner ─────────────────────────────────────────────────── */

.ind-hero {
	position: relative;
	height: 696px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: var(--fig-neutral-900);
}

.ind-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Figma paints one flat 20% black wash over the whole banner (86:4124). */
.ind-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .2);
	z-index: 1;
	pointer-events: none;
}

.ind-hero__breadcrumb {
	display: none;
}

.ind-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-6);              /* 24 */
	padding: 0 var(--gutter) var(--sp-9); /* 40 = 16 banner + 24 container */
	/* The banner image stays full-bleed; the copy is capped to the design
	   frame and centred so it does not drift to the left edge on wide screens. */
	width: 100%;
	max-width: var(--page-w);
	margin-inline: auto;
}

.ind-hero__heading-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-4);             /* 12 */
}

.ind-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-1);         /* 4 */
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, .2);
	color: var(--text-label);
	text-align: center;
}

.ind-hero__heading {
	margin: 0;
	max-width: 777px;
	color: var(--text-heading-inverse);
}

.ind-hero__subtitle {
	margin: 0;
	max-width: 672px;
	color: var(--text-body-inverse);
}

.ind-hero__ctas {
	display: flex;
	gap: var(--sp-5);             /* 16 */
	flex-wrap: wrap;
	max-width: 672px;
}

.ind-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 14px;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color var(--dur-fast) linear;
}

.ind-hero__cta--primary {
	background: var(--fig-red-600);
	border-color: var(--fig-red-600);
	color: var(--text-label);
}

.ind-hero__cta--secondary {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .3);
	color: var(--text-label);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.ind-hero__cta:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.ind-hero__cta--primary:hover   { background: var(--fig-red-800); border-color: var(--fig-red-800); }
	.ind-hero__cta--secondary:hover { background: rgba(255, 255, 255, .24); }
}

/* ── Industry section (image + text + product boxes) ───────────────────── */

.ind-section { background: var(--fig-siegel-white); }

.ind-section__inner {
	display: flex;
	align-items: center;
	/* Asymmetric by design: 40 + 688 + 688 + 24 = 1440 exactly. */
	padding: var(--sp-10) var(--sp-6) var(--sp-10) var(--sp-9);
	/* Above the 1440 design frame the two columns centre rather than growing
	   or sticking to the left edge — box-sizing:border-box above means the
	   1440 cap includes the padding, so the columns land exactly as drawn. */
	max-width: var(--page-w);
	margin-inline: auto;
}

/* DOM order is text then image, so the default row is text left / image right
   (105:11064). The modifier reverses it for the alternating rows (86:5164). */
.ind-section--media-left .ind-section__inner { flex-direction: row-reverse; }

.ind-section__image {
	flex: 0 0 688px;
	width: 688px;
	height: 688px;
	object-fit: cover;
	border-radius: 10px; /* off-scale, specific to this section */
	display: block;
}

.ind-section__image--placeholder { background: var(--fig-neutral-100); }

.ind-section__text {
	flex: 0 0 688px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--sp-6);
	padding: var(--sp-12) var(--sp-12) var(--sp-12) var(--sp-5); /* 64/64/64/16 */
}

.ind-section--media-left .ind-section__text {
	padding: var(--sp-12) 0 var(--sp-12) var(--sp-12); /* 64/0/64/64 */
}

.ind-section__heading {
	margin: 0;
	color: var(--text-heading-primary);
}

.ind-section__body {
	color: var(--text-body-primary);
	max-width: 560px;
}

.ind-section__body p { margin: 0 0 1em; }
.ind-section__body p:last-child { margin-bottom: 0; }

/* ── Product boxes ─────────────────────────────────────────────────────── */

.ind-products {
	display: flex;
	gap: var(--sp-4);             /* 12 */
	width: 570px;
	max-width: 100%;
	margin: 0;
	padding: var(--sp-4) 0 0;     /* 12 top */
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.ind-products::-webkit-scrollbar { display: none; }

.ind-products__item {
	flex: 0 0 182px;
	width: 182px;
	display: flex;
	/* Flex items default to min-width:auto, which lets the single-line card
	   text push the box past its 182px basis. */
	min-width: 0;
}

.ind-product-card {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--fig-siegel-white);
	border: 1px solid var(--fig-neutral-100);
	border-radius: var(--r-md);
	box-shadow: 0 1px 2px -1px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .1);
	overflow: hidden;
	text-decoration: none;
	color: var(--text-product-card-title);
	transition: box-shadow var(--dur-base) ease-out;
}

.ind-product-card:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.ind-product-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
}

.ind-product-card__img {
	width: 100%;
	height: 151px;
	object-fit: cover;
	display: block;
}

.ind-product-card__img--placeholder { background: var(--fig-neutral-50); }

.ind-product-card__info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: var(--sp-2);
	padding: var(--sp-3);         /* 10 */
	flex: 1;
}

.ind-product-card__name {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-1);
	/* Aktiv Grotesk Medium 14 — ad-hoc, not a named Figma text style */
	font: var(--fw-medium) 0.875rem/1 var(--font-heading);
}

/* Both text frames are single-line in Figma (heading 3 and paragraph 3 have
   fixed heights), which is what keeps the card at exactly 207px. Long product
   names truncate rather than reflowing the row. */
.ind-product-card__name > span:first-child,
.ind-product-card__sub {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ind-product-card__sub {
	/* Aktiv Grotesk Medium 12 — ad-hoc, not a named Figma text style.
	   The node reports letter-spacing 0.18px, which is scaled-component noise
	   (0.015em; the card is an instance at ~0.6 scale). Reproducing it pushes
	   "Premium Hot Melt Adhesives" to 164px against the 160px slot and forces
	   an ellipsis where Figma shows the string whole, so it is normalised
	   away — the design intent is one full line. */
	font: var(--fw-medium) 0.75rem/1 var(--font-heading);
}

.ind-product-card__chevron {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

/* ── Our Projects (wide card carousel) ─────────────────────────────────── */

.ind-projects {
	display: flex;
	flex-direction: column;
	gap: var(--section-gap);      /* 72 */
	padding-top: var(--section-py); /* 64 */
	background: var(--fig-siegel-white);
	overflow: hidden;
}

.ind-projects__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	padding-inline: var(--gutter);
	width: 100%;
	max-width: var(--page-w);
	margin-inline: auto;
}

.ind-projects__heading {
	margin: 0;
	color: var(--text-heading-primary);
}

.ind-projects__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-5);         /* 16 */
	border: 1px solid var(--fig-red-600);
	border-radius: var(--r-sm);
	background: var(--fig-red-600);
	color: var(--text-label);
	text-decoration: none;
	transition: background-color var(--dur-fast) linear;
}

.ind-projects__view-all:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.ind-projects__view-all:hover { background: var(--fig-red-800); border-color: var(--fig-red-800); }
}

.ind-projects__wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-6);             /* 24 — track to dots */
	padding-bottom: var(--sp-13); /* 72 */
}

.ind-projects__track {
	display: flex;
	align-items: center;
	gap: var(--sp-6);             /* 24 */
	width: 100%;
	/* Full-bleed. Capping this at the design frame turned the whole carousel
	   into a 1440 island on a wide screen: the peeking neighbour was cut by an
	   invisible container with empty page either side of it, and at 2200 there
	   was no left neighbour at all. The peek is drawn by the frame edge in
	   523:15222, and the frame edge is the screen — so it grows with the
	   viewport rather than freezing at the 197px that edge happens to leave at
	   1440.
	   The header keeps the container line on its own (max-width: --page-w with
	   a gutter), so the heading and View All do not move. */
	max-width: none;
	margin-inline: 0;
	/* Keeps the 997 card centred at any width, neighbours peeking either side
	   and cut by the screen. scroll-padding matches so snapping centres too. */
	padding-inline: max(var(--gutter), calc((100% - 997px) / 2));
	scroll-padding-inline: max(var(--gutter), calc((100% - 997px) / 2));
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ind-projects__track::-webkit-scrollbar { display: none; }

.ind-projects__track:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: -2px;
}

.ind-project-card {
	position: relative;
	flex: 0 0 997px;
	height: 583px;
	display: flex;
	align-items: flex-end;
	border-radius: var(--r-sm);
	overflow: hidden;
	scroll-snap-align: center;
	text-decoration: none;
	color: inherit;
	background: var(--fig-neutral-900);
}

.ind-project-card:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}

.ind-project-card__media {
	position: absolute;
	inset: 0;
	display: block;
}

.ind-project-card__img,
.ind-project-card__media .hover-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	display: block;
}

/* The injected player sits above the poster only once it is actually playing. */
.ind-project-card__media .hover-video {
	opacity: 0;
	transition: opacity var(--dur-base) ease-out;
	pointer-events: none;
}

.ind-project-card__media.is-video-active .hover-video { opacity: 1; }

/* Scrim: transparent to solid black over the bottom 18.3% (523:15222). */
.ind-project-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 81.73%, rgba(0, 0, 0, 1) 100%);
	pointer-events: none;
}

.ind-project-card__content {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 var(--sp-10) var(--sp-10) var(--sp-10); /* 48 */
	width: 100%;
}

.ind-project-card__play {
	flex: 0 0 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: var(--r-pill);
	border: 1px solid rgba(255, 255, 255, .09);
	background: rgba(246, 244, 240, .11);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .17);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
}

.ind-project-card__text {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);             /* 4 */
	padding-inline: var(--sp-4);  /* 12 */
	min-width: 0;
}

.ind-project-card__title {
	color: #f9f4e9;
	display: block;
}

.ind-project-card__sub {
	color: rgba(249, 244, 233, .73);
	display: block;
	max-width: 392px;
}

/* Dots — 6px circles, 30×6 bar for the active slide (group-6). */
.ind-projects__dots {
	display: flex;
	align-items: center;
	gap: 3px;
}

.ind-projects__dots span {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: var(--r-pill);
	background: var(--bg-inverse-tertiary);
	border: 0;
	padding: 0;
	/* Indicators only — carousel.js renders them as aria-hidden spans with no
	   click handler. The track itself is the control (scroll, drag, arrow keys). */
	transition: width var(--dur-base) ease-out, background-color var(--dur-base) ease-out;
}

.ind-projects__dots span.is-active {
	width: 30px;
	border-radius: 4px;
	background: var(--bg-inverse-primary);
}

@media (prefers-reduced-motion: reduce) {
	.ind-projects__dots span,
	.ind-project-card__media .hover-video,
	.ind-projects__view-all,
	.ind-hero__cta,
	.ind-product-card { transition: none; }
}

/* ── Fluid 1024–1439 ───────────────────────────────────────────────────── */

@media (max-width: 1439px) {
	.ind-section__image {
		flex: 0 1 688px;
		width: auto;
		height: auto;
		aspect-ratio: 1;
		min-width: 0;
	}

	.ind-section__text { flex: 0 1 688px; min-width: 0; }
	.ind-products { width: 100%; }

	.ind-project-card {
		flex-basis: min(997px, calc(100vw - 2 * var(--gutter)));
		height: auto;
		aspect-ratio: 997 / 583;
	}
}

/* ── Tablet 768–1023 ───────────────────────────────────────────────────── */

@media (max-width: 1023px) {
	.ind-section__inner,
	.ind-section--media-left .ind-section__inner {
		flex-direction: column;
		align-items: stretch;
		padding: var(--sp-9) var(--sp-8);
		gap: var(--sp-8);
	}

	.ind-section__image {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 16 / 10;
		border-radius: var(--r-sm);
	}

	.ind-section__text,
	.ind-section--media-left .ind-section__text {
		flex: 0 0 auto;
		width: 100%;
		padding: 0;
	}

	.ind-section__body { max-width: none; }

	.ind-products__item { flex: 0 0 calc((100% - 2 * var(--sp-4)) / 3); }

	.ind-project-card__content { padding: 0 var(--sp-8) var(--sp-8); }
	.ind-project-card__title { font: var(--fw-bold) 2rem/2.125rem var(--font-heading); }
}

/* ── Mobile ≤767 ───────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.ind-hero { height: 700px; }

	/* 105:10902: nav occupies 16..77, breadcrumb row sits at y=89, x=16. */
	.ind-hero__breadcrumb {
		display: block;
		position: absolute;
		z-index: 2;
		top: 89px;
		left: var(--sp-5);
		right: var(--sp-5);
	}

	.breadcrumb {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-1);
		margin: 0;
		padding: 0;
		list-style: none;
		color: var(--text-label);
	}

	.breadcrumb li + li::before {
		content: '/';
		margin-right: var(--sp-1);
		opacity: .7;
	}

	.breadcrumb a {
		color: var(--fig-siegel-white);
		text-decoration: none;
		opacity: .85;
	}

	/* Content container 393×372 at y=328: 16 inline, 24 bottom, 12 between
	   every block (badge→heading→paragraph→buttons), buttons full-width and
	   stacked at 46 tall with an 8px gap. */
	.ind-hero__inner {
		padding: 0 var(--sp-5) var(--sp-6);
		gap: var(--sp-4);
	}

	.ind-hero__heading-block { gap: var(--sp-4); }

	.ind-hero__heading {
		font: var(--fw-bold) 3rem/3.15rem var(--font-heading);
		letter-spacing: var(--ls-tight);
		max-width: none;
	}

	.ind-hero__subtitle { max-width: none; }

	.ind-hero__ctas {
		flex-direction: column;
		align-items: stretch;
		gap: var(--sp-2);
		width: 100%;
		max-width: none;
	}

	.ind-hero__cta {
		width: 100%;
		min-height: 46px;
	}

	/* Section 105:11102 (393×757): container x=16 y=32 w=361, so 32/16 padding.
	   Heading 361×34 (Mobile/H2 32/34) → single line. Text block → carousel 24.
	   Carousel 15 top pad, 3 × 114.34 cards, 8.99 gaps (114.34×3 + 9×2 = 361).
	   Card: image 94.84 tall, info pad 6.06, chevron 12, subtitle wraps to 2
	   lines (paragraph frame 20 tall vs 14 on desktop). Image 361×250. */
	.ind-section__inner,
	.ind-section--media-left .ind-section__inner {
		padding: var(--sp-8) var(--sp-5);
		gap: var(--sp-6);
	}

	.ind-section__image {
		aspect-ratio: 361 / 250;
		border-radius: 10px;
	}

	.ind-section__heading {
		font: var(--fw-bold) 2rem/2.125rem var(--font-heading);
		letter-spacing: var(--ls-tight);
	}

	.ind-products {
		width: 100%;
		gap: 9px;
		padding-top: 15px;
	}

	.ind-products__item {
		flex: 0 0 114px;
		width: 114px;
	}

	.ind-product-card__img { height: 95px; }

	.ind-product-card__info {
		gap: 5px;
		padding: 6px;
	}

	.ind-product-card__name { font-size: 0.65625rem; }  /* 10.5 — 14 × the 0.628 mobile scale */
	.ind-product-card__chevron { width: 12px; height: 12px; flex-basis: 12px; }

	.ind-product-card__sub {
		/* Two lines on mobile — the drawn paragraph frame is 20px, not 14px. */
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		white-space: normal;
		font-size: 0.5625rem;   /* 9 */
		line-height: 1.05rem;   /* 2 lines inside the 20px frame */
	}

	/* Our Projects is desktop-only in Figma (105:10138 omits it); this is the
	   agreed mobile adaptation — one full-width card per slide, dots below. */
	.ind-projects { gap: var(--sp-8); padding-top: var(--sp-9); }
	.ind-projects__header { flex-wrap: wrap; gap: var(--sp-4); padding-inline: 20px; }
	.ind-projects__heading { font: var(--fw-bold) 2rem/2.125rem var(--font-heading); letter-spacing: var(--ls-tight); }
	.ind-projects__view-all { padding: var(--sp-4) var(--sp-5); }
	.ind-projects__wrapper { gap: var(--sp-5); padding-bottom: var(--sp-9); }

	.ind-projects__track {
		gap: var(--sp-4);
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}

	.ind-project-card {
		flex-basis: calc(100vw - 40px);
		aspect-ratio: 4 / 3;
		scroll-snap-align: start;
	}

	.ind-project-card__content { padding: 0 20px 24px; }

	.ind-project-card__play {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.ind-project-card__title { font: var(--fw-bold) 1.375rem/1.5rem var(--font-heading); letter-spacing: var(--ls-tight); }
	.ind-project-card__sub { font: var(--fw-regular) 0.9010162354rem/1.0812194347rem var(--font-body); }
}
