/* Business and partnership presentation. Local documentary photos lead the layout. */
body.aigroup-site {
  --ag-ink: #20313e; --ag-muted: #64717b; --ag-blue: #244e6a; --ag-blue-dark: #18394f;
  --ag-line: #dde3e6; --ag-paper: #f5f7f7; --ag-soft: #edf2f4;
  --ag-button-bg: #244e6a; --ag-button-hover: #18394f;
}
html[data-ag-theme="dark"] body.aigroup-site {
  --ag-ink: #edf2f5; --ag-muted: #a8b6c1; --ag-blue: #9fc7df; --ag-blue-dark: #c6e1f0;
  --ag-line: #2d414f; --ag-paper: #13232e; --ag-soft: #203747;
  --ag-button-bg: #315e7a; --ag-button-hover: #417694;
}
.aigroup-site .ag-button { border-radius: 4px; }
.aigroup-site .ag-button-primary { background: var(--ag-button-bg); border-color: var(--ag-button-bg); }
.aigroup-site .ag-button-primary:hover { background: var(--ag-button-hover); border-color: var(--ag-button-hover); }
.aigroup-site .ag-eyebrow { color: #96652f; font-weight: 600; font-size: 10px; letter-spacing: 1.45px; }
.ag-eyebrow::before { width: 22px; height: 2px; border-radius: 0; }
html[data-ag-theme="dark"] .ag-eyebrow { color: #dfb780; }
.aigroup-site .ag-section-head h2 { line-height: 1.35; letter-spacing: -.04em; }
.aigroup-site .ag-section-intro { max-width: 375px; font-size: 15px; line-height: 1.9; }
.ag-business-strip { background: var(--ag-surface); border-bottom: 1px solid var(--ag-line); }
.ag-business-strip > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-business-strip a { display: flex; align-items: center; gap: 14px; min-height: 90px; padding: 18px 22px; border-left: 1px solid var(--ag-line); }
.ag-business-strip a:last-child { border-right: 1px solid var(--ag-line); }
.ag-business-strip a > span { font-size: 10px; color: var(--ag-muted); }
.ag-business-strip strong { font-size: 13px; font-weight: 600; line-height: 1.7; }
.ag-business-strip svg { width: 16px; height: 16px; margin-left: auto; color: var(--ag-blue); }
.ag-business-strip a:hover { background: var(--ag-paper); }
.ag-operations-section { background: var(--ag-paper); }
.ag-operations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ag-operation-card { min-width: 0; background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 6px; overflow: hidden; }
.ag-operation-card > .ag-photo-frame { border-radius: 0; }
.ag-operation-card > div { padding: 24px; }
.aigroup-site .ag-operation-card h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.5; }
.ag-operation-card p { margin: 0 0 18px; color: var(--ag-muted); font-size: 14px; line-height: 1.85; }
.ag-detail-photo { margin: 0; min-width: 0; scroll-margin-top: 125px; }
.ag-detail-photo-caption { display: grid; gap: 5px; padding: 14px 0 20px; font-size: 12px; line-height: 1.8; color: var(--ag-muted); }
.ag-detail-photo-caption strong { font-size: 14px; }
.ag-detail-photo-caption a { width: fit-content; }
.ag-article-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ag-cooperation-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ag-cooperation-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--ag-line); border-radius: 6px; background: var(--ag-surface); }
.ag-cooperation-card > .ag-photo-frame { border-radius: 0; }
.ag-cooperation-card > div:last-child { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px; }
.aigroup-site .ag-cooperation-card h3 { font-size: 22px; line-height: 1.45; }
.ag-cooperation-card p { margin-top: 14px; color: var(--ag-muted); font-size: 14px; line-height: 1.85; }
.ag-cooperation-card ul { margin: 20px 0 25px; padding: 0; list-style: none; width: 100%; }
.ag-cooperation-card li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--ag-line); color: var(--ag-muted); font-size: 12px; }
.ag-cooperation-card .ag-card-link { margin-top: auto; }
.ag-technology-note { margin-bottom: 70px; background: var(--ag-paper); border-block: 1px solid var(--ag-line); padding-block: 36px; }
.ag-technology-note > div { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ag-technology-note > div > div { max-width: 780px; }
.aigroup-site .ag-technology-note h2 { margin-top: 12px; font-size: 24px; line-height: 1.5; }
.ag-technology-note p:not(.ag-eyebrow) { margin-top: 10px; color: var(--ag-muted); font-size: 14px; }
.ag-technology-note .ag-card-link { flex-shrink: 0; }
.ag-photo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ag-photo-split > * { min-width: 0; }
.ag-photo-split h2 { margin-top: 17px; font-size: clamp(28px, 3vw, 40px); line-height: 1.4; }
.ag-photo-split > div > p:not(.ag-eyebrow) { margin-top: 19px; color: var(--ag-muted); font-size: 15px; line-height: 1.95; }
.ag-photo-split > div > .ag-lead { font-size: 17px; }
.ag-photo-split .ag-card-link { margin-top: 26px; }
.ag-photo-split > div > .ag-check-list { margin-top: 25px; }
.ag-photo-split .ag-page-heading > .ag-button { margin-top: 26px; }
.ag-photo-frame { position: relative; display: block; aspect-ratio: 3 / 2; margin: 0; overflow: hidden; border-radius: 6px; background: var(--ag-paper); }
.ag-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-photo-frame figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 35px 20px 16px; color: #fff; background: linear-gradient(transparent, rgb(11 27 39 / 75%)); font-size: 11px; line-height: 1.8; }
.ag-photo-collage { position: relative; }
.ag-collage-main { aspect-ratio: 5 / 4; }
.ag-collage-detail { position: absolute; width: 59%; bottom: 0; left: 0; aspect-ratio: 4 / 3; border: 6px solid var(--ag-surface); }
.ag-collage-detail figcaption { font-size: 10px; padding-inline: 14px; }
.ag-cooperation-points { margin-top: 25px; border-top: 1px solid var(--ag-line); }
.ag-cooperation-points > div { display: flex; align-items: flex-start; gap: 17px; padding-block: 16px; border-bottom: 1px solid var(--ag-line); }
.ag-cooperation-points > div > span { padding-top: 2px; color: #96652f; font-size: 10px; }
.ag-cooperation-points p { color: var(--ag-muted); font-size: 13px; line-height: 1.8; }
.ag-cooperation-points strong { display: block; margin-bottom: 3px; color: var(--ag-ink); font-size: 14px; font-weight: 600; }
.ag-business-services { background: var(--ag-paper); border-block: 1px solid var(--ag-line); }
.aigroup-site .ag-service-card-photo { padding: 0; min-height: 0; border-radius: 6px; overflow: hidden; background: var(--ag-surface); }
.ag-service-cover { position: relative; flex-shrink: 0; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.ag-service-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ag-service-card:hover .ag-service-cover img { transform: scale(1.025); }
.ag-service-number { position: absolute; bottom: 0; left: 0; display: grid; place-items: center; width: 38px; height: 33px; background: #244e6a; color: #fff; font-size: 10px; }
.ag-service-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; width: 100%; padding: 25px 23px; }
.aigroup-site .ag-service-card-photo h3 { font-size: 19px; line-height: 1.5; margin-bottom: 12px; }
.aigroup-site .ag-service-card-photo p { font-size: 14px; line-height: 1.85; margin-bottom: 23px; }
.ag-service-card-body .ag-card-link { padding-top: 0; font-size: 12px; }
.ag-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.ag-gallery-item { min-width: 0; }
.ag-gallery-item .ag-photo-frame { aspect-ratio: 3 / 2; border-radius: 5px; }
.ag-gallery-item > figcaption { margin-top: 16px; }
.ag-gallery-item > figcaption > span { display: block; color: #96652f; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.ag-gallery-item > figcaption > strong { display: block; margin-top: 5px; color: var(--ag-ink); font-size: 16px; font-weight: 600; line-height: 1.6; }
.ag-industry-card { border: 1px solid var(--ag-line); border-radius: 6px; background: var(--ag-surface); overflow: hidden; }
.ag-industry-card .ag-photo-frame { border-radius: 0; }
.ag-industry-card > figcaption { margin: 0 !important; padding: 22px; }
.ag-industry-card > figcaption > span { text-transform: uppercase; }
.ag-industry-card figcaption p { margin-top: 7px; color: var(--ag-muted); font-size: 12px; line-height: 1.8; }
.aigroup-site .ag-industry-source { display: block; margin-top: 10px; color: var(--ag-muted); font-size: 11px; text-decoration: underline; }
.ag-industry-card .ag-card-link { display: flex; width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ag-line); font-size: 12px; }
.ag-gallery-more { display: flex; justify-content: center; margin-top: 30px; }
.ag-gallery-more:has(> [hidden]) { margin-top: 0; }
.ag-gallery-section { scroll-margin-top: 110px; }
.ag-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--ag-line); }
.aigroup-site .ag-gallery-count { flex-shrink: 0; color: var(--ag-muted); font-size: 12px; }
.ag-gallery-open { cursor: zoom-in; }
.ag-gallery-open img { transition: transform .25s ease; }
.ag-gallery-open:hover img { transform: scale(1.025); }
.ag-gallery-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(20 43 60 / 80%); color: #fff; }
.ag-gallery-zoom svg { width: 19px; height: 19px; }
body.ag-photo-viewer-open { overflow: hidden; }
.aigroup-site .ag-photo-viewer { width: min(1000px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 20px; border: 1px solid #344b5b; border-radius: 8px; background: #13232e; color: #fff; box-shadow: 0 24px 90px rgb(0 0 0 / 35%); overflow-y: auto; overscroll-behavior: contain; }
.ag-photo-viewer:not([open]) { display: none; }
.ag-photo-viewer::backdrop { background: rgb(8 18 26 / 88%); }
.ag-photo-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.ag-photo-viewer-top > span { color: #c0cdd5; font-size: 10px; letter-spacing: 1.5px; }
.aigroup-site .ag-photo-viewer button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid #536b7a; border-radius: 4px; background: transparent; color: #fff; line-height: 1; box-shadow: none; }
.aigroup-site .ag-photo-viewer button:hover { background: #284759; border-color: #98b1c0; }
.ag-photo-viewer-stage { display: grid; place-items: center; background: #0c1922; }
.aigroup-site .ag-photo-viewer-stage img { display: block; width: 100%; height: auto; max-height: min(65vh, 640px); max-height: min(65dvh, 640px); object-fit: contain; }
.ag-photo-viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.ag-photo-viewer-caption { min-width: 0; }
.aigroup-site .ag-photo-viewer-caption p { color: #d0ae7e; font-size: 10px; letter-spacing: 1px; }
.aigroup-site .ag-photo-viewer-caption h3 { margin-top: 6px; color: #fff; font-size: 20px; line-height: 1.5; letter-spacing: -.02em; }
.ag-photo-viewer-navigation { display: flex; flex-shrink: 0; gap: 8px; }
.ag-photo-viewer [data-gallery-prev] svg { transform: rotate(180deg); }
.ag-viewer-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #344b5b; }
.aigroup-site .ag-viewer-links a { color: #e5c090; font-size: 12px; text-decoration: underline; }
.aigroup-site #ag-photo-disclaimer { margin-top: 12px; color: #adbeca; font-size: 11px; line-height: 1.7; }
.aigroup-site .ag-photo-note { margin-top: 24px; color: var(--ag-muted); font-size: 11px; }
.ag-cooperation-section { padding-top: 0; }
.ag-cooperation-photo { aspect-ratio: 4 / 5; }
.ag-partnership-steps .ag-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
.ag-partnership-steps .ag-step { display: grid; grid-template-columns: 30px 1fr; gap: 4px 14px; padding-block: 17px; border-top: 1px solid var(--ag-line); }
.ag-partnership-steps .ag-step::before { display: none; }
.ag-partnership-steps .ag-step-number { grid-row: span 2; margin-top: 3px; color: #96652f; }
.aigroup-site .ag-partnership-steps .ag-step h3 { margin: 0; font-size: 16px; }
.aigroup-site .ag-partnership-steps .ag-step p { font-size: 13px; }
.aigroup-site .ag-page-hero { background: var(--ag-paper); }
.ag-page-hero .ag-photo-split { padding-top: 35px; }
.aigroup-site .ag-page-hero .ag-photo-split h1 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.35; }
.ag-page-hero .ag-photo-split > .ag-photo-frame { aspect-ratio: 4 / 3; }
.ag-photo-band { position: relative; height: 350px; margin: 40px 0 0; overflow: hidden; border-radius: 6px; }
.ag-photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-photo-band-copy { position: absolute; inset: auto 0 0; padding: 35px; color: #fff; background: linear-gradient(transparent, rgb(11 27 39 / 85%)); }
.aigroup-site .ag-service-hero .ag-page-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ag-service-photo { width: 100%; aspect-ratio: 4 / 3; }
.aigroup-site .ag-solution-card { padding: 0; overflow: hidden; align-items: stretch; border-radius: 6px; background: var(--ag-surface); }
.ag-solution-photo { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.ag-solution-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px; }
.ag-solution-body .ag-card-icon { display: none; }
.ag-solution-body .ag-card-link { padding-top: 0; }
.ag-article-photo::before, .ag-article-photo::after { display: none; }
.ag-article-photo { aspect-ratio: 16 / 10; min-height: 0; }
.ag-article-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-article-lead-photo { margin-bottom: 35px !important; }
.ag-contact-feature { margin-top: 28px; aspect-ratio: 3 / 2; }
.aigroup-site .ag-cta-inner.ag-cta-photo { position: relative; isolation: isolate; min-height: 330px; border: 0; border-radius: 6px; background: #142b3c; padding: 56px; gap: 40px; }
.aigroup-site .ag-cta-inner.ag-cta-photo > .ag-cta-image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ag-cta-photo::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgb(13 35 51 / 94%), rgb(13 35 51 / 70%) 70%, rgb(13 35 51 / 57%)); }
.ag-cta-photo .ag-cta-copy { max-width: 750px; }
.aigroup-site .ag-cta-photo .ag-eyebrow { color: #edc48f; }
.aigroup-site .ag-cta-photo h2 { color: #fff; }
.aigroup-site .ag-cta-photo p { color: #e1e7ec; }
.aigroup-site .ag-cta-photo .ag-button-light { color: #203f56 !important; }
.aigroup-site .ag-value, .aigroup-site .ag-feature, .aigroup-site .ag-contact-form, .aigroup-site .ag-deliverables { border-radius: 6px; }
.ag-photo-credits { padding-bottom: 22px; color: var(--ag-muted); }
.aigroup-site .ag-photo-credits p { color: var(--ag-muted); font-size: 10px; line-height: 1.8; }
.ag-photo-credits p + p { margin-top: 5px; }
.ag-photo-credits a { text-decoration: underline; }
@media (max-width: 1100px) {
  .ag-operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-cooperation-cards { gap: 16px; }
  .ag-cooperation-card > div:last-child { padding: 22px; }
  .ag-photo-split { gap: 36px; }
  .ag-business-strip a { padding-inline: 16px; gap: 10px; }
  .ag-business-strip strong { font-size: 12px; }
  .ag-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-photo-band { height: 300px; }
  .aigroup-site .ag-cta-inner.ag-cta-photo { padding: 42px 36px; }
}
@media (max-width: 767px) {
  .ag-cooperation-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ag-cooperation-card > .ag-photo-frame { aspect-ratio: 16 / 9; }
  .ag-technology-note > div { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ag-gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 24px; }
  .aigroup-site .ag-photo-viewer { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 14px; }
  .ag-photo-viewer-bottom { gap: 12px; }
  .aigroup-site .ag-photo-viewer-caption h3 { font-size: 16px; }
  .ag-business-strip > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-business-strip a { min-height: 78px; padding: 15px 12px; }
  .ag-business-strip a:nth-child(2) { border-right: 1px solid var(--ag-line); }
  .ag-business-strip a:nth-child(n+3) { border-top: 1px solid var(--ag-line); }
  .ag-business-strip strong { font-size: 11px; }
  .ag-business-strip a > span { font-size: 9px; }
  .ag-business-strip svg { width: 13px; height: 13px; }
  .ag-photo-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ag-photo-split h2 { font-size: clamp(28px, 6.6vw, 35px); }
  .ag-photo-split > div > p:not(.ag-eyebrow) { font-size: 15px; }
  .ag-photo-collage { margin-top: 5px; }
  .ag-collage-main { aspect-ratio: 5 / 4; }
  .ag-collage-detail { width: 60%; }
  .ag-gallery-grid { gap: 25px 16px; }
  .ag-gallery-item > figcaption > strong { font-size: 14px; }
  .ag-gallery-item > figcaption > span { font-size: 8px; }
  .ag-cooperation-photo { aspect-ratio: 4 / 3; }
  .ag-photo-band { height: 240px; margin-top: 30px; }
  .ag-page-hero .ag-photo-split { padding-top: 24px; }
  .aigroup-site .ag-page-hero .ag-photo-split h1 { font-size: clamp(32px, 7vw, 42px); }
  .aigroup-site .ag-service-hero .ag-page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ag-service-photo { max-height: 340px; }
  .ag-service-card-body { padding: 22px; }
  .aigroup-site .ag-service-card-photo h3 { font-size: 19px; }
  .ag-solution-body { padding: 24px; }
  .aigroup-site .ag-cta-inner.ag-cta-photo { min-height: 360px; padding: 35px 27px; gap: 25px; }
  .aigroup-site .ag-cta-photo h2 { font-size: 29px; }
}
@media (max-width: 600px) {
  .ag-operations-grid, .ag-article-photo-grid { grid-template-columns: minmax(0, 1fr); }
  .ag-photo-viewer-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ag-photo-viewer-navigation { justify-self: end; }
  .ag-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ag-gallery-item > figcaption { margin-top: 12px; }
  .ag-gallery-item > figcaption > strong { font-size: 16px; }
  .ag-gallery-item > figcaption > span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-service-cover img, .ag-gallery-open img { transition: none; }
  .ag-service-card:hover .ag-service-cover img, .ag-gallery-open:hover img { transform: none; }
}
@media print {
  .ag-business-strip, .ag-photo-collage, .ag-gallery-section { display: none; }
  .ag-photo-split { grid-template-columns: 1fr; }
  .ag-photo-split > .ag-photo-frame { max-height: 220px; }
}
