/* Typography, color, and visual styling */

:root {
  color-scheme: light;
  --color-background: #ffffff;
  --color-foreground: #1a1a1a;
  --color-muted: #5c5c5c;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --color-primary: #8cc63e;
  /* WCAG-friendly green for text on white (>= 4.5:1). */
  --color-secondary: #4F7224;
  --nav-height: 4.25rem;
}

body {
  font-family: var(--font-sans);
  background-color: transparent;
  color: var(--color-foreground);
}

html {
  background-color: var(--color-background);
}

.site__molecules {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Hide visible scrollbars (scroll still works). */
html.home-page,
body.home-page {
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
}

html.home-page::-webkit-scrollbar,
body.home-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Typography system */
.heading-xl {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-secondary);
}

.heading-lg {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111;
}

.subheading {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

.prose {
  margin-top: 1.25rem;
  max-width: 65ch;
}

.prose p + p {
  margin-top: 1rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.65;
  color: #2e2e2e;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.prose--director {
  font-family: "Times New Roman", Times, serif;
}

/* Top nav (matches screenshot style) */
.site-header {
  position: fixed;
  top: 0.9rem;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: lowercase;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle__icon {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 999px;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 0.9rem;
    right: 1rem;
    left: auto;
    width: auto;
    margin: 0;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 12;
  }

  .site-brand {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.25),
      0 2px 10px rgba(0, 0, 0, 0.18);
  }

  .primary-nav {
    position: fixed;
    top: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 40rem);
    padding: 1.5rem 1.25rem;
    border-radius: 28px;
    background:
      radial-gradient(120% 120% at 20% 10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
      #121212;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.35),
      0 2px 10px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 11;
  }

  .site-header[data-nav-open="true"] .primary-nav {
    display: block;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 10;
  }

  .site-header[data-nav-open="true"] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-transform: lowercase;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }
}

/* ------------------------------------------------------------
   Vertical "liquid glass" section nav (WCAG-friendly)
------------------------------------------------------------- */

.vnav {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.vnav__list {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.6rem;
  border-radius: 999px;
  background:
    radial-gradient(140% 140% at 20% 10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vnav__list {
    background: rgba(255, 255, 255, 0.94);
  }
}

.vnav__link {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
  position: relative;
}

.vnav__link:hover {
  transform: translateY(-1px);
}

.vnav__link.is-active {
  filter: drop-shadow(0 10px 22px rgba(79, 114, 36, 0.20));
}

.vnav__link:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.75);
  outline-offset: 3px;
}

.vnav__link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vnav__link::before {
  content: "";
  position: absolute;
  left: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
}

.vnav__link:hover::after,
.vnav__link:hover::before,
.vnav__link:focus-visible::after,
.vnav__link:focus-visible::before {
  opacity: 1;
}

.vnav__icon {
  width: 28px;
  height: 28px;
}

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

/* Mobile: horizontal bottom nav */
@media (max-width: 900px) {
  .vnav {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    padding: 0 0 env(safe-area-inset-bottom, 0);
  }

  .vnav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.45rem 0.4rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow:
      0 -10px 36px rgba(0, 0, 0, 0.14),
      0 -2px 8px rgba(0, 0, 0, 0.06);
  }

  .vnav__list li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .vnav__link {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  /* Side tooltips don’t fit; labels remain in .vnav__sr for AT */
  .vnav__link::after,
  .vnav__link::before {
    display: none;
  }

  body.home-page {
    padding-bottom: calc(3.85rem + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    padding-top: max(1.25rem, calc(env(safe-area-inset-top, 0px) + 0.75rem));
  }
}


/* Cursor: magnifying glass on hover (interactive elements) */
a:hover,
button:hover,
[role="button"]:hover,
input:hover,
select:hover,
textarea:hover,
summary:hover {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%237BA448' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.25 15.25 L22 22'/%3E%3C/g%3E%3C/svg%3E")
      12 12,
    pointer;
}

/* Game page: disable magnifying-glass cursor */
body.chem-game a:hover,
body.chem-game button:hover,
body.chem-game [role="button"]:hover,
body.chem-game input:hover,
body.chem-game select:hover,
body.chem-game textarea:hover,
body.chem-game summary:hover {
  cursor: pointer;
}

/* Game-only utility: hidden hook elements */
.chem-hidden {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  /* 100dvh tracks mobile browser chrome; reduces layout thrash vs 100vh while scrolling */
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-height) + 1.75rem);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  /* Own compositor layer so title/subtitle paint isn’t tied as tightly to video frame updates */
  transform: translateZ(0);
  text-align: center;
}

.hero-content > * {
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero__molecules {
    display: none;
  }

  .hero__overlay {
    display: none;
  }

  .hero {
    background-image: url("Background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.hero-title {
  color: var(--color-foreground);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-subtitle {
  margin-top: 0.75rem;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.hero-subtitle__dot {
  color: currentColor;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

/* Speed up initial render: skip offscreen sections until needed. */
.section:not(.hero),
.acknowledgment,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.about {
  background: transparent;
}

/* Section head w/ progress bar */
.section-head {
  display: block;
}

.section-head__row {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-head__subtitle {
  margin-top: 0.15rem;
  color: #666;
  font-size: 0.95rem;
}

 .section-head__progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.section-head__icon {
  width: clamp(44px, 3vw, 56px);
  height: clamp(44px, 3vw, 56px);
  object-fit: contain;
  display: block;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: #d9d9d9;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 220ms ease;
}

/* Research cards */
.research {
  background: transparent;
}

.publications {
  background: transparent;
}

.research-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.publications-grid {
  margin-top: 2rem;
}

.pub-shell {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.pub-search {
  position: relative;
}

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

.pub-search__input {
  width: 100%;
  padding: 0.95rem 3.25rem 0.95rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(17, 24, 39, 0.04);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 1.05rem;
  outline: none;
}

.pub-search__input:focus-visible {
  outline: 3px solid rgba(79, 114, 36, 0.35);
  outline-offset: 2px;
}

.pub-search__icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(17, 24, 39, 0.55);
}

.pub-search__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pub-yearbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-yearbar__label {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
}

.pub-yearbar__track {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.pub-yearbtn {
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 1000;
  font-size: 1.1rem;
  color: rgba(17, 24, 39, 0.32);
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
}

.pub-yearbtn:hover {
  color: rgba(17, 24, 39, 0.6);
}

.pub-yearbtn.is-active {
  color: var(--color-secondary);
}

.pub-status {
  font-weight: 800;
  font-size: 1.02rem;
  color: rgba(17, 24, 39, 0.78);
  min-height: 1.1rem;
}

.pub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid rgba(79, 114, 36, 0.16);
}

.pub-row__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1.22;
}

.pub-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  position: relative;
}

.pub-link:hover {
  color: var(--color-secondary);
}

.pub-link::after {
  content: "Read publication";
  position: absolute;
  left: 0;
  top: calc(100% + 0.55rem);
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 3;
}

.pub-link:hover::after,
.pub-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.pub-authline {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.pub-meta {
  margin-top: 0.2rem;
  color: rgba(17, 24, 39, 0.72);
  font-weight: 500;
  font-size: 1.05rem;
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pub-cites {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 114, 36, 0.75);
  color: var(--color-secondary);
  font-weight: 600;
  background: rgba(140, 198, 62, 0.08);
  white-space: nowrap;
  font-size: 1rem;
}

.pub-open {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(79, 114, 36, 0.55);
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.9);
}

.pub-open svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 700px) {
  .pub-row {
    grid-template-columns: 1fr;
  }

  .pub-actions {
    justify-content: flex-start;
  }
}

.team {
  background: transparent;
}

.team-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
}

.team-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.team-avatar {
  width: clamp(120px, 14vw, 150px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #d9d9d9;
}

.team-name {
  margin-top: 0.85rem;
  font-weight: 700;
  color: #111;
}

.team-degree {
  margin-top: 0.1rem;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.research-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d9d9d9;
  border-radius: 0.35rem;
}

.card-title {
  margin-top: 0.75rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.card-meta {
  margin-top: 0.15rem;
  color: #444;
  font-size: 0.95rem;
}

.pub-authors {
  margin-top: 0.15rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.pub-date {
  margin-top: 1.35rem;
  color: #777;
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

/* Intro: full-width title, then equal columns — text | slideshow (matches reference layout). */
.about-grid--intro {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro-title intro-title"
    "intro-prose intro-media";
  gap: clamp(1.35rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3.5rem);
}

.about-grid--intro .about-intro__title {
  grid-area: intro-title;
  margin-bottom: 0;
}

.about-grid--intro .about-intro__prose {
  grid-area: intro-prose;
  margin-top: 0;
  max-width: none;
}

.about-grid--intro .about-intro__media {
  grid-area: intro-media;
  min-width: 0;
}

.about-grid--intro .about-slideshow__track {
  aspect-ratio: 16 / 9;
}

.about-grid--secondary {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.card-media {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.14),
    0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-slideshow {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.14),
    0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-slideshow__track {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #d9d9d9;
}

.about-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.about-slideshow__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.about-slideshow__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slideshow__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: calc(100% - 1.25rem);
  pointer-events: auto;
}

.about-slideshow__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-slideshow__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.about-slideshow__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.about-slideshow__dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .about-slideshow__slide {
    transition: none;
  }

  .about-slideshow__dot {
    transition: none;
  }
}

.signature {
  margin-top: 1.25rem;
}

.signature-name {
  font-weight: 700;
  color: #111;
}

.signature-title {
  font-weight: 700;
  color: var(--color-secondary);
}

@media (max-width: 900px) {
  main > section:not(.hero):not(.acknowledgment) {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .site-footer {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .about-grid,
  .about-grid--secondary {
    grid-template-columns: 1fr;
  }

  .about-grid--intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro-title"
      "intro-prose"
      "intro-media";
  }

  .about-grid--secondary .about-media {
    order: 2;
  }

  .section-head__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head__progress {
    width: 100%;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------
   Chemistry puzzle game (scoped via .chem-game on body)
------------------------------------------------------------- */

.chem-game {
  background:
    radial-gradient(900px 520px at 22% 18%, rgba(140, 198, 62, 0.13), rgba(140, 198, 62, 0) 55%),
    radial-gradient(900px 520px at 85% 35%, rgba(123, 164, 72, 0.11), rgba(123, 164, 72, 0) 60%),
    var(--color-background);
}

.chem-game__main {
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

.chem-shell__inner {
  display: grid;
  gap: 1.25rem;
}

/* --- Game layout v2 (matches reference screenshot) --- */
.chem-shell--v2 .chem-shell__inner {
  gap: 1.1rem;
}

.chem-hdr {
  display: grid;
  gap: 0.8rem;
}

.chem-hdr__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.chem-title {
  font-size: clamp(2.4rem, 4.8vw, 3.35rem);
  font-weight: 1000;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
  line-height: 1.02;
}

.chem-sub {
  margin-top: 0.55rem;
  display: inline-flex;
  gap: 0.55rem;
  align-items: baseline;
  color: #1f2937;
  font-weight: 900;
}

.chem-sub__k {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
}

.chem-sub__v {
  font-size: 1.2rem;
  font-weight: 1000;
  color: #111827;
}

.chem-score {
  text-align: right;
  min-width: 6.5rem;
}

.chem-score__label {
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
  color: #111827;
  text-transform: uppercase;
}

.chem-score__value {
  margin-top: 0.15rem;
  font-size: 2.35rem;
  font-weight: 1100;
  letter-spacing: -0.02em;
  color: #7BA448;
  line-height: 1;
}

.chem-timer__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
  font-size: 0.78rem;
}

.chem-timer__text {
  font-weight: 1000;
  color: #334155;
  text-transform: none;
  letter-spacing: -0.01em;
}

.chem-timer__bar {
  margin-top: 0.45rem;
  height: 10px;
  width: 100%;
  background: #d9d9d9;
  border-radius: 999px;
  overflow: hidden;
}

.chem-timer__fill {
  height: 100%;
  width: 100%;
  background: #4F7224;
  border-radius: 999px;
  transition: width 160ms linear;
}

.chem-stage {
  display: grid;
  gap: 0.85rem;
}

.chem-canvas--v2 {
  height: min(56vh, 520px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.90));
  border: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: none;
  padding-bottom: 72px; /* space for the in-canvas control strip */
}

.chem-canvas__label {
  position: absolute;
  left: 1.15rem;
  top: 1rem;
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.chem-stage__footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 5;
  pointer-events: auto;
}

.chem-stage__footerRow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chem-iconbar {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  flex-shrink: 0;
}

.chem-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  color: #111827;
  transition:
    transform 80ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.chem-iconbtn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.chem-iconbtn:active {
  transform: translateY(1px);
}

.chem-iconbtn.is-active,
.chem-iconbtn[aria-pressed="true"] {
  background: rgba(123, 164, 72, 0.18);
  border-color: rgba(123, 164, 72, 0.55);
}

.chem-hudline {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  width: 100%;
}

.chem-hudline__item {
  font-weight: 900;
  color: #111827;
  font-size: 0.92rem;
  white-space: nowrap;
}

.chem-hudline__item:last-child {
  white-space: normal;
  min-width: min(58ch, 60vw);
}

.chem-hudline__k {
  color: #6b7280;
  font-weight: 1000;
}

.chem-stage__actions {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

.chem-btn--wide {
  padding-inline: 1.55rem;
}

.chem-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.chem-bottomcard {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.04);
}

.chem-bottomcard__title {
  font-weight: 1000;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.chem-palette--v2 {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
  gap: 8px;
  justify-content: start;
}

.chem-atom--v2 {
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.chem-atom--v2 .chem-atom__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.chem-atom--v2 .chem-atom__sym {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
  box-shadow: none;
}

.chem-atom--v2[data-element="C"] .chem-atom__sym {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.chem-atom__name {
  font-size: 1.05rem;
  font-weight: 1000;
  color: #111111;
  line-height: 1.05;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chem-atom__meta {
  margin-top: 2px;
  font-size: 1rem;
  color: #7BA448;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.chem-atom__meta {
  display: block;
  margin-top: 0.1rem;
  font-weight: 800;
  font-size: 0.78rem;
  color: #6b7280;
}

.chem-bottom__right {
  display: grid;
  gap: 1rem;
}

.chem-bondstack {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chem-btn--stack {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
}

.chem-bondstack .chem-btn--stack::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #d9d9d9;
  flex: 0 0 auto;
}

.chem-toolgrid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.chem-settingsgrid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.chem-settingsgrid .chem-select {
  min-width: 100%;
}

.chem-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(140, 198, 62, 0.14), rgba(140, 198, 62, 0) 55%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.chem-level__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chem-level__formula {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.chem-level__clue {
  margin-top: 0.2rem;
  color: #374151;
  font-weight: 700;
  font-size: 0.95rem;
}

.chem-topbar__actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chem-control__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.25rem;
}

.chem-select {
  min-width: min(22rem, 72vw);
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.chem-select--sm {
  min-width: 10.5rem;
}

.chem-btn {
  padding: 0.65rem 0.85rem;
  border-radius: 0.95rem;
  font-weight: 900;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  transition:
    transform 80ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.chem-btn:active {
  transform: translateY(1px);
}

.chem-btn--primary {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-color: rgba(0, 0, 0, 0.08);
  color: #0b1220;
  box-shadow:
    0 14px 30px rgba(140, 198, 62, 0.25),
    0 2px 10px rgba(0, 0, 0, 0.08);
}

.chem-btn--ghost {
  background: rgba(255, 255, 255, 0.86);
}

.chem-btn--seg {
  flex: 1;
  border-radius: 0.9rem;
  font-weight: 900;
  padding: 0.55rem 0.65rem;
}

.chem-btn--seg.is-active {
  background: rgba(123, 164, 72, 0.18);
  border-color: rgba(123, 164, 72, 0.5);
}

.chem-btn.is-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
}

.chem-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.chem-panel {
  display: grid;
  gap: 1rem;
}

.chem-card {
  padding: 1rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.07),
    0 2px 12px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.chem-card__title {
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.chem-palette {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.chem-atom {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  text-align: left;
}

.chem-atom__sym {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 1000;
  background: #111827;
  color: #fff;
  letter-spacing: -0.02em;
}

.chem-atom[data-element="H"] .chem-atom__sym {
  background: #e5e7eb;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.chem-atom[data-element="O"] .chem-atom__sym {
  background: #dc2626;
}

.chem-atom[data-element="N"] .chem-atom__sym {
  background: #2563eb;
}

.chem-atom[data-element="Cl"] .chem-atom__sym {
  background: #16a34a;
}

.chem-atom__name {
  font-weight: 900;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.15;
}

.chem-bondtools {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

.chem-help {
  margin-top: 0.65rem;
  color: #374151;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chem-helpergrid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.chem-status {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.chem-status__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.chem-status__k {
  font-weight: 900;
  color: #0f172a;
}

.chem-status__v {
  font-weight: 900;
  color: #334155;
  text-align: right;
}

.chem-work {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.chem-work__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chem-hudpill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  font-weight: 900;
  font-size: 0.9rem;
}

.chem-hudpill__k {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 900;
}

.chem-canvas {
  position: relative;
  height: min(64vh, 620px);
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 14% 15%, rgba(140, 198, 62, 0.09), rgba(140, 198, 62, 0) 55%),
    radial-gradient(120% 120% at 88% 35%, rgba(123, 164, 72, 0.08), rgba(123, 164, 72, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.12),
    0 2px 12px rgba(0, 0, 0, 0.06);
  outline: none;
}

.chem-canvas.is-eraser {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M17.8 4.8l5.4 5.4c.8.8.8 2 0 2.8L14 22.6c-.4.4-.9.6-1.4.6H7.4c-.5 0-1-.2-1.4-.6l-1.2-1.2c-.8-.8-.8-2 0-2.8l9.6-9.6c.8-.8 2-.8 2.8 0l.6.6 1.4-1.4-.6-.6c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0z' fill='%23ffffff'/%3E%3Cpath d='M6.2 20.2l1.6 1.6h4.8l4.2-4.2-6.4-6.4-4.2 4.2c-.8.8-.8 2 0 2.8z' fill='%23ef4444'/%3E%3Cpath d='M16.8 6.2l5.0 5.0' stroke='%23111827' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
      10 18,
    crosshair;
}

.chem-bonds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.chem-atoms {
  position: absolute;
  inset: 0;
}

.chem-node {
  position: absolute;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 999px;
  background: var(--node-fill, #111827);
  border: 2px solid var(--node-stroke, #0b1220);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.10);
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: none;
}

.chem-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  opacity: 0;
  transition: opacity 90ms ease;
  pointer-events: none;
}

.chem-canvas.is-eraser .chem-node:hover::after {
  opacity: 1;
}

.chem-canvas.is-eraser .chem-node:hover {
  outline: 3px solid rgba(239, 68, 68, 0.55);
  outline-offset: 2px;
}

.chem-node__sym {
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: var(--node-text, #fff);
}

.chem-node.is-selected {
  outline: 3px solid rgba(140, 198, 62, 0.55);
  outline-offset: 2px;
}

.chem-node__handle {
  position: absolute;
  left: var(--hx, 100%);
  top: var(--hy, 50%);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(37, 99, 235, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
}

.chem-node:hover .chem-node__handle {
  opacity: 1;
  pointer-events: auto;
}

.chem-bond__line {
  stroke: rgba(17, 24, 39, 0.92);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.chem-bond__hit {
  stroke: transparent;
  stroke-width: 18;
  stroke-linecap: round;
}

.chem-canvas.is-eraser .chem-bond:hover .chem-bond__line {
  stroke: rgba(239, 68, 68, 0.95);
}

.chem-bond__preview {
  stroke: rgba(37, 99, 235, 0.9);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
}

.chem-feedback {
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.chem-feedback__text {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.chem-feedback[data-kind="good"] {
  background: rgba(22, 163, 74, 0.92);
}

.chem-feedback[data-kind="bad"] {
  background: rgba(220, 38, 38, 0.92);
}

.chem-feedback__fact {
  margin-top: 0.45rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .chem-layout {
    grid-template-columns: 1fr;
  }

  .chem-select {
    min-width: min(34rem, 84vw);
  }

  .chem-hdr__row {
    align-items: flex-start;
  }

  .chem-stage__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .chem-iconbar {
    justify-content: flex-start;
  }

  .chem-hudline__item:last-child {
    min-width: 0;
  }

  .chem-stage__actions {
    justify-content: flex-end;
  }

  .chem-bottom {
    grid-template-columns: 1fr;
  }

  .chem-palette--v2 {
    grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
    justify-content: start;
  }
}

/* Contact — Get in Touch */
.contact {
  --contact-icon-size: 4.5rem; /* 72px — within 60–80px reference */
  --contact-icon-gap: 1.125rem; /* 18px — within 15–20px reference */
  background: transparent;
}

.contact-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--contact-icon-gap);
  min-width: 0;
}

.contact-card__icon {
  flex-shrink: 0;
  width: var(--contact-icon-size);
  height: var(--contact-icon-size);
  border-radius: 0.85rem;
  background: var(--color-secondary);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.contact-card__glyph {
  width: 1.875rem;
  height: 1.875rem;
  display: block;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.contact-card__label {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.5;
}

.contact-card__text {
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #111827;
}

.contact-card__link {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-card__link:hover {
  color: var(--color-secondary);
}

.contact-card__link:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.75);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.contact-map {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.05);
  aspect-ratio: 21 / 9;
  min-height: 280px;
}

.contact-map__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact {
    --contact-icon-size: 4rem;
    --contact-icon-gap: 1rem;
  }
}

/* Acknowledgment of Country */
.acknowledgment {
  position: relative;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  background-color: var(--color-secondary);
  overflow: hidden;
}

.acknowledgment::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("Assets/Aboriginal.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.acknowledgment__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 2rem);
  margin-inline: auto;
  text-align: center;
  box-sizing: border-box;
}

.acknowledgment__text {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.82rem, 0.35vw + 0.78rem, 0.98rem);
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 75rem) {
  .acknowledgment__text {
    white-space: nowrap;
  }
}

/* Site footer */
.site-footer {
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  background: transparent;
  border-top: 1px solid rgba(79, 114, 36, 0.12);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}
