:root {
  --pg-navy: #213363;
  --pg-red: #ed1c25;
}

/* Keep the crest and company name visible in every menu state. */
.pg-menu.menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  padding: 0;
  font-size: 14px;
  background: linear-gradient(115deg, #213363 12%, #283f73 62%, #1b2c55);
  box-shadow: 0 8px 32px #0b193826;
  border-bottom: 1px solid #ffffff20;
  transition: box-shadow .4s, background .4s;
}
.pg-menu::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #ed1c25, #ed1c25 12%, #ffffff80 40%, #ffffff08 100%);
}
.pg-menu-container {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
}
.pg-menu-topline {
  max-height: 35px;
  overflow: hidden;
  border-bottom: 1px solid #ffffff0f;
  background: #0e1b3c20;
  opacity: 1;
  transition: max-height .5s, opacity .4s, border-color .4s;
}
.pg-menu-topline .pg-menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: #d4dbea;
  font-size: 10px;
  letter-spacing: .07em;
}
.pg-motto { display: flex; align-items: center; gap: 9px; }
.pg-motto > span { width: 5px; height: 5px; border-radius: 50%; background: #ed1c25; box-shadow: 0 0 12px #ed1c2540; }
.pg-location { display: flex; gap: 12px; }
.pg-location > span { color: #ffffff40; }
.pg-menu-shell { display: flex; align-items: center; gap: 30px; height: 85px; transition: height .5s; }
.pg-menu .logoWrap { flex: 0 0 165px; height: 60px; width: 165px; font-size: 0; text-decoration: none; z-index: 2; }
.pg-menu .logoWrap .imageWrap { height: 70px; top: -5px; overflow: hidden; }
.pg-menu .logoWrap .imageWrap img { top: -84px; transition: none; }
.pg-menu .logoWrap .natpisWrap { width: 95px; color: white; transition: none; }
.pg-navigation { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.pg-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  color: #e2e7f1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.pg-nav-link::before {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 17px;
  height: 2px;
  background: #ed1c25;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.pg-nav-link:hover, .pg-nav-link[aria-current], .pg-services[open] > summary { color: white; }
.pg-nav-link:hover::before, .pg-nav-link[aria-current]::before, .pg-services[data-current] > summary::before { transform: scaleX(1); }
.pg-nav-careers { color: white; }
.pg-careers-dot { width: 5px; height: 5px; background: #fc7177; border-radius: 50%; }
.pg-services { position: relative; }
.pg-services > summary { cursor: pointer; list-style: none; }
.pg-services > summary::-webkit-details-marker { display: none; }
.pg-menu svg, .pg-career-dialog svg, .pg-submit-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pg-services > summary svg { opacity: .65; transition: transform .2s; }
.pg-services[open] > summary svg { transform: rotate(180deg); }
.pg-services-panel {
  position: absolute;
  top: calc(100% + 13px);
  left: -25px;
  width: 310px;
  padding: 23px 12px 12px;
  border-radius: 18px;
  border: 1px solid #ffffffc0;
  background: linear-gradient(135deg, #fffffff5, #eaf0f9f5);
  box-shadow: 0 24px 60px #10244d30, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  animation: pg-panel-in .2s ease-out;
}
.pg-dropdown-eyebrow { display: block; padding: 0 13px 12px; font-size: 9px; letter-spacing: .16em; color: #788499; font-weight: 600; }
.pg-services-panel > a { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; border-radius: 9px; color: var(--pg-navy); font-size: 12px; font-weight: 500; text-decoration: none; transition: background .2s; }
.pg-services-panel > a:first-of-type { font-weight: 700; border-bottom: 1px solid #21336314; margin-bottom: 5px; }
.pg-services-panel > a:hover { background: #2133630a; color: #bb1520; }
.pg-career-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  padding: 15px 20px;
  border: 1px solid #ff767c60;
  border-radius: 10px;
  background: linear-gradient(125deg, #f52c35, #ed1c25 56%, #cf111d);
  color: white;
  box-shadow: inset 0 1px 0 #ffffff30, 0 5px 16px #0d173c22;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.pg-career-button:hover { color: white; transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff30, 0 8px 22px #0b153846; }
.pg-career-button svg { transition: transform .2s; }
.pg-career-button:hover svg { transform: translateX(3px); }
.pg-cta-mobile, .pg-menu-toggle, .pg-mobile-eyebrow, .pg-mobile-note { display: none; }
.pg-menu.menuScrolled { box-shadow: 0 8px 32px #0b19383d; }
.pg-menu.menuScrolled .pg-menu-topline { max-height: 0; opacity: 0; border-color: transparent; }
.pg-menu.menuScrolled .pg-menu-shell { height: 76px; }
.pg-menu :focus-visible, .pg-career-dialog :focus-visible, .pg-recruitment-callout :focus-visible { outline: 3px solid #7aa6fc; outline-offset: 5px; }
body.pg-career-open, body.pg-navigation-open { overflow: hidden; }
html:has(body.pg-career-open), html:has(body.pg-navigation-open) { scrollbar-gutter: stable; }

/* A native dialog supplies modal focus handling and keeps the background inert. */
.pg-career-dialog {
  width: min(920px, calc(100% - 48px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffffd9;
  border-radius: 30px;
  color: var(--pg-navy);
  background: linear-gradient(125deg, #ffffffeb, #eef3fbeb 70%, #e8eef8e8);
  box-shadow: 0 40px 120px #07142e55, 0 2px 10px #ffffff50, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(36px) saturate(1.6);
  backdrop-filter: blur(36px) saturate(1.6);
  scrollbar-width: thin;
}
.pg-career-dialog[open] { animation: pg-glass-in .32s cubic-bezier(.16, 1, .3, 1); }
.pg-career-dialog::backdrop { background: #0c193d8c; -webkit-backdrop-filter: blur(12px) saturate(.8); backdrop-filter: blur(12px) saturate(.8); }
.pg-career-layout { display: grid; grid-template-columns: .87fr 1.13fr; position: relative; }
.pg-dialog-toolbar { position: sticky; top: 0; height: 0; z-index: 3; }
.pg-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #21336312;
  border-radius: 50%;
  background: #ffffff85;
  color: var(--pg-navy);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pg-dialog-close:hover { background: white; transform: rotate(90deg); }
.pg-career-story {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 38px 32px 26px;
  border: 1px solid #ffffff16;
  border-radius: 29px 0 0 29px;
  color: white;
  background: radial-gradient(ellipse at 5% 80%, #5877b45c, transparent 65%), linear-gradient(145deg, #2a4076ed, #17274ff5);
}
.pg-career-story::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  top: 100px;
  right: -180px;
  box-shadow: 0 0 0 45px #ffffff03, 0 0 0 90px #ffffff03;
  pointer-events: none;
}
.pg-story-brand { display: flex; align-items: center; gap: 11px; }
.pg-story-emblem { position: relative; display: block; flex: 0 0 36px; width: 36px; height: 45px; overflow: hidden; }
.pg-story-emblem img { position: absolute; top: -57px; left: 0; width: 36px; max-width: none; }
.pg-story-brand > span { font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.pg-story-brand > span > span { display: block; margin-top: 6px; font-size: 7px; letter-spacing: .12em; color: #c2cde3; font-weight: 400; }
.pg-story-copy { position: relative; margin: 62px 0 35px; }
.pg-story-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 8px; font-weight: 500; letter-spacing: .12em; color: #c3cfe6; }
.pg-story-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #f75a62; }
.pg-story-copy h2 { margin: 20px 0 18px; font-size: 43px; font-weight: 500; line-height: 1.13; letter-spacing: -.045em; }
.pg-story-copy h2 > span { color: #fa4d57; }
.pg-story-copy p { max-width: 250px; margin: 0; font-size: 13px; line-height: 1.85; color: #c9d4e8; }
.pg-career-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 35px; }
.pg-career-roles > span { grid-column: 1 / -1; margin-bottom: 6px; color: #aebdd9; font-size: 8px; letter-spacing: .12em; }
.pg-career-roles button { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 39px; padding: 10px; background: #ffffff08; border: 1px solid #ffffff20; border-radius: 9px; color: #e5eaf3; font-size: 11px; cursor: pointer; transition: background .2s, border-color .2s; }
.pg-career-roles button:hover { background: #ffffff18; border-color: #ffffff55; }
.pg-career-roles button > span { color: #a7b9dc; }
.pg-story-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid #ffffff17; font-size: 9px; letter-spacing: .03em; color: #aebdd9; }
.pg-story-footer > span { width: 5px; height: 5px; border: 1px solid #aebdd9; border-radius: 50%; }
.pg-career-content { display: flex; flex-direction: column; padding: 42px 40px 24px; }
.pg-form-eyebrow { color: #737e94; font-size: 8px; letter-spacing: .15em; font-weight: 600; }
.pg-form-heading h3 { margin: 10px 0 8px; font-size: 25px; font-weight: 600; letter-spacing: -.04em; color: var(--pg-navy); }
.pg-form-heading p { margin: 0 0 26px; font-size: 12px; color: #7b8495; line-height: 1.7; }
.pg-field { min-width: 0; margin-bottom: 17px; }
.pg-field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; color: #364567; }
.pg-field label > span:not(.pg-optional) { color: #cc2531; }
.pg-field .pg-optional { margin-left: 3px; font-size: 8px; color: #7b8495; font-weight: 400; }
.pg-field input, .pg-field select, .pg-field textarea {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 12px 13px;
  border: 1px solid #2133631f;
  border-radius: 10px;
  outline: none;
  background: #ffffff8c;
  box-shadow: inset 0 1px 2px #21336303, 0 1px 0 #ffffffcc;
  color: var(--pg-navy);
  font: inherit;
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pg-field input::placeholder, .pg-field textarea::placeholder { color: #8b93a3; opacity: 1; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus { outline: none; border-color: #5579bd; background: #ffffffd6; box-shadow: 0 0 0 3px #567dc317; }
.pg-field input:user-invalid, .pg-field select:user-invalid { border-color: #da4a55; }
.pg-field textarea { resize: vertical; min-height: 72px; max-height: 180px; line-height: 1.6; }
.pg-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23566480' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 27px; }
.pg-field-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.pg-submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 14px 17px; border: 1px solid #ff6c7450; border-radius: 11px; color: white; background: linear-gradient(125deg, #f3333d, #ed1c25 60%, #d91320); box-shadow: 0 5px 13px #ed1c251a, inset 0 1px 0 #ffffff30; font-size: 12px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pg-submit-button:hover { box-shadow: 0 6px 20px #ed1c2533; transform: translateY(-1px); }
.pg-submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.pg-form-note { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin: 13px 0 0; color: #7e8798; font-size: 8px; line-height: 1.7; }
.pg-form-note svg { margin-top: 1px; }
.pg-career-alternative { margin: auto 0 0; padding-top: 23px; text-align: center; color: #818a9b; font-size: 9px; line-height: 1.7; }
.pg-career-alternative a { color: #4f638c; font-weight: 500; text-underline-offset: 3px; }
.pg-form-error { padding: 12px; border: 1px solid #ed1c2525; border-radius: 9px; color: #a71824; background: #ed1c2508; font-size: 11px; line-height: 1.6; }
.pg-career-success { margin-block: auto; text-align: center; outline: none; padding: 55px 0; }
.pg-success-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 28px; color: #345c9c; border: 1px solid #ffffff; border-radius: 22px; background: linear-gradient(135deg, #fff, #dce7f7); box-shadow: 0 8px 20px #2133630c; }
.pg-career-success h3 { font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.pg-career-success p { color: #737e94; font-size: 12px; line-height: 1.8; }
.pg-career-success .pg-submit-button { margin-top: 30px; }
.pg-career-dialog [hidden] { display: none !important; }
.pg-recruitment-callout { padding: 56px 24px; text-align: center; background: linear-gradient(120deg, #eef2f9, #fff); color: var(--pg-navy); }
.pg-recruitment-callout h2 { margin: 0 0 12px; font-size: 29px; font-weight: 500; letter-spacing: -.04em; }
.pg-recruitment-callout p { margin: 0 auto 24px; max-width: 540px; font-size: 14px; line-height: 1.8; color: #71809a; }
.pg-recruitment-callout .pg-career-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.pg-fallback-form { max-width: 520px; margin: 30px auto; padding: 25px; text-align: left; }
.pg-application-sent { max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #21336320; border-radius: 12px; background: white; }

@keyframes pg-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pg-glass-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1100px) {
  .pg-menu-container { width: calc(100% - 48px); }
  .pg-menu-shell { gap: 24px; }
  .pg-navigation { gap: 22px; }
  .pg-career-button { gap: 12px; padding-inline: 16px; }
}
@media (max-width: 900px) {
  .pg-menu-container { width: calc(100% - 36px); }
  .pg-menu-topline { display: none; }
  .pg-menu-shell, .pg-menu.menuScrolled .pg-menu-shell { height: 80px; gap: 16px; }
  .pg-menu .logoWrap { flex-basis: 165px; margin-right: auto; }
  .pg-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 10px; border: 1px solid #ffffff25; border-radius: 10px; background: #ffffff07; color: white; }
  .pg-menu-toggle > span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s; }
  .pg-menu-open .pg-menu-toggle > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .pg-menu-open .pg-menu-toggle > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .pg-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 80px); overflow: auto; margin: 0; padding: 50px 32px 32px; border-top: 1px solid #ffffff12; background: linear-gradient(155deg, #213363, #1b2c54); box-shadow: 0 24px 30px #10204435; }
  .pg-menu-open .pg-navigation { display: flex; align-items: stretch; flex-direction: column; gap: 0; animation: pg-panel-in .2s ease-out; }
  .pg-mobile-eyebrow { display: block; margin-bottom: 18px; color: #99aacc; font-size: 9px; letter-spacing: .15em; }
  .pg-nav-link { display: flex; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid #ffffff12; font-size: 22px; font-weight: 400; }
  .pg-nav-link::before { bottom: 10px; }
  .pg-careers-dot { margin-right: 3px; }
  .pg-services-panel { position: static; width: 100%; margin: 10px 0 5px; padding: 14px 10px 10px; box-shadow: none; border: 1px solid #ffffff18; border-radius: 12px; background: #ffffff08; }
  .pg-dropdown-eyebrow { color: #a7b7d5; padding-bottom: 7px; }
  .pg-services-panel > a { color: #e0e7f5; font-size: 12px; }
  .pg-services-panel > a:first-of-type { border-color: #ffffff17; }
  .pg-services-panel > a:hover { background: #ffffff0c; color: white; }
  .pg-mobile-note { display: block; padding-top: 32px; }
  .pg-mobile-note > span { font-size: 11px; color: #a7b7d5; }
  .pg-mobile-note > a { display: flex; justify-content: space-between; margin-top: 12px; color: white; text-decoration: none; font-size: 13px; font-weight: 500; }
}
@media (max-width: 650px) {
  .pg-menu-shell, .pg-menu.menuScrolled .pg-menu-shell { height: 76px; gap: 10px; }
  .pg-menu-container { width: calc(100% - 32px); }
  .pg-cta-desktop { display: none; }
  .pg-cta-mobile { display: inline; }
  .pg-menu .pg-career-button { min-height: 42px; padding: 11px 13px; font-size: 11px; gap: 9px; }
  .pg-menu .logoWrap { flex-basis: 155px; width: 155px; }
  .pg-menu-toggle { width: 38px; height: 42px; }
  .pg-navigation { max-height: calc(100dvh - 76px); }
  .pg-career-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .pg-career-layout { grid-template-columns: 1fr; }
  .pg-career-story { padding: 25px 25px 23px; border-radius: 23px 23px 0 0; }
  .pg-story-brand { gap: 9px; }
  .pg-story-emblem { flex-basis: 30px; width: 30px; height: 37px; }
  .pg-story-emblem img { width: 30px; height: auto; top: -47px; }
  .pg-story-brand > span { font-size: 9px; }
  .pg-story-brand > span > span { font-size: 6px; margin-top: 4px; }
  .pg-story-copy { margin: 25px 0 0; }
  .pg-story-eyebrow { font-size: 7px; }
  .pg-story-copy h2 { margin: 12px 0 10px; font-size: 32px; }
  .pg-story-copy h2 br { display: none; }
  .pg-story-copy h2 br::after { content: ' '; }
  .pg-story-copy p { max-width: 290px; font-size: 11px; }
  .pg-career-roles, .pg-story-footer { display: none; }
  .pg-dialog-close { top: 14px; right: 14px; background: #ffffffdd; }
  .pg-career-content { padding: 27px 24px 22px; }
  .pg-form-heading h3 { font-size: 24px; }
  .pg-form-heading p { margin-bottom: 23px; font-size: 12px; }
  .pg-field label { font-size: 11px; }
  .pg-field input, .pg-field select, .pg-field textarea { font-size: 16px; min-height: 48px; padding: 12px; }
  .pg-field-row { grid-template-columns: 1fr; gap: 0; }
  .pg-field select { padding-right: 28px; }
  .pg-field textarea { min-height: 85px; }
  .pg-submit-button { font-size: 13px; min-height: 50px; }
  .pg-career-alternative { font-size: 10px; }
  .pg-form-note { font-size: 9px; }
  .pg-career-success { padding: 24px 0; }
}
@media (max-width: 360px) {
  .pg-menu-container { width: calc(100% - 24px); }
  .pg-menu-shell { gap: 6px; }
  .pg-menu .logoWrap { flex-basis: 151px; width: 151px; }
  .pg-menu .pg-career-button { padding-inline: 9px; gap: 5px; font-size: 10px; }
  .pg-menu .pg-career-button svg { width: 14px; }
  .pg-menu-toggle { width: 34px; }
  .pg-career-story { padding-inline: 20px; }
  .pg-career-content { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-menu *, .pg-menu, .pg-career-dialog, .pg-career-dialog * { animation: none !important; transition: none !important; }
}
