/* C4 Hybrid: design system and layout.
   Logical properties are used throughout so Arabic (RTL) works without a mirrored copy. */

:root {
	--c-teal: #073F43;
	--c-cream: #F4F1E8;
	--c-gold: #C8A96B;
	--c-ink: #172321;
	--c-white: #FFFFFF;
	--c-muted: #4a5553;
	--c-line: rgba(23, 35, 33, .18);
	--c-line-light: rgba(244, 241, 232, .26);
	--c-error: #8a1f1f;

	--f-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
	--f-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--max: 1240px;
	--s-section: clamp(3.5rem, 8vw, 7rem);
	--radius: 2px;
	--dir: 1;
	--focus: #073F43;
	--card-bg: #fff;
	--mark-main: var(--c-teal);
	--mark-node: var(--c-gold);
}

:root:lang(ar) {
	--f-display: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Geeza Pro", Tahoma, serif;
	--f-body: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
}
:root[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
:root:lang(ar) h1, :root:lang(ar) h2, :root:lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200; background: var(--c-gold); color: var(--c-ink); padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.site-main:focus { outline: none; }

/* Sections */
.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--white { background: var(--c-white); --card-bg: var(--c-cream); }
.section--cream { background: var(--c-cream); --card-bg: var(--c-white); }
.section--teal { background: var(--c-teal); color: var(--c-cream); --focus: var(--c-gold); }
.section--ink { background: var(--c-ink); color: var(--c-cream); --focus: var(--c-gold); }
.section--teal .sec-head, .section--ink .sec-head { border-color: var(--c-line-light); }

/* Type scale */
.display-lg { font-size: clamp(2.4rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.display-sm { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; }

.sec-head { display: grid; gap: 1rem 3rem; grid-template-columns: 1fr; border-top: 1px solid var(--c-line); padding-top: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head h2 { margin: 0; }
.sec-head__intro { margin: 0; color: var(--c-muted); max-width: 46ch; font-size: 1.125rem; }
.section--teal .sec-head__intro, .section--ink .sec-head__intro { color: rgba(244, 241, 232, .85); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 7fr 5fr; align-items: end; } }

.split { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; align-items: start; }
.split > h2 { margin: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }

.prose > * + * { margin-top: 1.1em; }
.prose { max-width: 70ch; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content img { height: auto; }
.entry-content .alignwide { max-width: min(100%, var(--max)); }

/* Buttons and links */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .9rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
	font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--sm { padding: .65rem 1.1rem; font-size: .95rem; }
.btn--primary { background: var(--c-teal); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-ink); }
.btn--gold { background: var(--c-gold); color: var(--c-ink); }
.btn--gold:hover { background: var(--c-cream); }
.btn--ghost { border-color: var(--c-teal); color: var(--c-teal); background: transparent; }
.btn--ghost:hover { background: var(--c-teal); color: var(--c-cream); }
.btn--ghost-light { border-color: var(--c-cream); color: var(--c-cream); background: transparent; }
.btn--ghost-light:hover { background: var(--c-cream); color: var(--c-teal); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.link-arrow:hover { border-bottom-width: 2px; }
.link-arrow--light { color: var(--c-cream); }
.icon { flex: none; }
.icon--arrow { transform: scaleX(var(--dir)); transition: transform .2s ease; }
.icon--plus { transition: transform .2s ease; }
.note-line { margin-top: 2.5rem; }
.note-line--plain { color: var(--c-muted); font-size: .95rem; max-width: 70ch; }
.empty { color: var(--c-muted); border: 1px dashed var(--c-line); padding: 1.5rem; max-width: 60ch; }
.section--teal .empty { color: rgba(244, 241, 232, .85); border-color: var(--c-line-light); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-cream); border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--c-teal); }
.brand__logo { max-height: 3rem; width: auto; }
.brand__name { font: 600 1.35rem/1 var(--f-display); letter-spacing: .02em; }
.brand__sub { font-weight: 400; letter-spacing: .08em; }
.c4-mark { display: block; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav .menu { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .5rem; display: inline-block; }
.primary-nav .menu > li > a { border-bottom: 2px solid transparent; }
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { border-bottom-color: var(--c-gold); }
.primary-nav .menu-item-has-children { display: flex; align-items: center; gap: .15rem; }
.submenu-toggle { background: none; border: 0; padding: .35rem; cursor: pointer; color: inherit; display: inline-flex; }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.primary-nav .sub-menu {
	position: absolute; inset-inline-start: 0; top: 100%; min-width: 17rem; z-index: 20;
	background: var(--c-white); border: 1px solid var(--c-line); border-top: 2px solid var(--c-gold);
	padding: .5rem 0; display: none;
}
.primary-nav .menu-item-has-children { flex-wrap: wrap; }
.primary-nav .is-open > .sub-menu,
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: .55rem 1.1rem; font-weight: 400; }
.primary-nav .sub-menu a:hover { background: var(--c-cream); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: .75rem; font-size: .9rem; }
.lang-switch a { text-decoration: none; }
.lang-switch .current-lang a { font-weight: 700; text-decoration: underline; }

.nav-toggle { display: none; background: none; border: 1px solid var(--c-teal); color: var(--c-teal); width: 2.9rem; height: 2.9rem; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars { display: grid; gap: 6px; width: 20px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; transition: transform .2s ease; }
.nav-open .nav-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1060px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: fixed; inset: 4.75rem 0 0 0; background: var(--c-cream);
		flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
	}
	.nav-open .primary-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--c-line); }
	.primary-nav a { font-family: var(--f-display); font-size: 1.4rem; padding-block: .85rem; }
	.primary-nav .menu-item-has-children { justify-content: space-between; }
	.primary-nav .menu-item-has-children > a { flex: 1; }
	.primary-nav .sub-menu { position: static; display: none; width: 100%; border: 0; border-inline-start: 2px solid var(--c-gold); padding: 0 0 .75rem 1rem; }
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.primary-nav .is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { font-family: var(--f-body); font-size: 1.05rem; padding: .5rem 0; }
	.header-actions { flex-direction: column; align-items: stretch; }
}

/* Hero */
.hero { background: var(--c-teal); color: var(--c-cream); --focus: var(--c-gold); padding-block: clamp(3.5rem, 9vw, 8rem); overflow: hidden; position: relative; }
.hero__grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.35fr .65fr; } }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; margin-bottom: .5em; }
:root:lang(ar) .hero__title { line-height: 1.35; letter-spacing: 0; }
.hero__line { display: block; }
.hero__line--gold { color: var(--c-gold); }
.hero__sub { max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(244, 241, 232, .9); }
.hero__art { max-width: 460px; justify-self: end; width: 100%; }
.hero-art { display: block; color: var(--c-cream); }
.hero-art__grid { opacity: .1; }
.hero-art__body { stroke: var(--c-cream); opacity: .1; }
.hero-art__trace { stroke: var(--c-gold); stroke-dasharray: 1; stroke-dashoffset: 1; animation: c4-draw 2.8s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.hero-art__nodes circle { fill: var(--c-gold); opacity: 0; animation: c4-fade .6s 2.4s ease forwards; }
.hero-art__nodes path { stroke: var(--c-gold); opacity: 0; animation: c4-fade-soft .8s 2.4s ease forwards; }
@keyframes c4-draw { to { stroke-dashoffset: 0; } }
@keyframes c4-fade { to { opacity: 1; } }
@keyframes c4-fade-soft { to { opacity: .45; } }
@media (max-width: 959px) { .hero__art { max-width: 280px; justify-self: start; } }

/* Page hero */
.page-hero { background: var(--c-cream); border-bottom: 1px solid var(--c-line); padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-hero__grid { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; align-items: end; margin-top: 1.5rem; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 7fr 5fr; } }
.page-hero__title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.05; margin: 0; }
.page-hero__lead { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--c-muted); max-width: 44ch; }
.hero-badge { margin: 1.5rem 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.section--teal .breadcrumbs ol { color: rgba(244, 241, 232, .8); }

/* Row lists (hairline, editorial) */
.rows { border-bottom: 1px solid var(--c-line); }
.row { display: grid; gap: .35rem 2rem; grid-template-columns: 1fr; padding-block: 1.5rem; border-top: 1px solid var(--c-line); }
.row__title { font-size: 1.35rem; margin: 0; }
.row__text, .row__meta { margin: 0; color: var(--c-muted); }
.row__meta { font-weight: 600; color: var(--c-ink); }
@media (min-width: 800px) { .row { grid-template-columns: 4fr 6fr; } }
.row--link { display: block; padding: 0; }
.row--link > a { display: grid; gap: .35rem 2rem; grid-template-columns: 1fr; align-items: center; padding-block: 1.5rem; text-decoration: none; transition: background-color .18s ease, padding .18s ease; }
@media (min-width: 800px) { .row--link > a { grid-template-columns: 4fr 6fr 1.5rem; } }
.row--link > a:hover { background: rgba(7, 63, 67, .05); padding-inline: 1rem; }
.row--link > a:hover .icon--arrow { transform: translateX(calc(4px * var(--dir))) scaleX(var(--dir)); }
.row--link .row__text { margin: 0; }
.row--link .icon { color: var(--c-teal); }
.rows--light, .rows--light .row { border-color: var(--c-line-light); }
.rows--light .row__text { color: rgba(244, 241, 232, .85); }
.rows--light .row__meta { color: var(--c-gold); }

/* Steps */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: none; }
.steps__item { border-top: 2px solid var(--c-teal); padding-top: 1.25rem; }
.steps__num { display: block; font: 500 2.6rem/1 var(--f-display); color: var(--c-teal); margin-bottom: 1rem; }
.steps__title { font-size: 1.35rem; margin-bottom: .4rem; }
.steps__item p { color: var(--c-muted); margin: 0; }
.steps--compact { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.steps--compact .steps__item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; border-top: 1px solid var(--c-line); padding-top: 1rem; }
.steps--compact .steps__num { font-size: 1.6rem; margin: 0; }

/* Divisions (home capabilities) */
.divisions { border-bottom: 1px solid var(--c-line-light); }
.division { border-top: 1px solid var(--c-line-light); }
.division a { display: grid; grid-template-columns: 3.5rem 1fr 1.5rem; gap: 1rem 2rem; align-items: center; padding-block: 1.6rem; text-decoration: none; transition: padding .18s ease, background-color .18s ease; }
.division a:hover { background: rgba(244, 241, 232, .05); padding-inline: 1rem; }
.division a:hover .icon--arrow { transform: translateX(calc(4px * var(--dir))) scaleX(var(--dir)); }
.division__num { font: 500 1.1rem var(--f-display); color: var(--c-gold); }
.division__name { display: block; font: 500 clamp(1.4rem, 2.6vw, 2.1rem)/1.15 var(--f-display); }
.division__desc { display: block; margin-top: .35rem; color: rgba(244, 241, 232, .8); max-width: 60ch; }
.division .icon { color: var(--c-gold); }
.division-block { margin-bottom: clamp(3rem, 6vw, 5rem); }
.division-block__head { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.division-block__num { font: 500 1.1rem var(--f-display); color: var(--c-teal); margin: .6rem 0 0; }
.division-block h2 a { text-decoration: none; }
.division-block h2 a:hover { text-decoration: underline; }
.division-block .lead { color: var(--c-muted); max-width: 60ch; margin: 0; }

/* Grid and cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--card-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .35rem; transition: border-color .18s ease; }
.card:hover { border-color: var(--c-teal); }
.card__title { font-size: 1.5rem; margin: .4rem 0 .1rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__meta { color: var(--c-muted); font-size: .95rem; margin: 0; }
.card__tagline { font-family: var(--f-display); font-size: 1.1rem; color: var(--c-teal); margin: 0; }
.card__text { color: var(--c-muted); margin: .4rem 0 1rem; }
.card .link-arrow { margin-top: auto; align-self: flex-start; position: relative; }
.card__media { display: block; margin: -1.75rem -1.75rem 1rem; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media--logo { aspect-ratio: auto; padding: 1rem; background: transparent; margin: 0 0 1rem; }
.card__media--logo img { object-fit: contain; max-height: 70px; width: auto; }
.card__media--portrait { aspect-ratio: 4 / 5; }
.card--product { border-top: 3px solid var(--c-teal); }

.badge { display: inline-block; align-self: flex-start; background: var(--c-ink); color: var(--c-gold); font: 700 .75rem/1 var(--f-body); letter-spacing: .08em; padding: .5rem .7rem; border-radius: var(--radius); }
.badge--available { background: var(--c-teal); color: var(--c-cream); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 0; }
.tags li, .tags a { display: inline-block; border: 1px solid var(--c-line); padding: .25rem .75rem; font-size: .88rem; border-radius: 99px; text-decoration: none; background: transparent; }
.tags a:hover { background: var(--c-teal); color: var(--c-cream); border-color: var(--c-teal); }
.tags--filters { margin: 0 0 2rem; }

/* Lists */
.ticks { display: grid; gap: .9rem; }
.ticks li { display: flex; gap: .85rem; align-items: flex-start; }
.ticks .icon { color: var(--c-teal); margin-top: .2rem; }
.defs { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; }
.defs--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.defs--stack { grid-template-columns: 1fr; gap: 1rem; }
.defs__item { border-top: 1px solid var(--c-line); padding-top: .9rem; }
.defs dt { font-weight: 700; margin-bottom: .25rem; }
.defs dd { margin: 0; color: var(--c-muted); }
.presence-group { margin-top: 2.5rem; }
.presence-group__title { font-size: 1.5rem; }

.faq__item { border-top: 1px solid var(--c-line); }
.faq__item:last-child { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.15rem; cursor: pointer; font: 500 1.2rem/1.3 var(--f-display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .icon--plus { transform: rotate(45deg); }
.faq p { margin: 0 0 1.25rem; color: var(--c-muted); max-width: 62ch; }

.article-figure { margin: 0 0 2rem; }
.article-figure img { width: 100%; }

/* CTA band */
.cta-band__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; margin-top: 0; } }
.cta-band .lead { margin: 0; color: rgba(244, 241, 232, .88); max-width: 46ch; }
.cta-band h2 { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--c-ink); color: var(--c-cream); --focus: var(--c-gold); --mark-main: var(--c-cream); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; }
.site-footer .brand { color: var(--c-cream); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-blurb { color: rgba(244, 241, 232, .82); max-width: 36ch; margin-top: 1.25rem; }
.footer-title { font: 600 1rem var(--f-body); letter-spacing: 0; margin-bottom: 1rem; color: var(--c-gold); }
.footer-col .menu { display: grid; gap: .55rem; }
.footer-col a, .footer-base a { text-decoration: none; color: rgba(244, 241, 232, .92); }
.footer-col a:hover, .footer-base a:hover { color: var(--c-gold); text-decoration: underline; }
.menu--inline { display: flex !important; flex-wrap: wrap; gap: .5rem 1.25rem !important; }
.social { margin-top: 1.25rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line-light); font-size: .92rem; color: rgba(244, 241, 232, .8); }
.footer-base p { margin: 0; }

/* Forms */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 4fr 8fr; } }
.contact-details .menu { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.contact-details__label { display: block; font-size: .88rem; color: var(--c-muted); }
.form__grid { display: grid; gap: 1.25rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	width: 100%; padding: .8rem .9rem; font: inherit; color: var(--c-ink); background: #fff;
	border: 1px solid #6b7573; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c-teal); outline-offset: 1px; border-color: var(--c-teal); }
.field [aria-invalid="true"] { border: 2px solid var(--c-error); }
.field__help { font-size: .9rem; color: var(--c-muted); margin: .35rem 0 0; }
.req { color: var(--c-error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.field--choices legend { width: 100%; }
.choice { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--c-teal); flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-inline-start: 4px solid var(--c-teal); background: var(--c-cream); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice p { margin: 0; }
.notice ul { margin-top: .5rem; padding-inline-start: 1.1rem; list-style: disc; }
.notice--error { border-color: var(--c-error); background: #f8ecea; }
.notice--success { border-color: #1f6b3a; background: #e9f3ec; }
.notice--info { background: var(--c-cream); }
.notice:focus { outline: 3px solid var(--c-teal); }

/* 404 */
.not-found { padding-block: clamp(4rem, 10vw, 8rem); }
.not-found__code { font: 500 clamp(5rem, 16vw, 11rem)/1 var(--f-display); color: var(--c-gold); margin: 1rem 0 0; }
.not-found .lead { max-width: 52ch; }

/* Gutenberg alignment helpers */
.alignwide { margin-inline: auto; }
.wp-block-image img { height: auto; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.hero-art__trace { stroke-dashoffset: 0; }
	.hero-art__nodes circle { opacity: 1; }
	.hero-art__nodes path { opacity: .45; }
}
@media print {
	.site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
}

/* Structural hooks without extra styling */
.brand__word { display: inline-block; }
.hero__copy, .division__body, .footer-brand { min-width: 0; }
.rows--audience .row__title { font-size: 1.5rem; }
.form-wrap { max-width: 56rem; }

/* Shared typography and brand treatments. */
:root {
	--c-ink: #172b2a;
	--c-muted: #455956;
	--c-cream: #f7f4ec;
	--c-gold: #d5b674;
	--f-display: Georgia, "Times New Roman", serif;
	--f-body: "Segoe UI", system-ui, sans-serif;
}
body { line-height: 1.7; }
.entry-content a, .prose a { text-decoration: underline; }
.brand__logo--c4 { display: block; height: 52px; width: auto; max-height: none; }
.site-footer .brand__logo--c4 { filter: invert(1); }

/* Manual carousel remains usable by touch, keyboard and anchor navigation. */
.c4-showcase__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.c4-showcase__heading h2 { margin: 0; }
.c4-showcase__controls { display: flex; gap: .5rem; }
.c4-showcase__controls a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-teal); color: var(--c-teal); text-decoration: none; }
.c4-showcase__controls a:hover, .c4-showcase__controls a:focus-visible { background: var(--c-teal); color: white; }
.c4-showcase__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.c4-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--c-teal); color: var(--c-cream); scroll-snap-align: start; --focus: var(--c-gold); }
.c4-slide__copy { padding: clamp(1.5rem, 5vw, 4.5rem); align-self: center; }
.c4-slide__copy p { max-width: 34ch; }
.c4-slide__art { min-height: 14rem; background-color: #0a3335; background-size: cover; }
.c4-slide__art--growth { background-image: repeating-radial-gradient(circle at 70% 85%, transparent 0 22px, #d5b67495 23px 24px, transparent 25px 35px); }
.c4-slide__art--systems { background-image: repeating-linear-gradient(135deg, transparent 0 26px, #d5b67495 27px 28px), repeating-linear-gradient(45deg, transparent 0 42px, #f7f4ec55 43px 44px); }
.c4-slide__art--markets { background-image: repeating-radial-gradient(ellipse at 30% 55%, transparent 0 26px, #d5b67495 27px 28px), repeating-radial-gradient(ellipse at 85% 50%, transparent 0 31px, #f7f4ec48 32px 33px); }
@media (max-width: 640px) {
	.c4-slide { grid-template-columns: 1fr; }
	.c4-slide__art { min-height: 8rem; }
}

/* Allow the homepage to render independently of the opening animation. */
.c4-opening[hidden] { display: none; }
.c4-opening {
	display: grid;
	position: fixed;
	inset: 0;
	z-index: 99999;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	background: radial-gradient(ellipse at center, #176467, #092829 68%);
	color: #f7f4ec;
	touch-action: none;
	animation: c4-reveal 5s both;
}
.c4-opening img {
	width: clamp(110px, 20vw, 210px);
	height: auto;
	filter: invert(1);
	animation: c4-logo-enter 5s both;
}
.c4-opening__rings {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: -1;
	transform: translate(var(--c4-x, 0px), var(--c4-y, 0px));
	transition: transform .2s ease-out;
}
.c4-opening__rings i {
	grid-area: 1 / 1;
	width: min(75vw, 66vh);
	aspect-ratio: 1;
	border: 1px solid #d5b67470;
	border-right: 3px solid #d5b674;
	border-radius: 46%;
	animation: c4-ring 5s both;
}
.c4-opening__rings i:nth-child(2) { width: min(60vw, 53vh); animation-direction: reverse; }
.c4-opening__rings i:nth-child(3) { width: min(45vw, 40vh); border-radius: 34%; opacity: .45; }
.c4-opening__skip {
	position: absolute;
	inset-inline-end: clamp(1rem, 4vw, 3rem);
	inset-block-end: clamp(1.5rem, 5vw, 3rem);
	padding: .65rem 1rem;
	border: 1px solid #d5b674;
	background: #092829;
	color: inherit;
	font: inherit;
	cursor: pointer;
	--focus: #d5b674;
}
@keyframes c4-reveal {
	0%, 85% { opacity: 1; }
	100% { opacity: 0; }
}
@keyframes c4-logo-enter {
	0% { opacity: 0; transform: scale(.65); }
	22% { opacity: 1; transform: scale(1.08); }
	48%, 85% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.12); }
}
@keyframes c4-ring {
	from { transform: rotate(-120deg) scale(.55); }
	to { transform: rotate(150deg) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .c4-opening { display: none; } }

.c4-showcase__toggle {
	padding: .4rem .85rem;
	border: 1px solid var(--c-teal);
	background: transparent;
	color: var(--c-teal);
	font: inherit;
	cursor: pointer;
}
.c4-profile-card {
	padding: clamp(1.2rem, 3vw, 2rem);
	border: 1px solid var(--c-line);
	background: var(--c-white);
}
.c4-profile-card p { color: var(--c-muted); margin: 0; }

.c4-opening.c4-reel { animation: c4-reel-exit 40.5s both; }
.c4-reel .c4-opening__rings i { animation-duration: 40.5s; }
.c4-reel__frames {
	display: grid;
	width: min(88%, 56rem);
	min-height: min(48vh, 27rem);
	perspective: 900px;
}
.c4-reel__frame {
	grid-area: 1 / 1;
	display: grid;
	align-content: center;
	gap: .75rem;
	padding: clamp(1.5rem, 5vw, 4rem);
	border: 1px solid #d5b674aa;
	background: linear-gradient(125deg, #092829, #176467);
	box-shadow: 0 2rem 5rem #0005;
	opacity: 0;
	animation: c4-reel-frame 2.5s calc(var(--frame-index) * 2.5s) both;
}
.c4-reel__frame:nth-child(3n+2) { background: linear-gradient(135deg, #263c39, #52614c); }
.c4-reel__frame:nth-child(3n+3) { background: linear-gradient(135deg, #192c33, #274b59); }
.c4-reel__frame p { color: #ecd29c; margin: 0; }
.c4-reel__frame strong { font: 500 clamp(2rem, 6vw, 5.5rem)/1.06 var(--f-display); }
.c4-reel__frame span { opacity: .92; }
.c4-reel__portfolio {
	position: absolute;
	inset-inline-start: clamp(1rem, 4vw, 3rem);
	inset-block-end: clamp(1.5rem, 5vw, 3rem);
	padding: .65rem 1rem;
	--focus: #d5b674;
}
.c4-work-link { padding-block-end: clamp(2rem, 4vw, 4rem); }
@keyframes c4-reel-frame {
	0% { opacity: 0; transform: translate3d(4%, 7%, -140px) rotateY(-10deg); }
	8%, 94% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0); }
	100% { opacity: 0; transform: translate3d(-4%, -5%, 70px) rotateY(8deg); }
}
@keyframes c4-reel-exit {
	0%, 98.7% { opacity: 1; }
	100% { opacity: 0; }
}

.c4-reel__frames { width: min(91%, 68rem); min-height: min(67vh, 39rem); }
.c4-reel__frame--preview {
	grid-template-rows: minmax(0, 1fr) auto;
	align-content: stretch;
	gap: .65rem;
	padding: clamp(.55rem, 1.4vw, 1rem);
	min-height: 0;
}
.c4-opening .c4-reel__screenshot {
	width: 100%;
	height: min(59vh, 34rem);
	object-fit: cover;
	object-position: center top;
	filter: none;
	animation: none;
	border-radius: 3px;
}
.c4-reel__frame--preview strong { font-size: clamp(1.15rem, 2.4vw, 2rem); }
.c4-reel__frame--preview p, .c4-reel__frame--preview span { display: none; }
