/* ==========================================================================
   Devanta Exports — design system
   Editorial / architectural. Paper background, ink type, one saffron accent.
   Square corners, hairline rules, mono spec labels. No shadows, no gradients
   except photo scrims.
   ========================================================================== */

:root {
	/* Colour */
	--paper: #f4f1eb;
	--paper-2: #ebe6dc;
	--paper-3: #e1dacd;
	--ink: #161d26;
	--ink-2: #3a424d;
	--muted: #6b7079;
	--line: #d6cfc1;
	--line-strong: #b9b0a0;
	--accent: #d2561c;        /* saffron from the logo */
	--accent-ink: #a8400f;    /* accessible text accent on paper */
	--green: #2e4637;         /* Deoli green */
	--green-2: #3c5946;
	--night: #12171d;
	--night-2: #1c232b;
	--on-dark: #ece7de;
	--on-dark-muted: #a7a59e;

	/* Type */
	--font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	--fs-xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	--fs-2xl: clamp(2.6rem, 1.4rem + 4.4vw, 5.25rem);
	--fs-3xl: clamp(3rem, 1.2rem + 6.6vw, 7.5rem);

	/* Space & layout */
	--gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
	--section: clamp(4rem, 2.5rem + 6vw, 9rem);
	--maxw: 1360px;
	--maxw-narrow: 760px;
	--radius: 2px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--accent-ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--ink); color: var(--paper); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--maxw-narrow) + 2 * var(--gutter)); }
.container--wide { max-width: 1600px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--on-dark); }
.section--green { background: var(--green); color: var(--on-dark); }
.section--dark a:hover, .section--green a:hover { color: #fff; }
.section--dark .eyebrow, .section--green .eyebrow { color: var(--on-dark-muted); }
.section--dark h2 em, .section--green h2 em, .section--dark h1 em { color: #f0a477; }

/* 12-col grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.span-12 { grid-column: span 12; }
@media (min-width: 900px) {
	.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
	.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
	.start-2 { grid-column-start: 2; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
}
@media (max-width: 899px) { .grid > [class*="span-"] { grid-column: span 12; } }

/* Split: asymmetric two-column (5/7). Add .split--reverse to flip, .split--even for 6/6. */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
@media (min-width: 900px) {
	.split { grid-template-columns: 5fr 7fr; }
	.split--reverse { grid-template-columns: 7fr 5fr; }
	.split--reverse > :first-child { order: 2; }
	.split--even { grid-template-columns: 1fr 1fr; }
	.split--top { align-items: start; }
}

.stack > * + * { margin-top: var(--stack, 1rem); }
.flow > * + * { margin-top: 1.25em; }

/* ---------- Type utilities ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em;
	margin: 0 0 1.25rem;
	font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.display { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 0.95; letter-spacing: -0.03em; font-weight: 300; }
.h1 { font-size: var(--fs-2xl); font-weight: 300; letter-spacing: -0.025em; line-height: 1; }
.h2 { font-size: var(--fs-xl); font-weight: 400; }
.h3 { font-size: var(--fs-lg); }
.h4 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.section--dark .lede, .section--green .lede { color: var(--on-dark); opacity: 0.85; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.02em; }
.small { font-size: var(--fs-sm); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em; }

/* Long-form text */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-top: 1.8em; }
.prose a { color: var(--accent-ink); }
.prose img, .prose figure { margin: 2rem 0; }
.prose figcaption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-top: 0.5rem; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: var(--fs-md); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose ul li, .prose ol li { margin-bottom: 0.4em; }
.prose .wp-block-table { overflow-x: auto; }

/* ---------- Buttons & links ---------- */
.btn {
	--btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
	min-height: 52px; padding: 0.85rem 1.4rem;
	background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
	border-radius: var(--radius); font-weight: 500; font-size: 0.975rem; line-height: 1.1;
	text-decoration: none; cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { --btn-bg: var(--accent); --btn-bd: var(--accent); color: #fff; }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); color: var(--paper); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--light:hover { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(236, 231, 222, .35); }
.btn--ghost-light:hover { --btn-bg: var(--paper); --btn-bd: var(--paper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0.6rem 1rem; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: var(--on-dark-muted); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar a { text-decoration: none; color: var(--on-dark); }
.topbar__facts { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__contact { display: flex; gap: 1.25rem; }
@media (max-width: 899px) { .topbar__facts li:nth-child(n+2) { display: none; } .topbar__contact a:first-child { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 235, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.01em; }

.primary-nav ul { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 0.6rem 0.8rem; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--ink); }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--accent); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; display: block; padding: 0.5rem; background: var(--paper); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.primary-nav .sub-menu a { padding: 0.55rem 0.75rem; }
.primary-nav .sub-menu a:hover { background: var(--paper-2); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 0.45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }

@media (max-width: 1099px) {
	.nav-toggle { display: inline-flex; }
	.header-actions .btn { display: none; }
	.primary-nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 0; background: var(--paper); padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); border-top: 1px solid var(--line); }
	body.admin-bar .primary-nav { top: calc(var(--header-h) + 36px + 46px); }
	.primary-nav.is-open { transform: none; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav > ul > li { border-bottom: 1px solid var(--line); }
	.primary-nav a { padding: 1rem 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--ink); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 1rem; background: none; min-width: 0; }
	.primary-nav .sub-menu a { font-family: var(--font-body); font-size: 1rem; padding: 0.45rem 0; color: var(--ink-2); }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .current-menu-item > a { box-shadow: none; color: var(--accent-ink); }
	.mobile-nav-cta { display: grid; gap: 0.75rem; margin-top: 2rem; }
	body.nav-open { overflow: hidden; }
}
@media (min-width: 1100px) { .mobile-nav-cta { display: none; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumbs { margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.page-hero__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.page-hero h1 { font-size: var(--fs-2xl); font-weight: 300; letter-spacing: -0.03em; line-height: 0.98; margin: 0; }
.page-hero__aside { color: var(--ink-2); font-size: 1.125rem; }
.page-hero__aside p:last-child { margin-bottom: 0; }

/* Page hero with image band below title */
.page-hero__media { margin-top: clamp(2rem, 1rem + 3vw, 4rem); aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper-3); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 699px) { .page-hero__media { aspect-ratio: 4 / 3; } }

/* ---------- Answer box (AI overviews / featured snippets) ---------- */
.answer-box { position: relative; padding: 1.5rem 1.75rem 1.6rem; background: var(--paper-2); border-left: 3px solid var(--accent); }
.answer-box__label { display: block; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.answer-box p { margin: 0; font-size: 1.075rem; line-height: 1.6; }
.answer-box p + p { margin-top: 0.75rem; }

/* Key facts list — dl with mono labels */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.section--dark .facts, .section--dark .facts > div, .section--green .facts, .section--green .facts > div { border-color: rgba(236, 231, 222, .18); }
.section--dark .facts dt, .section--green .facts dt { color: var(--on-dark-muted); }

/* Spec table — product specifications */
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.spec-table th, .spec-table td { padding: 0.95rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; padding-right: 1.25rem; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec-table td { font-size: 1rem; }
.spec-table caption { caption-side: top; text-align: left; padding-bottom: 0.9rem; font-family: var(--font-display); font-size: var(--fs-md); }

/* Data table (comparison tables) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.data-table tbody th { font-weight: 600; }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 860px; }
.section-head__title { font-size: var(--fs-xl); margin: 0; }
.section-head__intro { margin: 1.25rem 0 0; font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; }
.section--dark .section-head__intro, .section--green .section-head__intro { color: var(--on-dark); opacity: .8; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; max-width: none; }
.section-head--row > div { max-width: 760px; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media__caption { position: absolute; left: 0; bottom: 0; padding: 0.4rem 0.7rem; background: var(--paper); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
figure { margin: 0; }
.figure-caption { margin-top: 0.65rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.03em; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.card__meta { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__text { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.975rem; }
.card__tag { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.3rem 0.55rem; background: var(--paper); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Category tile: large, image with title overlapping bottom */
.cat-tile { position: relative; display: block; text-decoration: none; color: var(--on-dark); overflow: hidden; background: var(--night); }
.cat-tile .media { aspect-ratio: 4 / 5; background: var(--night-2); }
.cat-tile .media img { transition: transform 1s var(--ease), opacity .4s; opacity: .88; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 23, 29, 0) 40%, rgba(18, 23, 29, .82) 100%); pointer-events: none; }
.cat-tile:hover .media img { transform: scale(1.05); opacity: 1; }
.cat-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; }
.cat-tile__num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--on-dark-muted); }
.cat-tile__title { margin: 0.35rem 0 0.25rem; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); color: #fff; }
.cat-tile__text { margin: 0; font-size: var(--fs-sm); color: var(--on-dark); opacity: .8; max-width: 34ch; }
.cat-tile:hover { color: var(--on-dark); }

/* Index list — numbered rows (used for collections, services) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list > li { border-bottom: 1px solid var(--line); }
.index-list a, .index-list .index-list__row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem 1.5rem; align-items: baseline; padding: 1.4rem 0; text-decoration: none; }
.index-list__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.index-list__title { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); line-height: 1.1; }
.index-list__meta { font-size: var(--fs-sm); color: var(--muted); text-align: right; }
.index-list a:hover .index-list__title { color: var(--accent-ink); font-style: italic; }
@media (max-width: 699px) { .index-list a, .index-list .index-list__row { grid-template-columns: 2.2rem 1fr; } .index-list__meta { grid-column: 2; text-align: left; } }

/* ---------- Steps (process) ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid currentColor; counter-reset: step; }
.step { padding: 1.75rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); }
.section--dark .step, .section--green .step { border-color: rgba(236, 231, 222, .18); }
@media (min-width: 900px) { .step + .step { padding-left: 1.5rem; border-left: 1px solid var(--line); } .section--dark .step + .step, .section--green .step + .step { border-left-color: rgba(236, 231, 222, .18); } }
.step__num { display: block; margin-bottom: 2.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--accent); }
.section--dark .step__num, .section--green .step__num { color: #f0a477; }
.step__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.6rem; }
.step p { margin: 0; font-size: 0.975rem; opacity: .85; }

/* ---------- Feature list (icon rows) ---------- */
.features { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1rem; }
.feature__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.section--dark .feature p, .section--green .feature p { color: var(--on-dark); opacity: .8; }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0.6rem 0 0.6rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.8rem; height: 0.45rem; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chip, .chips a, .chips span { display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 100px; font-size: var(--fs-sm); text-decoration: none; line-height: 1.2; }
.chips a:hover, .chips .is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem var(--gutter); }
.stat__value { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.25rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); max-width: 22ch; }
.section--dark .stat__label, .section--green .stat__label { color: var(--on-dark-muted); }

/* ---------- Quote / pull ---------- */
.pull { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.pull cite { display: block; margin-top: 1.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq__title { font-size: var(--fs-lg); margin: 0 0 1.5rem; }
.faq__title + .faq__item { border-top: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding: 1.35rem 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; transition: transform .3s var(--ease); color: var(--muted); }
.faq__item[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq__item summary:hover span { color: var(--accent-ink); }
.faq__answer { padding: 0 3rem 1.5rem 0; color: var(--ink-2); }
.faq__answer p:last-child { margin-bottom: 0; }
.section--dark .faq__item, .section--green .faq__item { border-color: rgba(236, 231, 222, .18); }
.section--dark .faq__answer { color: var(--on-dark); opacity: .85; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); }
.cta-band__bg { position: absolute; inset: 0; opacity: .32; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.cta-band .container { position: relative; display: grid; gap: 2rem; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 7fr 5fr; align-items: end; } }
.cta-band h2 { font-size: var(--fs-2xl); font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 0; color: #fff; }
.cta-band h2 em { color: #f0a477; }
.cta-band__side p { color: var(--on-dark); opacity: .85; font-size: 1.075rem; }
.cta-band__contacts { display: grid; gap: 0.35rem; margin-top: 1.5rem; font-family: var(--font-mono); font-size: var(--fs-sm); }
.cta-band__contacts a { text-decoration: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 52px; padding: 0.8rem 0.95rem;
	background: #fbfaf7; border: 1px solid var(--line-strong); border-radius: var(--radius);
	font-size: 1rem; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field__hint { font-size: var(--fs-sm); color: var(--muted); }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.field--check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--accent); }
.form-hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 1rem 1.25rem; border-left: 3px solid; font-size: 0.975rem; }
.notice--success { border-color: #2e7d4f; background: #e5efe6; }
.notice--error { border-color: #b3261e; background: #f6e3e1; }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: var(--night-2); border-color: rgba(236, 231, 222, .25); color: var(--on-dark); }

/* ---------- Product detail ---------- */
.product-layout { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 1000px) { .product-layout { grid-template-columns: 7fr 5fr; align-items: start; } .product-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.gallery { display: grid; gap: 0.75rem; }
.gallery__main { aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.gallery__thumbs button { padding: 0; border: 1px solid transparent; background: var(--paper-3); cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { opacity: 1; border-color: var(--ink); }

/* Lightbox (dialog) */
.lightbox { width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 13, 17, .9); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border: 0; cursor: pointer; }

/* Coping profile cards */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.profile { padding: 1.75rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile img { height: 70px; width: auto; margin-bottom: 1.5rem; }
.profile h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.profile p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Gallery grid (applications) ---------- */
.mosaic-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 18vw, 260px); }
@media (min-width: 900px) { .mosaic-grid { grid-template-columns: repeat(4, 1fr); } }
.mosaic-grid > * { overflow: hidden; background: var(--paper-3); }
.mosaic-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mosaic-grid > *:hover img { transform: scale(1.04); }
.mosaic-grid .tall { grid-row: span 2; }
.mosaic-grid .wide { grid-column: span 2; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 3vw, 4rem); }
.hero__grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 6fr 6fr; gap: 0 4rem; align-items: end; } }
.hero__title { font-size: var(--fs-3xl); font-weight: 300; line-height: 0.92; letter-spacing: -0.04em; margin: 0; }
.hero__title em { font-weight: 300; }
.hero__copy { max-width: 44ch; font-size: 1.15rem; color: var(--ink-2); }
.hero__media { position: relative; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero__media .media { aspect-ratio: 21 / 9; }
@media (max-width: 699px) { .hero__media .media { aspect-ratio: 4 / 3; } }
.hero__tag { position: absolute; right: var(--gutter); bottom: -1px; padding: 0.9rem 1.2rem; background: var(--paper); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; }

/* Marquee of stone names */
.ticker { overflow: hidden; border-block: 1px solid var(--line); white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 3rem; padding-block: 1.1rem; animation: ticker 60s linear infinite; }
.ticker__track span { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--ink-2); }
.ticker__track span::after { content: "◆"; margin-left: 3rem; font-size: 0.6rem; font-style: normal; color: var(--accent); vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Article / blog ---------- */
.post-card { display: grid; gap: 1rem; text-decoration: none; position: relative; }
.post-card .media { aspect-ratio: 3 / 2; }
.post-card h3 { font-size: 1.5rem; margin: 0; }
.post-card a { text-decoration: none; }
.post-card a::after { content: ""; position: absolute; inset: 0; }
.article-header { padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.toc { padding: 1.25rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.layout-sidebar { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 5rem; } .layout-sidebar__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 3rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.75rem; border: 1px solid var(--line-strong); text-decoration: none; font-family: var(--font-mono); font-size: var(--fs-sm); }
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-top: clamp(4rem, 3rem + 4vw, 7rem); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #f0a477; }
.footer-top { display: grid; gap: 3rem var(--gutter); padding-bottom: 4rem; border-bottom: 1px solid rgba(236, 231, 222, .14); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 4fr 2fr 2fr 3fr; } }
.footer-brand img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 1.5rem; max-width: 36ch; color: var(--on-dark-muted); }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col address { font-style: normal; display: grid; gap: 0.6rem; }
.footer-wordmark { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.5rem, 1rem + 12vw, 13rem); line-height: 0.85; letter-spacing: -0.05em; color: rgba(236, 231, 222, .07); padding-top: 2rem; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.social { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.05rem; background: var(--ink); color: var(--paper); border-radius: 100px; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.wa-float .icon { width: 20px; height: 20px; }
.wa-float:hover { background: #1f8a4c; color: #fff; }
@media (max-width: 599px) { .wa-float span { display: none; } .wa-float { padding: 0.85rem; } }

/* ---------- Reveal on scroll (progressive; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption {}
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 1px solid var(--line-strong); background: #fbfaf7; border-radius: var(--radius); }
.search-form .search-submit { min-height: 52px; padding: 0 1.25rem; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; border-radius: var(--radius); }

/* Print */
@media print { .site-header, .topbar, .site-footer, .wa-float, .cta-band { display: none; } body { background: #fff; } }

/* ==========================================================================  Page-specific additions (merged from build parts)  ========================================================================== */
/* -- a.css -- */
/* Agent A additions: home, about, applications, export process */
.hero__title { font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.035em; }
.section-head--row > div > .section-head { margin-bottom: 0; }
.use-block { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-top: 1px solid var(--line); }
.use-block:first-of-type { border-top-color: var(--ink); }
@media (min-width: 900px) {
	.use-block { grid-template-columns: 5fr 7fr; align-items: start; }
	.use-block:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
	.use-block:nth-of-type(even) .use-block__media { order: 2; }
}
.use-block__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.use-block__media img { width: 100%; height: 100%; object-fit: cover; }
.use-block h2 { font-size: var(--fs-xl); margin-bottom: 0.75rem; }
.use-block__spec { margin: 1.5rem 0; }
.tip { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: var(--fs-sm); color: var(--ink-2); }
.tip strong { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 0.25rem; }
.ordered { list-style: none; margin: 0; padding: 0; counter-reset: ord; border-top: 1px solid var(--ink); }
.ordered > li { counter-increment: ord; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.5rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.ordered > li::before { content: counter(ord, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-ink); padding-top: 0.5rem; }
.ordered h3 { font-size: 1.4rem; margin: 0 0 0.35rem; }
.ordered p { margin: 0; color: var(--ink-2); }
.use-block__spec { border-top: 1px solid var(--ink); }
.use-block__spec > div { display: grid; grid-template-columns: minmax(7rem, 30%) 1fr; gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.use-block__spec dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.use-block__spec dd { margin: 0; }
.index-list--compact .index-list__title { font-size: 1.35rem; }
.facts--2 { grid-template-columns: 1fr 1fr; margin-top: 2rem; }
.hero .facts { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero + .ticker, .ticker--after-hero { margin-top: clamp(2rem, 1rem + 3vw, 4rem); }
.mt-1 { margin-top: 1.5rem; } .mt-2 { margin-top: 2.5rem; }
.section--dark .index-list, .section--green .index-list { border-top-color: rgba(236, 231, 222, .4); }
.section--dark .index-list > li, .section--green .index-list > li { border-bottom-color: rgba(236, 231, 222, .18); }
.section--dark .index-list__num, .section--dark .index-list__meta { color: var(--on-dark-muted); }
.section--dark .index-list__row { padding: 1.4rem 0; }

/* -- b.css -- */
/* Agent B: products hub, category and product templates */
.table-note { margin-top: 1.25rem; }
.product-layout__aside .answer-box { margin-bottom: 1.75rem; }
.product-layout__aside .btn-row { margin-top: 1.75rem; }
.product-layout__aside h1 { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.product-body { display: grid; gap: 3rem; }
.cat-aside .btn-row { margin-top: 1.5rem; }
.cat-aside .spec-table { margin-top: 0.5rem; }
.cat-links { margin-top: 1rem; }
.sib-label { margin-bottom: 0.75rem; }
.facts--spaced { margin-top: 2.5rem; }


/* -- integration fixes -- */
.cat-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-grid .cat-tile .media { aspect-ratio: 3 / 4; }
.cat-grid .cat-tile__title { font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.85rem); }
.cat-grid .cat-tile__body { padding: 1.25rem; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
@media (max-width: 1199px) { .topbar__facts li:nth-child(n+2) { display: none; } }
.facts dd { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); }
.brand img { height: 52px; }
@media (max-width: 599px) { .brand img { height: 42px; } .topbar__contact a:first-child { display: none; } }
/* Mobile nav anchors to the sticky header (backdrop-filter makes the header the containing block). */
@media (max-width: 1099px) {
	.primary-nav { position: absolute; inset: auto 0 auto 0; top: 100%; height: calc(100dvh - var(--header-h)); }
	body.admin-bar .primary-nav { top: 100%; height: calc(100dvh - var(--header-h) - 46px); }
	.site-header { background: var(--paper); }
}
