/* ==========================================================================
   HOME – front page (UX Builder). Layout, spacing, backgrounds and column
   widths are UX Builder options; this file only adds decoration and the
   per-section title sizes of the original design.
   Sections: .ag-hero .ag-delivery .ag-services .ag-music .ag-news
             .ag-clients .ag-partners .ag-contact
   ========================================================================== */

/* Hero ---------------------------------------------------------------------- */
.ag-hero .section-bg video { opacity: .75; mix-blend-mode: screen; }
.ag-hero .section-bg:after {
	content: ""; position: absolute; inset: 0; opacity: .11; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
	background-size: 80px 80px;
}

/* How we work ------------------------------------------------------------------ */
.ag-delivery .ag-h2 { font-size: clamp(44px, 5.2vw, 84px); }
@media (min-width: 850px) {
	.ag-sticky > .col-inner { position: sticky; top: 110px; }
}

/* Timeline list (Text element: <ol class="ag-step-list">) */
.ag-step-list { position: relative; margin: 4px 0 0; padding: 0 0 0 45px; list-style: none; counter-reset: none; }
.ag-step-list:before { content: ""; position: absolute; top: 18px; bottom: 38px; left: 16px; border-left: 1px solid #b8b3ad; }
.ag-step-list li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; margin: 0 0 30px; padding: 0 0 30px; border-bottom: 1px solid #cbc6c0; }
.ag-step-list li:last-child { margin-bottom: 0; }
/* Flatsome indents list items (margin-left 1.3em) – the timeline needs them flush so the dots sit on the line */
.col-inner .ag-step-list > li { margin-left: 0; }
.ag-step-list li:before { content: ""; position: absolute; top: 11px; left: -35px; width: 11px; height: 11px; border-radius: 50%; background: var(--ag-red); box-shadow: 0 0 0 7px #efede9; }
.ag-step-list .num { margin: 0; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--ag-red); border-radius: 50%; font-size: 10px; color: var(--ag-red); }
.ag-step-list h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.2; font-weight: 700; }
.ag-step-list p:not(.num) { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ag-muted); }

/* Production engine panel: large background words */
.ag-team > .col-inner { overflow: hidden; }
.ag-team > .col-inner:before {
	content: "STRATEGY  →  EXECUTION"; white-space: nowrap; position: absolute; top: 19px; right: 30px; pointer-events: none;
	font-size: clamp(35px, 6vw, 88px); font-weight: 900; letter-spacing: -.06em; line-height: normal; color: #252525;
}
.ag-team .row { position: relative; z-index: 1; }
.ag-team .ag-kicker { line-height: normal; }
.ag-team .ag-h3 { margin: 0; font-size: clamp(30px, 3.3vw, 48px); line-height: .98; letter-spacing: -.04em; }
body .ag-team .ag-small { margin: 15px 0 0; font-size: 12px; line-height: normal; color: #aaa; }

/* Execution paths (Banner elements) */
.ag-path .banner-bg:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .9)); }
.ag-path .ag-num { margin-bottom: 9px; }
.ag-path h3 { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 700; color: #fff; }
/* Path cards sit 12px apart (row class ag-paths) */
body.ag-site .section-content > .row.ag-paths { padding-left: calc(var(--ag-gutter) - 6px); padding-right: calc(var(--ag-gutter) - 6px); }
.row.ag-paths > .col { padding: 0 6px 12px; }

/* Services --------------------------------------------------------------------- */
.ag-services .ag-h2 { font-size: clamp(32px, 6.1vw, 92px); }
.ag-card .ag-card-img .img-inner { overflow: hidden; }
/* Let the side margins (Column › Margin) narrow the card instead of overflowing */
.ag-card > .col-inner { width: auto; }
.ag-card p { max-width: 520px; margin: 14px 0; font-size: 14px; line-height: 1.85; color: #aaa; }
.ag-card ul { display: grid; gap: 10px; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid #333; list-style: none; font-size: 12px; color: #ddd; }
.col-inner .ag-card ul > li, .ag-card .col-inner ul > li { margin: 0; line-height: normal; }
.ag-card .ag-h3 { margin-bottom: 34px; }
.ag-card li:before { content: "—"; margin-right: 10px; color: var(--ag-red); }
.ag-card .service-detail-link { margin: 28px 0 0; }
.ag-card .service-detail-link a { display: grid; grid-template-columns: minmax(0, 1fr) 48px; background: #fff; color: #111; }
.ag-card .service-detail-link span { padding: 17px 18px; }
.ag-card .service-detail-link b { display: block; font-size: 11px; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; }
.ag-card .service-detail-link small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .05em; font-weight: 700; color: #68605a; }
.ag-card .service-detail-link i { display: grid; place-items: center; border-left: 1px solid #d7d0ca; font-size: 20px; font-style: normal; color: var(--ag-red); }

/* Music ---------------------------------------------------------------------------- */
.ag-music .section-bg-overlay { background: linear-gradient(90deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .66) 64%, rgba(0, 0, 0, .34)), linear-gradient(0deg, rgba(0, 0, 0, .9), transparent 58%) !important; }
.ag-music .ag-h2 { font-size: clamp(30px, 5.6vw, 102px); line-height: .92; }
.ag-music .ag-text.ag-music-lead { max-width: 900px; margin: 30px 0 8px; font-size: 14px; line-height: 1.8; color: #d7d7d7; }
.ag-music-cards .col-inner { height: 100%; min-height: 178px; border: 1px solid rgba(255, 255, 255, .22); }
/* Music cards sit 10px apart */
body.ag-site .section-content > .row.ag-music-cards { padding-left: calc(var(--ag-gutter) - 5px); padding-right: calc(var(--ag-gutter) - 5px); }
.row.ag-music-cards > .col { padding: 0 5px 10px; }
.ag-music-cards .ag-num { margin-bottom: 25px; font-size: 11px; }
.ag-music-cards h3 { margin: 0 0 13px; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.ag-music-cards .col .ag-small { font-size: 11px; }
.ag-music-cta { margin: 26px 0 0; font-size: 15px; line-height: 1.7; color: #d8d8d8; }
body .ag-music .button.ag-music-btn { min-width: 270px; margin: 0; }
.ag-music-cta strong { display: block; margin-bottom: 8px; font-size: clamp(21px, 2vw, 30px); line-height: 1.28; letter-spacing: -.025em; color: #fff; }

/* News preview -------------------------------------------------------------------------- */
.ag-news .ag-h2, .ag-clients .ag-h2, .ag-partners .ag-h2 { font-size: clamp(48px, 5.9vw, 85px); line-height: .9; font-weight: 700; }
.ag-news-row { margin-top: 30px; border-top: 1px solid var(--ag-ink); border-bottom: 1px solid var(--ag-ink); }
.ag-news-row > .col { padding-bottom: 0; }
body.ag-site .section-content > .row.ag-news-row:last-child { margin-bottom: 0; }
.ag-news-row > .col > .col-inner { padding: 28px 0; }
.ag-news-row .ag-news-date { font-size: 10px; letter-spacing: .1em; }
.ag-news-row h3 { margin: 0; font-size: 17px; line-height: 1.58; font-weight: 700; }
.ag-news-row a:hover { color: var(--ag-red); }
.ag-news-row .ag-num { margin: 0; font-size: 18px; }

/* Logos (UX Slider with free scroll + autoplay) -------------------------------------------- */
.ag-logos > .col-inner { border: 1px solid var(--ag-line); }
.ag-logo-slider .flickity-slider > * { width: auto !important; margin: 0 !important; }
.ag-logo-slider .ag-logo img { height: 82px; width: auto; max-width: none; }
.ag-logo-slider .ag-logo-lg img { height: 92px; }
.ag-logo-slider .img-inner { padding: 0 !important; }

/* Contact ---------------------------------------------------------------------------------- */
.ag-contact .ag-h2 { font-size: clamp(32px, 6.8vw, 100px); }

/* Tablet + phone (≤850px in the original) ---------------------------------------------------- */
@media (max-width: 849px) {
	/* Side gutter 22px (How we work keeps 5vw) */
	.ag-hero, .ag-services, .ag-music, .ag-news, .ag-clients, .ag-partners, .ag-contact { --ag-gutter: 22px; }
	/* Hero: 540px, content at the bottom (Flatsome 3.17 has no per-device Section height) */
	.ag-hero, .ag-hero.is-full-height { height: auto !important; min-height: 540px !important; }
	.ag-hero.section { align-items: flex-end; padding-top: 74px !important; padding-bottom: 34px !important; }
	.ag-hero .ag-hero-title { font-size: clamp(39px, 10.8vw, 56px); }
	.ag-services .ag-h2, .ag-contact .ag-h2 { font-size: clamp(43px, 11vw, 64px); }
	.ag-card .ag-h3 { font-size: 36px; }
	.ag-music .ag-h2 { font-size: clamp(38px, 10vw, 62px); }
	.ag-music-cards .col-inner { min-height: 170px; }
	body .ag-delivery .ag-text { margin-top: 34px; }
	.ag-step-list { padding-left: 38px; }
	.ag-step-list:before { left: 12px; }
	.ag-step-list li { grid-template-columns: 42px minmax(0, 1fr); }
	.ag-step-list li:before { left: -31px; }
	.ag-logo-slider .ag-logo img { height: 58px; }
	.ag-logo-slider .ag-logo-lg img { height: 65px; }
	.ag-logos .is-divider { margin-top: 18px !important; margin-bottom: 18px !important; }
	.ag-news .text-right { text-align: left; }
	.ag-news-row { margin-top: 10px; }
	.ag-news-row h3 { font-size: 14px; line-height: normal; }
	body .ag-contact .ag-contact-link { margin-top: 15px; }
}
/* Phone (≤480px in the original) ------------------------------------------------------------- */
@media (max-width: 549px) {
	/* Original mobile sizes (Flatsome 3.17 has no per-device Section height) */
	/* Content sits at the bottom of the hero; buttons stack */
	.ag-hero, .ag-hero.is-full-height { min-height: 470px !important; }
	.ag-hero.section { padding-top: 68px !important; padding-bottom: 28px !important; }
	.ag-hero .ag-hero-title { font-size: clamp(30px, 9.6vw, 36px); }
	.ag-hero .button.ag-btn { display: flex; width: max-content; margin: 0 0 14px; }
	.ag-hero .button.ag-btn-link { display: flex; width: max-content; margin: 0; line-height: 19px; }
	.ag-delivery .ag-h2 { font-size: clamp(32px, 16vw - 16px, 44px); }
	.ag-services .ag-h2 { font-size: clamp(36px, 11.5vw, 43px); }
	.ag-music .ag-h2 { font-size: clamp(30px, 10.2vw, 38px); }
	.ag-news .ag-h2, .ag-clients .ag-h2, .ag-partners .ag-h2 { font-size: clamp(34px, 12.8vw, 48px); }
	.ag-contact .ag-h2 { font-size: clamp(32px, 11.5vw, 43px); }
	/* "How we work" uses a 24px side gutter on phones in the original */
	.ag-delivery { --ag-gutter: 24px; }
	.ag-team .ag-h3 { font-size: 24px; }
	body .ag-team .ag-small { font-size: 11px; }
	.ag-path h3 { font-size: 13px; }
	.ag-card .ag-h3 { font-size: clamp(26px, 9.6vw, 36px); }
}

/* Music CTA button: full width when stacked (tablet + phone) */
@media (max-width: 849px) {
	body .ag-music .button.ag-music-btn { width: 100%; min-width: 0; margin-top: 10px; white-space: normal; line-height: 17px; padding: 16px 18px; text-align: left; }
}
@media (max-width: 549px) {
	.ag-music-cards .col-inner { min-height: 0; }
}
