/* ==========================================================================
   UI KIT – classes added in UX Builder ("Class" field) on Text / Title /
   Button elements. They only style type and small details; layout, colours of
   columns and spacing stay in UX Builder options.

   Text:    ag-eyebrow · ag-hero-title · ag-h2 · ag-h2-xl · ag-h3 · ag-text ·
            ag-small · ag-num · ag-kicker · ag-note · ag-contact-link
   Title:   ag-label          (UX Builder › Title, style "Normal")
   Button:  ag-btn · ag-btn-link · ag-btn-underline
   ========================================================================== */

body .ag-eyebrow { margin: 0 0 30px; font-size: 11px; line-height: normal; letter-spacing: .2em; font-weight: 700; }
body .ag-eyebrow i { display: inline-block; width: 38px; height: 1px; margin: 0 13px; vertical-align: middle; background: var(--ag-red); }
body .ag-hero-title { margin: 0; font-size: var(--ag-fs-hero); line-height: .88; letter-spacing: -.07em; font-weight: 900; color: #fff; }
body .ag-h2 { margin: 0; font-size: var(--ag-fs-h2); line-height: .88; letter-spacing: -.07em; font-weight: 900; }
body .ag-h2-xl { font-size: var(--ag-fs-display); }
body .ag-h3 { margin: 0 0 22px; font-size: var(--ag-fs-h3); line-height: .98; letter-spacing: -.04em; font-weight: 700; }
body .ag-text { margin: 34px 0 15px; max-width: 570px; font-size: var(--ag-fs-body); line-height: 1.9; color: var(--ag-muted); }
body .dark .ag-text { color: #aaa; }
body .ag-small { margin: 0; font-size: var(--ag-fs-small); line-height: 1.65; color: var(--ag-muted); }
body .dark .ag-small { color: #bdbdbd; }
body .ag-num { margin: 0 0 9px; font-size: 10px; line-height: normal; letter-spacing: .1em; font-weight: 800; color: var(--ag-red); }
body .ag-kicker { margin: 0 0 18px; font-size: 9px; letter-spacing: .18em; font-weight: 800; color: var(--ag-red); }
body .ag-note { margin: 18px 0 0; font-size: 10px; line-height: 1.7; color: var(--ag-muted); }

body .ag-h2-sub { font-size: clamp(32px, 5vw, 72px); line-height: .95; letter-spacing: -.055em; font-weight: 700; }
body .ag-h4 { margin: 0; font-size: clamp(22px, 2vw, 29px); line-height: 1.2; font-weight: 700; }
body .ag-h5 { margin: 20px 0 12px; font-size: 17px; line-height: 1.2; font-weight: 700; }
body .ag-text.ag-text-flush { margin-top: 0; }
body .ag-text-sm { font-size: 14px; }
body .ag-eyebrow-muted { color: #aaa; }
body .ag-page-title { margin: 0; font-size: var(--ag-fs-page); line-height: .86; letter-spacing: -.07em; font-weight: 700; color: #fff; }
body .ag-page-lead { max-width: 620px; margin: 24px 0 0; font-size: 14px; line-height: 1.75; color: #c0c0c0; }
body .ag-pagehero .ag-eyebrow { margin-bottom: 20px; color: #fff; }
body .button.ag-btn.ag-btn-sm { padding: 0 19px; min-width: 205px; line-height: 49px; min-height: 49px; margin: 0; font-size: 10px; letter-spacing: .1em; }

/* Data table (Text element: <table class="ag-table">) */
body .ag-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--ag-line); }
body .ag-table th, body .ag-table td { padding: 15px 0; border: 0; border-bottom: 1px solid var(--ag-line); font-size: 12px; line-height: 1.6; text-align: left; vertical-align: top; letter-spacing: 0; text-transform: none; color: var(--ag-ink); }
body .ag-table th { width: 110px; font-weight: 400; color: var(--ag-muted); }

/* Page hero banner (Banner element in section.ag-pagehero) */
.ag-hero-banner .overlay, .ag-hero-banner .banner-bg .overlay { background: linear-gradient(90deg, rgba(4, 4, 4, .96) 0%, rgba(4, 4, 4, .82) 43%, rgba(4, 4, 4, .32) 72%, rgba(4, 4, 4, .48) 100%), linear-gradient(0deg, rgba(4, 4, 4, .55), transparent 58%) !important; }
.ag-hero-banner .bg { filter: saturate(.78) contrast(1.04); }
.ag-hero-banner:after { content: ""; position: absolute; z-index: 3; left: 7%; bottom: 0; width: 78px; height: 3px; background: var(--ag-red); }

/* Sub pages use the wider 6vw gutter */
.ag-sub { --ag-gutter: var(--ag-gutter-sub); }
/* Columns inside a row.ag-boxed are framed by 1px lines (company table blocks) */
.ag-boxed > .col > .col-inner { outline: 1px solid var(--ag-ink); }
.ag-boxed > .col + .col { margin-top: 1px; }

/* Title element used as the small section label: "HOW WE WORK ———" */
body .ag-label { margin-bottom: 0; }
body .ag-label .section-title { justify-content: flex-start; margin: 0; padding: 0; border: 0; font-size: 11px; line-height: normal; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
body .ag-label .section-title b { display: none; }
body .ag-label .section-title-main { padding: 0; border: 0; margin: 0; display: flex; align-items: center; gap: 16px; }
body .ag-label .section-title-main:after { content: ""; width: 110px; height: 1px; background: #aaa; }
body .dark .ag-label .section-title-main:after { background: rgba(255, 255, 255, .35); }

/* Buttons – shape/colour come from the Button options; these add the original type and arrow colour */
body .button.ag-btn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 190px;
	margin: 0 30px 0 0; padding: 0 20px; line-height: 48px; min-height: 50px; border-width: 1px;
	font-size: 12px; letter-spacing: .09em; font-weight: 800; text-transform: uppercase;
}
body .button.ag-btn i, body .button.ag-btn-link i, body .button.ag-btn-underline i { color: var(--ag-red); top: 0; }
body .button.ag-btn-link { margin: 0; padding: 0; border-width: 0; min-height: 0; line-height: 50px; font-size: 12px; letter-spacing: .08em; font-weight: 700; text-transform: none; }
body .button.ag-btn-underline { margin: 0; padding: 0 0 8px; border-style: solid; min-height: 0; line-height: normal; border-width: 0 0 1px; font-size: 10px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }

/* "PROJECT INQUIRIES / Contact form ↗" link */
/* Section CTA ("Start a project", music): 1px border, 18px side padding */
body .button.ag-btn.ag-btn-cta { gap: 42px; min-width: 190px; padding: 0 18px; line-height: 49px; min-height: 51px; font-size: 11px; letter-spacing: .1em; }

body .ag-contact-link { margin: 0; }
body .ag-contact-link a {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 26px 0;
	border-top: 1px solid var(--ag-ink); border-bottom: 1px solid var(--ag-ink);
	font-size: clamp(17px, 1.8vw, 25px); line-height: 40px; color: var(--ag-ink);
}
body .ag-contact-link span { grid-column: 1 / -1; margin-bottom: 15px; font-size: 9px; line-height: normal; letter-spacing: .18em; color: var(--ag-muted); }
body .ag-contact-link b { color: var(--ag-red); }

@media (max-width: 849px) {
	body .ag-page-lead { margin-top: 20px; font-size: 13px; }
	body .ag-page-title { font-size: clamp(46px, 13vw, 66px); }
}
@media (max-width: 549px) {
	body .ag-page-title { font-size: clamp(36px, 10.5vw, 48px); }
}
@media (max-width: 549px) {
	body .ag-text { margin-top: 24px; }
	body .ag-contact-link a { line-height: normal; }
	body .button.ag-btn { min-width: 158px; padding: 0 15px; line-height: 38px; min-height: 40px; margin-right: 20px; }
	body .button.ag-btn.ag-btn-cta { min-width: 190px; padding: 0 18px; line-height: 49px; min-height: 51px; }
	body .button.ag-btn.ag-btn-sm { padding: 0 19px; }
}

/* ==========================================================================
   TEMPLATE COMPONENTS – used by the PHP templates (News, Field Notes).
   4. Page hero · 5. Sub page container · 6. Meta line · 8. Pagination
   ========================================================================== */

/* 4. Page hero (PHP templates: .ag-page-hero) -------------------------------- */
.ag-page-hero {
	position: relative; overflow: hidden; min-height: 470px;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 138px var(--ag-hero-gutter) 58px; background: var(--ag-black); color: #fff;
}
.ag-page-hero__bg {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.04);
}
.ag-page-hero:before {
	content: ""; position: absolute; z-index: 1; inset: 0;
	background: linear-gradient(90deg, rgba(4, 4, 4, .96) 0%, rgba(4, 4, 4, .82) 43%, rgba(4, 4, 4, .32) 72%, rgba(4, 4, 4, .48) 100%),
	            linear-gradient(0deg, rgba(4, 4, 4, .55), transparent 58%);
}
.ag-page-hero:after {
	content: ""; position: absolute; z-index: 1; left: var(--ag-hero-gutter); bottom: 0;
	width: 78px; height: 3px; background: var(--ag-red);
}
.ag-page-hero > *:not(img) { position: relative; z-index: 2; }
.ag-page-hero .ag-eyebrow { margin-bottom: 20px; }
.ag-page-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 6.2vw, 88px); line-height: .86; letter-spacing: -.07em; font-weight: 700; }
.ag-page-hero .ag-page-hero__text { font-size: 14px; line-height: 1.75; color: #c0c0c0; max-width: 620px; margin: 24px 0 0; }
.hero-field-notes .ag-page-hero__bg { object-position: center 58%; }
.hero-news .ag-page-hero__bg { object-position: center 50%; }

/* 5. Sub page container ----------------------------------------------------- */
.ag-tpl.page-wrapper { padding: 0; }
.ag-subpage { max-width: var(--ag-max); margin: 0 auto; padding: 100px var(--ag-gutter-sub); }

/* 6. Meta line --------------------------------------------------------------- */
.ag-note-meta { display: flex; align-items: center; gap: 18px; font-size: 9px; letter-spacing: .13em; font-weight: 800; }
.ag-note-meta span { color: var(--ag-red); }

/* 8. Pagination / empty ------------------------------------------------------ */
.ag-tpl .pagination, .ag-tpl .nav-links { display: flex; gap: 10px; margin-top: 50px; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.ag-tpl .nav-links .page-numbers { padding: 8px 12px; border: 1px solid var(--ag-ink); }
.ag-tpl .nav-links .current { background: var(--ag-ink); color: #fff; }
.ag-empty { padding: 60px 0; color: var(--ag-muted); font-size: 14px; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 849px) {
	.ag-page-hero { min-height: 320px; padding: 80px 22px 30px; }
	.ag-page-hero h1 { font-size: clamp(46px, 13vw, 66px); }
	.ag-page-hero .ag-page-hero__text { margin-top: 20px; font-size: 13px; }
}
@media (max-width: 549px) {
	.ag-page-hero { min-height: 290px; padding: 70px 22px 26px; }
	.ag-page-hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
}
/* ≤850px: 22px side padding, as in the original */
@media (max-width: 850px) {
	.ag-page-hero:after { left: 22px; }
	.ag-subpage { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 700px) {
	.ag-subpage { padding-top: 64px; padding-bottom: 84px; }
}

