/* ==========================================================================
   Page sections — hero, marquee, categories, split blocks, CTA band, page head
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 6rem);
	background:
		radial-gradient(1100px 620px at 70% 12%, rgb(170 138 92 / 0.26), transparent 62%),
		radial-gradient(800px 520px at 84% 44%, rgb(196 170 128 / 0.2), transparent 58%),
		linear-gradient(180deg, #f7f1e8 0%, #faf7f2 100%);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4rem);
	align-items: center;
}

@media (min-width: 1000px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hero__content {
	display: grid;
	gap: var(--space-m);
	justify-items: start;
}

.hero h1 {
	font-family: var(--font-display);
	font-size: var(--step-5);
	line-height: 0.95;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	font-weight: 600;
	max-width: 20ch;
}

.hero h1 .foil {
	display: block;
}

.hero__sub {
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--text-muted);
	max-width: 52ch;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-block-start: var(--space-2xs);
}

/* Proof chips — circular icon + stacked label, as on the reference build. */
.hero__proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) 0;
	margin-block: var(--space-s) 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.hero__proof-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-inline: var(--space-s);
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.35;
	border-left: 1px solid var(--border);
}

.hero__proof-item:first-child {
	padding-inline-start: 0;
	border-left: 0;
}

.hero__proof-item strong {
	display: block;
	color: var(--text);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.hero__proof-chip {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: var(--radius-full);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-s);
	color: var(--gold-600);
}

.hero__proof-chip svg {
	width: 19px;
	height: 19px;
}

.hero__proof + .hero__actions {
	margin-block-start: var(--space-l);
	width: 100%;
}

/* Molecular field: one inline SVG scaled to the band (see template-parts/hero-bg.php).
   Motion is opacity only — nothing rotates or orbits. */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero__bgsvg {
	width: 100%;
	height: 100%;
	display: block;
}

.hero-bonds line {
	stroke: #a98c5f;
	stroke-width: 1;
	opacity: 0.3;
}

.hero-hexes polygon {
	fill: none;
	stroke: #a98c5f;
	stroke-width: 1.2;
	opacity: 0.24;
}

.hero-helix path {
	fill: none;
	stroke: #b09572;
	stroke-width: 1.2;
	opacity: 0.32;
}

.hero-helix .hero-rung {
	stroke-width: 1;
	opacity: 0.18;
}

.hero-node {
	fill: #9d8055;
	opacity: 0.45;
	animation: vp-twinkle var(--d, 16s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes vp-twinkle {
	0%,
	100% {
		opacity: 0.18;
	}
	50% {
		opacity: 0.6;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-node {
		animation: none;
		opacity: 0.4;
	}
}

/* Keep the artwork clear of the headline column. */
.hero__bg {
	mask-image: linear-gradient(96deg, transparent 4%, rgb(0 0 0 / 0.55) 34%, #000 60%);
	-webkit-mask-image: linear-gradient(96deg, transparent 4%, rgb(0 0 0 / 0.55) 34%, #000 60%);
}


/* Hero visual */
.hero__visual {
	display: none;
}

.hero__seal {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	max-width: 460px;
}

.hero__molecule {
	width: 74%;
	height: auto;
	color: var(--navy-400);
	opacity: 0.16;
	stroke-width: 0.6;
}

.hero__card {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 4.6;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-gold);
	background: linear-gradient(160deg, #ffffff 0%, var(--sand-50) 100%);
	box-shadow: var(--shadow-l);
	overflow: hidden;
	display: grid;
	place-items: center;
	padding: var(--space-l);
}

.hero__card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 18px 36px rgb(12 20 38 / 0.18));
}

.hero__card-fallback {
	display: grid;
	gap: var(--space-s);
	place-items: center;
	text-align: center;
}

.hero__card-fallback .seal {
	width: clamp(140px, 40%, 200px);
	height: auto;
	color: var(--gold-500);
}

.hero__badge {
	position: absolute;
	left: 50%;
	bottom: -22px;
	transform: translateX(-50%);
	white-space: nowrap;
	box-shadow: var(--shadow-m);
	background: var(--surface);
	border: 1px solid var(--border-gold);
	color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   Trust marquee strip
   -------------------------------------------------------------------------- */

.trust-strip {
	border-block: 1px solid var(--border);
	background: var(--surface);
	padding-block: var(--space-m);
}

.trust-strip__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: var(--space-m);
	list-style: none;
	margin: 0;
	padding: 0;
}

.trust-strip__item {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	text-align: left;
	font-size: var(--step--1);
	color: var(--text-muted);
}

.trust-strip__item strong {
	display: block;
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.trust-strip__item svg {
	width: 26px;
	height: 26px;
	color: var(--gold-600);
	flex: none;
}

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

.cat-grid {
	display: grid;
	gap: var(--space-xs);
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* Five across on desktop — the set is meant to read as one row. */
@media (min-width: 1080px) {
	.cat-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Tall dark card: full-bleed art, copy stacked at the bottom. */
.cat-tile {
	position: relative;
	display: grid;
	align-content: end;
	gap: 10px;
	min-height: 380px;
	padding: var(--space-m);
	border-radius: var(--radius-l);
	border: 1px solid var(--border);
	background: var(--cat-bg, linear-gradient(160deg, #16233a 0%, #0b1220 100%));
	overflow: hidden;
	isolation: isolate;
	box-shadow: var(--shadow-s);
	transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease;
}

.cat-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-l);
}

.cat-tile__art {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	color: var(--cat-ink, #6f92cd);
	transition: transform 0.5s var(--ease-out);
}

.cat-tile__art > svg {
	width: 66%;
	height: auto;
	opacity: 0.2;
	stroke-width: 0.7;
	transform: translateY(-12%);
}

.cat-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-tile:hover .cat-tile__art {
	transform: scale(1.05);
}

/* Scrim keeps the copy legible over any photograph the client uploads. */
.cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgb(6 12 24 / 0.15) 0%,
		rgb(6 12 24 / 0.55) 52%,
		rgb(6 12 24 / 0.92) 100%
	);
}

.cat-tile__body {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 8px;
}

.cat-tile h3 {
	font-size: var(--step-1);
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #ffffff;
	max-width: 12ch;
}

.cat-tile__desc {
	font-size: 0.84rem;
	line-height: 1.45;
	color: rgb(233 238 247 / 0.82);
	max-width: 24ch;
	margin: 0;
}

.cat-tile__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	gap: 7px;
	margin-block-start: 2px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
}

.cat-tile__link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.22s var(--ease-out);
}

.cat-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.cat-tile:hover .cat-tile__link svg {
	transform: translateX(4px);
}

/* One tint per category so the row reads as a set. Any uploaded photo sits on top. */
.cat-tile--recovery {
	--cat-bg: linear-gradient(160deg, #12263f 0%, #070f1c 100%);
	--cat-ink: #6f9ad6;
}

.cat-tile--metabolic {
	--cat-bg: linear-gradient(160deg, #2a2418 0%, #100d08 100%);
	--cat-ink: #c0a87e;
}

.cat-tile--cognitive {
	--cat-bg: linear-gradient(160deg, #141a35 0%, #080a16 100%);
	--cat-ink: #8189d6;
}

.cat-tile--performance {
	--cat-bg: linear-gradient(160deg, #10262a 0%, #060f11 100%);
	--cat-ink: #58a3aa;
}

.cat-tile--cosmetic {
	--cat-bg: linear-gradient(160deg, #2b1524 0%, #12070f 100%);
	--cat-ink: #c98aa4;
}

.cat-tile--tablets {
	--cat-bg: linear-gradient(160deg, #16251a 0%, #080f0a 100%);
	--cat-ink: #7ba876;
}

/* Products section header + "view all" on one row at desktop */
.products-head {
	display: grid;
	gap: var(--space-m);
	align-items: end;
}

.products-head .section-head {
	max-width: 34ch;
}

.products-head .section-head {
	margin-block-end: 0;
}

@media (min-width: 860px) {
	.products-head {
		grid-template-columns: 1fr auto;
	}
}

.products-head + .products,
.products-head + ul.products,
.products-head + .cat-grid {
	margin-block-start: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Split content block (mission / veteran commitment)
   -------------------------------------------------------------------------- */

.split-media {
	position: relative;
	border-radius: var(--radius-l);
	overflow: hidden;
	border: 1px solid var(--border);
	aspect-ratio: 4 / 3;
	background: linear-gradient(150deg, #ffffff 0%, var(--sand-50) 100%);
}

.split-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder shown until the client supplies real photography. */
.split-media__fallback {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--space-s);
	height: 100%;
	padding: var(--space-l);
	text-align: center;
}

.split-media__fallback svg {
	width: 64px;
	height: 64px;
	color: var(--gold-500);
}

.hero__card-fallback .seal {
	width: clamp(120px, 34%, 176px);
	height: auto;
}

.check-list {
	display: grid;
	gap: var(--space-xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var(--text-muted);
}

.check-list li svg {
	width: 21px;
	height: 21px;
	flex: none;
	margin-block-start: 2px;
	color: var(--gold-600);
}

.check-list strong {
	display: block;
	color: var(--text);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Quality / COA band
   -------------------------------------------------------------------------- */

.quality {
	background:
		radial-gradient(ellipse 60% 80% at 15% 20%, rgb(133 111 78 / 0.08) 0%, transparent 60%),
		var(--surface);
	border-block: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 460px at 50% 0%, rgb(170 138 92 / 0.18), transparent 62%),
		var(--sand-50);
	border-block: 1px solid var(--border);
	text-align: center;
}

.cta-band .eyebrow {
	color: var(--gold-600);
}

.cta-band__inner {
	display: grid;
	gap: var(--space-m);
	justify-items: center;
	max-width: 700px;
	margin-inline: auto;
}

.cta-band h2 {
	font-size: var(--step-3);
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.cta-band p {
	color: var(--text-muted);
	font-size: var(--step-1);
	max-width: 52ch;
}

.cta-band .btn {
	margin-block-start: var(--space-2xs);
}

.cta-band__risk {
	font-size: var(--step--1);
	color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Interior page header
   -------------------------------------------------------------------------- */

.page-head {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	background: linear-gradient(170deg, #ffffff 0%, #f4eee4 100%);
	border-bottom: 1px solid var(--border);
}

.page-head--slim {
	padding-block: var(--space-s);
	background: transparent;
}

.page-head__inner {
	display: grid;
	gap: var(--space-s);
	max-width: 60ch;
}

.page-head h1 {
	font-size: var(--step-4);
	text-transform: uppercase;
	letter-spacing: -0.03em;
}

.page-head p {
	color: var(--text-muted);
	font-size: var(--step-1);
}

.breadcrumbs {
	font-size: var(--step--1);
	color: var(--text-subtle);
	letter-spacing: 0.04em;
}

.breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	color: var(--text-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--gold-600);
}

.breadcrumbs .sep {
	margin-inline: 8px;
	color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Post / article
   -------------------------------------------------------------------------- */

.entry {
	padding-block: var(--section-pad);
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
	font-size: var(--step--1);
	color: var(--text-subtle);
	margin-block-end: var(--space-m);
}

.entry__thumb {
	border-radius: var(--radius-l);
	overflow: hidden;
	margin-block-end: var(--space-xl);
	border: 1px solid var(--border);
}

.post-card {
	display: grid;
	gap: var(--space-xs);
	align-content: start;
	padding: var(--space-m);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	position: relative;
	transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.post-card:hover {
	border-color: var(--border-gold);
	transform: translateY(-3px);
}

.post-card h2 {
	font-size: var(--step-1);
}

.post-card h2 a {
	color: var(--text);
	text-decoration: none;
}

.post-card h2 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card p {
	color: var(--text-muted);
	font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   404 / empty
   -------------------------------------------------------------------------- */

.empty-state {
	display: grid;
	gap: var(--space-m);
	justify-items: center;
	text-align: center;
	padding-block: clamp(4rem, 12vw, 8rem);
	max-width: 46ch;
	margin-inline: auto;
}

.empty-state__code {
	font-family: var(--font-display);
	font-size: clamp(4rem, 18vw, 9rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.05em;
}

/* --------------------------------------------------------------------------
   About page — editor content styled without forcing a narrow prose column
   -------------------------------------------------------------------------- */

/* Base rhythm is tight: a heading should sit close to what it introduces. */
.about__content {
	display: grid;
	gap: var(--space-l);
}

/* A section intro gets its separation ABOVE, from the block it follows, not
   below — otherwise it floats equidistant between two sections. */
.about__content > .about-head {
	margin-block-start: var(--space-2xl);
}

.about__content > * {
	margin: 0;
}

.about__content h2 {
	max-width: 24ch;
}

.about__content > p:not(.eyebrow) {
	max-width: 68ch;
	color: var(--text-muted);
	font-size: var(--step-1);
	line-height: 1.6;
}

/* Single lockup: one headline with a compact supporting line beneath it. */
.about-lede {
	display: grid;
	gap: var(--space-s);
	padding-block-end: var(--space-l);
	border-bottom: 1px solid var(--border);
}

.about-lede h2 {
	max-width: 20ch;
	font-size: var(--step-4);
	line-height: 1.06;
}

.about-lede p {
	margin: 0;
	max-width: 62ch;
	color: var(--text-muted);
	font-size: var(--step-1);
	line-height: 1.55;
}

/* Quality block: copy left, checkpoints right */
.about-split {
	display: grid;
	gap: var(--space-xl);
	align-items: start;
}

@media (min-width: 900px) {
	.about-split {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-2xl);
	}
}

.about-split p:not(.eyebrow) {
	color: var(--text-muted);
	max-width: 56ch;
}

/* Reason cards */
.about-reasons {
	display: grid;
	gap: var(--space-s);
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.about-reasons li {
	display: grid;
	gap: 6px;
	padding: var(--space-m);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-s);
	transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.about-reasons li:hover {
	border-color: var(--border-gold);
	transform: translateY(-3px);
}

.about-reasons strong {
	font-size: var(--step-1);
	font-weight: 700;
	color: var(--text);
	line-height: 1.25;
}

.about-reasons span {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Hero entrance — CSS only.

   This is above-the-fold content, so it must paint without JavaScript. The
   resting state is visible; the animation only plays the element in from a
   hidden start via animation-fill-mode: backwards. If CSS animations are
   unavailable, or JS never runs, the copy is simply there.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	[data-anim^="hero-"] {
		animation: vp-hero-rise 0.62s var(--ease-out) backwards;
	}

	[data-anim="hero-2"] {
		animation-delay: 0.06s;
	}

	[data-anim="hero-3"] {
		animation-delay: 0.12s;
	}

	[data-anim="hero-4"] {
		animation-delay: 0.18s;
	}

	[data-anim="hero-5"] {
		animation-delay: 0.24s;
	}
}

@keyframes vp-hero-rise {
	from {
		transform: translateY(20px);
	}
	to {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Announcement bar on small screens
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.topbar__inner {
		gap: var(--space-2xs);
	}

	/* Two messages wrap to three cramped lines on a narrow phone; keep the
	   shipping promise, which is the one that drives orders. */
	.topbar__inner > span:last-child {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Hero proof chips on small screens

   Three chips across wrapped to an awkward 2 + 1. Below 600px they stack into
   a single column so each reads as its own line.
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.hero__proof {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--space-2xs);
	}

	.hero__proof-item {
		padding-inline: 0;
		border-left: 0;
	}

	.hero__proof + .hero__actions {
		margin-block-start: var(--space-m);
	}

	.hero__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* Trust strip reads as a list on phones rather than a cramped grid. */
@media (max-width: 700px) {
	.trust-strip__list {
		grid-template-columns: 1fr;
		gap: var(--space-s);
	}

	.trust-strip__item {
		justify-content: flex-start;
	}
}

/* --------------------------------------------------------------------------
   Section header action on small screens

   Below the two-column breakpoint the header collapses to one column, which
   left the "View all" link stranded in a full-width row. Align it under the
   heading instead.
   -------------------------------------------------------------------------- */

@media (max-width: 859px) {
	.products-head > .btn,
	.products-head__actions {
		justify-self: start;
	}

	.products-head > .btn {
		padding-inline: 0;
	}

	.products-head__actions {
		width: 100%;
		justify-content: space-between;
	}
}
