:root {
  --ag-bg: #08090d;
  --ag-ink: #151922;
  --ag-muted: #687281;
  --ag-red: #dd2727;
  --ag-red-dark: #a81720;
  --ag-line: rgba(21, 25, 34, 0.1);
  --ag-panel: #ffffff;
  --ag-radius: 8px;
  --ag-shadow: 0 24px 60px rgba(8, 9, 13, 0.16);
}

html {
  scroll-behavior: smooth;
}

.acustodio-modern-graphic {
  background: #f5f6f8;
}

.acustodio-modern-graphic #contents.main-page {
  padding: 0;
}

.acustodio-modern-graphic #contents.main-page,
.acustodio-modern-graphic .main-page.content,
.acustodio-modern-graphic .container > .row > .main-page {
  width: 100%;
}

.acustodio-modern-graphic #header,
.acustodio-modern-graphic header.header,
.acustodio-modern-graphic .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.acustodio-modern-graphic #header.am-header-scrolled,
.acustodio-modern-graphic header.header.am-header-scrolled,
.acustodio-modern-graphic .header.am-header-scrolled {
  background: rgba(10, 12, 18, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.ag-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.ag-page {
  color: var(--ag-ink);
}

.ag-section {
  padding: 72px 0;
}

.ag-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(221, 39, 39, 0.32), transparent 28%),
    linear-gradient(135deg, #08090d 0%, #171b24 52%, #0b0d12 100%);
  isolation: isolate;
}

.ag-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(var(--am-parallax-y, 0));
  background:
    linear-gradient(120deg, rgba(221, 39, 39, 0.24), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 92px);
  opacity: 0.7;
  z-index: -1;
}

.ag-hero-inner {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.ag-hero-copy {
  max-width: 760px;
}

.ag-kicker,
.ag-section-heading span,
.ag-cta-panel span {
  display: inline-flex;
  color: var(--ag-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.ag-hero h1 {
  margin: 18px 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
}

.ag-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.ag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ag-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--ag-radius);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ag-button:hover {
  transform: translateY(-2px);
}

.ag-button-primary {
  background: var(--ag-red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(221, 39, 39, 0.26);
}

.ag-button-primary:hover {
  background: var(--ag-red-dark);
  color: #fff;
}

.ag-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ag-hero-gallery {
  position: relative;
  min-height: 440px;
}

.ag-hero-shot {
  position: absolute;
  display: block;
  border-radius: var(--ag-radius);
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.ag-shot-large {
  inset: 30px 0 auto auto;
  width: 86%;
  height: 330px;
}

.ag-shot-small {
  left: 0;
  bottom: 28px;
  width: 46%;
  height: 170px;
  padding: 24px;
  background: #fff;
  object-fit: contain;
}

.ag-section-heading {
  margin-bottom: 28px;
}

.ag-section-heading h2,
.ag-cta-panel h2 {
  margin: 8px 0 0;
  color: var(--ag-ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 850;
}

.ag-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
}

.ag-heading-row p {
  color: var(--ag-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ag-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ag-service-card,
.ag-process-card,
.ag-logo-card,
.ag-work-card,
.ag-cta-panel {
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  background: var(--ag-panel);
  box-shadow: 0 14px 34px rgba(12, 15, 22, 0.06);
}

.ag-service-card {
  min-height: 230px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ag-service-card:hover,
.ag-work-card:hover,
.ag-logo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(221, 39, 39, 0.25);
  box-shadow: var(--ag-shadow);
}

.ag-service-image {
  height: 150px;
  border-radius: var(--ag-radius);
  background: linear-gradient(135deg, rgba(221, 39, 39, 0.08), rgba(21, 25, 34, 0.06));
  overflow: hidden;
}

.ag-service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ag-service-card:hover .ag-service-image img {
  transform: scale(1.04);
}

.ag-service-card strong {
  display: block;
  padding: 16px 4px 2px;
  color: var(--ag-ink);
  font-size: 16px;
}

.ag-process {
  padding-top: 0;
}

.ag-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ag-process-card {
  padding: 26px;
}

.ag-process-card span {
  color: var(--ag-red);
  font-size: 13px;
  font-weight: 900;
}

.ag-process-card h3 {
  margin: 14px 0 10px;
  color: var(--ag-ink);
  font-size: 23px;
}

.ag-process-card p {
  margin: 0;
  color: var(--ag-muted);
  line-height: 1.7;
}

.ag-featured-work {
  background: #fff;
}

.ag-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ag-work-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ag-work-media {
  height: 300px;
  background: #f1f3f6;
}

.ag-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-work-meta {
  padding: 18px;
}

.ag-work-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--ag-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ag-work-meta strong {
  color: var(--ag-ink);
  font-size: 16px;
}

.ag-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ag-logo-card {
  height: 150px;
  display: grid;
  place-items: center;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ag-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ag-cta {
  padding-top: 0;
}

.ag-cta-panel {
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, rgba(221, 39, 39, 0.36), transparent 32%),
    linear-gradient(135deg, #11141c, #08090d);
}

.ag-cta-panel h2 {
  max-width: 760px;
  margin-bottom: 28px;
  color: #fff;
}

.ag-original {
  padding-top: 0;
}

.ag-original > .ag-container {
  padding: 34px;
  border-radius: var(--ag-radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(12, 15, 22, 0.07);
}

.acustodio-modern-graphic .ag-original .elementor-section:first-child,
.acustodio-modern-graphic .ag-original .elementor-section:nth-child(2) {
  display: none;
}

.acustodio-modern-graphic .elementor-widget-heading h2,
.acustodio-modern-graphic .elementor-heading-title {
  letter-spacing: 0;
}

.am-js [data-am-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.am-js [data-am-reveal].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .ag-service-grid,
  .ag-work-grid,
  .ag-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ag-section {
    padding: 48px 0;
  }

  .ag-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 60px 0;
  }

  .ag-hero h1 {
    font-size: 42px;
  }

  .ag-hero p {
    font-size: 16px;
  }

  .ag-actions,
  .ag-button {
    width: 100%;
  }

  .ag-hero-gallery {
    min-height: 330px;
  }

  .ag-shot-large {
    width: 88%;
    height: 250px;
  }

  .ag-shot-small {
    width: 48%;
    height: 130px;
  }

  .ag-heading-row,
  .ag-process-grid {
    grid-template-columns: 1fr;
  }

  .ag-service-grid,
  .ag-work-grid,
  .ag-logo-grid {
    grid-template-columns: 1fr;
  }

  .ag-logo-card {
    height: 132px;
  }

  .ag-service-card {
    min-height: 220px;
  }

  .ag-service-image {
    height: 150px;
  }

  .ag-original > .ag-container {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .am-js [data-am-reveal],
  .ag-button,
  .ag-service-card,
  .ag-work-card,
  .ag-logo-card {
    transition: none;
    transform: none;
  }
}
