:root {
  --black: #050505;
  --black-2: #101010;
  --white: #ffffff;
  --wine: #821436;
  --wine-dark: #5e0d27;
  --gray: #c4c4c4;
  --line: #2a2a2a;
  --shell: 1560px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.landing-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.embassy-band {
  display: grid;
  grid-template-columns: clamp(170px, 16vw, 250px) minmax(0, 1fr);
  min-height: 170px;
  background: var(--white);
  color: var(--black);
  border-bottom: 5px solid var(--wine);
}

.embassy-band__uees {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid #e4e4e4;
  background: var(--white);
}

.embassy-band__uees-mark {
  display: grid;
  width: min(155px, 100%);
}

.embassy-band__uees-mark img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.embassy-band__uees-base {
  filter: brightness(0);
}

.embassy-band__uees-accent {
  clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%);
  filter: brightness(0) saturate(100%) invert(12%) sepia(56%) saturate(3561%) hue-rotate(324deg) brightness(86%) contrast(96%);
}

.embassy-band__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.embassy-band__track {
  display: flex;
  width: max-content;
  min-height: 170px;
  animation: embassy-band-scroll 52s linear infinite;
  will-change: transform;
}

.embassy-band__viewport:hover .embassy-band__track {
  animation-play-state: paused;
}

.embassy-band__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.embassy-band__logo {
  display: flex;
  width: clamp(210px, 18vw, 280px);
  height: 118px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.embassy-band__logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.embassy-band__logo img[src="assets/embassy-spain.png"] {
  object-fit: cover;
}

.embassy-band__logo--world {
  width: clamp(170px, 15vw, 230px);
}

@keyframes embassy-band-scroll {
  to { transform: translateX(-50%); }
}

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 5px solid var(--wine);
  border-bottom: 1px solid var(--line);
  --hero-background: url("assets/banner-global-leaders.jpg");
  background: var(--black);
}

.landing-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--hero-background);
  background-position: left center;
  background-size: cover;
}

.landing-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(60, 5, 24, 0.18), rgba(5, 5, 5, 0.36) 42%, rgba(5, 5, 5, 0.84));
}

.landing-hero__inner {
  display: flex;
  position: relative;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-block: 72px;
}

.landing-hero p {
  width: min(52%, 760px);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  text-wrap: pretty;
}

.opportunities {
  padding-block: 68px 100px;
}

.opportunities__heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  width: 90%;
  max-width: none;
  align-items: end;
  margin: 0 auto 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.opportunities__heading span {
  color: #c84470;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.opportunities__heading h1 {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 90%;
  margin-inline: auto;
  gap: 20px;
  align-items: stretch;
}

.opportunity-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.opportunity-card h2 {
  font-size: clamp(25px, 2.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.opportunity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opportunity-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.opportunity-card__body p {
  font-size: 16px;
}

.opportunity-card--featured {
  grid-row: 1 / span 2;
  grid-template: auto 1fr / 1fr;
  min-height: 650px;
  background: var(--black-2);
}

.opportunity-card--featured::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.04) 30%, rgba(5, 5, 5, 0.94) 100%);
  pointer-events: none;
}

.opportunity-card--featured h2,
.opportunity-card--featured img,
.opportunity-card--featured .opportunity-card__body {
  grid-column: 1;
}

.opportunity-card--featured img {
  grid-row: 1 / -1;
}

.opportunity-card--featured h2 {
  z-index: 1;
  grid-row: 1;
  align-self: start;
  width: fit-content;
  margin: 28px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(5, 5, 5, 0.3);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.opportunity-card--featured .opportunity-card__body {
  z-index: 1;
  grid-row: 2;
  align-self: end;
  max-width: 680px;
  padding: 42px;
}

.opportunity-card--featured .opportunity-card__body p {
  color: var(--white);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.35;
  text-wrap: balance;
}

.opportunity-card--compact {
  grid-template-columns: minmax(190px, 0.44fr) minmax(0, 0.56fr);
  grid-template-rows: auto 1fr;
  min-height: 315px;
  background: var(--white);
  color: var(--black);
}

.opportunity-card--compact h2 {
  grid-column: 2;
  grid-row: 1;
  padding: 30px 30px 0;
  color: var(--wine);
}

.opportunity-card--compact img {
  grid-column: 1;
  grid-row: 1 / span 2;
  transform: scaleX(-1);
}

.opportunity-card--compact .opportunity-card__body {
  grid-column: 2;
  grid-row: 2;
  justify-content: space-between;
  padding: 18px 30px 30px;
}

.opportunity-card--compact .opportunity-card__body p {
  color: #4b4b4b;
  line-height: 1.5;
}

.opportunity-card--reverse {
  grid-template-columns: minmax(0, 0.56fr) minmax(190px, 0.44fr);
}

.opportunity-card--reverse h2,
.opportunity-card--reverse .opportunity-card__body {
  grid-column: 1;
}

.opportunity-card--reverse img {
  grid-column: 2;
}

.card-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.card-button--secondary {
  border-color: var(--black);
  background: transparent;
  color: var(--black);
}

.opportunity-card--featured .card-button {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.card-button:hover,
.card-button:focus-visible {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  color: var(--white);
}

.landing-footer {
  border-top: 1px solid var(--line);
  background: var(--black-2);
}

.landing-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
  padding-block: 54px;
}

.landing-footer img {
  max-width: 240px;
  max-height: 86px;
  margin-inline: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.landing-footer img:nth-child(2) {
  filter: none;
}

@media (max-width: 900px) {
  .opportunity-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
  }

  .opportunities__heading {
    width: 100%;
  }

  .opportunity-card--featured {
    grid-row: auto;
    min-height: 460px;
  }
}

@media (max-width: 600px) {
  .landing-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .embassy-band {
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 122px;
  }

  .embassy-band__uees {
    padding: 14px;
  }

  .embassy-band__uees-mark img {
    max-height: 64px;
  }

  .embassy-band__track {
    min-height: 122px;
    animation-duration: 42s;
  }

  .embassy-band__set {
    gap: 20px;
    padding-right: 20px;
  }

  .embassy-band__logo {
    width: 180px;
    height: 88px;
    padding: 6px;
  }

  .embassy-band__logo--world {
    width: 145px;
  }

  .landing-hero__inner {
    min-height: 0;
    padding-block: 56px;
  }

  .landing-hero p {
    width: 100%;
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
    text-wrap: pretty;
  }

  .opportunities {
    padding-block: 54px 72px;
  }

  .opportunities__heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .opportunity-card--featured {
    min-height: 450px;
  }

  .opportunity-card--featured h2 {
    margin: 20px;
  }

  .opportunity-card--featured .opportunity-card__body {
    padding: 26px 22px;
  }

  .opportunity-card--featured .opportunity-card__body p {
    font-size: 19px;
  }

  .opportunity-card--compact,
  .opportunity-card--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: auto 220px auto;
  }

  .opportunity-card--compact h2,
  .opportunity-card--reverse h2 {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 22px;
  }

  .opportunity-card--compact img,
  .opportunity-card--reverse img {
    grid-column: 1;
    grid-row: 2;
  }

  .opportunity-card--compact .opportunity-card__body,
  .opportunity-card--reverse .opportunity-card__body {
    grid-column: 1;
    grid-row: 3;
    padding: 24px 22px;
  }

  .landing-footer__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
