/* ==========================================================================
   Thorvald Limited — design tokens + theme
   Direction: Luxe / Gold, ivory. Cormorant Unicase + Poppins.
   Palette derived in OKLCH from the client's 13-colour house swatch sheet.
   ========================================================================== */

:root {
	/* ---- House palette (client swatch sheet), in oklch ---- */
	--canvas:      oklch(88.3% 0.027 80.2);   /* #E2D7C5 */
	--ale:         oklch(67.4% 0.109 70.2);   /* #C18A45  display gold */
	--shield:      oklch(45.3% 0.073 56.1);   /* #754B2C */
	--axe:         oklch(32.2% 0.049 46.3);   /* #482B1D */
	--blood:       oklch(32.9% 0.096 21.6);   /* #5D1B1E */
	--mist:        oklch(53.5% 0.024 232.5);  /* #607079  borders only */
	--sky:         oklch(37.5% 0.039 247.6);  /* #304355 */
	--fjord:       oklch(30.6% 0.032 247.2);  /* #22313F */
	--storm:       oklch(23.5% 0.030 253.1);  /* #141F2C */
	--moss:        oklch(38.5% 0.021 156.1);  /* #3B473F */
	--pine:        oklch(27.2% 0.026 157.8);  /* #1C2B22 */
	--stone:       oklch(44.7% 0.010 114.5);  /* #54554F */
	--raven:       oklch(19.5% 0.003 248.0);  /* #141516 */

	/* ---- Derived, contrast-safe ----
	   The display gold is 2.60:1 on paper and fails AA as small text, and it
	   fails on five of the eight band colours too. Hence three gold tokens. */
	--paper:       oklch(94.6% 0.013 80.0);
	--surface:     #ffffff;
	--ink:         var(--raven);
	--muted:       var(--stone);               /* 7.62:1 on paper */
	--ale-ink:     oklch(48.9% 0.104 70.2);    /* small accent text on LIGHT  5.57:1 */
	--ale-on-dark: oklch(76.4% 0.109 70.2);    /* small accent text on DARK   >=4.52:1 */
	--ale-on-photo: oklch(83% 0.109 70.2);     /* small accent text over the hero PHOTO */
	--on-dark:     var(--canvas);              /* body text on bands */
	--hair:        color-mix(in oklch, var(--ale) 55%, transparent);
	--line:        color-mix(in oklch, var(--raven) 12%, transparent);

	/* ---- Shape ---- */
	--radius:    2px;
	--radius-sm: 2px;
	--shadow:    0 18px 44px -18px rgb(20 21 22 / .38);
	--shadow-sm: 0 8px 22px -12px rgb(20 21 22 / .30);

	/* ---- Rhythm + type ---- */
	--wrap:      1180px;
	--gap:       clamp(1.5rem, 4vw, 3rem);
	/* Caudex has 400/700 only (no unicase variant), so display and alt are the
	   same family — the tv_heading word-count switch is a no-op now, harmless. */
	--f-display: "Caudex", Georgia, "Times New Roman", serif;
	--f-alt:     "Caudex", Georgia, serif;
	--f-body:    "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-weight: 300;
	font-size: .9375rem;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ale); color: var(--raven); }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	/* Caudex ships 400 and 700 only; regular reads more refined than bold at
	   display sizes. Emphasis (card titles, taglines) keeps its heavier weight. */
	font-weight: 400;
	/* Caudex has full-length descenders (g, y, p), so headings need more leading
	   than the old unicase face did to keep two lines from touching. */
	line-height: 1.2;
	letter-spacing: .005em;
	margin: 0 0 .5em;
	color: var(--ink);
	/* Even out the line lengths so a heading never drops a single word onto a
	   line of its own. */
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.14; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
/* `pretty` costs nothing where unsupported and prevents a one-word last line. */
p, li, figcaption, dd { text-wrap: pretty; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--ale-ink);
	text-underline-position: from-font;
	text-decoration-thickness: from-font;
	text-underline-offset: 3px;
	text-decoration-skip-ink: auto;
	transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--shield); }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--raven); color: #fff; padding: 1rem 1.5rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ale); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Sections + bands
   ========================================================================== */

.section { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
/* --band-bg mirrors the background so an overlaid ornament can paint the same
   colour and hide what sits behind it. */
.section            { --band-bg: var(--paper); }
.section.is-canvas  { --band-bg: var(--canvas);  background: var(--band-bg); }
.section.is-white   { --band-bg: var(--surface); background: var(--band-bg); }
.section.is-raven   { --band-bg: var(--raven);   background: var(--band-bg); }
.section.is-blood   { --band-bg: var(--blood);   background: var(--band-bg); }
.section.is-fjord   { --band-bg: var(--fjord);   background: var(--band-bg); }
.section.is-sky     { --band-bg: var(--sky);     background: var(--band-bg); }
.section.is-axe     { --band-bg: var(--axe);     background: var(--band-bg); }
.section.is-pine    { --band-bg: var(--pine);    background: var(--band-bg); }
.section.is-storm   { --band-bg: var(--storm);   background: var(--band-bg); }
.section.is-moss    { --band-bg: var(--moss);    background: var(--band-bg); }

/* Dark bands: headings must be set explicitly — they default to --ink. */
.section.is-dark { color: var(--on-dark); }
.section.is-dark h1,
.section.is-dark h2,
.section.is-dark h3,
.section.is-dark h4 { color: #fff; }
.section.is-dark .eyebrow { color: var(--ale-on-dark); }
/* Must exclude .btn — this rule outranks .btn--primary on specificity and was
   repainting gold buttons gold-on-gold. */
.section.is-dark a:not(.btn) { color: var(--ale-on-dark); }
.section.is-dark a:not(.btn):hover { color: #fff; }

.eyebrow {
	display: inline-block;
	font-family: var(--f-body);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--ale-ink);
	margin: 0 0 .9rem;
}
/* A leading diamond from the wordmark on every eyebrow, in the eyebrow's own
   colour. clip-path (not the embellishments mask) so it is self-contained.
   Inline-block (not a flex item) so that when a centred eyebrow wraps to two
   lines the diamonds stay glued to the first and last words instead of drifting
   out to flank the whole block from its far edges. */
.eyebrow::before {
	content: ""; display: inline-block; vertical-align: middle;
	width: .4rem; height: .4rem; margin: 0 .5rem .1em 0;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* Centred eyebrows: the diamonds bracket the whole block and sit vertically
   centred between the two lines (both at the same height), rather than inline on
   separate lines. inline-flex + align-items:center does the vertical centring;
   the diamonds become flex items, so their inline-block margins give way to the
   flex gap. A max-width keeps the wrapped block tight so the diamonds stay near
   the text instead of drifting to the far edges; text-wrap balances the lines. */
.hero__inner .eyebrow,
.section--awards .eyebrow,
.section--centered .eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	text-align: center;
	text-wrap: balance;
}
.hero__inner .eyebrow::before, .hero__inner .eyebrow::after,
.section--awards .eyebrow::before, .section--awards .eyebrow::after,
.section--centered .eyebrow::before, .section--centered .eyebrow::after {
	margin: 0; vertical-align: baseline; flex: none;
}
.hero__inner .eyebrow::after,
.section--awards .eyebrow::after,
.section--centered .eyebrow::after {
	content: ""; display: inline-block;
	width: .4rem; height: .4rem;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
/* Only where the centred eyebrow actually wraps (phones) do we cap its width, so
   the two-line block stays tight and the flanking diamonds sit close to it. Wider
   screens keep the eyebrow on one line, so no cap there. */
@media (max-width: 560px) {
	.hero__inner .eyebrow,
	.section--awards .eyebrow,
	.section--centered .eyebrow { max-width: 15rem; }
}

/* Unicase is a display face with no ascenders or descenders — it reads as struck
   across a few words and gets tiring across a long line. Anything over the
   tv_heading threshold falls back to regular Cormorant. Card titles are the
   exception: they are one or two words, so Unicase gives them small caps. */
.h--long,
.product__title,
.brand-card__name { font-family: var(--f-alt); letter-spacing: 0; }
.h--long { line-height: 1.16; }

.lede { font-size: clamp(.95rem, 1.25vw, 1.05rem); line-height: 1.65; max-width: 60ch; text-wrap: pretty; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1rem; }
.section__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.rule-gold { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .95rem 1.75rem; min-height: 44px;
	border: 1px solid transparent; border-radius: var(--radius);
	font-family: var(--f-body); font-size: .7rem; font-weight: 500;
	letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	transition: transform .15s ease-out, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.96); }

.btn--primary { background: var(--ale); color: var(--raven); border-color: var(--ale); }
.btn--primary:hover { background: var(--ale-on-dark); border-color: var(--ale-on-dark); color: var(--raven); }

/* Outlined counterpart to the filled primary. The border and the hover fill are
   the primary's exact gold, so it reads as the same button. The label cannot be:
   that gold is 2.11:1 on Canvas and unreadable at this size, so the label uses
   the text-safe shade of the same hue. */
.btn--ghost { background: transparent; color: var(--ale-ink); border-color: var(--ale); }
.btn--ghost:hover { background: var(--ale); color: var(--raven); border-color: var(--ale); }

.btn--dark { background: var(--raven); color: var(--canvas); border-color: var(--raven); }
.btn--dark:hover { background: var(--axe); border-color: var(--axe); color: #fff; }

/* On a dark band the brand gold is already bright enough to sit under it. */
.is-dark .btn--ghost { color: var(--ale-on-dark); border-color: var(--ale-on-dark); }
.is-dark .btn--ghost:hover { background: var(--ale-on-dark); color: var(--raven); border-color: var(--ale-on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 90;
	background: var(--raven);
	border-bottom: 2px solid var(--ale);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; padding-block: .7rem;
}
/* Column + centred so the wordmark optically centres over the wider descriptor
   line beneath it, rather than both being flush left. */
.site-brand {
	display: inline-flex; flex-direction: column; align-items: center;
	color: #fff; text-decoration: none; flex-shrink: 0;
}
/* The logo is an inlined SVG filled with currentColor, so the global a:hover
   would repaint it. It is the masthead — it should not change on hover. */
.site-brand:hover,
.site-brand:focus { color: #fff; }
.site-brand .tv-svg,
.site-brand .tv-svg svg,
.site-brand img { width: clamp(126px, 15vw, 168px); height: auto; display: block; }
.site-brand__descriptor {
	display: block; margin-top: .4rem;
	font-size: .6rem; font-weight: 600; letter-spacing: .2em;
	text-transform: uppercase; color: var(--ale-on-dark); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
	color: #fff; text-decoration: none;
	font-size: .7rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
	transition: color .2s;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-parent > a { color: var(--ale-on-dark); }

/* --- Dropdowns ---------------------------------------------------------- */
.nav .menu-item-has-children { position: relative; }
/* No caret on desktop — hover/keyboard-focus opens the dropdown. The toggle is
   shown only on mobile (below), where the accordion needs a tap target. */
.submenu-toggle {
	display: none; align-items: center; justify-content: center;
	background: none; border: 0; cursor: pointer; color: inherit;
	padding: .2rem; min-width: 24px; min-height: 24px;
}
.submenu-toggle svg { width: 9px; height: 9px; transition: transform .2s; }
.menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem 0;
	position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%) translateY(-6px);
	min-width: 12rem;
	background: var(--raven); border: 1px solid rgb(255 255 255 / .1); border-top: 2px solid var(--ale);
	border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
	z-index: 60;
}
/* A hover bridge so the pointer can cross the gap to the panel. */
.nav .menu-item-has-children::after {
	content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 1rem;
}
.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu,
.nav .menu-item-has-children.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav .sub-menu li { display: block; }
.nav .sub-menu a {
	display: block; white-space: nowrap; padding: .6rem 1.3rem;
	font-size: .68rem; letter-spacing: .14em;
}
.nav .sub-menu a:hover { color: var(--ale-on-dark); background: rgb(255 255 255 / .04); }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--ale-on-dark);
	color: var(--ale-on-dark); border-radius: var(--radius);
	padding: .6rem .9rem; min-height: 44px; min-width: 44px;
	font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; }
	.nav {
		position: absolute; inset: 100% 0 auto 0;
		background: var(--raven); border-bottom: 2px solid var(--ale);
		padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
		display: none; max-height: 80vh; overflow-y: auto;
	}
	.nav[data-open="true"] { display: block; }
	.nav > ul { flex-direction: column; gap: 0; }
	.nav > ul > li { border-top: 1px solid rgb(255 255 255 / .12); }
	.nav a { display: block; padding: .95rem 0; font-size: .8rem; }
	/* Submenus become inline accordions on mobile. */
	.nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.nav .menu-item-has-children > a { flex: 1; }
	.nav .submenu-toggle { display: inline-flex; min-width: 44px; min-height: 44px; }
	.nav .sub-menu {
		position: static; transform: none; opacity: 1; visibility: hidden;
		width: 100%; min-width: 0; border: 0; border-top: 0; box-shadow: none;
		background: none; padding: 0 0 .4rem; display: none;
	}
	.nav .menu-item-has-children.is-open > .sub-menu { display: block; visibility: visible; }
	.nav .menu-item-has-children::after { content: none; }
	.nav .sub-menu a { padding: .7rem 0 .7rem 1rem; color: var(--on-dark); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; display: grid; align-items: end; min-height: clamp(420px, 62vh, 620px); overflow: hidden; }
/* Oversized and offset upward so the parallax translate never exposes an edge. */
.hero__media { position: absolute; inset: -12% 0; will-change: transform; }
.hero__media .tv-img,
.hero__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
	position: absolute; inset: 0;
	/* The content is centred, so the cover is too — dark through the middle where
	   the text sits, opening up towards the corners so the photograph still
	   reads. Measured by compositing photo + scrim to a canvas and sampling
	   behind every text run; axe cannot evaluate text over an image, so
	   measuring is the only way to know it clears AA. */
	background: radial-gradient(115% 92% at 50% 52%,
		rgb(20 21 22 / .86) 0%,
		rgb(20 21 22 / .80) 42%,
		rgb(20 21 22 / .40) 78%,
		rgb(20 21 22 / .14) 100%);
}
.hero__inner { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem); text-align: center; }
.hero__title { color: #fff; max-width: 24ch; margin-inline: auto; }
/* Inherit, so it matches body copy everywhere else on the site. */
.hero__body { color: var(--on-dark); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; max-width: 58ch; margin: 1.1rem auto 0; }
.hero__inner .btn-row { justify-content: center; }
.hero__divider { display: flex; justify-content: center; margin: 1.1rem 0 .25rem; color: var(--ale); }
.hero__divider svg { width: 150px; height: auto; }
/* The hero eyebrow sits on a photograph, not a flat band — the on-dark gold
   measures 3.82:1 against the brightest composited pixel behind it. */
.hero .eyebrow { color: var(--ale-on-photo); }

.hero__brands {
	list-style: none; margin: 2.4rem auto 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	max-width: 46rem;
}
.hero__brands li { display: flex; align-items: center; }
/* The marks are short but they are links, so pad the hit area out to 44px
   rather than leaving a 29px target. */
.hero__brands a { display: flex; align-items: center; min-height: 44px; }
.hero__brands .tv-svg { display: block; color: var(--canvas); }
.hero__brands svg { width: auto; height: auto; max-height: 46px; max-width: 138px; }
/* The three marks are drawn at different proportions, so they are balanced by
   eye rather than forced to one box. */
.hero__brands .brand--valhal svg       { max-width: 106px; max-height: 37px; }
.hero__brands .brand--little-river svg { max-height: 60px; max-width: 88px; }
.hero__brands a:hover .tv-svg { color: var(--ale-on-photo); }
@media (max-width: 560px) {
	.hero__brands { gap: 1rem 1.6rem; }
	.hero__brands svg { max-height: 34px; max-width: 100px; }
	.hero__brands .brand--valhal svg       { max-width: 77px; max-height: 28px; }
	.hero__brands .brand--little-river svg { max-height: 46px; max-width: 66px; }
	.hero__divider svg { width: 118px; }
}

@media (max-width: 640px) {
	.hero__scrim { background: linear-gradient(180deg, rgb(20 21 22 / .72) 0%, rgb(20 21 22 / .88) 65%); }
	.hero__title { max-width: none; }
}

/* ==========================================================================
   Proof strip
   ========================================================================== */

.proof { padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.proof ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: .75rem clamp(1rem, 3vw, 2.5rem);
}
.proof li {
	font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	color: var(--shield); display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.proof li + li::before { content: ""; width: 7px; height: 7px; background: var(--ale); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); margin-left: -.5rem; }

/* The dot sits at the start of each item, so the moment the row wraps it leads a
   line and reads as a bullet rather than a separator. All four labels only fit on
   one line above ~850px (measured), so below that the band becomes a centred grid
   and the dots go with the single row: four across on a tablet, two-by-two on a
   phone. */
@media (max-width: 53.75em) {
	.proof ul {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
		justify-items: center;
		max-width: 40rem;
		margin-inline: auto;
		gap: .6rem 1.25rem;
	}
	.proof li { font-size: .58rem; letter-spacing: .12em; gap: 0; text-align: center; }
	.proof li + li::before { content: none; }
}
/* Narrower than this, four across leaves an unbalanced 3 + 1, so hold it to a
   two-by-two block. */
@media (max-width: 37.5em) {
	.proof ul { max-width: 22rem; }
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.p-grid {
	display: grid; gap: clamp(1.1rem, 2.2vw, 1.5rem);
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	list-style: none; margin: 0; padding: 0;
}

/* .p-card sets display:flex, which outranks the browser's [hidden]{display:none}
   — without this the filter marks cards hidden and nothing disappears. */
.p-card[hidden], .stockist[hidden] { display: none; }

.p-card {
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }

.p-card__ph {
	background: var(--surface);
	aspect-ratio: 4 / 3;
	/* Extra bottom padding accounts for the 3px gold rule, so the pack shot sits
	   on the optical centre of the white rather than the geometric one. */
	padding: 1.1rem 1.1rem calc(1.1rem + 3px);
	display: flex; align-items: center; justify-content: center;
	position: relative; overflow: hidden;
}
/* object-fit: contain letterboxes inside the padded box, which centres reliably —
   percentage max-height on a grid item did not. */
.p-card__ph .tv-img { width: 100%; height: 100%; object-fit: contain; }
.p-card__ph .img-placeholder { width: 100%; height: 100%; aspect-ratio: auto; }
.p-card__ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--ale); }

/* The text panel inverts to the brand's band colour. */
.p-card__in { flex: 1; padding: 1.35rem 1.45rem 1.6rem; background: var(--raven); }
.p-card.is-raven .p-card__in { background: var(--raven); }
.p-card.is-blood .p-card__in { background: var(--blood); }
.p-card.is-fjord .p-card__in { background: var(--fjord); }
.p-card.is-sky   .p-card__in { background: var(--sky); }
.p-card.is-axe   .p-card__in { background: var(--axe); }
.p-card.is-pine  .p-card__in { background: var(--pine); }
.p-card.is-storm .p-card__in { background: var(--storm); }
.p-card.is-moss  .p-card__in { background: var(--moss); }

.p-card__brand {
	display: inline-flex; align-items: center; gap: .4rem;
	font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	color: var(--ale-on-dark); margin: 0 0 .6rem;
}
/* The brand mark, small, beside the card eyebrow. Rendered in the on-dark gold. */
.p-card__mark {
	flex: none; width: .95rem; height: .95rem;
	background: var(--_m) center / contain no-repeat;
}
.p-card__mark--thorvald { --_m: var(--emb-mark-thorvald); }
.p-card__mark--lr       { --_m: var(--emb-mark-lr); width: 1.25rem; }
.p-card__mark--valhal   { --_m: var(--emb-mark-valhal); }
.p-card__title { color: #fff; font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .015em; line-height: 1.15; margin: 0 0 .6rem; }
.p-card__text { color: var(--on-dark); font-size: .85rem; line-height: 1.62; margin: 0; }

/* ==========================================================================
   Medals + certifications
   ========================================================================== */

.medals, .certs {
	list-style: none; margin: 1.1rem 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.medal img, .cert img { width: 56px; height: 56px; object-fit: contain; }
.medals--lg { gap: 1rem; margin-top: 1.6rem; }
.medals--lg img { width: 78px; height: 78px; }

.award-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
.award-item img { width: 100%; max-width: 132px; height: auto; }
.award-item figcaption { font-size: .78rem; line-height: 1.5; color: var(--on-dark); max-width: 20ch; }
.award-grid {
	list-style: none; margin: 2.25rem auto 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}
.award-grid > li { flex: 0 1 132px; }

/* Awards reads as a symmetrical proof band, so everything centres. */
.section--awards { text-align: center; }
.section--awards .section__head { margin-inline: auto; }
.section--awards .lede { margin-inline: auto; }
.section--awards .btn-row { justify-content: center; }

/* ==========================================================================
   Placeholder frame — never blank a section
   ========================================================================== */

.img-placeholder {
	aspect-ratio: 4 / 3;
	display: grid; place-items: center; text-align: center; padding: 1.75rem;
	background: color-mix(in oklch, var(--canvas) 45%, transparent);
	border: 1px dashed var(--ale);
	border-radius: var(--radius);
	color: var(--shield);
}
.img-placeholder span { font-size: .78rem; line-height: 1.55; max-width: 26ch; font-family: var(--f-body); }
.img-placeholder b {
	display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
	margin-bottom: .5rem; color: var(--ale-ink); font-weight: 500;
}
.is-dark .img-placeholder { color: var(--on-dark); background: rgb(255 255 255 / .06); }
.is-dark .img-placeholder b { color: var(--ale-on-dark); }

/* The product card is dark, but its photo panel is always white — so the
   placeholder inside it must keep the light-ground colours. Declared after the
   .is-dark rules so it wins at equal specificity. */
.p-card__ph .img-placeholder { color: var(--shield); background: color-mix(in oklch, var(--canvas) 45%, transparent); }
.p-card__ph .img-placeholder b { color: var(--ale-ink); }

/* ==========================================================================
   Brand gateway — three equal cards
   ========================================================================== */

.brand-grid {
	display: grid; gap: clamp(1.1rem, 2.2vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	list-style: none; margin: 0; padding: 0;
}
/* The button is the only link; its ::after is stretched over the whole card so
   the entire card is clickable. Avoids nesting anchors or repeating the same
   destination twice for a screen reader. */
.brand-card { position: relative; }
.brand-card .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.brand-card:focus-within { outline: 3px solid var(--ale); outline-offset: 3px; }
/* Offset gold border — a hairline frame inset from the card edge. */
.brand-card::before {
	content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
	border: 1px solid color-mix(in oklch, var(--ale) 62%, transparent);
}
/* The brand watermark (added in the template) sits smaller and softer here than
   its section default, so it reads as texture behind the card, not a picture. */
.brand-card.tv-watermark::after { width: 11rem; height: 11rem; right: -2rem; bottom: -2.5rem; }

.brand-card {
	display: flex; flex-direction: column;
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-sm);
	color: var(--on-dark);
	transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-card.is-raven { background: var(--raven); }
.brand-card.is-blood { background: var(--blood); }
.brand-card.is-fjord { background: var(--fjord); }
.brand-card.is-sky   { background: var(--sky); }
.brand-card.is-axe   { background: var(--axe); }
.brand-card.is-pine  { background: var(--pine); }
.brand-card.is-storm { background: var(--storm); }
.brand-card.is-moss  { background: var(--moss); }

.brand-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.brand-card__media .tv-img { width: 100%; height: 100%; object-fit: cover; }
.brand-card__body { padding: 2.9rem 2.9rem 3rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
/* The three marks have very different proportions — Thorvald and Valhal are wide
   wordmarks, Little River is a tall stacked lockup. Giving the logo its own
   fixed-height row means the copy beneath starts on the same line across all
   three cards instead of stepping down. */
.brand-card__logo {
	height: 96px; margin-bottom: 1.25rem; color: #fff;
	display: flex; align-items: center; justify-content: center;
}
/* tv_inline_svg() puts the passed class ON the .tv-svg span, so the svg is a
   direct child here — not a grandchild. */
.brand-card__logo svg { width: auto; height: auto; max-width: 190px; max-height: 92px; }
/* Valhal's wordmark carries more weight at the same width, so trim it a touch. */
.brand--valhal .brand-card__logo svg { max-width: 170px; max-height: 82px; }
.brand-card__name { color: #fff; margin: 0 0 .4rem; }
.brand-card__strap { color: var(--ale-on-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 .7rem; }
.brand-card__text { font-size: .88rem; line-height: 1.65; margin: 0 0 1.3rem; }
.brand-card .btn { margin-top: auto; align-self: center; }
.brand-card .btn--ghost { color: var(--ale-on-dark); border-color: var(--ale-on-dark); }
.brand-card .btn--ghost:hover { background: var(--ale-on-dark); color: var(--raven); }

/* A band can carry a photograph behind it. The scrim is the band's own colour at
   high opacity, so the section keeps its identity and the text keeps its
   contrast — measured, not guessed. */
.section--bg { position: relative; isolation: isolate; }
.section--bg > .section__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.section--bg > .section__bg .tv-img { width: 100%; height: 100%; object-fit: cover; }
.section--bg::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in oklch, var(--band-bg, var(--raven)) 83%, transparent);
}

/* Alternating rows: photograph and brand panel side by side, the photograph
   swapping sides down the page. Order is flipped in CSS rather than the markup,
   so the reading order stays photograph-then-copy for a screen reader. */
.brand-rows { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.brand-row {
	display: grid; align-items: stretch; overflow: hidden;
	border-radius: var(--radius); box-shadow: var(--shadow-sm);
	position: relative;
	transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.brand-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-row:focus-within { outline: 3px solid var(--ale); outline-offset: 3px; }
/* Offset gold border framing the whole row — over the photo and the text panel. */
.brand-row::before {
	content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none;
	border: 1px solid color-mix(in oklch, var(--ale) 62%, transparent);
}
.brand-row.is-raven { background: var(--raven); }
.brand-row.is-blood { background: var(--blood); }
.brand-row.is-fjord { background: var(--fjord); }
.brand-row.is-sky   { background: var(--sky); }
.brand-row.is-axe   { background: var(--axe); }
.brand-row.is-pine  { background: var(--pine); }
.brand-row.is-storm { background: var(--storm); }
.brand-row.is-moss  { background: var(--moss); }

.brand-row__media { min-height: 260px; }
.brand-row__media .tv-img { width: 100%; height: 100%; object-fit: cover; }
.brand-row__media .img-placeholder { height: 100%; aspect-ratio: auto; border: 0; }
.brand-row__body {
	padding: clamp(2.25rem, 5vw, 4rem) clamp(1.75rem, 6vw, 5.5rem);
	display: flex; flex-direction: column; justify-content: center;
	color: var(--on-dark); text-align: left;
	position: relative;
}
.brand-row__body.tv-watermark::after { width: 13rem; height: 13rem; right: -2rem; bottom: -2.5rem; }
.brand-row__logo { height: 78px; margin-bottom: 1.15rem; color: #fff; display: flex; align-items: center; }
.brand-row__logo svg { width: auto; height: auto; max-width: 180px; max-height: 78px; }
.brand--valhal .brand-row__logo svg { max-width: 162px; max-height: 70px; }
.brand-row__strap { color: var(--ale-on-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 .7rem; }
.brand-row__text { font-size: .95rem; line-height: 1.7; margin: 0 0 1.5rem; max-width: 46ch; }
.brand-row .btn { align-self: flex-start; }
.brand-row .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }

@media (min-width: 860px) {
	.brand-row { grid-template-columns: 1fr 1fr; }
	/* Even rows put the copy first, so the photograph lands on the right. */
	.brand-row:nth-child(even) .brand-row__body { order: -1; }
}

/* ==========================================================================
   Two-column bands + image/text
   ========================================================================== */

/* Image-bearing bands run edge to edge: the section drops its vertical padding
   so the photo meets the top and bottom of the band, and the text column carries
   its own padding instead. */
.section--flush { padding-block: 0; }

.split { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 860px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--flip .split__media { order: -1; }
}
.split__body { padding: clamp(2.25rem, 5vw, 4rem) clamp(1.75rem, 6vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; }
.split__media { min-height: 260px; display: flex; }
.split__media .tv-img { width: 100%; height: 100%; object-fit: cover; }
.split__media .img-placeholder { height: 100%; aspect-ratio: auto; border: 0; border-left: 1px dashed var(--ale); }

.cols {
	display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	list-style: none; margin: 0; padding: 0;
}
.cols h3 { margin-bottom: .5rem; }

/* ==========================================================================
   Story steps
   ========================================================================== */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; gap: .4rem 2rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--hair); }
.step:last-child { border-bottom: 1px solid var(--hair); }
@media (min-width: 760px) { .step { grid-template-columns: 200px 1fr; } }
.step__label {
	font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	color: var(--ale-ink); margin: 0;
}
.is-dark .step__label { color: var(--ale-on-dark); }
.step__title { margin: 0 0 .4rem; }
.step__text { margin: 0; }

/* ==========================================================================
   Filters (products + stockists)
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.filters__label {
	font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
	color: var(--muted); margin-right: .35rem;
}
.chip {
	background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
	padding: .6rem 1.05rem; min-height: 44px;
	font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ale-ink); color: var(--ale-ink); }
.chip[aria-pressed="true"] { background: var(--raven); color: var(--canvas); border-color: var(--raven); }
.filters__empty { color: var(--muted); font-style: italic; }

/* ==========================================================================
   Stockists
   ========================================================================== */

.stockists { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stockist {
	background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ale); border-radius: var(--radius);
	padding: 2rem 2.1rem 2.1rem; box-shadow: var(--shadow-sm);
}
/* The shop name is what someone scans for, so it carries display weight rather
   than sitting a notch above the address. */
.stockist h3 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .9rem; }
.stockist__meta { font-size: .95rem; line-height: 1.65; color: var(--muted); margin: 0 0 .2rem; }
.stockist__meta + .stockist__meta { margin-top: .2rem; }
/* Phone and website are the point of a stockist listing, and the phone number is
   the primary action on a mobile — give them a comfortable target. Underlines are
   dropped here because each link already sits alone on its own line in gold. */
.stockist__meta a {
	display: inline-flex; align-items: center; min-height: 44px;
	text-decoration: none; font-weight: 400; color: var(--ale-ink);
}
.stockist__meta a:hover, .stockist__meta a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
/* First link after the address block gets air; the address lines stay tight. */
.stockist__meta:has(a) { margin-top: .5rem; }

.note { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }
.is-dark .note { color: var(--on-dark); opacity: .85; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { list-style: none; margin: 0; padding: 0; max-width: 76ch; }
.faq details { border-top: 1px solid var(--hair); padding-block: 1.1rem; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
	font-family: var(--f-display); font-size: 1.12rem; font-weight: 600;
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	min-height: 44px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ale-ink); font-family: var(--f-body); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq__answer { padding-top: .5rem; max-width: 68ch; }
.is-dark .faq summary::after { color: var(--ale-on-dark); }

/* ==========================================================================
   Single product
   ========================================================================== */

.product { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.product__media {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.product__media .tv-img { max-width: 100%; height: auto; }
.product__brand { display: inline-flex; align-items: center; gap: .55rem; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ale-ink); margin: 0 0 .8rem; }
/* The brand's own mark, small, beside the eyebrow. */
.product__mark { flex: none; width: 1.15rem; height: 1.15rem; background: var(--_m) center / contain no-repeat; }
.product__mark--thorvald { --_m: var(--emb-mark-thorvald); }
.product__mark--lr       { --_m: var(--emb-mark-lr); width: 1.5rem; }
.product__mark--valhal   { --_m: var(--emb-mark-valhal); }
.product__tagline { font-family: var(--f-display); font-size: clamp(1.05rem, 1.8vw, 1.32rem); font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: var(--ale-ink); margin: 0 0 1.1rem; }
/* The brand's own mark (.tv-icon-rule--lead) as a divider under the tagline. */
.product__body .tv-icon-rule { margin: 0 0 1.4rem; }
/* Same mark under a brand page's intro heading. */
.intro__mark { margin: .1rem 0 1.5rem; }

/* Centred section (brand-page top banners). */
.section--centered { text-align: center; }
.section--centered .wrap,
.section--centered .section__head { margin-inline: auto; }
.section--centered .lede,
.section--centered .prose { margin-inline: auto; }
/* A notch below the hero body — centred on a light full-width page the same
   size reads heavier than it does over the hero photo. */
.section--centered .lede { font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.7; }
.section--centered .btn-row { justify-content: center; }
.section--centered .tv-icon-rule { justify-content: center; }
.product__serving { border-left: 3px solid var(--ale); padding-left: 1.1rem; margin: 1.5rem 0; }
.product__serving h2 { font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--f-body); font-weight: 500; margin-bottom: .35rem; }
.product__awards h2, .product__certs h2 { font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--f-body); font-weight: 500; margin: 1.75rem 0 .25rem; }
.product__brandline { font-family: var(--f-display); font-size: 1.2rem; color: var(--ale-ink); margin: 1.5rem 0 0; }

.notice {
	background: var(--canvas); border-left: 3px solid var(--ale);
	padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .9rem;
}

/* ==========================================================================
   News
   ========================================================================== */

.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; margin: 0; padding: 0; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.news-card__body { padding: 1.3rem 1.4rem 1.6rem; }
.news-card__date { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ale-ink); margin: 0 0 .5rem; }
.news-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--ale-ink); }

.entry-content > * + * { margin-top: 1.1rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content img { border-radius: var(--radius); }

/* ==========================================================================
   Knotwork band
   ==========================================================================
   The brand's own ornament, carried over from the existing site. A chain that
   tiles across the full width with a trinity medallion pinned to the centre.

   The medallion is an opaque tile painted in the section's own background
   colour, so it replaces the repeating chain underneath rather than sitting on
   top of it — that is how the original site keeps the join clean at any width,
   and why it needs no breakpoints. Drawn at half the sprite's natural size so
   the 30px artwork maps 1:1 to device pixels on a 2x display.
   ========================================================================== */

.knot {
	position: relative;
	height: 46px;
	/* The Thorvald knot-chain divider (vector). Referenced as a file, not a
	   data URI, because its <mask> only resolves for a real SVG resource. */
	background-image: url("../img/thorvald-knot.svg");
	background-repeat: repeat-x;
	background-position: center 4px;
	background-size: 92px 40px;
	pointer-events: none;
}
/* Opaque centre medallion — one crisp segment over the band's own colour, a
   focal point that also hides the centre tile seam. */
.knot::after {
	content: "";
	position: absolute; inset: 0 auto 0 50%;
	transform: translateX(-50%);
	width: 84px;
	background-color: var(--band-bg, var(--paper));
	background-image: url("../img/thorvald-knot.svg");
	background-repeat: no-repeat;
	background-position: center 4px;
	background-size: 92px 40px;
}
.section > .knot:first-child { margin-block: calc(clamp(3rem, 6.5vw, 5.5rem) * -1) clamp(2rem, 4vw, 3rem); }
/* Inverted knot at the foot of a CTA band — flipped, pulled past the bottom
   padding so it sits on the section's edge. */
.knot--bottom { transform: scaleY(-1); }
.section > .knot--bottom:last-child { margin-block: clamp(2rem, 4vw, 3rem) calc(clamp(3rem, 6.5vw, 5.5rem) * -1); }

/* ==========================================================================
   Divider
   ========================================================================== */

.tv-divider { display: grid; place-items: center; padding-block: clamp(1.5rem, 3vw, 2.25rem); color: var(--ale); }
.tv-divider .tv-svg svg { width: 150px; height: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--raven); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.site-footer h2 { color: #fff; font-size: 1.35rem; }
.site-footer__cols { display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__title { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ale-on-dark); margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* Only the nav menus stack. Scoped to .menu so the horizontal social row inside
   the same column is not caught by it. */
.site-footer__cols .menu li + li { margin-top: .5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--ale-on-dark); text-decoration: underline; }
.site-footer__blurb { font-size: .88rem; line-height: 1.7; max-width: 34ch; }
.site-footer__logo { margin-bottom: 1rem; color: #fff; }
.site-footer__logo .tv-svg svg { width: 190px; height: auto; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; align-items: center; }
.site-footer__social li { margin: 0; }
/* Brand gold shield badges (vector). The ring is part of the artwork, so the
   whole 40px shield sits inside a 44px hit area — no extra border. */
.social {
	display: block; width: 44px; height: 44px;
	background-repeat: no-repeat; background-position: center;
	background-size: 40px 40px;
	transition: transform .15s ease-out, opacity .2s;
}
.social:hover { transform: translateY(-2px); opacity: .85; }
.social:active { transform: scale(.96); }
.social--facebook  { background-image: url("../img/social-facebook.svg"); }
.social--instagram { background-image: url("../img/social-instagram.svg"); }
.site-footer__bottom {
	margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / .14);
	display: flex; flex-wrap: wrap; align-items: center;
	gap: .75rem clamp(1.25rem, 3vw, 2.5rem); justify-content: space-between;
	font-size: .78rem;
}
.site-footer__bottom > * { margin: 0; }
.site-footer__utility {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: .4rem clamp(1rem, 2.5vw, 1.75rem);
}
.site-footer__utility li { margin: 0; }
.site-footer__utility a,
.site-footer__copyright,
.site-footer__credit { font-size: .78rem; line-height: 1.4; }
@media (max-width: 720px) {
	.site-footer__bottom { justify-content: flex-start; }
}
/* Muted text on near-black must still clear 4.5:1 — Canvas at 80% does. */
.site-footer__bottom, .site-footer__bottom a { color: color-mix(in oklch, var(--canvas) 82%, var(--raven)); }
.site-footer__credit a { color: var(--ale-on-dark); text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }

/* ==========================================================================
   Entrance
   ========================================================================== */

/* One-shot enter, so keyframes rather than a transition. The hero is split into
   its own chunks and staggered — animating the whole block at once reads as a
   panel sliding in rather than content arriving. Kept slow and short-travel to
   suit a refined direction. No filter: blur() here — animating blur on text
   leaves it stuck on a low-res GPU layer in iOS Safari (permanently soft body
   copy); the opacity + short rise carries the entrance on its own. */
@keyframes tv-enter {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.hero__inner > * { animation: tv-enter .62s cubic-bezier(.22, .61, .36, 1) both; }
	.hero__inner > *:nth-child(1) { animation-delay: .04s; }
	.hero__inner > *:nth-child(2) { animation-delay: .14s; }
	.hero__inner > *:nth-child(3) { animation-delay: .24s; }
	.hero__inner > *:nth-child(4) { animation-delay: .34s; }
	.hero__inner > *:nth-child(5) { animation-delay: .44s; }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.p-card:hover, .brand-card:hover { transform: none; }
}


/* ==========================================================================
   Fluent Forms — brand the plugin's own markup
   ==========================================================================
   The plugin ships its own rounded, blue-focus styling with high-specificity
   selectors, so these are deliberately specific enough to win rather than
   sprinkling !important everywhere. Corners match the buttons at 2px.
   ========================================================================== */

.form-wrap { max-width: 640px; }

.fluentform .ff-el-group { margin-bottom: 1.35rem; }

.fluentform .ff-el-input--label label {
	font-family: var(--f-body);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .45rem;
	display: inline-block;
}
.is-dark .fluentform .ff-el-input--label label { color: var(--on-dark); }

/* Required marker in the brand gold, not the plugin's red. */
.fluentform .ff-el-is-required.asterisk-right label:after,
.fluentform .ff-el-is-required.asterisk-left label:before {
	color: var(--ale-ink);
	font-weight: 600;
}
.is-dark .fluentform .ff-el-is-required.asterisk-right label:after,
.is-dark .fluentform .ff-el-is-required.asterisk-left label:before { color: var(--ale-on-dark); }

.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="url"],
.fluentform select,
.fluentform textarea {
	width: 100%;
	padding: .85rem 1rem;
	min-height: 50px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.fluentform textarea,
.fluentform textarea.ff-el-form-control { min-height: 150px; padding-top: .9rem; resize: vertical; }

.fluentform .ff-el-form-control::placeholder { color: color-mix(in oklch, var(--muted) 70%, transparent); }

.fluentform .ff-el-form-control:hover,
.fluentform select:hover,
.fluentform textarea:hover { border-color: color-mix(in oklch, var(--ale) 55%, var(--line)); }

.fluentform .ff-el-form-control:focus,
.fluentform .ff-el-form-control:focus-visible,
.fluentform select:focus,
.fluentform textarea:focus {
	outline: 3px solid var(--ale);
	outline-offset: 2px;
	border-color: var(--ale-ink);
	box-shadow: none;
}

/* Own chevron, so it can be brand gold and sit on a predictable inset — the
   native control puts it in a different place per platform. */
.fluentform select,
.fluentform select.ff-el-form-control {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23855405' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.1rem center;
	background-size: 14px 9px;
	cursor: pointer;
}
.fluentform select::-ms-expand { display: none; }

/* The plugin sets .ff-select radius and the select background arrow with
   !important, and ships an element-level 7px radius for textarea — these two
   need the same weapon to match the 2px button corners. */
.fluentform select,
.fluentform select.ff-el-form-control,
.fluentform textarea,
.fluentform textarea.ff-el-form-control {
	border-radius: var(--radius) !important;
	border: 1px solid var(--line) !important;
	background-color: var(--surface) !important;
	color: var(--ink) !important;
	height: auto !important;
	line-height: 1.5 !important;
	max-width: 100% !important;
}
.fluentform select,
.fluentform select.ff-el-form-control {
	padding: .85rem 3rem .85rem 1rem !important;
	min-height: 50px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23855405' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1.1rem center !important;
	background-size: 14px 9px !important;
	background-blend-mode: normal;
}
.fluentform textarea,
.fluentform textarea.ff-el-form-control { padding: .9rem 1rem !important; }
.fluentform select:focus, .fluentform textarea:focus { border-color: var(--ale-ink) !important; }

/* Submit: the plugin ships white-on-gold at 3:1. Raven on gold is 6.08:1. */
.fluentform .ff-btn,
.fluentform .ff-btn-submit,
.fluentform button[type="submit"] {
	background: var(--ale) !important;
	color: var(--raven) !important;
	border: 1px solid var(--ale) !important;
	border-radius: var(--radius) !important;
	padding: .95rem 1.9rem !important;
	min-height: 50px;
	margin-top: .35rem;
	font-family: var(--f-body) !important;
	font-size: .72rem !important;
	font-weight: 500 !important;
	letter-spacing: .2em;
	text-transform: uppercase;
	box-shadow: none !important;
	transition: transform .15s ease-out, background .2s;
}
.fluentform .ff-btn:hover { background: var(--ale-on-dark) !important; }
.fluentform .ff-btn:active { transform: scale(.96); }

.fluentform .ff-el-is-error .ff-el-form-control { border-color: #a11d1d; }
.fluentform .error, .fluentform .text-danger, .fluentform .ff-el-is-error .error {
	color: #a11d1d; font-size: .82rem; margin-top: .35rem;
}
.is-dark .fluentform .error { color: #ffb4b4; }

.ff-message-success {
	background: var(--canvas);
	border-left: 3px solid var(--ale);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	color: var(--ink);
}
.form-fallback { font-size: 1.05rem; }
