:root {
  --background: #f1eee7;
  --foreground: #111111;
  --muted: #6f6a63;
  --line: rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* =========================================================
   GLOBAL NAVIGATION
========================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.site-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 58px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--foreground);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.64rem;
  letter-spacing: 0.19em;
  opacity: 0.7;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

/* -------------------------
   INTERIOR NAVIGATION
------------------------- */

.interior-header {
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.interior-header .site-nav {
  justify-content: space-between;
  padding-top: 31px;
  padding-bottom: 31px;
}

.home-mark {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem !important;
  letter-spacing: 0.16em !important;
  opacity: 1 !important;
  padding-right: 30px;
}

.home-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}


/* =========================================================
   HOMEPAGE HERO
========================================================= */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 100px;
}

.tesseract {
  position: absolute;
  width: min(72vw, 980px);
  height: auto;
  opacity: 0.028;
  left: 50%;
  top: 50%;
  transform: translate(-54%, -49%) scale(1.05);
  pointer-events: none;
  user-select: none;
  animation: tesseract-arrival 1800ms ease-out both;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  text-align: center;
  transform: translateY(-18px);
}

.wordmark {
  display: block;
  width: min(620px, 84vw);
  height: auto;
  margin: 0 auto;
}

.intro {
  max-width: 560px;
  margin: 40px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.96rem, 1.28vw, 1.14rem);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.78);
}


/* =========================================================
   HOMEPAGE — SELECTED WORK
========================================================= */

.selected-work {
  max-width: 1160px;
  margin: 0 auto;
  padding: 150px 58px 180px;
}

.section-label {
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
}

.project {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 42px;
  padding: 58px 0 62px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease;
}

.project:hover {
  transform: translateX(5px);
}

.project-type {
  margin: 9px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  line-height: 1.6;
}

.project-content {
  min-width: 0;
}

.project h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.project-content > p {
  max-width: 690px;
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.8;
  letter-spacing: 0.015em;
  color: rgba(17, 17, 17, 0.78);
}

.project-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.58rem;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project:hover .project-link {
  color: var(--foreground);
  transform: translateX(3px);
}


/* =========================================================
   RESEARCH ROOMS
========================================================= */

.research-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 58px;
}


/* -------------------------
   PROJECT MASTHEAD
------------------------- */

.research-hero {
  padding: 190px 0 110px;
  border-bottom: 1px solid var(--line);
}

.research-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
}

.research-meta span + span::before {
  content: "—";
  margin-right: 30px;
  opacity: 0.45;
}

.research-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.research-deck {
  max-width: 720px;
  margin: 46px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.76);
}


/* -------------------------
   MAIN RESEARCH INTRODUCTION
------------------------- */

.research-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 90px;
  padding: 100px 0 120px;
  border-bottom: 1px solid var(--line);
}

.research-sidebar {
  color: var(--muted);
}

.sidebar-label {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6rem;
}

.research-sidebar p:last-child {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
}

.research-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.9;
}

.research-copy p {
  margin: 0 0 28px;
}

.research-copy .lead {
  font-size: 1.42rem;
  line-height: 1.65;
}


/* -------------------------
   EVIDENCE TAGS
------------------------- */

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.evidence-row span {
  border: 1px solid var(--line);
  padding: 9px 12px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}


/* -------------------------
   RESEARCH METHODOLOGY
------------------------- */

.research-section {
  padding: 110px 0 130px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 56px;
}

.research-grid h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 400;
}

.research-grid p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.76);
}


/* =========================================================
   RESEARCH FOOTER / RETURN
========================================================= */

.research-footer {
  position: relative;
  margin-top: 10px;
  padding: 42px 0 105px;
  border-top: 1px solid var(--line);
}

.research-footer::before {
  content: "END OF PROJECT OVERVIEW";
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.52rem;
}

.research-footer a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--foreground);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6rem;
  opacity: 0.72;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.research-footer a:hover {
  opacity: 1;
  transform: translateX(-4px);
}


/* =========================================================
   TESSERACT MOVEMENT
========================================================= */

@keyframes tesseract-arrival {
  from {
    opacity: 0;
    transform: translate(-52%, -47%) scale(1.02);
  }

  to {
    opacity: 0.028;
    transform: translate(-54%, -49%) scale(1.05);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .site-header {
    position: relative;
  }

  .site-nav,
  .interior-header .site-nav {
    padding: 26px 22px 10px;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
  }

  .home-mark {
    padding-right: 0;
  }

  .home-mark::after {
    display: none;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .site-nav a {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }


  /* Homepage */

  .hero {
    min-height: calc(100vh - 100px);
    padding: 90px 22px 70px;
  }

  .tesseract {
    width: 145vw;
    opacity: 0.025;
    transform: translate(-56%, -50%);
  }

  .hero-content {
    width: 92vw;
    transform: translateY(-10px);
  }

  .wordmark {
    width: min(92vw, 540px);
  }

  .intro {
    max-width: 88vw;
    margin-top: 32px;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .selected-work {
    padding: 100px 22px 130px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 44px 0 50px;
  }

  .project-type {
    margin: 0;
  }

  .project h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .project-content > p {
    margin-top: 10px;
    font-size: 0.98rem;
  }


  /* Research rooms */

  .research-page {
    padding: 0 22px;
  }

  .research-hero {
    padding: 90px 0 70px;
  }

  .research-meta {
    gap: 10px 18px;
    margin-bottom: 28px;
  }

  .research-meta span + span::before {
    display: none;
  }

  .research-hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .research-deck {
    margin-top: 30px;
    font-size: 1.08rem;
  }

  .research-body {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 70px 0 80px;
  }

  .research-copy .lead {
    font-size: 1.2rem;
  }

  .research-section {
    padding: 80px 0 100px;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .research-footer {
    padding-bottom: 70px;
  }

}