*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050608;
  color: #f3f0e8;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-bottom: 0;
  overflow-x: clip;
  position: relative;
}

section[id] {
  scroll-margin-top: 76px;
}

/* Subtle Film Grain Texture across the dark theatrical surface */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--v-accent);
  outline-offset: 3px;
}

.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;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
}

.is-swapping {
  animation: blurSwap 0.42s var(--ease-editorial);
}

@keyframes blurSwap {
  from {
    opacity: 0.2;
    filter: blur(5px);
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Non-Sticky Top Institutional Ribbon */
.inst-strip {
  background: #030406;
  border-bottom: 1px solid rgba(210, 189, 142, 0.16);
  padding: 0.42rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--v-muted);
}

.inst-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.inst-strip strong {
  color: var(--v-bronze);
  font-weight: 600;
}

@media (max-width: 720px) {
  .wrap {
    width: min(1320px, 100% - 2rem);
  }

  .inst-strip {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .is-swapping {
    animation: none;
  }
}
