:root {
  --shell-black: #050505;
  --shell-white: #f7f7f4;
  --shell-acid: #dfff00;
  --shell-line: rgba(255, 255, 255, .18);
  --shell-pad: clamp(22px, 4.6vw, 76px);
}

body.global-menu-open { overflow: hidden; }

.global-header {
  position: fixed;
  z-index: 190;
  inset: 0 0 auto;
  height: 86px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  padding: 0 var(--shell-pad);
  color: #fff;
  transition: height .3s ease, background .3s ease, border-color .3s ease;
}

.global-header::after {
  content: "";
  position: absolute;
  right: var(--shell-pad);
  bottom: 0;
  left: var(--shell-pad);
  height: 1px;
  background: rgba(255, 255, 255, .32);
  transition: right .3s ease, left .3s ease, background .3s ease;
}

.global-header.is-scrolled,
.global-header.is-open {
  height: 72px;
  background: rgba(5, 5, 5, .96);
  backdrop-filter: blur(18px);
}

.global-header.is-scrolled::after,
.global-header.is-open::after {
  right: 0;
  left: 0;
  background: var(--shell-line);
}

.global-brand {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(170px, 15vw, 244px);
}

.global-brand img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 48px);
  height: 100%;
  font: 800 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.global-nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  background: #fff;
  transition: transform .25s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav a.global-nav__campaign::after {
  background: var(--shell-acid);
}

.global-header__tools {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.global-header__region {
  color: rgba(255, 255, 255, .68);
  font: 800 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.global-header__age {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  font: 900 10px/1 Arial, Helvetica, sans-serif;
}

.global-menu {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .46);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.global-menu span,
.global-menu::before,
.global-menu::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.global-menu::before { top: 15px; }
.global-menu span { top: 23px; }
.global-menu::after { top: 31px; }
.global-menu[aria-expanded="true"]::before { top: 23px; transform: rotate(45deg); }
.global-menu[aria-expanded="true"] span { opacity: 0; }
.global-menu[aria-expanded="true"]::after { top: 23px; transform: rotate(-45deg); }

.campaign-page .global-header { top: 34px; right: 0; }
.campaign-page .brand-rail,
.campaign-page .age-stamp { display: none; }
.campaign-page .top-actions { top: 130px; }
.campaign-page .stage { padding-top: calc(120px + var(--stage-pad)); }

.global-footer {
  position: relative;
  z-index: 5;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(92px, 9.5vw, 152px) var(--shell-pad) 48px;
  background: var(--shell-black);
  color: #fff;
}

.global-footer__directory {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, .6fr));
  gap: 40px;
  min-height: 390px;
  padding: 0 0 82px;
}

.global-footer__mark {
  width: min(330px, 85%);
}

.global-footer__mark img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.global-footer__country {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #777;
  font: 800 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.global-footer__country::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--shell-acid);
}

.global-footer__group h2 {
  margin: 0 0 22px;
  color: #656565;
  font: 900 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.global-footer__group a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  color: inherit;
  font: 800 12px/1.3 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.global-footer__group a:hover,
.global-footer__group a:focus-visible {
  color: var(--shell-acid);
}

.global-footer__warning {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--shell-line);
  border-bottom: 1px solid var(--shell-line);
}

.global-footer__warning strong {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  font: 900 11px/1 Arial, Helvetica, sans-serif;
}

.global-footer__warning p {
  max-width: 900px;
  margin: 0;
  color: #b0b0b0;
  font: 700 11px/1.55 Arial, Helvetica, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.global-footer__warning span {
  color: #6f6f6f;
  font: 800 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--shell-line);
  color: #666;
  font: 700 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.global-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.global-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.global-footer__legal a:hover,
.global-footer__legal a:focus-visible { color: #fff; }

@media (max-width: 960px) {
  .global-header {
    height: 76px;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .global-brand { grid-column: 1; grid-row: 1; }
  .global-header__tools { display: none; }
  .global-menu { display: block; grid-column: 2; grid-row: 1; justify-self: end; }

  .global-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
    padding: 120px var(--shell-pad) 50px;
    transform: translateY(-105%);
    background: var(--shell-black);
    transition: transform .38s cubic-bezier(.65, 0, .35, 1);
  }

  .global-nav::before {
    content: "AIRSCREAM / SOUTH AFRICA";
    position: absolute;
    top: 118px;
    color: #626262;
    font: 800 9px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .13em;
  }

  .global-nav.is-open { transform: none; }

  .global-header.is-open .global-brand {
    position: fixed;
    top: 26px;
    left: var(--shell-pad);
  }

  .campaign-page .global-header.is-open .global-brand {
    top: 58px;
  }

  .campaign-page .global-nav::before { display: none; }

  .global-nav a {
    width: 100%;
    height: auto;
    justify-content: start;
    padding: 16px 0 14px;
    border-bottom: 1px solid #242424;
    font: italic 900 clamp(36px, 9vw, 62px)/.92 var(--display, "Arial Black", sans-serif);
    letter-spacing: -.025em;
  }

  .global-nav a::after {
    right: auto;
    bottom: 13px;
    width: 40px;
    height: 3px;
  }

  .global-footer__directory { grid-template-columns: 1.2fr repeat(3, 1fr); }
}

@media (max-width: 660px) {
  .global-header {
    height: 72px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .global-header::after {
    right: 18px;
    left: 18px;
  }

  .global-brand { width: 166px; }

  .campaign-page .global-header { top: 34px; }
  .campaign-page .top-actions { top: 118px; right: 12px; }
  .campaign-page .age-stamp { display: none; }
  .campaign-page .stage { padding-top: calc(112px + var(--stage-pad)); }

  .global-footer {
    min-height: 730px;
    padding: 88px 22px 32px;
  }

  .global-footer__directory {
    grid-template-columns: 1fr 1fr;
    gap: 44px 20px;
    min-height: 550px;
    padding: 0 0 64px;
  }

  .global-footer__identity { grid-column: 1 / -1; }
  .global-footer__group:last-child { grid-column: 1 / -1; }

  .global-footer__warning {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .global-footer__warning span { display: none; }
  .global-footer__warning p { font-size: 9px; }

  .global-footer__base {
    flex-direction: column;
    gap: 18px;
  }

  .global-footer__legal {
    justify-content: flex-start;
    gap: 8px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-header,
  .global-nav,
  .global-nav a::after { transition: none; }
}

/* Round 5: remove the oversized dead band while preserving footer hierarchy */
.global-footer {
  min-height: 0;
  padding-top: clamp(76px, 7vw, 112px);
  padding-bottom: 38px;
}

.global-footer__directory {
  min-height: 0;
  padding-bottom: clamp(64px, 6vw, 92px);
}

@media (max-width: 660px) {
  .global-footer {
    min-height: 0;
    padding: 72px 22px 28px;
  }

  .global-footer__directory {
    min-height: 0;
    gap: 38px 20px;
    padding-bottom: 54px;
  }
}
