:root {
  --portal-ink: #063746;
  --portal-muted: #4d6b73;
  --portal-teal: #0f6d83;
  --portal-green: #16814a;
  --portal-cream: #fdf9ec;
  --portal-focus: #f2a900;
}

body.portal-page {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--portal-ink);
  background: var(--portal-cream);
  overflow-x: hidden;
}

.portal-header {
  position: absolute;
  z-index: 20;
  top: clamp(0.6rem, 1.3vw, 1.4rem);
  right: clamp(0.6rem, 1.3vw, 1.4rem);
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.24rem;
  border: 1px solid rgba(15, 109, 131, 0.16);
  border-radius: 999px;
  background: rgba(253, 249, 236, 0.88);
  box-shadow: 0 5px 18px rgba(6, 55, 70, 0.08);
  backdrop-filter: blur(10px);
}

.language-nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--portal-muted);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.05em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.language-nav a:hover {
  color: var(--portal-ink);
  border-color: rgba(15, 109, 131, 0.22);
  background: rgba(255, 255, 255, 0.65);
}

.language-nav a[aria-current="page"] {
  color: #fff;
  border-color: #07566a;
  background: #07566a;
}

.language-nav a:focus-visible {
  outline: 3px solid var(--portal-focus);
  outline-offset: 3px;
}

.portal-main {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.portal-artboard {
  position: relative;
  width: min(100vw, calc(100vh * 1.90319));
  width: min(100vw, calc(100svh * 1.90319));
  aspect-ratio: 1730 / 909;
  container-type: inline-size;
}

.portal-artwork {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.portal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-artboard > section.container {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.service-grid {
  position: absolute;
  inset: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-grid > li {
  display: contents;
}

.service-card {
  --service-x: 50%;
  --service-top: 40%;
  --service-hit: 10.17cqw;
  --service-width: 14cqw;
  position: absolute;
  left: var(--service-x);
  top: var(--service-top);
  width: var(--service-width);
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  color: var(--portal-ink);
  text-align: center;
  pointer-events: auto;
}

.service-card[data-service="the-bridge"] {
  --service-x: 70.173%;
  --service-top: 42.684%;
  --service-hit: 12.95cqw;
  --service-width: 15cqw;
}

.service-card[data-service="eu-sustainability"] {
  --service-x: 78.902%;
  --service-top: 16.062%;
  --service-hit: 10.87cqw;
  --service-width: 15cqw;
}

.service-card[data-service="scenario-lab"] {
  --service-x: 91.358%;
  --service-top: 46.370%;
  --service-hit: 10.17cqw;
  --service-width: 14cqw;
}

.service-card[data-service="environmental-intelligence"] {
  --service-x: 58.410%;
  --service-top: 69.032%;
  --service-hit: 10.17cqw;
  --service-width: 20cqw;
}

.service-card[data-service="construct"] {
  --service-x: 78.757%;
  --service-top: 73.377%;
  --service-hit: 10.17cqw;
  --service-width: 13cqw;
}

.service-card__circle {
  width: var(--service-hit);
  aspect-ratio: 1;
  display: block;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card h3 {
  width: 100%;
  margin: clamp(0.06rem, 0.16cqw, 0.2rem) 0 0;
  color: var(--portal-ink);
  font-size: clamp(0.72rem, 0.86cqw, 0.95rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.022em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  text-shadow:
    0 0 4px var(--portal-cream),
    0 0 8px var(--portal-cream),
    0 1px 12px rgba(253, 249, 236, 0.95);
}

.service-status {
  margin-top: clamp(0.04rem, 0.1cqw, 0.12rem);
  color: var(--portal-muted);
  font-size: clamp(0.58rem, 0.54cqw, 0.62rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-shadow:
    0 0 4px var(--portal-cream),
    0 0 8px var(--portal-cream);
}

.service-status--live {
  color: var(--portal-green);
}

.service-card:hover .service-card__circle {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(15, 109, 131, 0.22);
  transform: scale(1.025);
}

.service-card:focus-visible {
  outline: none;
}

.service-card:focus-visible .service-card__circle {
  outline: 3px solid var(--portal-focus);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 899px) {
  .portal-header {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: center;
    padding: 0.7rem 0.75rem;
  }

  .language-nav {
    background: rgba(255, 255, 255, 0.68);
  }

  .portal-main {
    min-height: 0;
    display: block;
  }

  .portal-artboard {
    width: 100%;
    aspect-ratio: auto;
    container-type: normal;
  }

  .portal-artwork {
    width: 100%;
    height: auto;
  }

  .portal-artboard > section.container {
    position: static;
    width: min(100% - 1.5rem, 700px);
    margin: 0 auto;
    padding: 1rem 0 2rem;
    pointer-events: auto;
  }

  .service-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .service-grid > li {
    display: block;
  }

  .service-grid > li:first-child {
    grid-column: 1 / -1;
  }

  .service-card {
    position: static;
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(15, 109, 131, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 7px 20px rgba(6, 55, 70, 0.06);
    transform: none;
    text-align: left;
  }

  .service-card__circle {
    display: none;
  }

  .service-card h3 {
    margin: 0;
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    line-height: 1.16;
    text-align: left;
    text-shadow: none;
  }

  .service-status {
    margin: 0;
    font-size: clamp(0.52rem, 2.2vw, 0.64rem);
    text-align: right;
    text-shadow: none;
  }

  .service-card:hover {
    border-color: rgba(15, 109, 131, 0.42);
    background: rgba(255, 255, 255, 0.92);
  }

  .service-card:focus-visible {
    outline: 3px solid var(--portal-focus);
    outline-offset: 2px;
  }
}

@media (max-width: 460px) {
  .language-nav a {
    min-width: 44px;
    min-height: 44px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid > li:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-nav a,
  .service-card__circle {
    transition: none;
  }
}
