:root {
  --bg: #1d1d1d;
  --text: #efefef;
  --muted: #a7a7a7;
  --accent: #9bd5e4;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 320;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  position: relative;
  isolation: isolate;
  container-type: inline-size;

  /* 90% of screen height, with 5% top + bottom margins. */
  height: 90svh;
  width: min(94vw, calc(90svh * 0.877));
  margin: 5svh auto;
  overflow: hidden;
}

/* Animated SVG is the background layer for the whole composition. */
.background-art {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 96%;
  height: auto;
  transform: translateX(-50%);
  display: block;
  pointer-events: none;
  user-select: none;
}

.brand-logo {
  position: absolute;
  z-index: 2;
  top: 7.6%;
  left: 9.8%;
  width: 16.8%;
  height: auto;
  display: block;
}

.disciplines {
  position: absolute;
  z-index: 2;
  top: 78.7%;
  left: 6.5%;
  width: 87%;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2.4%;
  margin: 0;

  font-size: clamp(16px, 3.05cqw, 27px);
  line-height: 1;
  font-weight: 320;
  text-align: center;
  white-space: nowrap;
}

.disciplines a,
.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.disciplines a:hover,
.disciplines a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
  outline: none;
}

.about {
  position: absolute;
  z-index: 2;
  top: 85.9%;
  left: 7.2%;
  width: 85.6%;

  color: var(--muted);
  font-size: clamp(10.5px, 1.95cqw, 17px);
  line-height: 1.17;
  font-weight: 320;
  text-align: center;
}

.about p {
  margin: 0;
}

.footer {
  position: absolute;
  z-index: 2;
  left: 7.2%;
  bottom: 1.7%;

  color: #969696;
  font-size: clamp(10px, 1.75cqw, 15px);
  line-height: 1;
  font-weight: 320;
}

/* Narrow screens keep the 90vh frame, while the artwork remains readable. */
@media (max-aspect-ratio: 3 / 4) {
  .site-shell {
    width: 94vw;
  }

  .background-art {
    top: 4%;
    width: 108%;
  }

  .brand-logo {
    top: 8.5%;
    left: 7%;
    width: 20%;
  }

  .disciplines {
    top: 66%;
    left: 3%;
    width: 94%;
    gap: 1%;
    font-size: clamp(14px, 4.1cqw, 20px);
  }

  .about {
    top: 73%;
    left: 5%;
    width: 90%;
    font-size: clamp(10px, 2.8cqw, 14px);
    line-height: 1.25;
  }

  .footer {
    left: 5%;
    bottom: 4%;
    font-size: clamp(10px, 2.7cqw, 13px);
  }
}

@media (max-width: 390px) {
  .disciplines {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
    top: 64%;
  }

  .about {
    top: 76%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-art {
    animation: none !important;
  }

  .disciplines a,
  .footer a {
    transition: none;
  }
}

/* Accessible semantic heading, visually hidden without changing layout. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
