/* ==========================================================================
   ARTAGALLERY Studio — page sections
   Home cards & snapshots, expertise, about, services, project detail.
   ========================================================================== */

/* ---------- Home: Creative / Production cards ---------- */
.ag-cards { display: grid; gap: 16px; }
.ag-card {
	position: relative; display: block; overflow: hidden; isolation: isolate;
	background: var(--ag-ink); color: var(--ag-white) !important; min-height: 440px;
}
.ag-card__media, .ag-card__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; }
.ag-card__media img { object-fit: cover; transition: transform 1.2s var(--ag-ease), opacity .6s; opacity: .82; }
.ag-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12, 12, 13, 0.1) 0%, rgba(12, 12, 13, 0.25) 40%, rgba(12, 12, 13, 0.88) 100%);
}
.ag-card__body { position: absolute; inset: auto 0 0 0; padding: 28px 24px; }
.ag-card__index { display: block; margin-bottom: 16px; font-family: var(--ag-font-mono); font-size: var(--ag-fs-label); letter-spacing: .16em; color: var(--ag-gold-light); }
.ag-card__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 300 !important; letter-spacing: -0.03em; }
.ag-card__meta { margin: 10px 0 0 !important; font-family: var(--ag-font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-gold-light); }
.ag-card__text { margin: 14px 0 18px !important; color: rgba(255, 255, 255, 0.74); max-width: 42ch; }
.ag-card:hover .ag-card__media img { transform: scale(1.04); opacity: .95; }

@media (min-width: 768px) {
	.ag-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
	.ag-card { min-height: 0; aspect-ratio: 4 / 5; }
	.ag-card__body { padding: 40px; }
}
@media (min-width: 1280px) {
	.ag-card { aspect-ratio: 5 / 6; }
}

/* ---------- Snapshot lists ---------- */
.ag-skill-cols { display: grid; gap: 28px; margin: 36px 0 28px; }
@media (min-width: 768px) { .ag-skill-cols { grid-template-columns: repeat(3, 1fr); } }
.ag-taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-taglist li {
	padding: 7px 12px; border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
	font-size: 0.875rem; line-height: 1.3; background: rgba(255, 255, 255, 0.5);
}
.ag-taglist li.is-gold { border-color: rgba(184, 151, 90, 0.6); color: var(--ag-gold-deep); }
.ag-taglist--large { margin-bottom: 28px !important; }
.ag-taglist--large li { font-size: 1rem; padding: 10px 16px; }

/* ---------- Media + text split ---------- */
.ag-media-split { display: grid; gap: 32px; align-items: center; }
.ag-media-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) {
	.ag-media-split { grid-template-columns: 6fr 5fr; gap: 80px; }
}
.ag-linklist { margin-top: 28px !important; border-top: 1px solid var(--ag-line); }
.ag-linklist a { display: grid; gap: 4px; padding: 18px 28px 18px 0; border-bottom: 1px solid var(--ag-line); position: relative; }
.ag-linklist a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--ag-gold-deep); transition: transform .3s var(--ag-ease); }
.ag-linklist a:hover::after { transform: translate(4px, -50%); }
.ag-linklist span { font-family: var(--ag-font-head); font-size: 1.25rem; }
.ag-linklist small { color: var(--ag-muted); font-size: 0.9375rem; }

/* ---------- Expertise ---------- */
.ag-exp-group { display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--ag-line); scroll-margin-top: calc(var(--ag-header-h) + 20px); }
.ag-exp-group:first-child { border-top: 0; padding-top: 0; }
.ag-exp-group__title { font-size: var(--ag-fs-h2); font-weight: 300 !important; display: flex; flex-direction: column; gap: 14px; }
.ag-exp-group__title .ag-num { font-family: var(--ag-font-mono); font-size: var(--ag-fs-label); letter-spacing: .16em; }
.ag-exp-list { display: grid; gap: 0; }
.ag-exp-item { padding: 20px 0; border-bottom: 1px solid var(--ag-line); }
.ag-exp-item:first-child { border-top: 1px solid var(--ag-line); }
.ag-exp-item dt { font-family: var(--ag-font-head); font-size: 1.3125rem; margin-bottom: 6px; }
.ag-exp-item dd { color: var(--ag-muted); }
@media (min-width: 768px) {
	.ag-exp-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.ag-exp-item:nth-child(2) { border-top: 1px solid var(--ag-line); }
}
@media (min-width: 1024px) {
	.ag-exp-group { grid-template-columns: minmax(200px, 3fr) 9fr; gap: 48px; padding: 56px 0; }
}

/* ---------- AI workflow band ---------- */
.ag-ai { overflow: hidden; isolation: isolate; }
.ag-ai .ag-mesh { opacity: .4; }
.ag-ai .ag-h2 { color: var(--ag-white); }

/* ---------- Steps (process / workflow) ---------- */
.ag-steps { display: grid; gap: 0; counter-reset: step; }
.ag-step { position: relative; padding: 24px 0 24px 56px; border-top: 1px solid var(--ag-line); }
.ag-section--dark .ag-step { border-top-color: var(--ag-line-dark); }
.ag-step__num { position: absolute; left: 0; top: 26px; font-family: var(--ag-font-mono); font-size: 0.75rem; letter-spacing: .12em; color: var(--ag-gold-deep); }
.ag-section--dark .ag-step__num { color: var(--ag-gold); }
.ag-step__title { font-size: 1.25rem; margin-bottom: 8px !important; }
.ag-step p { color: var(--ag-muted); margin: 0 !important; font-size: 0.9375rem; }
.ag-section--dark .ag-step p { color: var(--ag-muted-dark); }
.ag-steps--row { margin-top: 48px !important; }
@media (min-width: 768px) {
	.ag-steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1024px) {
	.ag-steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); column-gap: 32px; }
	.ag-step { padding: 28px 0 0; border-top-width: 1px; }
	.ag-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--ag-gold); }
	.ag-step__num { position: static; display: block; margin-bottom: 18px; }
}

/* ---------- Services ---------- */
.ag-cap-grid { display: grid; gap: 0; }
.ag-cap { padding: 22px 0; border-top: 1px solid var(--ag-line); }
.ag-cap__title { font-size: 1.25rem; margin-bottom: 8px !important; }
.ag-cap p { color: var(--ag-muted); margin: 0 !important; }
@media (min-width: 768px) { .ag-cap-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1024px) { .ag-cap-grid { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } .ag-cap { padding: 28px 0 32px; } }

.ag-spec-table > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--ag-line); }
.ag-spec-table > div:first-child { border-top: 1px solid var(--ag-line); }
.ag-spec-table dt { font-family: var(--ag-font-mono); font-size: var(--ag-fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ag-muted); }
@media (min-width: 768px) {
	.ag-spec-table:not(.ag-spec-table--stacked) > div { grid-template-columns: 220px 1fr; gap: 24px; }
	.ag-spec-table:not(.ag-spec-table--stacked) dt { padding-top: 4px; }
}

.ag-hire { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid var(--ag-line); }
.ag-hire__links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
@media (min-width: 1024px) { .ag-hire { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Family overview rows */
.ag-services { display: grid; gap: 56px; }
.ag-service-row__link { display: grid; gap: 24px; align-items: center; }
.ag-service-row__media { overflow: hidden; background: var(--ag-stone); }
.ag-service-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ag-ease); }
.ag-service-row__link:hover img { transform: scale(1.03); }
.ag-service-row__num { display: block; font-family: var(--ag-font-mono); font-size: 0.75rem; letter-spacing: .14em; color: var(--ag-gold-deep); margin-bottom: 14px; }
.ag-service-row__title { font-size: var(--ag-fs-h2); font-weight: 300 !important; margin-bottom: 14px !important; }
.ag-service-row__body p { color: var(--ag-muted); max-width: 46ch; }
@media (min-width: 1024px) {
	.ag-services { gap: 96px; }
	.ag-service-row__link { grid-template-columns: 7fr 5fr; gap: 72px; }
	.ag-service-row:nth-child(even) .ag-service-row__media { order: 2; }
}

/* ---------- About ---------- */
.ag-timeline { border-left: 1px solid var(--ag-line); }
.ag-timeline li { position: relative; padding: 0 0 32px 28px; }
.ag-timeline li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; background: var(--ag-gold); transform: rotate(45deg); }
.ag-timeline__role { font-family: var(--ag-font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-gold-deep); margin-bottom: 6px !important; }
.ag-timeline p { color: var(--ag-muted); }
.ag-stack { display: grid; gap: 32px; }
.ag-stack__col ul { border-top: 1px solid rgba(23, 23, 26, 0.16); }
.ag-stack__col li { padding: 12px 0; border-bottom: 1px solid rgba(23, 23, 26, 0.1); font-family: var(--ag-font-head); font-size: 1.125rem; }
@media (min-width: 768px) { .ag-stack { grid-template-columns: repeat(3, 1fr); } }
.ag-view-about .ag-hero__visual img { aspect-ratio: 4 / 5; }
@media (max-width: 767px) { .ag-view-about .ag-hero__visual { max-width: 340px; } }

/* ---------- Project detail ---------- */
.ag-project__cover { margin-top: clamp(-80px, -6vw, -40px) !important; position: relative; z-index: 2; }
.ag-project__cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.ag-project__body { display: grid; gap: 40px; }
.ag-project__facts .ag-btn { margin-top: 24px; }
@media (min-width: 1024px) {
	.ag-project__body { grid-template-columns: 4fr 8fr; gap: 80px; }
	.ag-project__facts { position: sticky; top: calc(var(--ag-header-h) + 32px); align-self: start; }
}
.ag-pgallery { display: grid; gap: 12px; }
.ag-pgallery__item { display: block; overflow: hidden; background: var(--ag-stone); }
.ag-pgallery__item img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--ag-ease); }
.ag-pgallery__item:hover img { transform: scale(1.02); }
@media (min-width: 768px) {
	.ag-pgallery { grid-template-columns: 1fr 1fr; gap: 16px; }
	.ag-pgallery__item.is-wide { grid-column: 1 / -1; }
}
.ag-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-block: 40px var(--ag-section-tight); border-top: 1px solid var(--ag-line); }
.ag-pager a { display: grid; gap: 4px; font-family: var(--ag-font-head); font-size: 1.0625rem; }
.ag-pager small { font-family: var(--ag-font-mono); font-size: var(--ag-fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ag-muted); }
.ag-pager .is-next { text-align: right; }
.ag-pager__all { font-family: var(--ag-font-mono) !important; font-size: 0.75rem !important; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 767px) {
	.ag-pager { grid-template-columns: 1fr 1fr; }
	.ag-pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
.ag-crumbs { font-family: var(--ag-font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-muted-dark); margin-bottom: 28px !important; }
.ag-crumbs a { color: var(--ag-gold-light); }
.ag-empty { color: var(--ag-muted-dark); text-align: center; padding: 40px 0; }
