@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #101014;
  --muted: #6d6d76;
  --paper: #f7f7f5;
  --red: #2563eb;
  --red: #2563eb;
  --purple: #6635b8;
  --line: #dededb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

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

/* ===== HEADER ===== */

.site-header {
  height: 82px;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  visibility: visible !important;
  opacity: 1 !important;
}

.brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  visibility: visible !important;
  opacity: 1 !important;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand span {
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.site-header nav {
  display: flex !important;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-header nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav .active {
  color: var(--red);
}

.site-nav .active {
  color: var(--red);
}

/* ===== TYPOGRAPHY ===== */

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

/* ===== HERO ===== */

.hero {
  min-height: calc(100vh - 82px);
  padding: 4vh 7vw 10vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6vw;
  align-items: center;
  overflow: hidden;
}

.hero > div:first-child {
  transform: translateY(-35px);
}

.eyebrow,
.project-tag {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}

.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 18px 0 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  max-width: 650px;
  color: #4d4d55;
}

.hero-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 35px;
}

.button {
  display: inline-block;
  padding: 14px 21px;
  background: var(--ink);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}

.button:hover {
  transform: translateY(-2px);
}

.text-link {
  font-weight: 600;
  font-size: 14px;
}

.hero-visual {
  height: 520px;
  position: relative;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 58% 42%, rgba(226,27,35,.15), transparent 24%),
    radial-gradient(circle at 70% 55%, rgba(102,53,184,.12), transparent 32%);
}

.hero-visual:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  left: 20%;
  top: 12%;
  opacity: .7;
}

.hero-visual:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #d6d6d2;
  border-radius: 50%;
  left: 35%;
  top: 27%;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-a {
  width: 13px;
  height: 13px;
  background: var(--red);
  left: 58%;
  top: 42%;
  box-shadow:
    0 0 0 12px rgba(226,27,35,.08),
    0 0 45px rgba(226,27,35,.4);
}

.orb-b {
  width: 8px;
  height: 8px;
  background: var(--purple);
  left: 70%;
  top: 54%;
  box-shadow: 0 0 35px rgba(102,53,184,.45);
}

.crosshair {
  position: absolute;
  left: 45%;
  top: 20%;
  height: 62%;
  width: 1px;
  background: linear-gradient(
    transparent,
    #222 30%,
    #222 70%,
    transparent
  );
  transform: rotate(25deg);
}

.visual-label {
  position: absolute;
  bottom: 10%;
  left: 9%;
  font: 600 11px/1.7 "Space Grotesk";
  letter-spacing: .12em;
  color: #777;
}

/* ===== SECTIONS ===== */

.section {
  padding: 105px 7vw;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 45px;
}

.section-head span {
  font: 600 12px "Space Grotesk";
  color: var(--red);
}

.section-head h2 {
  font-size: 43px;
  letter-spacing: -.04em;
  margin: 0;
}

.section-head a {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

/* ===== RESEARCH ===== */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.research-card {
  min-height: 245px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: .25s;
}

.research-card:hover {
  background: white;
}

.research-card span {
  font: 600 11px "Space Grotesk";
  color: #aaa;
}

.research-card h3 {
  font-size: 25px;
  margin: 55px 0 12px;
}

.research-card p {
  line-height: 1.55;
  color: var(--muted);
  font-size: 14px;
  max-width: 340px;
}

.research-card.featured {
  background: #fff;
}

.research-card.featured h3 {
  color: var(--red);
}

/* ===== PROJECTS ===== */

.dark-section {
  background: #101014;
  color: white;
  padding: 100px 7vw;
}

.light span {
  color: #ff5960;
}

.dark-section .section-head {
  margin-bottom: 55px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 55px;
}

.project-row h3 {
  font-size: 42px;
  margin: 12px 0;
}

.project-row p:not(.project-tag) {
  color: #b8b8bf;
  line-height: 1.6;
  max-width: 560px;
}

.project-line {
  background: #3b3b41;
}

/* ===== PUBLICATIONS ===== */

.pub-card {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.pub-year {
  font: 600 12px "Space Grotesk";
  color: var(--red);
  margin-bottom: 15px;
}

.pub-main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
}

.toc {
  width: 180px;
  height: 120px;
  object-fit: cover;
  background: white;
  border: 1px solid var(--line);
}

.toc.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 20px "Space Grotesk";
  color: #bbb;
  background: linear-gradient(135deg, #fff, #eee);
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tags span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid #d3d3cf;
  padding: 5px 8px;
  border-radius: 20px;
}
.pub-card h3 {
  font-size: 25px;
  margin: 0 0 8px;
  max-width: 850px;
}

.authors {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 6px;
  line-height: 1.5;
}

.journal {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.pub-links {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* ===== CONTACT ===== */

.contact-section {
  padding: 35px 7vw;
  background: var(--red);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.contact-section .eyebrow {
  color: white;
}

.contact-section h2 {
  font-size: 28px;
  margin: 8px 0;
}

.contact-section p:not(.eyebrow) {
  line-height: 1.6;
  color: #ffe8e8;
}

.button-light {
  background: white;
  color: var(--red);
}

/* ===== INNER PAGES ===== */

.page-hero {
  padding: 10px 7vw 50px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 75px;
  letter-spacing: -.055em;
  margin: 15px 0;
}

.page-hero > p:last-child {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.subheading {
  font-size: 28px;
  margin: 30px 0 30px;
}

/* ===== TEAM ===== */

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.people-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.person {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 250px;
}

.portrait {
  width: 140px;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0f0ed;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.person h3 {
  font-size: 19px;
  margin: 18px 0 5px;
}

.person p {
  font-size: 13px;
  color: var(--red);
  margin: 0 0 8px;
  font-weight: 600;
}

.person small {
  color: var(--muted);
  line-height: 1.4;
}

/* ===== FOOTER ===== */

footer {
  padding: 25px 7vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
  border-top: 1px solid var(--line);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 850px) {

  .site-header {
    height: auto;
    padding: 14px 5vw;
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-visual {
    height: 280px;
    border-left: 0;
  }

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

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-line {
    display: none;
  }

  .people-grid,
  .people-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .pub-main {
    grid-template-columns: 110px 1fr;
  }

  .toc {
    width: 110px;
    height: 85px;
  }

  .contact-section {
    display: block;
  }

  .contact-section .button {
    margin-top: 25px;
  }

  .page-hero h1 {
    font-size: 55px;
  }

  footer {
    display: block;
  }

  footer span {
    display: block;
    margin: 6px 0;
  }
}

@media (max-width: 520px) {

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

  .section,
  .dark-section {
    padding: 75px 6vw;
  }

  .hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero h1 {
    font-size: 48px;
  }

  .pub-main {
    grid-template-columns: 1fr;
  }

  .toc {
    width: 100%;
    height: 130px;
  }

  .contact-section {
    padding: 70px 6vw;
  }
}

/* ===== NEWS ===== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 210px;
}

.news-image {
  width: 180px;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecece8, #deded8);
  font: 700 20px "Space Grotesk";
  color: #999;
}

.news-card-body {
  padding: 24px;
}

.news-date {
  font: 600 11px "Space Grotesk";
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.news-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.news-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.site-nav .active {
  color: var(--red);
}

@media (max-width: 850px) {

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

  .news-card {
    grid-template-columns: 130px 1fr;
  }

  .news-image {
    width: 130px;
  }
}

@media (max-width: 520px) {

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

  .news-image {
    width: 100%;
    height: 150px;
    min-height: 150px;
  }
}

/* ===== REMOVE OLD HERO DECORATIVE CIRCLES ===== */

.hero-visual::before,
.hero-visual::after {
  content: none !important;
  display: none !important;
}

.hero-visual .orb,
.hero-visual .crosshair {
  display: none !important;
}

/* ===== HERO IMAGE ===== */

.hero-image {
  width: 104%;
  max-width: none;
  max-height: 4000px;
  object-fit: contain;
  display: block;
}
/* TEST TEAM PHOTOS */
.person .portrait {
  width: 140px !important;
  height: 180px !important;
  border: 1px solid #dededb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: white !important;
}

.person .portrait img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}
#team-content {
  padding-top: 25px;
}
/* ===== TEAM HOMEPAGE LINKS ===== */

.person-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.person-homepage {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.person-homepage:hover {
  color: var(--red);
}
/* Move Latest News upward on homepage */
#news {
  margin-top: -40px;
}


/* ===== SETUPS ===== */

.setups-list {
  padding: 65px 7vw 110px;
}

.setup-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.setup-item:first-child {
  padding-top: 20px;
}

.setup-item:nth-child(even) .setup-image {
  order: 2;
}

.setup-item:nth-child(even) .setup-content {
  order: 1;
}

.setup-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

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

.setup-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f1f1ee, #e5e5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-content {
  max-width: 600px;
}

.setup-number {
  font: 600 12px "Space Grotesk";
  color: var(--red);
  letter-spacing: .08em;
  margin-bottom: 22px;
}

.setup-subtitle {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 13px;
}

.setup-content h2 {
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 22px;
}

.setup-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 560px;
}

.setup-specs {
  border-top: 1px solid var(--line);
}

.setup-spec {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.setup-spec span {
  color: var(--muted);
}

.setup-spec strong {
  font-weight: 600;
}

/* ===== SETUPS RESPONSIVE ===== */

@media (max-width: 850px) {

  .setups-list {
    padding: 45px 6vw 80px;
  }

  .setup-item {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 0;
  }

  .setup-item:nth-child(even) .setup-image,
  .setup-item:nth-child(even) .setup-content {
    order: initial;
  }

  .setup-content {
    max-width: none;
  }

  .setup-content h2 {
    font-size: 32px;
  }

}

@media (max-width: 520px) {

  .setups-list {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .setup-item {
    padding: 45px 0;
  }

  .setup-image {
    aspect-ratio: 4 / 3;
  }

  .setup-content h2 {
    font-size: 29px;
  }

  .setup-spec {
    grid-template-columns: 105px 1fr;
    gap: 12px;
  }

}
