:root {
  --bg: #000000;
  --paper: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #e21833;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

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

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #000000;
  overflow-x: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.site-header,
.site-footer,
.section,
.hero {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(20px, 4vw, 48px) 0;
  padding-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.07) 38%,
    rgba(0, 0, 0, 0.015) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  transition:
    background 220ms ease,
    backdrop-filter 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  border-bottom: none;
  backdrop-filter: blur(0px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 180%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 52% 28%, rgba(255, 255, 255, 0.05), transparent 16%),
    radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.07), transparent 18%);
  opacity: 0.55;
  transform: translateX(0);
  animation: headerRipple 14s linear infinite;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 76px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.025) 34%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(18px);
  z-index: 0;
}

body.is-scrolled .site-header::before {
  opacity: 0.34;
}

body.is-scrolled .site-header {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.13) 54%,
    rgba(0, 0, 0, 0.015) 84%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.umd-logo {
  width: 172px;
  height: auto;
  display: block;
}

.umd-crest {
  width: 88px;
}

main {
  padding-top: 210px;
}

.wordmark {
  display: inline-grid;
  gap: 0;
  font-family: "Playwrite GB J", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.wordmark span:nth-child(2) {
  display: inline-block;
  color: var(--accent);
  transform: rotate(-5deg);
  transform-origin: center;
  animation: wordmarkDataLive 6.2s ease-in-out infinite;
}

.wordmark span {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms ease,
    text-shadow 320ms ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
}

.wordmark:hover span:nth-child(1),
.wordmark:focus-visible span:nth-child(1) {
  transform: translateX(-10px) rotate(-4deg);
}

.wordmark:hover span:nth-child(2),
.wordmark:focus-visible span:nth-child(2) {
  transform: rotate(-5deg) scale(1.04);
  text-shadow: none;
}

.wordmark:hover span:nth-child(3),
.wordmark:focus-visible span:nth-child(3) {
  transform: translateX(-6px) rotate(3deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.site-nav a,
.contact-panel a {
  position: relative;
}

.site-nav a::after,
.contact-panel a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.contact-panel a:hover::after,
.contact-panel a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 72px clamp(20px, 4vw, 48px) 56px;
  min-height: 72vh;
  align-items: center;
  justify-items: stretch;
  text-align: left;
  max-width: 1380px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 780px;
  position: relative;
}

.hero-mark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(31vw, 430px);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-copy-reference {
  max-width: 820px;
  padding-top: 0;
  display: grid;
  align-content: center;
  justify-items: start;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 700ms ease forwards;
}

.hero-reveal-1 {
  animation-delay: 80ms;
}

.hero-reveal-2 {
  animation-delay: 220ms;
}

.hero-reveal-3 {
  animation-delay: 360ms;
}

.hero-reveal-4 {
  animation-delay: 500ms;
}

.eyebrow,
.section-index,
.project-type,
.card-label,
.method-number {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 34px;
  max-width: none;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.hero-copy h1 {
  position: relative;
}

.hero h1::after {
  content: none;
}

.hero-intro-line {
  margin: 0 0 2px;
  max-width: 55ch;
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  color: #ffffff;
  text-align: left;
}

.hero-text,
.about-copy p,
.annotation p,
.method-card p,
.project-card p,
.contact-panel p,
.person-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero-text {
  max-width: 56ch;
  font-size: 1.08rem;
  margin-inline: 0;
}

.hero-text-wide {
  max-width: 55ch;
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.72;
  color: #ffffff;
  text-align: justify;
  text-justify: inter-word;
}

.hero-text-wide + .hero-text-wide {
  margin-top: 24px;
}

.text-highlight {
  position: relative;
  display: inline;
  color: #f1bc42;
  font-weight: 700;
  -webkit-text-stroke: 0.15px currentColor;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 260ms ease;
}

.text-highlight:hover {
  background-size: 100% 1px;
}

.text-linklike {
  color: #00000;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions-reference {
  width: 100%;
  justify-content: flex-end;
  margin-top: 36px;
}

.hero-actions-reference .button-outline {
  position: relative;
  left: -60px;
  top: 20px;
}

.news-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 80px;
}

.news-shell {
  position: relative;
  padding-top: 26px;
}

.news-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.news-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 26px;
}

.news-kicker {
  margin: 0;
  color: var(--accent);
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-heading h2 {
  margin: 0;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.05;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 168px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0 14px;
}

.news-meta {
  display: grid;
  gap: 6px;
}

.news-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
}

.news-type {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-media {
  width: 168px;
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background-color 280ms ease;
}

.news-media img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease;
}

.news-media:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.news-media:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.news-copy h3 {
  margin: 0 0 10px;
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.35;
}

.news-copy h3 a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 255, 255, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.news-copy h3 a:hover,
.news-copy h3 a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.news-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(226, 24, 51, 0.5);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.news-copy {
  padding-left: 10px;
}

.news-copy p {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
}

.news-name {
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.82);
  padding: 0 28px;
  border-radius: 0;
  font-family: "Didact Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes wordmarkDataLive {
  0%,
  100% {
    transform: translateX(0) scale(1);
    text-shadow: 0 0 0 rgba(226, 24, 51, 0);
    opacity: 1;
  }
  35% {
    transform: translateY(-0.5px) scale(1.01);
    text-shadow: 0 0 6px rgba(226, 24, 51, 0.12);
  }
  50% {
    transform: translateY(0) scale(1.025);
    text-shadow: 0 0 12px rgba(226, 24, 51, 0.2);
    opacity: 1;
  }
  70% {
    transform: translateY(0.5px) scale(1.008);
    text-shadow: 0 0 5px rgba(226, 24, 51, 0.1);
  }
}

@keyframes headerRipple {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-8%);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 56px clamp(20px, 4vw, 48px) 8px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.about-copy,
.method-card,
.project-card,
.person-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.about-copy {
  padding: 28px;
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.annotation {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(110, 119, 83, 0.08), transparent),
    rgba(255, 252, 245, 0.82);
}

.annotation-title {
  margin: 0 0 12px;
  font-weight: 500;
}

.cards-three,
.people-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.method-card,
.person-card {
  padding: 24px;
  min-height: 240px;
}

.method-card h3,
.project-card h3,
.person-card h3 {
  margin: 16px 0 12px;
  font-size: 1.4rem;
  line-height: 1.08;
}

.method-card:nth-child(2) {
  border-top: 1px solid var(--line);
}

.project-card:nth-child(1) {
  border-top: 1px solid var(--line);
}

.project-card:nth-child(2) {
  border-top: 1px solid var(--line);
}

.project-card:nth-child(3) {
  border-top: 1px solid var(--line);
}

.projects-layout .project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  padding: 26px;
  min-height: 280px;
}

.people-contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding-bottom: 72px;
}

.contact-panel {
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 100%;
}

.contact-panel a {
  width: fit-content;
  font-weight: 500;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px) 26px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-delay-1 {
  transition-delay: 180ms;
}

.news-shell.scroll-reveal {
  transform: translateY(22px);
  transition-delay: 120ms;
}

@media (max-width: 1100px) {
  .hero,
  .about-grid,
  .people-contact,
  .cards-three,
  .projects-layout .project-list,
  .people-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  .hero-copy-reference {
    padding-top: 0;
    justify-items: center;
  }

  .hero-actions-reference {
    justify-content: center;
  }

  .hero-text-wide {
    margin-inline: auto;
  }

  .news-heading,
  .news-item {
    text-align: left;
  }

  .news-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: center;
  }

  .brand-lockup {
    flex-direction: column;
    gap: 10px;
  }

  .umd-logo {
    width: 150px;
  }

  .site-nav {
    justify-content: center;
    gap: 10px 18px;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 24px;
    min-height: auto;
  }

  main {
    padding-top: 176px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .hero-logo {
    width: min(80vw, 360px);
  }

  .news-section {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

}

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

  .site-header::before,
  .site-header::after,
  .hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .site-nav a::after,
  .contact-panel a::after {
    transition: none;
  }

  .wordmark span:nth-child(2) {
    animation: none;
  }

}
