:root {
  --nb-red: #d7192f;
  --ink: #151515;
  --muted: #5e5e5e;
  --deep: #120202;
  --footer: #170504;
  --line: #ececec;
  --page-max: 1120px;
  --mobile-gutter: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: #ffffff;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 94px;
  transform-origin: center;
  animation: loader-pop 1200ms cubic-bezier(.2, .8, .2, 1) infinite;
}

.loader-line {
  width: 150px;
  height: 3px;
  overflow: hidden;
  background: #eeeeee;
}

.loader-line span {
  display: block;
  width: 52%;
  height: 100%;
  background: var(--nb-red);
  animation: loader-run 1100ms ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 53px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  backdrop-filter: blur(12px);
}

.brand {
  justify-self: center;
  width: 52px;
}

.desktop-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #1c1c1c;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover {
  background: #f4f4f4;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 2px;
  background: #202020;
  content: "";
}

.hamburger {
  top: 15px;
}

.hamburger::before {
  top: -5px;
  left: 0;
}

.hamburger::after {
  top: 5px;
  left: 0;
}

.search-icon::before {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.search-icon::after {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  content: "";
}

.globe-icon::before {
  position: absolute;
  inset: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.globe-icon::after {
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 -1px currentColor, 0 5px 0 -1px currentColor;
  content: "";
}

.chevron-icon::before {
  position: absolute;
  top: 12px;
  left: 11px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.hero {
  overflow: hidden;
  background: #f7f7f7;
}

.hero img {
  width: 100%;
  height: clamp(128px, 42vw, 420px);
  object-fit: cover;
  object-position: 33% center;
}

.region-title {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 0 var(--mobile-gutter);
  color: #ffffff;
  background: var(--nb-red);
}

.region-title h1 {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  font-size: clamp(20px, 6.2vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.copy-block {
  width: min(100% - 36px, 610px);
  margin: 39px auto 44px;
  text-align: center;
}

.copy-block p {
  margin: 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.copy-block p + p {
  margin-top: 35px;
}

.offices {
  padding-bottom: 36px;
}

.section-title {
  margin: 0 0 18px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.office-list {
  display: grid;
  gap: 12px;
  width: min(100% - 18px, 940px);
  margin: 0 auto;
}

.office-card {
  position: relative;
  min-height: 215px;
  overflow: hidden;
  isolation: isolate;
  background: #222222;
}

.office-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 65%);
  content: "";
}

.office-card img {
  width: 100%;
  height: 100%;
  min-height: 215px;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.office-card:hover img {
  transform: scale(1.04);
}

.office-copy {
  position: absolute;
  right: 15px;
  bottom: 16px;
  left: 15px;
  z-index: 2;
  max-width: 540px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.office-copy h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.05;
}

.office-copy p,
.office-copy a {
  display: block;
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}

.office-copy a {
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.choices {
  border-top: 1px solid var(--line);
  text-align: center;
}

.choices h2,
.choices a {
  display: block;
  margin: 0;
  padding: 13px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.choices a {
  border-top: 1px solid var(--line);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 14px;
  margin-left: 4px;
  color: #ffffff;
  background: #1677ff;
  border-radius: 99px;
  font-size: 9px;
  vertical-align: middle;
}

.footer {
  color: #ffffff;
  background: var(--footer);
}

.footer-inner {
  display: grid;
  gap: 18px;
  width: min(100% - 36px, var(--page-max));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.footer-column h2 {
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 700;
}

.footer-column a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.independent {
  max-width: 420px;
  margin-top: 4px;
}

.independent img {
  width: 112px;
  height: auto;
  margin-bottom: 11px;
}

.independent p {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

.socials {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 4px;
}

.socials a {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.copyright {
  padding: 19px 18px;
  color: rgba(255, 255, 255, .32);
  background: var(--deep);
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loader-pop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.055);
  }
}

@keyframes loader-run {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(205%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 700px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    padding: 0 26px;
  }

  .site-header > .icon-button {
    display: none;
  }

  .brand {
    justify-self: start;
    width: 70px;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
    font-size: 13px;
    font-weight: 800;
  }

  .hero img {
    object-position: center;
  }

  .region-title {
    min-height: 128px;
    padding: 0 34px;
  }

  .copy-block {
    margin-top: 58px;
    margin-bottom: 64px;
  }

  .copy-block p {
    font-size: 16px;
  }

  .section-title {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .office-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .office-card,
  .office-card img {
    min-height: 310px;
  }

  .office-copy {
    bottom: 22px;
    left: 22px;
    right: 22px;
  }

  .office-copy h3 {
    font-size: 24px;
  }

  .office-copy p,
  .office-copy a {
    font-size: 11px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 48px 0;
  }

  .independent,
  .socials {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1060px) {
  .office-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .office-card,
  .office-card img {
    min-height: 330px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
  }

  .independent {
    grid-column: auto;
    margin-top: 0;
  }

  .socials {
    grid-column: 1 / -1;
  }
}
