/* =====================================================================
   JAGUAR WOOD INDUSTRIES — jaguarwoodindustries.com
   Design system + page styles. Plain CSS, no build step.

   Contents
   01  Tokens
   02  Reset & base
   03  Typography primitives
   04  Buttons, chips, rules
   05  Header & navigation
   06  Footer
   07  Hero & page banners
   08  Section blocks
   09  Components (cards, grids, tables, tiles, steps, forms)
   10  Motion
   11  Responsive
   12  Blog & prose
   ===================================================================== */

/* ------------------------------- 01 Tokens ------------------------- */
:root {
	/* Brand — deep Gabonese forest green + okoume amber */
	--forest-900: #06231a;
	--forest-800: #0a3325;
	--forest-700: #0e4531;
	--forest-600: #14593e;
	--forest-500: #1c7050;

	--gold-600: #a86f1f;
	--gold-500: #c98a2e;
	--gold-400: #dfa744;
	--gold-300: #efc77a;

	/* Neutrals — warm paper, matching okoume's pale tone */
	--sand-50: #fbf8f2;
	--sand-100: #f4efe5;
	--sand-200: #e8e0d1;
	--sand-300: #d6cbb6;

	--ink: #1a1a17;
	--ink-70: #46463d;
	--ink-50: #6f6f63;

	/* Semantic */
	--bg: var(--sand-50);
	--fg: var(--ink);
	--rule: rgba(26, 26, 23, 0.14);
	--rule-light: rgba(251, 248, 242, 0.18);

	/* Type */
	--display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Layout */
	--wrap: 1240px;
	--wrap-narrow: 860px;
	--gutter: clamp(20px, 5vw, 56px);
	--section-y: clamp(72px, 9vw, 132px);
	--radius: 3px;

	/* Motion */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------- 02 Reset & base ---------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.nav-open {
	overflow: hidden;
}

figure {
	margin: 0;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--gold-400);
	color: var(--forest-900);
}

:focus-visible {
	outline: 2px solid var(--gold-500);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--forest-800);
	color: #fff;
	padding: 12px 20px;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
}

/* -------------------------- 03 Typography -------------------------- */
h1,
h2,
h3,
h4 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.015em;
	margin: 0;
	font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 {
	font-size: clamp(2.6rem, 6.2vw, 5rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	line-height: 1.2;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin: 0 0 22px;
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.on-dark .eyebrow,
.dark .eyebrow,
.section--dark .eyebrow,
.cta-band .eyebrow,
.page-banner .eyebrow {
	color: var(--gold-400);
}

.lead {
	font-size: clamp(1.08rem, 1.5vw, 1.28rem);
	line-height: 1.6;
	color: var(--ink-70);
}

.dark .lead,
.on-dark .lead,
.section--dark .lead,
.cta-band .lead,
.page-banner .lead {
	color: rgba(251, 248, 242, 0.78);
}

.muted {
	color: var(--ink-50);
}

.section--dark .muted,
.cta-band .muted {
	color: rgba(251, 248, 242, 0.62);
}

.serif-accent {
	font-style: italic;
	color: var(--gold-600);
	padding-right: 0.12em;
}

/* ------------------------ 04 Buttons & bits ------------------------ */
.btn {
	--btn-bg: var(--forest-800);
	--btn-fg: var(--sand-50);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	border: 1px solid var(--btn-bg);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gold-400);
	transform: translateY(101%);
	transition: transform 0.4s var(--ease);
	z-index: 0;
}

.btn > * {
	position: relative;
	z-index: 1;
}

.btn:hover {
	color: var(--forest-900);
	border-color: var(--gold-400);
}

.btn:hover::after {
	transform: translateY(0);
}

.btn--gold {
	--btn-bg: var(--gold-400);
	--btn-fg: var(--forest-900);
}

.btn--gold::after {
	background: var(--sand-50);
}

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--sand-50);
	border-color: rgba(251, 248, 242, 0.4);
}

.btn--ghost:hover {
	color: var(--forest-900);
}

.btn--ghost-dark {
	--btn-bg: transparent;
	--btn-fg: var(--forest-800);
	border-color: rgba(10, 51, 37, 0.3);
}

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--forest-700);
	padding-bottom: 4px;
	border-bottom: 1px solid var(--rule);
	transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.arrow-link:hover {
	color: var(--gold-600);
	border-color: var(--gold-500);
	gap: 16px;
}

.section--dark .arrow-link,
.cta-band .arrow-link,
.on-dark .arrow-link {
	color: var(--gold-300);
	border-color: var(--rule-light);
}

.section--dark .arrow-link:hover,
.cta-band .arrow-link:hover,
.on-dark .arrow-link:hover {
	color: #fff;
	border-color: var(--gold-400);
}

/* --------------------------- 05 Header ----------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
		border-color 0.4s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 88px;
	transition: height 0.4s var(--ease);
}

/* Transparent-over-hero variant */
.site-header--over {
	color: var(--sand-50);
}

.site-header.is-stuck {
	background: rgba(251, 248, 242, 0.94);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom-color: var(--rule);
	color: var(--ink);
}

.site-header.is-stuck .wrap {
	height: 72px;
}

.site-header--solid {
	background: rgba(251, 248, 242, 0.94);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom-color: var(--rule);
	color: var(--ink);
}

/* Registered mark — raised to the top right rather than sitting mid-cap.
   line-height:0 keeps it from adding leading to the line it sits on. */
.reg {
	font-size: 0.55em;
	vertical-align: super;
	line-height: 0;
	letter-spacing: 0;
}

/* Logo lockup */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.logo__img {
	display: block;
	height: 64px;
	width: auto;
	flex-shrink: 0;
	transition: height 0.4s var(--ease), transform 0.5s var(--ease);
}

.logo:hover .logo__img {
	transform: scale(1.03);
}

/* Two copies of the mark differing only in the log-ring roundel: gold while
   the header sits over the dark hero, black once it turns opaque on scroll.
   The footer is off-white, so it uses the black-ring version too. */
.logo__img--on-dark {
	display: none;
}

.site-header--over:not(.is-stuck) .logo__img--on-dark {
	display: block;
}

.site-header--over:not(.is-stuck) .logo__img--on-light {
	display: none;
}

/* Wordmark fallback — shown only if the logo image fails to load, since the
   inline onerror removes the <img> and this :has() rule then stops matching. */
.logo:has(.logo__img) .logo__type {
	display: none;
}

.logo__type {
	display: block;
	line-height: 1;
}

.logo__name {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.32rem;
	letter-spacing: 0.02em;
}

.logo__sub {
	display: block;
	font-size: 0.53rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	opacity: 0.72;
	margin-top: 4px;
}

.site-header--over:not(.is-stuck) .logo__name {
	color: var(--sand-50);
}

.site-footer .logo__name {
	color: var(--ink);
}

.site-header.is-stuck .logo__img {
	height: 54px;
}

@media (max-width: 640px) {
	.logo__img {
		height: 48px;
	}

	.site-header.is-stuck .logo__img {
		height: 42px;
	}
}

/* Nav */
.nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav a {
	position: relative;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	padding: 6px 0;
	opacity: 0.85;
	transition: opacity 0.25s var(--ease);
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--ease);
}

.nav a:hover {
	opacity: 1;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav a[aria-current="page"] {
	opacity: 1;
	color: var(--gold-600);
}

.site-header--over:not(.is-stuck) .nav a[aria-current="page"] {
	color: var(--gold-300);
}

.nav a.header-cta {
	padding: 12px 22px;
	font-size: 0.72rem;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 46px;
	height: 46px;
	background: none;
	border: 1px solid currentColor;
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	opacity: 0.75;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	transform: translateX(-50%);
	transition: transform 0.35s var(--ease), opacity 0.2s linear;
}

.nav-toggle span {
	top: 50%;
	margin-top: -0.75px;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	left: 0;
	transform: none;
}

.nav-toggle span::before {
	top: -6px;
}

.nav-toggle span::after {
	top: 6px;
}

body.nav-open .nav-toggle span {
	background: transparent;
}

body.nav-open .nav-toggle span::before {
	transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------- 06 Footer ----------------------------- */
.site-footer {
	background: var(--sand-100);
	color: var(--ink-70);
	padding: clamp(60px, 7vw, 96px) 0 34px;
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--rule);
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		90deg,
		rgba(26, 26, 23, 0.03) 0 1px,
		transparent 1px 92px
	);
	pointer-events: none;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: clamp(28px, 4vw, 56px);
	position: relative;
}

.site-footer h4 {
	font-family: var(--sans);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin: 0 0 20px;
}

.site-footer a:hover {
	color: var(--gold-600);
}

.site-footer .logo__img {
	height: 124px;
	margin-bottom: 26px;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 11px;
	font-size: 0.95rem;
}

.footer-links a {
	transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-links a:hover {
	padding-left: 6px;
}

.footer-about p {
	font-size: 0.95rem;
	max-width: 34ch;
	margin-top: 20px;
}

.footer-contact {
	display: grid;
	gap: 16px;
	font-size: 0.95rem;
	font-style: normal;
}

.footer-contact strong {
	color: var(--ink);
	font-weight: 600;
}

.footer-bottom {
	position: relative;
	margin-top: clamp(40px, 5vw, 66px);
	padding-top: 26px;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}

.footer-bottom .spacer {
	margin-left: auto;
}

/* --------------------------- 07 Hero ------------------------------- */
.wrap {
	width: min(100% - var(--gutter) * 2, var(--wrap));
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - var(--gutter) * 2, var(--wrap-narrow));
	margin-inline: auto;
}

.hero {
	position: relative;
	min-height: min(94vh, 900px);
	display: flex;
	align-items: flex-end;
	padding: 160px 0 0;
	color: var(--sand-50);
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	animation: heroDrift 18s var(--ease) forwards;
}

@keyframes heroDrift {
	to {
		transform: scale(1);
	}
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
			100deg,
			rgba(6, 35, 26, 0.9) 0%,
			rgba(6, 35, 26, 0.74) 42%,
			rgba(6, 35, 26, 0.38) 100%
		),
		linear-gradient(to top, rgba(6, 35, 26, 0.78), transparent 55%);
}

/* Narrow screens put the copy across the full width rather than in the
   dark left third, so the scrim has to cover the whole frame. */
@media (max-width: 900px) {
	.hero__media::after {
		background: rgba(6, 35, 26, 0.76);
	}
}

.hero__inner {
	padding-bottom: clamp(48px, 6vw, 84px);
	max-width: 46rem;
}

.hero h1 {
	margin-bottom: 26px;
}

.hero h1 em {
	font-style: italic;
	color: var(--gold-300);
	font-weight: 400;
}

.hero__rule {
	width: 88px;
	height: 2px;
	background: var(--gold-400);
	margin-bottom: 30px;
}

.hero__sub {
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	color: rgba(251, 248, 242, 0.82);
	max-width: 40ch;
	margin-bottom: 38px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__tagline {
	position: absolute;
	right: var(--gutter);
	bottom: 40%;
	writing-mode: vertical-rl;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.5);
}

/* Facts bar sitting under the hero */
.factbar {
	background: var(--forest-800);
	color: var(--sand-50);
	border-top: 1px solid rgba(223, 167, 68, 0.25);
}

.factbar__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.fact {
	padding: 30px 26px;
	border-left: 1px solid var(--rule-light);
	display: flex;
	flex-direction: column;
}

.fact:first-child {
	border-left: 0;
	padding-left: 0;
}

.fact__value {
	font-family: var(--display);
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	font-weight: 600;
	line-height: 1;
	color: var(--gold-300);
	display: block;
	margin-bottom: 8px;
}

.fact__label {
	/* Pinned to the bottom of the cell so labels stay on one line together
     even when a longer value wraps. */
	margin-top: auto;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.62);
}

/* Page banner (inner pages) */
.page-banner {
	position: relative;
	padding: clamp(150px, 18vw, 220px) 0 clamp(52px, 6vw, 84px);
	background: var(--forest-900);
	color: var(--sand-50);
	overflow: hidden;
	isolation: isolate;
}

.page-banner__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.page-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
}

.page-banner__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(95deg, rgba(6, 35, 26, 0.85) 12%, rgba(6, 35, 26, 0.46) 100%);
}

@media (max-width: 900px) {
	.page-banner__media::after {
		background: rgba(6, 35, 26, 0.78);
	}
}

.page-banner h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.2rem);
	max-width: 18ch;
}

.page-banner p {
	margin-top: 22px;
	max-width: 52ch;
	color: rgba(251, 248, 242, 0.76);
	font-size: 1.06rem;
}

/* -------------------------- 08 Sections ---------------------------- */
.section {
	padding: var(--section-y) 0;
	position: relative;
}

.section--tight {
	padding: clamp(52px, 6vw, 84px) 0;
}

.section--sand {
	background: var(--sand-100);
}

.section--dark {
	background: var(--forest-900);
	color: rgba(251, 248, 242, 0.78);
}

.section--dark h2,
.section--dark h3 {
	color: var(--sand-50);
}

.section-head {
	max-width: 60rem;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: end;
	max-width: none;
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head--center .eyebrow {
	justify-content: center;
}

.section-head--center .eyebrow::before {
	display: none;
}

/* ------------------------- 09 Components --------------------------- */

/* Split: image + copy */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.split--reverse .split__media {
	order: 2;
}

.split__media {
	position: relative;
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 3.2;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Crossfading image rotator. The slides stack on top of one another, so the
   container carries the aspect ratio a single image used to set. */
.slideshow {
	position: relative;
	aspect-ratio: 4 / 3.2;
	border-radius: var(--radius);
	overflow: hidden;
}

.split__media .slideshow img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	border-radius: 0;
	opacity: 0;
	transition: opacity 1.1s var(--ease);
}

.split__media .slideshow img.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.split__media .slideshow img {
		transition: none;
	}
}

/* One dot per slide. Built by main.js, so the count always matches. */
.slideshow__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}

.slideshow__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(251, 248, 242, 0.85);
	background: rgba(6, 35, 26, 0.35);
	cursor: pointer;
	transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.slideshow__dot:hover {
	transform: scale(1.2);
}

.slideshow__dot.is-active {
	background: var(--gold-400);
	border-color: var(--gold-400);
}

.slideshow__dot:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: 3px;
}

/* Hold a cropped image against its left edge, so anything trimmed to fit
   the frame comes off the right instead of both sides. */
.img--anchor-left {
	object-position: left center;
}

.split__media--framed::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--gold-500);
	border-radius: var(--radius);
	z-index: -1;
}

.split__badge {
	position: absolute;
	right: -18px;
	bottom: -26px;
	background: var(--forest-800);
	color: var(--sand-50);
	padding: 22px 26px;
	max-width: 220px;
	border-radius: var(--radius);
	box-shadow: 0 22px 50px rgba(6, 35, 26, 0.22);
}

.split__badge b {
	display: block;
	font-family: var(--display);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--gold-300);
	margin-bottom: 6px;
}

.split__badge span {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.7);
}

/* Feature grid — hairline bordered cells */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--rule);
}

.feature {
	padding: clamp(24px, 3vw, 38px);
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	background: transparent;
	transition: background 0.35s var(--ease);
}

.feature:hover {
	background: var(--sand-100);
}

.section--sand .feature:hover {
	background: var(--sand-200);
}

.feature__icon {
	color: var(--gold-600);
	margin-bottom: 20px;
}

.feature h3 {
	font-size: 1.14rem;
	margin-bottom: 8px;
}

.feature p {
	font-size: 0.94rem;
	color: var(--ink-50);
	margin: 0;
}

.section--dark .feature {
	border-color: var(--rule-light);
}

.section--dark .feature:hover {
	background: rgba(251, 248, 242, 0.04);
}

.section--dark .feature__icon {
	color: var(--gold-400);
}

.section--dark .feature p {
	color: rgba(251, 248, 242, 0.62);
}

/* Numbered list of advantages */
.adv-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: clamp(32px, 5vw, 80px);
	counter-reset: adv;
}

.adv {
	display: flex;
	gap: 22px;
	align-items: baseline;
	padding: 22px 0;
	border-bottom: 1px solid var(--rule);
	counter-increment: adv;
	transition: padding-left 0.35s var(--ease);
}

.adv:hover {
	padding-left: 8px;
}

.adv::before {
	content: counter(adv, decimal-leading-zero);
	font-family: var(--display);
	font-size: 0.95rem;
	color: var(--gold-500);
	min-width: 26px;
	flex-shrink: 0;
}

.adv h3 {
	font-size: 1.12rem;
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

.section--dark .adv {
	border-color: var(--rule-light);
}

/* Product cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--sand-50);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
		border-color 0.45s var(--ease);
}

.section--sand .card {
	background: #fff;
}

.card:hover {
	transform: translateY(-6px);
	border-color: var(--gold-400);
	box-shadow: 0 26px 50px -28px rgba(6, 35, 26, 0.4);
}

.card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.06);
}

.card__body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.card__tag {
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-600);
}

.card p {
	font-size: 0.95rem;
	color: var(--ink-50);
	margin: 0;
}

.card__meta {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.78rem;
	color: var(--ink-50);
}

.card__meta b {
	color: var(--ink);
	font-weight: 600;
}

/* Process steps */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 26px);
	counter-reset: step;
}

.step {
	position: relative;
	counter-increment: step;
}

.step__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--forest-900);
}

.step__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}

.step:hover .step__media img {
	transform: scale(1.07);
	opacity: 0.82;
}

.step__no {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	background: var(--gold-400);
	color: var(--forest-900);
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.92rem;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
}

.step h3 {
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-top: 16px;
}

.step p {
	font-size: 0.9rem;
	color: var(--ink-50);
	margin-top: 6px;
}

.section--dark .step p {
	color: rgba(251, 248, 242, 0.6);
}

/* Tiles (applications / gallery) */
.tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}

.tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 4 / 3;
	background: var(--forest-900);
	display: block;
	cursor: pointer;
	border: 0;
	padding: 0;
	width: 100%;
}

.tile--tall {
	aspect-ratio: 4 / 5.6;
}

.tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
}

.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 35, 26, 0.86), transparent 58%);
	opacity: 0.85;
	transition: opacity 0.45s var(--ease);
}

.tile:hover img {
	transform: scale(1.07);
}

.tile:hover::after {
	opacity: 1;
}

.tile figcaption,
.tile__cap {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 20px;
	z-index: 2;
	color: var(--sand-50);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tile__cap small {
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-300);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.tile:hover .tile__cap small {
	opacity: 1;
	transform: none;
}

/* Data table */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--sand-50);
}

table.data {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	font-size: 0.94rem;
}

table.data th {
	background: var(--forest-800);
	color: var(--sand-50);
	text-align: left;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 18px 22px;
	white-space: nowrap;
}

table.data td {
	padding: 20px 22px;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

table.data tbody tr:last-child td {
	border-bottom: 0;
}

table.data tbody tr {
	transition: background 0.3s var(--ease);
}

table.data tbody tr:hover {
	background: var(--sand-100);
}

table.data td:first-child {
	font-weight: 600;
	color: var(--forest-700);
}

/* Spec list */
.specs {
	border-top: 1px solid var(--rule);
}

.spec {
	display: grid;
	grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2fr);
	gap: 18px clamp(20px, 4vw, 56px);
	padding: 20px 4px;
	border-bottom: 1px solid var(--rule);
	transition: background 0.3s var(--ease);
}

.spec:hover {
	background: rgba(223, 167, 68, 0.07);
}

.spec dt {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink-50);
	margin: 0;
}

.spec dd {
	margin: 0;
	font-size: 1.02rem;
	color: var(--ink);
}

.spec dd small {
	display: block;
	color: var(--ink-50);
	font-size: 0.85rem;
	margin-top: 4px;
}

/* Certification grid */
.certs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}

/* Five certificates, one row. Each card carries its own border instead of
   the 1px-gap technique, so a short final row leaves clean whitespace
   rather than rule-coloured holes. */
.certs--five {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	background: none;
	border: 0;
}

.certs--five .cert {
	flex-direction: column;
	gap: 16px;
	border: 1px solid var(--rule);
}

@media (max-width: 1180px) {
	.certs--five {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.certs--five {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.certs--five {
		grid-template-columns: minmax(0, 1fr);
	}
}

.cert {
	/* White, matching the white field baked into the certification artwork,
     so the logos sit flush with the card. */
	background: #fff;
	padding: clamp(24px, 3vw, 34px);
	display: flex;
	gap: 20px;
	transition: background 0.35s var(--ease);
}

.section--sand .cert {
	background: var(--sand-100);
}

.cert:hover {
	background: #fff;
}

.cert__badge {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	text-align: center;
	border: 1px solid var(--gold-500);
	border-radius: 50%;
	color: var(--forest-700);
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.86rem;
	line-height: 1;
	letter-spacing: 0.02em;
	transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.cert:hover .cert__badge {
	background: var(--forest-800);
	color: var(--gold-300);
	border-color: var(--forest-800);
}

/* That fill is for the typographic circles; behind real artwork it would
   show as a dark box around the logo, so leave logo badges alone. */
.cert:hover .cert__badge:has(.cert__logo) {
	background: none;
}

/* Official certification artwork, when supplied. The inline onerror removes
   the <img> if the file is absent, so :has() stops matching and the
   typographic abbreviation shows instead. */
.cert__logo {
	max-width: 100%;
	max-height: 112px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* One box for every logo badge, whatever the artwork's shape, so the marks
   share a common centre across the row. Each logo is then capped to suit
   its own proportions (see the --wide and --tall modifiers). */
.cert__badge:has(.cert__logo) {
	border: 0;
	border-radius: 0;
	width: 128px;
	height: 152px;
	padding: 0;
}

.cert__badge:has(.cert__logo) .cert__abbr {
	display: none;
}

/* Wordmark-shaped logos are much wider than tall, so inside a square box
   they scale down to the width and read smaller than the square marks
   beside them. Give them extra width to even out the visual weight. */
/* Portrait panels (the FSC promotional block carries its licence code and
   URL) need real height, or the small print is unreadable. */
.cert__badge--tall .cert__logo {
	max-height: 152px;
}

.cert__badge small {
	display: block;
	font-family: var(--sans);
	font-size: 0.54rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	opacity: 0.75;
	margin-bottom: 3px;
}

.cert h3 {
	font-family: var(--sans);
	font-size: 1.04rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 7px;
}

.cert p {
	font-size: 0.92rem;
	color: var(--ink-50);
	margin: 0;
}

/* Checklist */
.checklist {
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.checklist li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 15px 18px;
	background: rgba(251, 248, 242, 0.04);
	font-size: 1rem;
	transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.checklist li:hover {
	transform: translateX(6px);
	background: rgba(223, 167, 68, 0.1);
}

.checklist svg {
	flex-shrink: 0;
	color: var(--gold-400);
	margin-top: 3px;
}

.checklist--light li {
	background: var(--sand-100);
}

.checklist--light svg {
	color: var(--forest-600);
}

/* Stat row */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(20px, 3vw, 40px);
}

.stat {
	border-top: 2px solid var(--gold-500);
	padding-top: 20px;
}

.stat b {
	display: block;
	font-family: var(--display);
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 600;
	line-height: 1;
	margin-bottom: 10px;
}

.stat span {
	font-size: 0.88rem;
	color: var(--ink-50);
	display: block;
	max-width: 22ch;
}

.section--dark .stat span {
	color: rgba(251, 248, 242, 0.62);
}

/* CTA band */
.cta-band {
	position: relative;
	background: var(--forest-800);
	color: var(--sand-50);
	overflow: hidden;
	isolation: isolate;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 140% at 88% 12%, rgba(223, 167, 68, 0.22), transparent 58%);
	z-index: -1;
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(24px, 4vw, 60px);
	padding: clamp(52px, 6vw, 84px) 0;
}

.cta-band__inner > div:first-child {
	flex: 1 1 420px;
}

.cta-band h2 {
	max-width: 20ch;
}

.cta-band p {
	margin-top: 18px;
	max-width: 46ch;
	color: rgba(251, 248, 242, 0.76);
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(36px, 6vw, 84px);
	align-items: start;
}

.contact-card {
	display: grid;
	gap: 26px;
}

.contact-item {
	display: flex;
	gap: 18px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--rule);
}

.contact-item svg {
	flex-shrink: 0;
	color: var(--gold-600);
	margin-top: 3px;
}

.contact-item h3 {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-50);
	margin-bottom: 7px;
}

.contact-item p,
.contact-item a {
	font-size: 1.04rem;
	margin: 0;
	line-height: 1.5;
}

.contact-item a:hover {
	color: var(--gold-600);
}

form.enquiry {
	background: var(--sand-100);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: clamp(26px, 3.4vw, 44px);
	display: grid;
	gap: 20px;
}

.field {
	display: grid;
	gap: 8px;
}

.field--row {
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	display: grid;
}

.field label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-50);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	background: var(--sand-50);
	border: 1px solid var(--rule);
	border-radius: 2px;
	padding: 14px 16px;
	font-size: 0.98rem;
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field textarea {
	min-height: 132px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--gold-500);
	background: #fff;
}

.field .err {
	font-size: 0.78rem;
	color: #a3341f;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	display: none;
}

.field.is-invalid .err {
	display: block;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
	border-color: #a3341f;
}

.form-note {
	font-size: 0.84rem;
	color: var(--ink-50);
}

.form-status {
	display: none;
	padding: 16px 18px;
	background: var(--forest-800);
	color: var(--sand-50);
	border-radius: 2px;
	font-size: 0.94rem;
}

.form-status.is-visible {
	display: block;
}

/* Misc helpers */
.mt-l {
	margin-top: clamp(32px, 4vw, 56px);
}

.mt-m {
	margin-top: 28px;
}

.note {
	font-size: 0.88rem;
	color: var(--ink-50);
	margin-top: 18px;
	padding-left: 16px;
	border-left: 2px solid var(--gold-500);
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.pill {
	border: 1px solid var(--rule);
	border-radius: 100px;
	padding: 8px 16px;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-70);
}

.on-dark .pill,
.section--dark .pill {
	border-color: var(--rule-light);
	color: rgba(251, 248, 242, 0.78);
}

/* --------------------------- 10 Motion ----------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

[data-reveal][data-delay="1"] {
	transition-delay: 0.09s;
}

[data-reveal][data-delay="2"] {
	transition-delay: 0.18s;
}

[data-reveal][data-delay="3"] {
	transition-delay: 0.27s;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------- 12 Blog & prose ------------------------- */

/* Listing cards are anchors — strip the link chrome, keep the card look. */
a.card {
	text-decoration: none;
	color: inherit;
}

a.card h3 {
	color: var(--ink);
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0;
}

/* Post header banner sits a touch tighter than the section banners. */
.page-banner--post .eyebrow {
	color: var(--gold-300);
	margin-bottom: 10px;
}

/* Article body — a single readable measure with vertical rhythm. */
.prose {
	max-width: 72ch;
	margin-inline: auto;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--ink);
}

.prose > * + * {
	margin-top: 1.15em;
}

.prose h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.85rem);
	line-height: 1.2;
	margin-top: 1.9em;
}

.prose h3 {
	font-size: 1.25rem;
	margin-top: 1.6em;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose a {
	color: var(--forest-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose img {
	border-radius: var(--radius);
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.1em;
	border-left: 3px solid var(--gold-400);
	color: var(--ink-50);
	font-style: italic;
}

.prose code {
	background: var(--sand-100);
	padding: 0.1em 0.35em;
	border-radius: 4px;
	font-size: 0.9em;
}

.prose-back {
	max-width: 72ch;
	margin: 40px auto 0;
}

.prose-back a {
	color: var(--forest-700);
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------- 11 Responsive --------------------------- */
@media (max-width: 1080px) {
	.nav {
		gap: 20px;
	}

	.nav a {
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}

	.feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
	}

	.nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 6px;
		padding: 100px var(--gutter) 40px;
		background: var(--forest-900);
		color: var(--sand-50);
		transform: translateY(-100%);
		transition: transform 0.5s var(--ease);
		overflow-y: auto;
	}

	.nav.is-open {
		transform: none;
	}

	.nav a {
		font-family: var(--display);
		font-size: 1.9rem;
		letter-spacing: 0;
		text-transform: none;
		font-weight: 500;
		padding: 10px 0;
		opacity: 1;
	}

	.nav a::after {
		display: none;
	}

	.nav a[aria-current="page"] {
		color: var(--gold-300);
	}

	.nav .header-cta {
		margin-top: 24px;
		font-family: var(--sans);
		font-size: 0.76rem;
		text-transform: uppercase;
		letter-spacing: 0.14em;
		padding: 14px 26px;
	}

	.factbar__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fact {
		border-top: 1px solid var(--rule-light);
		padding: 24px 20px;
	}

	.fact:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}

	.fact:nth-child(-n + 2) {
		border-top: 0;
	}

	.split,
	.section-head--split,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.split--reverse .split__media {
		order: 0;
	}

	.split__media--framed::before {
		display: none;
	}

	.split__badge {
		position: static;
		max-width: none;
		margin-top: 18px;
	}

	.adv-list {
		grid-template-columns: 1fr;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero__tagline {
		display: none;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 16px;
	}

	.feature-grid,
	.steps,
	.tiles {
		grid-template-columns: repeat(2, 1fr);
	}

	.tile--tall {
		aspect-ratio: 4 / 3;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-about {
		grid-column: 1 / -1;
	}

	.spec {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.field--row {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: 0;
		padding-top: 140px;
	}

	.hero__inner {
		padding-bottom: 56px;
	}
}

@media (max-width: 460px) {
	.feature-grid,
	.steps,
	.stats {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.cert {
		flex-direction: column;
		gap: 16px;
	}
}
