.topbar {
  min-height: 78px;
  height: auto;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.nav-brand img {
  display: block;
  width: clamp(150px, 15vw, 205px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.topbar-nav-only nav {
  margin-left: auto;
  gap: clamp(16px, 2vw, 28px);
}

.topbar-nav-only .contact-link {
  margin-left: 0;
  white-space: nowrap;
}

.hero {
  min-height: 600px;
  padding-top: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(22,117,209,.32), transparent 28%),
    linear-gradient(135deg,#07131e,#0b2235);
}

.hero-grid {
  padding-top: clamp(62px, 8vw, 96px);
  padding-bottom: 8px;
}

.hero .lead {
  max-width: 660px;
}

.start-here {
  background: #fff;
  scroll-margin-top: 90px;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.start-grid > a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 156px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: #f8fafb;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.start-grid > a:nth-child(2),
.start-grid > a:nth-child(4) {
  border-top-color: var(--orange);
}

.start-grid > a:hover,
.start-grid > a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 18px 45px rgba(8,21,34,.12);
}

.start-grid > a > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  background: var(--navy);
  color: var(--cyan);
  clip-path: polygon(50% 0,93% 18%,85% 76%,50% 100%,15% 76%,7% 18%);
  font: 700 15px/1 Inter, sans-serif;
}

.start-grid strong {
  display: block;
  margin-bottom: 8px;
  font: 700 29px/1 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.start-grid small {
  display: block;
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.start-grid b {
  color: #075fae;
  font-size: 14px;
  white-space: nowrap;
}

.start-note {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 4px solid var(--orange);
  background: #eaf2f8;
}

.start-note span {
  color: var(--muted);
}

.start-note a {
  margin-left: auto;
  color: #075fae;
  font-weight: 700;
  white-space: nowrap;
}

.mindmap-board {
  grid-template-rows: repeat(3, minmax(135px, auto));
  gap: 20px;
}

.mindmap-node,
.mindmap-core {
  min-height: 135px;
  padding: 22px 24px;
}

.questionnaire-guide,
.renewals,
.official-updates,
.policy {
  background: #fff;
}

.section-reveal {
  border: 0;
}

.section-reveal > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #b8c8d4;
  border-left: 5px solid var(--blue);
  background: #eef4f8;
  color: var(--ink);
  font: 700 17px/1.3 Inter, sans-serif;
  text-transform: none;
  cursor: pointer;
}

.section-reveal > summary::-webkit-details-marker {
  display: none;
}

.section-reveal > summary b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 400 24px/1 Inter, sans-serif;
  transition: transform .2s ease;
}

.section-reveal[open] > summary b {
  transform: rotate(45deg);
}

.section-reveal-content {
  padding-top: 34px;
}

.official-update-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.official-update-grid article {
  padding: 22px;
}

.official-update-grid h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.update-note {
  margin-top: 14px;
  border: 0;
}

.update-note > summary {
  display: inline-flex;
  padding: 0;
  color: #075fae;
  font: 700 14px/1.4 Inter, sans-serif;
  text-transform: none;
}

.update-note > p {
  margin-top: 10px;
  padding: 14px;
  background: var(--paper);
  font-size: 14px;
}

.mobile-quick-actions {
  display: none;
}

@media (max-width: 1100px) {
  .topbar-nav-only {
    position: sticky;
  }

  .topbar-nav-only .menu-toggle {
    display: flex;
    order: -1;
  }

  .topbar-nav-only nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px clamp(22px, 5vw, 76px) 14px;
    background: var(--navy);
    border-top: 1px solid #21364a;
    box-shadow: 0 18px 35px rgba(5,13,21,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }

  .mobile-menu-open .topbar-nav-only nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-brand {
    margin-right: auto;
  }

  .start-grid > a {
    grid-template-columns: 52px 1fr;
  }

  .start-grid b {
    grid-column: 2;
  }

  .official-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 64px;
  }

  .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .nav-brand img {
    width: 145px;
    height: 46px;
  }

  .topbar-nav-only .contact-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .classification {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .start-grid,
  .official-update-grid {
    grid-template-columns: 1fr;
  }

  .start-grid > a {
    min-height: 0;
    padding: 24px 22px;
  }

  .start-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .start-note a {
    margin-left: 0;
  }

  .section-reveal > summary {
    padding: 17px 18px;
    font-size: 15px;
  }

  .mobile-quick-actions {
    position: fixed;
    z-index: 15;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    border-top: 1px solid #294257;
    background: var(--navy);
    box-shadow: 0 -12px 28px rgba(5,13,21,.24);
  }

  .mobile-quick-actions a {
    display: grid;
    place-items: center;
    padding: 9px 4px;
    border-right: 1px solid #294257;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .mobile-quick-actions a:last-child {
    border-right: 0;
    background: var(--blue);
  }

  .cookie-notice {
    bottom: 72px;
  }
}

/* Company imagery keeps the guide connected to the environments it supports. */
.project-context {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  min-height: 330px;
  margin: 34px 0 0;
  overflow: hidden;
  color: #fff;
  background: #071827;
  border: 1px solid rgba(21, 126, 207, .35);
}

.project-context img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.project-context figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(145deg, #071827, #0e2b43);
}

.project-context .kicker {
  margin: 0 0 10px;
  color: #ef7448;
}

.project-context h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.65rem, 2.3vw, 2.45rem);
}

.project-context figcaption > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.business-funnel {
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(4, 20, 33, .97), rgba(4, 20, 33, .86)), url("assets/aeg-projects.webp");
  background-position: center;
  background-size: cover;
}

.business-funnel > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .project-context {
    grid-template-columns: 1fr;
  }

  .project-context img {
    min-height: 235px;
    max-height: 285px;
  }
}

.timing {
  background: linear-gradient(180deg, #f4f8fb 0%, #fff 100%);
}

.timing-lead {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background: linear-gradient(125deg, #071827, #10334e);
  border-top: 4px solid #ef7448;
}

.timing-lead .kicker,
.timing-actions .kicker {
  margin: 0 0 10px;
  color: #ef7448;
}

.timing-lead h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.timing-lead > p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.delay-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.delay-grid article {
  grid-column: span 2;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid #d8e1e8;
  border-top: 4px solid #157ecf;
}

.delay-grid article:nth-child(4),
.delay-grid article:nth-child(5) {
  grid-column: span 3;
  border-top-color: #ef7448;
}

.delay-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: #fff;
  background: #071827;
  clip-path: polygon(50% 0, 92% 20%, 82% 78%, 50% 100%, 18% 78%, 8% 20%);
  font-weight: 800;
}

.delay-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

.delay-grid p {
  margin: 0;
  color: #536270;
}

.timing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  margin-top: 18px;
}

.timing-actions > div {
  padding: clamp(26px, 3vw, 38px);
  background: #eaf3fa;
  border: 1px solid #cfe0ec;
}

.timing-actions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding-left: 20px;
}

.timing-status {
  color: #fff;
  background: #157ecf !important;
  border-color: #157ecf !important;
}

.timing-status h3,
.timing-status p,
.timing-status a {
  color: #fff;
}

.timing-status h3 {
  margin-top: 0;
}

.timing-status a {
  font-weight: 800;
}

.timing-source {
  margin: 22px 0 0;
  color: #5d6c78;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .timing-lead,
  .timing-actions {
    grid-template-columns: 1fr;
  }

  .delay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delay-grid article,
  .delay-grid article:nth-child(4),
  .delay-grid article:nth-child(5) {
    grid-column: auto;
  }

  .delay-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .delay-grid,
  .timing-actions ul {
    grid-template-columns: 1fr;
  }

  .delay-grid article:last-child {
    grid-column: auto;
  }
}

.careers-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(6, 24, 38, .97), rgba(9, 48, 76, .91)),
    url("assets/aeg-careers.webp") center 42% / cover;
  border-top: 5px solid #ef7448;
}

.careers-cta .section-no {
  color: #ef7448;
}

.careers-cta h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
}

.careers-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.careers-action {
  padding: clamp(26px, 4vw, 46px);
  background: rgba(5, 20, 33, .82);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
}

.direct-apply {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.direct-apply strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.direct-apply span {
  color: rgba(255, 255, 255, .77);
}

.careers-action .primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
}

@media (max-width: 840px) {
  .careers-cta {
    grid-template-columns: 1fr;
    background-position: 62% center;
  }
}
