.agg-case {
  --agg-navy: #06172b;
  --agg-ink: #15191d;
  --agg-gold: #e7a400;
  --agg-gold-dark: #8a6400;
  --agg-paper: #f3f4f2;
  --agg-white: #fff;
  --agg-muted: #5f6b73;
  --agg-line: #d7dcd9;
  background: var(--agg-paper);
  color: var(--agg-ink);
  overflow: hidden;
}

.agg-case * { box-sizing: border-box; }
.agg-case h1,
.agg-case h2,
.agg-case h3 {
  hyphens: none;
  letter-spacing: -.038em;
  line-height: 1.04;
  margin-top: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.agg-case h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); max-width: 17ch; }
.agg-case h2 { font-size: clamp(1.85rem, 3.4vw, 3.2rem); max-width: 20ch; }
.agg-case p { font-size: 1.08rem; line-height: 1.68; }
.agg-eyebrow {
  color: var(--agg-gold-dark);
  font-size: .72rem !important;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}
.agg-section {
  margin-inline: auto;
  max-width: 1360px;
  padding: clamp(3.5rem, 6vw, 5.75rem) clamp(1.5rem, 4vw, 3rem);
  width: calc(100% - 3rem);
}
.agg-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: .84rem;
  gap: .55rem;
  margin-inline: auto;
  max-width: 1360px;
  padding: 1.05rem clamp(1.5rem, 4vw, 3rem);
}
.agg-breadcrumb a { color: var(--agg-gold-dark); text-decoration: none; }

.agg-hero {
  color: #fff;
  height: clamp(540px, 46vw, 620px);
  isolation: isolate;
  margin-inline: auto;
  max-width: 1600px;
  overflow: hidden;
  position: relative;
}
.agg-hero::before,
.agg-hero::after {
  background: var(--agg-navy);
  content: "";
  inset-block: 0;
  position: absolute;
  width: max(0px, calc((100vw - 1600px) / 2));
  z-index: -4;
}
.agg-hero::before { right: 100%; }
.agg-hero::after { left: 100%; }
.agg-hero__media,
.agg-hero__shade { inset: 0; position: absolute; }
.agg-hero__media { z-index: -3; }
.agg-hero__media img { height: 100%; object-fit: cover; object-position: 62% 50%; width: 100%; }
.agg-hero__shade {
  background: linear-gradient(90deg, rgba(3,14,27,.97), rgba(3,14,27,.84) 38%, rgba(3,14,27,.28) 68%, rgba(3,14,27,.04));
  z-index: -2;
}
.agg-hero__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin-inline: auto;
  max-width: 1360px;
  padding: 4rem clamp(1.5rem, 4vw, 3rem);
  width: 100%;
}
.agg-hero__content > p:not(.agg-eyebrow) { color: #e4e9ec; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 58ch; }
.agg-hero .agg-eyebrow { color: #ffc849; }
.agg-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.agg-hero .button { min-height: 50px; }
.agg-hero .button.secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.48); color: #fff; }

.agg-intro {
  border-bottom: 1px solid var(--agg-line);
  display: grid;
  gap: clamp(3rem, 4.6vw, 4.5rem);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}
.agg-intro__copy { padding-top: 1.6rem; }
.agg-lead { font-size: clamp(1.25rem, 2vw, 1.55rem) !important; font-weight: 780; line-height: 1.45 !important; margin-top: 0; }
.agg-intro .agg-customer-link {
  align-items: flex-start;
  border-bottom: 0;
  color: var(--agg-navy);
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.2rem;
  padding: 0;
  text-decoration: none;
  width: max-content;
}
.agg-intro .agg-customer-link img { height: auto; max-width: 180px; width: 100%; }
.agg-intro .agg-customer-link > span { border-bottom: 2px solid var(--agg-gold-dark); color: var(--agg-gold-dark); font-size: .86rem; padding-bottom: .3rem; }

.agg-story {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 4.6vw, 4.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.agg-story picture { border-radius: 1rem; overflow: hidden; }
.agg-story img { display: block; height: auto; max-width: 550px; width: 100%; }
.agg-story h2 { max-width: 15ch; }
.agg-story p:last-child { color: var(--agg-muted); max-width: 54ch; }

.agg-panorama {
  background: var(--agg-white);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  max-width: 1320px;
  overflow: hidden;
  width: calc(100% - 3rem);
}
.agg-panorama picture { min-height: 500px; }
.agg-panorama img { display: block; height: 100%; object-fit: cover; width: 100%; }
.agg-panorama__copy {
  align-items: flex-start;
  background: var(--agg-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.agg-panorama__eyebrow { color: #ffc849; display: block; font-size: .7rem; font-weight: 900; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.agg-panorama__title { display: block; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; margin-top: 1rem; }

.agg-thermal {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  max-width: 1320px;
  width: calc(100% - 3rem);
}
.agg-thermal__media { background: var(--agg-ink); min-height: 560px; }
.agg-thermal__media picture { display: block; height: 100%; }
.agg-thermal__media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.agg-thermal__copy {
  background: var(--agg-ink);
  border-top: 3px solid #ee9c29;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.agg-thermal .agg-eyebrow { color: #ffbd52; }
.agg-thermal h2 { font-size: clamp(2rem, 2.35vw, 2.35rem); hyphens: manual; max-width: 16ch; overflow-wrap: normal; }
.agg-thermal__copy > p:not(.agg-eyebrow):not(.agg-disclaimer) { color: #e5e7e8; }
.agg-disclaimer { border-top: 1px solid rgba(255,255,255,.2); color: #abb2b7; font-size: .84rem !important; line-height: 1.5 !important; margin-top: 1.5rem; padding-top: 1.5rem; }

.agg-integration {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 4.6vw, 4.5rem);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}
.agg-integration__copy h2 { max-width: 14ch; }
.agg-integration__copy > p:not(.agg-eyebrow) { color: var(--agg-muted); max-width: 46ch; }
.agg-system-modules {
  column-gap: clamp(1.75rem, 3.2vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 0;
}
.agg-system-modules article {
  border-top: 1px solid var(--agg-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 0 2.1rem;
}
.agg-system-modules article:nth-child(-n+2) { border-top: 2px solid var(--agg-navy); }
.agg-system-modules__number {
  color: var(--agg-gold-dark);
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 1.1rem;
}
.agg-system-modules__eyebrow { color: var(--agg-muted) !important; display: block; font-size: .68rem !important; font-weight: 900; letter-spacing: .12em; line-height: 1.3 !important; margin: 0 0 .45rem; text-transform: uppercase; }
.agg-system-modules h3 { color: var(--agg-navy); font-size: clamp(1.12rem, 1.5vw, 1.3rem); letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.agg-system-modules article p:last-child { color: var(--agg-muted); font-size: .95rem; line-height: 1.55; margin: .55rem 0 0; max-width: 38ch; }

.agg-assembly {
  background: var(--agg-navy);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  max-width: 1320px;
  overflow: hidden;
  width: calc(100% - 3rem);
}
.agg-assembly picture { height: 520px; }
.agg-assembly img { display: block; height: 100%; object-fit: cover; width: 100%; }
.agg-assembly > div { display: flex; flex-direction: column; height: 520px; justify-content: center; padding: clamp(2.5rem, 4vw, 4rem); }
.agg-assembly .agg-eyebrow { color: #ffc849; }
.agg-assembly h2 { max-width: 13ch; }
.agg-assembly p:last-child { color: #dbe2e7; }

.agg-planning {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 4.6vw, 4.5rem);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}
.agg-planning > div { max-width: 640px; }
.agg-planning > div > p:not(.agg-eyebrow):not(.agg-security-note) { color: var(--agg-muted); }
.agg-planning picture { justify-self: center; max-width: 450px; overflow: hidden; }
.agg-planning img { display: block; height: auto; width: 100%; }
.agg-security-note { border-left: 3px solid var(--agg-gold); font-size: .86rem !important; font-weight: 750; line-height: 1.5 !important; margin-top: 1.8rem; padding: .15rem 0 .15rem 1rem; }

.agg-gallery { padding-top: 2rem; }
.agg-gallery__head { display: block; margin-bottom: 2rem; }
.agg-gallery__head h2 { margin-bottom: 0; }
.agg-gallery__grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agg-gallery__grid picture { aspect-ratio: 4 / 3; overflow: hidden; }
.agg-gallery__grid img { display: block; height: 100%; object-fit: cover; width: 100%; }
.agg-gallery__portrait img { object-position: center 35%; }

.agg-related { border-top: 1px solid var(--agg-line); }
.agg-related > div { border-bottom: 1px solid var(--agg-line); border-top: 1px solid var(--agg-line); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.4rem; }
.agg-related a { color: var(--agg-navy); font-weight: 850; padding: 1.4rem .8rem; text-decoration: none; }
.agg-related a + a { border-left: 1px solid var(--agg-line); }
.agg-related a span { color: var(--agg-gold-dark); float: right; }
.agg-cta { align-items: center; background: var(--agg-navy); color: #fff; display: flex; gap: 2rem; justify-content: space-between; margin: 0 auto clamp(3rem, 7vw, 6rem); max-width: 1320px; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); width: calc(100% - 3rem); }
.agg-cta .agg-eyebrow { color: #ffc849; }
.agg-cta h2 { margin-bottom: 0; max-width: 19ch; }
.agg-cta .button { flex: 0 0 auto; }

@media (max-width: 991px) {
  .agg-intro,
  .agg-story,
  .agg-integration,
  .agg-planning { grid-template-columns: 1fr; }
  .agg-story picture { max-width: 550px; }
  .agg-panorama,
  .agg-thermal,
  .agg-assembly { grid-template-columns: 1fr; }
  .agg-panorama picture,
  .agg-thermal__media,
  .agg-assembly picture { height: auto; min-height: 0; }
  .agg-panorama img,
  .agg-thermal__media img,
  .agg-assembly img { height: auto; }
  .agg-assembly > div { height: auto; }
  .agg-integration { gap: 2.25rem; }
  .agg-integration__copy h2 { max-width: 18ch; }
  .agg-planning picture { grid-row: 1; justify-self: start; max-width: 400px; }
  .agg-planning > div { grid-row: 2; }
  .agg-related > div { grid-template-columns: 1fr 1fr; }
  .agg-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agg-gallery__grid picture:last-child { grid-column: 1 / -1; justify-self: center; max-width: 640px; width: 100%; }
  .agg-related a:nth-child(3) { border-left: 0; border-top: 1px solid var(--agg-line); }
  .agg-related a:nth-child(4) { border-top: 1px solid var(--agg-line); }
  .agg-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .agg-case h1 { font-size: clamp(2rem, 9.2vw, 2.75rem); max-width: none; }
  .agg-case h2 { max-width: none; }
  .agg-case p { font-size: 1rem; }
  .agg-breadcrumb { padding-inline: 1rem; }
  .agg-section { padding-inline: 1rem; }
  .agg-hero { background: var(--agg-navy); height: auto; min-height: 680px; }
  .agg-hero__media { height: clamp(300px, 92vw, 360px); }
  .agg-hero__media img { object-position: 72% 50%; }
  .agg-hero__shade { background: linear-gradient(180deg, rgba(3,14,27,.04), rgba(3,14,27,.12) 30%, rgba(3,14,27,.92) 48%, var(--agg-navy) 58%); }
  .agg-hero__content { background: transparent; height: auto; justify-content: flex-end; min-height: 680px; padding: clamp(16rem, 75vw, 18rem) 1rem 2rem; }
  .agg-hero__actions { align-items: stretch; flex-direction: column; }
  .agg-hero__actions .button { justify-content: center; text-align: center; width: 100%; }
  .agg-intro,
  .agg-story,
  .agg-integration,
  .agg-planning { gap: 2.2rem; }
  .agg-intro__copy { padding-top: 0; }
  .agg-story picture { grid-row: 1; }
  .agg-story > div { grid-row: 2; }
  .agg-panorama,
  .agg-thermal,
  .agg-assembly,
  .agg-cta { margin-inline: 0; width: 100%; }
  .agg-section { width: 100%; }
  .agg-panorama__copy,
  .agg-thermal__copy,
  .agg-assembly > div { padding: 2.5rem 1rem; }
  .agg-thermal__media { grid-row: 1; }
  .agg-thermal__copy { grid-row: 2; }
  .agg-assembly picture { grid-row: 1; }
  .agg-assembly > div { grid-row: 2; }
  .agg-planning picture { max-width: 100%; width: 100%; }
  .agg-system-modules { grid-template-columns: 1fr; }
  .agg-system-modules article:nth-child(2) { border-top: 1px solid var(--agg-line); }
  .agg-gallery__grid { grid-template-columns: 1fr; }
  .agg-gallery__grid picture,
  .agg-gallery__grid picture:last-child { aspect-ratio: 4 / 3; grid-column: auto; }
  .agg-related > div { grid-template-columns: 1fr; }
  .agg-related a + a,
  .agg-related a:nth-child(3),
  .agg-related a:nth-child(4) { border-left: 0; border-top: 1px solid var(--agg-line); }
  .agg-cta .button { width: 100%; }
}

@media (max-width: 360px) {
  .agg-section { padding-inline: .85rem; }
  .agg-case h1 { font-size: 1.95rem; }
  .agg-hero__content { padding-inline: .85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .agg-story > *,
  .agg-thermal > *,
  .agg-integration > *,
  .agg-assembly > * { animation: agg-rise .28s ease both; }
  @keyframes agg-rise { from { transform: translateY(8px); } to { transform: none; } }
}
