html {
  scrollbar-gutter: stable;
}

/* Straight corners site-wide (incl. Bootstrap utilities) */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

/* EUS intro loader — McGill | photos | EUS */
.eus-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  pointer-events: none;
}

.eus-loader[hidden],
.eus-loader.is--done {
  display: none !important;
}

.eus-loader-active {
  overflow: hidden;
}

.eus-loader-active .navbar {
  visibility: hidden;
  pointer-events: none;
}

.eus-loader-active .home-hero [data-home-animate] {
  opacity: 0;
}

.eus-loader-active .home-hero__media,
.eus-loader-active .home-hero__grain,
.eus-loader-active .home-hero__scrim {
  opacity: 0;
}

/* After intro: keep the expanded photo — never swap to a second image.
   Hero stacks above the fixed bleed (z-index 1) so copy stays readable;
   transparent media areas let the bleed show through as the background. */
.home-hero.is-intro-bridged {
  z-index: 2;
}

.home-hero.is-intro-bridged .home-hero__media,
.home-hero.is-intro-bridged .home-hero__scrim {
  opacity: 0 !important;
  visibility: hidden;
}

.eus-loader__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  font-family: "Pliant", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.eus-loader__mcgill {
  color: #222;
}

.eus-loader__eus {
  color: #d42e12;
}

.eus-loader__slot {
  position: relative;
  width: 0.95em;
  height: 1.05em;
  flex-shrink: 0;
  overflow: hidden;
  background: #111;
}

.eus-loader__slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(100%);
  opacity: 0;
}

.eus-loader__slot img.is-active {
  opacity: 1;
}

.eus-loader__bleed {
  position: fixed;
  z-index: 2001;
  overflow: hidden;
  background: #111;
  pointer-events: none;
  will-change: top, left, width, height;
}

.eus-loader__bleed[hidden] {
  display: none !important;
}

.eus-loader__bleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(100%);
  display: block;
}

.eus-loader__bleed-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 18, 17, 0.28) 0%,
      rgba(20, 18, 17, 0.35) 40%,
      rgba(20, 18, 17, 0.78) 100%
    );
  pointer-events: none;
}

.eus-loader__bleed-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("https://osmo.b-cdn.net/resource-media/noise.avif") 50% 50% / 7.8125em repeat;
  opacity: 0.38;
  filter: contrast(125%) brightness(60%);
}

@media (prefers-reduced-motion: reduce) {
  .eus-loader {
    display: none !important;
  }
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Pliant", "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  overflow-x: clip;
}

/* Pixelated wave page transition */
.transition {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: clip;
}

.transition__panel {
  opacity: 0;
  flex-flow: row;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.transition__col {
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  display: flex;
}

.transition__pixel {
  aspect-ratio: 1;
  background-color: #d42e12;
  width: 100%;
}

.page-shell {
  min-height: 40vh;
  background: #fff;
}

/* Keep stacked Barba containers from leaking into layout */
body [data-barba="container"] + [data-barba="container"] {
  pointer-events: none;
}

/* Navigation — locked metrics so page fonts/themes never resize the bar */
.navbar {
  z-index: 50;
  height: calc(62px + 1.3rem);
  min-height: calc(62px + 1.3rem);
  padding: 0.65rem 1.5rem;
  background: #fff !important;
  border-bottom: 1px solid #eee;
  box-shadow: none;
  align-items: center;
  font-family: "Pliant", "Segoe UI", sans-serif;
  font-size: 16px;
}

.navbar .container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  padding: 0;
  margin-right: 0;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav.ml-auto {
  margin-left: auto !important;
}

.navbar-logo {
  width: auto;
  height: 62px;
  object-fit: contain;
  display: block;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav li {
  padding-right: 0.15rem;
}

.nav-link {
  font-family: "Pliant", "Segoe UI", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #444 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0;
  line-height: 1.2 !important;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: #111 !important;
  background-color: #f5f5f5;
}

.nav-link.active {
  color: #d42e12 !important;
  background-color: transparent;
  font-weight: 500;
}

.navbar-toggler {
  border: 1px solid #e5e5e5;
  padding: 0.35rem 0.5rem;
}

.roombooking-button {
  background-color: #d42e12;
  color: #fff !important;
  border-radius: 0;
  padding: 0.5rem 1.05rem !important;
  text-align: center;
  font-family: "Pliant", "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-left: 0.35rem;
}

.roombooking-button:hover {
  background-color: #b82610;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .navbar {
    height: auto;
    min-height: 3.75rem;
    padding: 0.55rem 1rem;
  }

  .navbar-logo {
    height: 44px;
  }

  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-collapse {
    flex-grow: 1;
    flex-basis: 100%;
    margin-top: 0.35rem;
    padding-bottom: 0.5rem;
  }

  .navbar-nav {
    align-items: stretch;
  }

  .navbar-nav li {
    padding-right: 0;
  }

  .nav-link {
    font-size: 1.1rem !important;
    padding: 0.85rem 0.35rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .roombooking-button {
    margin-left: 0;
    margin-top: 0.35rem;
    text-align: center;
    min-height: 44px;
    padding: 0.85rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Layout helpers */
.padding {
  padding-bottom: 2rem;
}

.lead {
  font-size: 1.3rem;
}

.btn-primary {
  background-color: #d42e12;
  border: 1px solid #aa250d;
}

/* Home */
.home-page {
  background: #fff;
  color: #222;
  font-family: "Pliant", "Segoe UI", sans-serif;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: flex-end;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  overflow: hidden;
  color: #fff;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  filter: grayscale(100%);
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("https://osmo.b-cdn.net/resource-media/noise.avif") 50% 50% / 7.8125em repeat;
  opacity: 0.38;
  filter: contrast(125%) brightness(60%);
}

.home-hero__grain[data-grain-animate="true"] {
  animation: home-grain 0.6s steps(1, end) infinite;
}

@keyframes home-grain {
  0% {
    background-position: 0em 0em;
  }
  20% {
    background-position: -0.5em 0.3em;
  }
  40% {
    background-position: 0.4em -0.2em;
  }
  60% {
    background-position: -0.3em -0.4em;
  }
  80% {
    background-position: 0.2em 0.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__grain[data-grain-animate="true"] {
    animation: none;
  }
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(20, 18, 17, 0.28) 0%,
      rgba(20, 18, 17, 0.35) 40%,
      rgba(20, 18, 17, 0.78) 100%
    );
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 3;
  width: min(100%, 40rem);
}

.home-hero__eyebrow {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.home-hero__title-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.home-hero__title-word {
  display: inline-block;
  will-change: transform;
}

.home-hero__lead {
  margin: 0.9rem 0 1.4rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d42e12;
  background: #d42e12;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-hero__cta:hover {
  background: #b82610;
  border-color: #b82610;
  color: #fff;
  text-decoration: none;
}

.home-hero__cta--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.home-hero__cta--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #222;
}

@media (max-width: 700px) {
  .home-hero {
    min-height: calc(100svh - 3.75rem);
    align-items: flex-end;
    padding: 1.25rem 1rem 1.75rem;
  }

  .home-hero__scrim {
    background:
      linear-gradient(180deg, rgba(14, 12, 11, 0.25) 0%, rgba(14, 12, 11, 0.72) 55%, rgba(14, 12, 11, 0.88) 100%);
  }

  .home-hero__title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .home-hero__lead {
    margin: 0.75rem 0 1.15rem;
    font-size: 0.98rem;
  }

  .home-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .home-hero__cta {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.65rem;
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .home-hero__actions {
    grid-template-columns: 1fr;
  }
}

/* Get Involved — styles live in involved.css */

/* Contact */
.contact-list {
  max-width: 720px;
  margin: 0 auto;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.contact-role,
.contact-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-email {
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  .contact-row {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: center;
    text-align: left;
  }
}

/* Resources */
.resource-block {
  margin-bottom: 2rem;
}

.resource-block h2 {
  padding: 5px;
}

.resource-logo {
  height: 4cm;
  width: 4.3cm;
  object-fit: contain;
}

.resource-logo.rounded {
  border-radius: 0;
}

.resource-block .information p {
  margin-bottom: 0.5rem;
}

/* Footer parallax */
.footer-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
  padding-top: 3rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  color: #fff;
  min-height: auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.site-footer__links-row {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.site-footer__col--logo {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.site-footer__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(140px, 200px) minmax(240px, 300px);
  gap: 2.5rem;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.site-footer__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.site-footer__a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  opacity: 1;
}

.site-footer__a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05em;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.625, 0.05, 0, 1);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.site-footer__a:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer__a[href^="tel:"] {
  white-space: nowrap;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.site-footer__muted {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
}

.site-footer__brand {
  display: block;
  width: 100%;
  max-width: 260px;
  text-decoration: none;
}

.site-footer__logo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
  filter: brightness(0) invert(1);
  opacity: 1;
}

@media (max-width: 900px) {
  .site-footer {
    padding: 2rem 1.25rem 2.75rem;
  }

  .site-footer__col--logo {
    flex-basis: 100%;
  }

  .site-footer__main {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr 1fr;
    justify-content: start;
    gap: 1.75rem;
  }

  .site-footer__brand {
    max-width: 160px;
  }

  .site-footer__a {
    font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  }

  .site-footer__a[href^="tel:"] {
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    white-space: normal;
  }

  .site-footer__muted {
    font-size: 0.98rem;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 1.75rem 1rem 2.5rem;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__a {
    font-size: 1.2rem;
    padding: 0.2rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.footer-wrap__dark {
  display: none;
}

hr.light {
  border-top: 1px solid #d5d5d5;
  width: 75%;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

/* Media queries */
@media (max-width: 768px) {
  .display-4 {
    font-size: 200%;
  }

  .lead {
    font-size: 1.05rem;
  }

  .page-shell {
    overflow-x: clip;
  }
}
