/* ─────────────────────────────────────────────────────────────────────────────
   CLASS G CINEMA — component styles
   Colors, fonts, sizes and spacing come from theme.json. This file adds what
   theme.json can't express: expanded headline widths, rules, cards, header
   behaviour, forms and motion.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
	--classg-header-h: 4.6rem;
	--classg-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--classg-rule: var(--wp--preset--color--night-line);
	--classg-accent: var(--wp--preset--color--brass);
	--classg-soft: var(--wp--preset--color--mist);
}

.has-paper-background-color,
.has-paper-deep-background-color {
	--classg-rule: rgb(21 24 21 / 0.16);
	--classg-accent: var(--wp--preset--color--brass-deep);
	--classg-soft: var(--wp--preset--color--ink-soft);
	color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

[id] {
	scroll-margin-top: 6.5rem;
}

::selection {
	background: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--night);
}

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

h1, h2, h3, h4, .wp-block-heading {
	text-wrap: balance;
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	text-decoration-color: rgb(212 183 106 / 0.6);
	transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
	text-decoration-color: currentColor;
}

.has-paper-background-color a,
.has-paper-deep-background-color a {
	text-decoration-color: rgb(119 92 34 / 0.55);
}

:where(h1, h2, h3, h4) a {
	text-decoration: none;
}

:where(h1, h2, h3, h4) a:hover {
	color: var(--classg-accent);
}

/* ── Type: wide headlines ─────────────────────────────────────────────────── */
h1, .has-heading-lg-font-size {
	font-stretch: 122%;
	font-weight: 390;
	line-height: 0.98;
	letter-spacing: -0.03em;
}

h2, .has-heading-md-font-size {
	font-stretch: 118%;
	font-weight: 420;
	line-height: 1.04;
	letter-spacing: -0.022em;
}

h3, .has-heading-sm-font-size {
	font-stretch: 112%;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h4, .has-subhead-font-size {
	font-stretch: 108%;
	font-weight: 560;
	line-height: 1.3;
	letter-spacing: 0;
}

.has-display-font-size {
	font-stretch: 125%;
	font-weight: 370;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.has-lead-font-size {
	font-weight: 360;
	line-height: 1.5;
	font-stretch: 100%;
	letter-spacing: 0;
}

.has-small-font-size {
	line-height: 1.55;
	font-stretch: 100%;
	letter-spacing: 0;
}

.has-meta-font-size {
	line-height: 1.4;
	letter-spacing: 0.01em;
	font-stretch: 100%;
}

:where(h1, h2, h3, h4).has-meta-font-size,
.classg-label {
	font-weight: 520;
	letter-spacing: 0.02em;
}

@media (max-width: 30rem) {
	.has-display-font-size { font-stretch: 112%; }
	h1, .has-heading-lg-font-size { font-stretch: 106%; }
	h2, .has-heading-md-font-size { font-stretch: 104%; }
	h3, .has-heading-sm-font-size { font-stretch: 104%; }
}

/* Measures */
.classg-measure { max-width: 38rem; }
.classg-measure-xs { max-width: 24rem; }
.classg-measure-s { max-width: 14ch; }
.classg-measure-m { max-width: 18ch; }
.classg-measure-l { max-width: 22ch; }
.classg-hero-title { max-width: 9ch; }
.classg-soft-paper { color: rgb(236 233 226 / 0.88); }

.classg-statement {
	font-weight: 400;
	font-stretch: 104%;
	max-width: 56rem;
	line-height: 1.35;
}

.classg-note {
	border-left: 2px solid var(--classg-accent);
	padding-left: 1rem;
}

.classg-label {
	margin-top: 1.75rem;
}

.classg-kicker {
	letter-spacing: 0.03em;
}

.classg-serif {
	font-family: var(--wp--preset--font-family--newsreader);
	font-optical-sizing: auto;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */
/* Full-width sections sit flush against each other. */
body .wp-site-blocks > *,
body main.wp-block-group > *,
body .wp-block-post-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-block-cover.classg-hero,
.wp-block-cover.classg-cta {
	padding-left: 0;
	padding-right: 0;
}

.wp-block-cover.classg-hero > .wp-block-cover__inner-container,
.wp-block-cover.classg-cta > .wp-block-cover__inner-container {
	padding-left: max(var(--wp--custom--gutter), calc((100% - var(--wp--style--global--wide-size, 83rem)) / 2));
	padding-right: max(var(--wp--custom--gutter), calc((100% - var(--wp--style--global--wide-size, 83rem)) / 2));
}

/* A heading that follows other content in a column gets room above it. */
.wp-block-column > .wp-block-heading:not(:first-child):not(.has-meta-font-size) {
	margin-top: var(--wp--preset--spacing--40);
}

@media (min-width: 782px) {
	.wp-block-columns > .classg-col-offset {
		margin-left: auto;
	}

	.classg-align-end {
		text-align: right;
	}

	.wp-block-columns.classg-form-cols > .wp-block-column:last-child {
		order: -1;
	}

	.classg-sticky,
	.wp-block-column.classg-sticky {
		position: sticky;
		top: 7rem;
		align-self: flex-start;
	}
}

@media (max-width: 781px) {
	.wp-block-columns.classg-flip > .wp-block-column:last-child {
		order: -1;
	}
}

/* Images in a frame: a quiet placeholder while they load. */
.classg-frame,
.classg-frame img {
	background:
		linear-gradient(180deg, transparent 0 calc(58% - 0.5px), rgb(212 183 106 / 0.22) calc(58% - 0.5px) calc(58% + 0.5px), transparent calc(58% + 0.5px)),
		radial-gradient(120% 90% at 30% 20%, #2a332c 0%, #171b18 55%, #0e110f 100%);
}

.wp-block-image.classg-frame,
.wp-block-post-featured-image.classg-frame {
	overflow: hidden;
	margin-bottom: 0;
}

.wp-block-image.classg-frame img,
.wp-block-post-featured-image.classg-frame img {
	width: 100%;
	display: block;
}

/* ── Block styles ─────────────────────────────────────────────────────────── */

/* Group: line above */
.is-style-top-rule {
	border-top: 1px solid var(--classg-rule);
	padding-top: 1.5rem;
}

/* Paragraph: arrow link */
.is-style-more a,
a.is-style-more {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 540;
	font-stretch: 108%;
	font-size: 0.9375rem;
	text-decoration: none;
	color: inherit;
}

.is-style-more a::after {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	transition: width 0.35s var(--classg-ease);
}

.is-style-more a:hover::after,
.is-style-more a:focus-visible::after {
	width: 3.5rem;
}

.is-style-more.has-brass-color a {
	color: var(--wp--preset--color--brass);
}

/* Paragraph: step number */
.is-style-step-number {
	font-size: var(--wp--preset--font-size--heading-md);
	font-stretch: 118%;
	font-weight: 420;
	line-height: 1;
	color: var(--classg-accent);
	margin: 0;
}

/* Lists */
ul.is-style-rules,
ol.is-style-rules,
ul.is-style-dashes,
ul.is-style-checks,
ul.is-style-pills,
ul.is-style-links {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.is-style-rules {
	border-top: 1px solid var(--classg-rule);
}

.is-style-rules > li {
	border-bottom: 1px solid var(--classg-rule);
	padding-block: 0.85rem;
}

.is-style-rules.classg-facts > li strong {
	display: block;
	font-weight: 520;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--classg-soft);
	margin-bottom: 0.15rem;
}

.is-style-rules a {
	text-decoration: none;
}

.is-style-rules a:hover {
	color: var(--classg-accent);
}

@media (min-width: 600px) {
	.is-style-rules.classg-two-col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}
}

.classg-two-col > li {
	font-stretch: 108%;
	font-weight: 540;
}

.is-style-dashes > li,
.is-style-checks > li {
	position: relative;
	padding-left: 1.75rem;
}

.is-style-dashes > li + li,
.is-style-checks > li + li {
	margin-top: 0.75rem;
}

.is-style-dashes > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 1rem;
	height: 1px;
	background: var(--classg-accent);
}

.is-style-checks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1rem;
	height: 1rem;
	border: 1px solid currentColor;
	opacity: 0.5;
}

.is-style-checks > li::after {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: calc(0.25em + 0.3rem);
	width: 0.4rem;
	height: 0.4rem;
	background: var(--classg-accent);
}

.is-style-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.is-style-pills > li {
	margin: 0;
}

.is-style-pills > li,
.is-style-pills > li > a {
	font-size: 0.875rem;
	line-height: 1.3;
}

.is-style-pills > li:not(:has(a)),
.is-style-pills > li > a,
.classg-chip-all a,
.classg-chips .wp-block-term-name a {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--classg-rule);
	border-radius: 999px;
	color: var(--classg-soft);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.is-style-pills.classg-tags > li {
	min-height: 0;
	padding: 0.2rem 0.75rem;
	font-size: 0.8125rem;
}

.is-style-pills > li > a:hover,
.classg-chip-all a:hover,
.classg-chips .wp-block-term-name a:hover {
	color: currentColor;
	border-color: currentColor;
}

.classg-chip-all a[aria-current="page"],
.classg-chips .wp-block-term-name a[aria-current="page"] {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--night);
}

.has-paper-background-color .classg-chip-all a[aria-current="page"],
.has-paper-background-color .classg-chips .wp-block-term-name a[aria-current="page"],
.has-paper-deep-background-color .classg-chips .wp-block-term-name a[aria-current="page"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.classg-chips,
.classg-chips p {
	margin: 0;
}

.classg-chips .wp-block-terms-query,
.classg-chips .wp-block-term-template {
	display: contents;
}

.classg-chips .wp-block-term-template {
	list-style: none;
}

.classg-chips .wp-block-term-template li {
	margin: 0;
}

.is-style-links > li + li {
	margin-top: 0.55rem;
}

.is-style-links a {
	text-decoration: none;
	color: inherit;
	opacity: 0.88;
}

.is-style-links a:hover {
	opacity: 1;
	text-decoration: underline;
}

.classg-inline-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.classg-inline-links > li + li {
	margin-top: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	font-stretch: 108%;
	transition: background-color 0.25s var(--classg-ease), color 0.25s var(--classg-ease), border-color 0.25s var(--classg-ease);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--paper);
	border: 1px solid rgb(236 233 226 / 0.45);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--paper);
	background: rgb(236 233 226 / 0.08);
	color: var(--wp--preset--color--paper);
}

.has-paper-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.has-paper-deep-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.has-paper-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.has-paper-deep-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: #2a2f2a;
}

.has-paper-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-paper-deep-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--ink);
	border-color: rgb(21 24 21 / 0.4);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
:where(body:not(.editor-styles-wrapper)) .classg-site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
}

body.admin-bar .classg-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.classg-header {
	padding-left: max(var(--wp--custom--gutter), calc((100% - var(--wp--style--global--wide-size, 83rem)) / 2)) !important;
	padding-right: max(var(--wp--custom--gutter), calc((100% - var(--wp--style--global--wide-size, 83rem)) / 2)) !important;
	min-height: var(--classg-header-h);
	align-items: center;
	background: rgb(17 20 18 / 0.94);
	/*border-bottom: 1px solid var(--wp--preset--color--night-line);*/
	transition: background-color 0.35s var(--classg-ease), border-color 0.35s var(--classg-ease);
}

.has-hero .classg-site-header:not(.is-solid) .classg-header {
	background: linear-gradient(180deg, rgb(10 12 11 / 0.6) 0%, rgb(10 12 11 / 0) 100%);
	border-bottom-color: transparent;
}

.classg-site-header.is-solid .classg-header {
	background: rgb(17 20 18 / 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

:where(body:not(.editor-styles-wrapper)) main {
	padding-top: var(--classg-header-h);
}

:where(body:not(.editor-styles-wrapper)) main:has(> .classg-hero:first-child),
:where(body:not(.editor-styles-wrapper)) main:has(> .wp-block-post-content > .classg-hero:first-child) {
	padding-top: 0;
}

.classg-logo img {
	display: block;
}

.classg-header .classg-header-cta {
	display: none;
}

@media (min-width: 1024px) {
	.classg-header .classg-header-cta {
		display: flex;
	}
}

.classg-header-cta .wp-block-button__link {
	min-height: 0;
	padding: 0.6rem 1rem;
	/*font-size: 0.875rem;*/
}

/* Navigation */
.classg-nav .wp-block-navigation-item__content {
	color: rgb(236 233 226 / 0.86);
	padding-block: 0.5rem;
	text-decoration: none;
}

.classg-nav .wp-block-navigation-item__content:hover,
.classg-nav .wp-block-navigation-item__content:focus-visible,
.classg-nav [aria-current="page"] {
	color: var(--wp--preset--color--paper);
}

.classg-nav .wp-block-navigation__container > .is-current-section > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--paper);
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--brass);
}

.classg-nav .wp-block-navigation__submenu-icon {
	color: rgb(236 233 226 / 0.7);
}

.classg-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--night-raised) !important;
	color: var(--wp--preset--color--paper) !important;
	border: 1px solid var(--wp--preset--color--night-line) !important;
	border-radius: 2px;
	padding: 0.6rem !important;
	min-width: 23rem !important;
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.classg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.7rem 0.8rem !important;
	border-radius: 2px;
	color: var(--wp--preset--color--paper);
}

.classg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.classg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: rgb(236 233 226 / 0.06);
}

.classg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-weight: 540;
	font-stretch: 108%;
}

.classg-nav .wp-block-navigation-item__description {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--mist);
}

.classg-nav .classg-nav-all .wp-block-navigation-item__content {
	color: var(--wp--preset--color--brass);
}

.classg-nav .classg-nav-cta {
	display: none;
}

/* The menu folds into the overlay below 1024px (core's default is 600px). */
@media (max-width: 1023px) {
	.classg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.classg-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.classg-nav .wp-block-navigation__responsive-container-open,
.classg-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--paper);
	padding: 0.5rem;
	margin: -0.5rem;
}

.classg-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem var(--wp--custom--gutter) 2.5rem;
	overflow-y: auto;
}

.classg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	gap: 0;
	align-items: flex-start !important;
	text-align: left;
}

.classg-nav .is-menu-open .wp-block-navigation__container,
.classg-nav .is-menu-open .wp-block-navigation-item,
.classg-nav .is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}

.classg-nav .is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.classg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	padding-block: 0.4rem;
}

.classg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--heading-sm);
	font-stretch: 112%;
	font-weight: 500;
}

.classg-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none;
	min-width: 0 !important;
	padding: 0 0 0.5rem !important;
}

.classg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.4rem 0 !important;
}

.classg-nav .is-menu-open .wp-block-navigation-item__description {
	display: none;
}

.classg-nav .is-menu-open .classg-nav-cta {
	display: block;
	border-bottom: 0 !important;
	padding-top: 1.5rem !important;
}

.classg-nav .is-menu-open .classg-nav-cta > .wp-block-navigation-item__content {
	display: inline-flex;
	padding: 0.85rem 1.4rem !important;
	background: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--night) !important;
	border-radius: 2px;
	font-size: 0.9375rem !important;
	font-weight: 540 !important;
}

/* ── Opening images and video ────────────────────────────────────────────── */
.classg-hero .wp-block-cover__inner-container,
.classg-cta .wp-block-cover__inner-container {
	z-index: 2;
}

.classg-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	opacity: 0.07;
	mix-blend-mode: overlay;
}

.classg-hero {
	background-color: var(--wp--preset--color--night);
}

.classg-hero .wp-block-cover__image-background,
.classg-hero .wp-block-cover__video-background {
	animation: classg-settle 2.6s var(--classg-ease) both;
}

.classg-hero-copy > *,
.classg-hero .wp-block-cover__inner-container > .alignwide > * {
	animation: classg-rise 1s var(--classg-ease) both;
}

.classg-hero .wp-block-cover__inner-container > .alignwide > *:nth-child(2) { animation-delay: 0.12s; }
.classg-hero .wp-block-cover__inner-container > .alignwide > *:nth-child(3) { animation-delay: 0.24s; }
.classg-hero .wp-block-cover__inner-container > .alignwide > *:nth-child(4) { animation-delay: 0.34s; }

@keyframes classg-settle {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}

@keyframes classg-rise {
	from { opacity: 0; transform: translateY(14px); }
}

.classg-video-toggle {
	position: absolute;
	right: max(var(--wp--custom--gutter), calc((100% - var(--wp--style--global--wide-size, 83rem)) / 2));
	bottom: 1.25rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 2.5rem;
	padding: 0 0.9rem;
	border: 1px solid rgb(236 233 226 / 0.3);
	border-radius: 999px;
	background: rgb(17 20 18 / 0.4);
	color: rgb(236 233 226 / 0.88);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.classg-video-toggle:hover {
	border-color: rgb(236 233 226 / 0.6);
	color: var(--wp--preset--color--paper);
}

@media (min-width: 782px) {
	.classg-video-toggle {
		bottom: 2rem;
	}
}

/* Breadcrumbs */
.classg-breadcrumbs {
	color: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--meta);
}

.classg-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.classg-breadcrumbs a:hover {
	color: var(--wp--preset--color--paper);
}

.classg-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--paper);
}

/* Page heading band */
.classg-intro .wp-block-post-excerpt__excerpt,
.classg-intro-text .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.classg-intro .wp-block-post-excerpt {
	margin-bottom: 0;
}

.classg-intro + .wp-block-post-content > .alignfull:first-child.has-night-background-color {
	border-top: 0;
}

/* ── Rows, cards and grids ────────────────────────────────────────────────── */
.classg-index {
	border-bottom: 1px solid var(--classg-rule);
}

.classg-index-row {
	position: relative;
	border-top: 1px solid var(--classg-rule);
	padding-block: 1.5rem;
}

.classg-index-row h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.classg-index-row:hover h3 a {
	color: var(--wp--preset--color--brass);
}

.classg-index-row p {
	margin: 0;
}

@media (min-width: 782px) {
	.classg-index-row {
		padding-block: 2.1rem;
	}
}

.classg-cards {
	list-style: none;
	padding: 0;
	margin: 0;
}

.classg-card {
	position: relative;
}

.classg-card .wp-block-post-featured-image img {
	transition: transform 1.1s var(--classg-ease);
}

.classg-card:hover .wp-block-post-featured-image img,
.classg-card:focus-within .wp-block-post-featured-image img {
	transform: scale(1.035);
}

.classg-card .wp-block-post-title {
	margin: 0;
}

.classg-card-meta,
.classg-card-meta a {
	font-size: var(--wp--preset--font-size--meta);
	text-decoration: none;
}

.classg-card-meta a,
.classg-card .wp-block-post-terms a {
	display: inline-block;
	padding-block: 0.3rem;
	text-decoration: none;
}

.classg-card-meta a:hover {
	text-decoration: underline;
}

.classg-card-text p {
	margin: 0;
	max-width: 38rem;
}

.classg-card .wp-block-post-date {
	font-size: var(--wp--preset--font-size--meta);
}

/* Portfolio: a wide frame, then staggered pairs. */
.classg-portfolio .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 3.5rem 1.5rem;
}

.classg-portfolio .wp-block-post-template > li {
	grid-column: span 12;
	margin: 0;
}

@media (min-width: 782px) {
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template {
		row-gap: 5rem;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 1) .wp-block-post-featured-image img {
		aspect-ratio: 2.39 / 1 !important;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 2) {
		grid-column: span 7;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 2) .wp-block-post-featured-image img,
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 5) .wp-block-post-featured-image img {
		aspect-ratio: 3 / 2 !important;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 3),
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 4) {
		grid-column: span 5;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 3) .wp-block-post-featured-image img,
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 4) .wp-block-post-featured-image img {
		aspect-ratio: 4 / 5 !important;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 3),
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 5) {
		margin-top: 6rem;
	}

	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:nth-child(5n + 5) {
		grid-column: span 7;
	}

	/* A lone last card in a pair takes the full width. */
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:last-child:nth-child(5n + 2),
	.classg-portfolio:not(.classg-portfolio--row) .wp-block-post-template > li:last-child:nth-child(5n + 4) {
		grid-column: span 12;
		margin-top: 0;
	}

	.classg-portfolio--row .wp-block-post-template > li {
		grid-column: span 4;
	}
}

/* Journal grids */
.classg-journal-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100%, 17rem), 1fr);
	gap: 4rem 1.5rem;
}

.classg-journal-grid .wp-block-post-template > li,
.classg-journal-feature .wp-block-post-template > li {
	margin: 0;
}

.classg-journal-feature .wp-block-post-template {
	display: grid;
	gap: 3rem 1.5rem;
}

@media (min-width: 782px) {
	.classg-journal-feature .wp-block-post-template {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.classg-journal-feature .wp-block-post-template > li:first-child {
		grid-column: 1 / span 7;
		grid-row: span 2;
	}

	.classg-journal-feature .wp-block-post-template > li:not(:first-child) {
		grid-column: 9 / span 4;
	}

	.classg-journal-feature .wp-block-post-template > li:not(:first-child) .classg-card-text {
		display: none;
	}

	.classg-journal-feature .wp-block-post-template > li:not(:first-child) .wp-block-post-featured-image img {
		aspect-ratio: 3 / 2 !important;
	}

	.classg-journal-feature .wp-block-post-template > li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--heading-md) !important;
		font-stretch: 118%;
		font-weight: 420;
	}
}

/* Filmstrip of industries */
.classg-filmstrip {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1rem !important;
	padding-bottom: 1.5rem;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--night-line) transparent;
}

.classg-film-card {
	flex: 0 0 78%;
	scroll-snap-align: start;
	min-width: 0;
}

.classg-film-card h3,
.classg-film-card p {
	margin: 0;
}

@media (min-width: 600px) {
	.classg-film-card { flex-basis: 44%; }
}

@media (min-width: 1024px) {
	.classg-film-card { flex-basis: calc((100% - 3rem) / 4); }
}

/* Service and industry blocks */
.classg-service-block .wp-block-buttons {
	margin-top: 1.5rem;
}

/* Process timeline */
.classg-timeline-step {
	border-top: 1px solid var(--classg-rule);
	padding-top: 2rem;
}

.classg-step-title {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem) !important;
}

/* Boxes */
.classg-box {
	border-radius: 2px;
}

/* Pagination */
.classg-pagination {
	margin-top: 4rem;
	font-size: var(--wp--preset--font-size--small);
}

.classg-pagination a {
	text-decoration: none;
}

.classg-pagination .page-numbers.current {
	color: var(--classg-accent);
}

/* Gallery */
.classg-gallery.wp-block-gallery {
	gap: 1rem !important;
}

/* ── Accordion ────────────────────────────────────────────────────────────── */
.classg-accordion .wp-block-accordion-item {
	border-top: 1px solid var(--classg-rule);
}

.classg-accordion .wp-block-accordion-item:last-child {
	border-bottom: 1px solid var(--classg-rule);
}

.classg-accordion .wp-block-accordion-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--subhead);
	font-stretch: 108%;
	font-weight: 540;
	line-height: 1.35;
	letter-spacing: 0;
}

.classg-accordion .wp-block-accordion-heading__toggle {
	gap: 1.5rem;
	padding: 1.25rem 0;
	min-height: 3.5rem;
}

.classg-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
	color: var(--classg-accent);
}

.classg-accordion .wp-block-accordion-heading__toggle-icon {
	font-size: 1.4rem;
	font-weight: 300;
	transition: transform 0.3s var(--classg-ease);
}

.classg-accordion .is-open .wp-block-accordion-heading__toggle-icon {
	transform: rotate(45deg);
}

.classg-accordion .wp-block-accordion-panel {
	padding-bottom: 1.5rem;
	max-width: 42rem;
	color: var(--classg-soft);
}

.classg-accordion .wp-block-accordion-panel > p {
	margin: 0;
}

.classg-accordion .wp-block-accordion-panel > p + p {
	margin-top: 0.9rem;
}

/* ── Long-form articles ───────────────────────────────────────────────────── */
.classg-prose {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
	line-height: 1.68;
	color: #262a25;
	font-optical-sizing: auto;
}

.classg-prose > * + * {
	margin-block-start: 1.25em;
}

.classg-prose h2,
.classg-prose h3,
.classg-prose h4 {
	font-family: var(--wp--preset--font-family--archivo);
	color: var(--wp--preset--color--ink);
	margin-block-start: 2.2em;
}

.classg-prose h2 {
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
	font-stretch: 116%;
	font-weight: 450;
	line-height: 1.12;
}

.classg-prose h3 {
	font-size: 1.25rem;
	font-stretch: 110%;
	font-weight: 540;
}

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

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

.classg-prose strong {
	font-weight: 620;
	color: var(--wp--preset--color--ink);
}

.classg-prose .wp-block-image {
	margin-block: 2.4em;
}

.classg-prose .wp-block-image img {
	width: 100%;
	height: auto;
}

.classg-prose figcaption,
.classg-prose .wp-element-caption {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--wp--preset--color--ink-soft);
	margin-top: 0.75rem;
}

.classg-pull,
.classg-prose .wp-block-quote {
	margin-block: 2.2em;
	padding-left: 1.25rem;
	border-left: 2px solid var(--wp--preset--color--brass-deep);
	font-style: italic;
	font-size: 1.35em;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

.classg-article-meta,
.classg-article-meta * {
	font-size: var(--wp--preset--font-size--meta);
}

.classg-article-image {
	margin-top: var(--wp--preset--spacing--40) !important;
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.classg-legal h2 {
	margin-top: 2.5rem;
}

.classg-legal ul {
	padding-left: 1.25rem;
}

.classg-legal li + li {
	margin-top: 0.35rem;
}

/* ── Forms (Contact Form 7) ───────────────────────────────────────────────── */
.wpcf7 {
	--classg-field-bg: #f6f4ef;
	--classg-field-border: #a9a397;
	--classg-error: #9c2f1c;
}

.classg-form .classg-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 2.5rem;
	min-width: 0;
}

.classg-form legend {
	padding: 0;
	margin-bottom: 1.25rem;
	font-size: var(--wp--preset--font-size--heading-sm);
	font-stretch: 112%;
	font-weight: 500;
}

.classg-grid {
	display: grid;
	gap: 1.5rem 1.25rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.classg-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.classg-field--wide {
		grid-column: 1 / -1;
	}
}

.classg-field label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 540;
}

.classg-optional {
	font-weight: 400;
	color: var(--wp--preset--color--ink-soft);
}

.classg-hint {
	display: block;
	margin: 0.2rem 0 0;
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
}

.classg-field br,
.classg-consent br {
	display: none;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 input.wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]),
.wpcf7 select.wpcf7-form-control,
.wpcf7 textarea.wpcf7-form-control {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.1rem;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--classg-field-bg);
	border: 1px solid var(--classg-field-border);
	border-radius: 2px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 textarea.wpcf7-form-control {
	min-height: 9rem;
	resize: vertical;
}

.wpcf7 select.wpcf7-form-control {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23151815' stroke-width='1.5'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
}

.wpcf7 .wpcf7-form-control:hover {
	border-color: #6e6a60;
}

.wpcf7 .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--wp--preset--color--ink);
	box-shadow: 0 0 0 3px rgb(119 92 34 / 0.35);
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--classg-error) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.45rem;
	font-size: 0.875rem;
	color: var(--classg-error);
}

.classg-consent {
	margin-top: 1.5rem;
	font-size: 0.9375rem;
}

.classg-consent .wpcf7-list-item {
	margin: 0;
}

.classg-consent label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.classg-consent input[type="checkbox"] {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	accent-color: var(--wp--preset--color--ink);
}

.classg-submit {
	margin-top: 1.75rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.wpcf7 .wpcf7-submit {
	min-height: 3rem;
	padding: 0.85rem 1.6rem;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 540;
	font-stretch: 108%;
	cursor: pointer;
	transition: background-color 0.25s var(--classg-ease);
}

.wpcf7 .wpcf7-submit:hover {
	background: #2a2f2a;
}

.wpcf7 .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.75rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid;
	border-radius: 2px;
	font-size: 0.9375rem;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #3d6b3a;
	background: #e3ecdf;
	color: #1e3a1c;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--classg-error);
	background: #f6e3de;
	color: #6e1f12;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.classg-footer .is-style-links a {
	color: rgb(236 233 226 / 0.85);
	opacity: 1;
}

.classg-footer .is-style-links a:hover {
	color: var(--wp--preset--color--paper);
}

.classg-footer .classg-inline-links a {
	color: var(--wp--preset--color--stone);
}

.classg-footer-base p {
	margin: 0;
}

@media (max-width: 781px) {
	.classg-footer-cols {
		flex-wrap: wrap !important;
	}

	.classg-footer-cols > .wp-block-column {
		flex-basis: calc(50% - 1.25rem) !important;
		flex-grow: 0 !important;
	}
}

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.classg-404 {
	display: flex;
	align-items: flex-end;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

.classg-filter .classg-label {
	margin-top: 0;
}
